JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for MOONSHOT-DEV Archives


MOONSHOT-DEV Archives

MOONSHOT-DEV Archives


MOONSHOT-DEV@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

MOONSHOT-DEV Home

MOONSHOT-DEV Home

MOONSHOT-DEV  August 2015

MOONSHOT-DEV August 2015

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Dynamic TR Design, First Draft

From:

Adam Bishop <[log in to unmask]>

Date:

Thu, 20 Aug 2015 13:51:04 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (44 lines)

On 19 Aug 2015, at 16:43, Sam Hartman <[log in to unmask]> wrote:
> Adam, I'd like to ask you to look over the config file handling in this.
> In particular, I think that the handling your init script does where it
> tries a candidate config will not work with this model.

I don't handle this in the init script (the init script just has the capability to managed multiple instances and execute a functional test on a running instance). My update scripts will require changes.

> The assumption is that the trust router will reload its config into the
> running process.

Great.

> So, you might want to think about what checks we need to be able to do
> on a config or what requirements you have in this space.

So, what I want is a switch (-c?) that runs the config parsing, and returns 0 if the config parses with no errors - i.e. the trust router believes to the best of its ability the config will load. This eliminates the part of my update code where I parse logs to make sure I get the error "Address already in use".

The second thing my update script does is a functional test - it creates a new directory, builds the config and executes it on a different port, then attempts an authentication. I expect this part to remain, unless you have any ideas on how to predict if the trust router will halt or continue into infinity with a given config :)

If that succeeds, it then initiates a HA failover, waits for all connections to be terminated, kills tr-instance1, restarts it, initiates another HA failover, waits for all connections to be terminated, kills tr-instance2, restarts it.

I would very much like this section to be replaced.

My preference would be for explicit reconfiguration (SIGHUP?), rather than something like inotify. Having the configuration magically reload itself would present problems with atomicity; valid yet nonsensical configurations could end up being loaded, causing a brief outage.

Time based config reloads (i.e. every 30 seconds) could result in the same issue.

Any error in reloading the config should result in the config reload being aborted, and some kind of alert being raised (but should not block any further attempts to reload the config).

Regards,

Adam Bishop
Systems Development Specialist

  gpg: 0x6609D460
    t: +44 (0)1235 822 245
 xmpp: [log in to unmask]

jisc.ac.uk

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.  

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2022
December 2021
October 2021
September 2021
August 2021
June 2021
April 2021
February 2021
January 2021
December 2020
November 2020
October 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
April 2018
February 2018
January 2018
December 2017
November 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
February 2017
January 2017
December 2016
October 2016
September 2016
August 2016
June 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
August 2015
July 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager