Re: [Nix-dev] hotswappable self managing services in nix

2016-11-28 Thread Tomasz Czyż
Stewart: check my comment for configuration reload, if you want this on service level, https://github.com/NixOS/nixpkgs/issues/1988#issuecomment-247779639 could be helpful for you (at least I'm implementing such things that way). 2016-11-28 10:49 GMT+00:00 zimbatm : > For

Re: [Nix-dev] hotswappable self managing services in nix

2016-11-28 Thread zimbatm
For process-level graceful restarts see https://github.com/zimbatm/socketmaster and https://github.com/pusher/crank . Those could be integrated into the activation script. On Mon, 28 Nov 2016 at 09:33 zimbatm wrote: > Hi Stewart, > > In a HA setup availability is generally

Re: [Nix-dev] hotswappable self managing services in nix

2016-11-26 Thread Graham Christensen
First: 9 9s means that for all 13(?) years NixOS has existed, there would be just over 4 seconds of down time. Any real system would use many redundant machines to accomplish this. Google strives for 99.95%. Second: I think more generally what you're looking for is graceful restarting. NixOS