Config Update *without* service interuption?

45 views
Skip to first unread message

Steve Hotz

unread,
Aug 12, 2016, 7:12:37 PM8/12/16
to gdnsd
Hi All,

I know gdnsd has been used for Wikimedia ...

Working with an organization that wants minimal downtime on config switchover/update (i.e. the few seconds on reload is being noticed) ... any tips/techniques that might help??

thanks,
sh

Brandon Black

unread,
Aug 16, 2016, 7:23:45 PM8/16/16
to gdnsd on behalf of Steve Hotz
gdnsd already has support for a nearly seamless overlapped restart.  All startup delays in the new daemon happen while the old is still answering queries, and then new sockets are created with SO_REUSEPORT before stopping the old sockets/daemon.  This is what happens by default when using "gdnsd restart".

The SO_REUSEPORT part requires Linux kernel 3.9+ (or BSD).  The other caveat is that the overlapped restart isn't systemd-compatible.  There's some work in progress on doing things in a vastly more complicated way that will work with systemd, but it's not ready for release yet.

--Brandon
Reply all
Reply to author
Forward
0 new messages