router icon indicating copy to clipboard operation
router copied to clipboard

start a configuration reload from a HUP signal

Open Geal opened this issue 4 years ago • 1 comments

Right now we support configuration reload through filesystem watch. This can be unreliable sometimes (missing udpdates), and it will try to reload files on each save even if we're not done modifying (the router should check the configuration file and schema before replacing, but that's another topic).

Should we support a signal to tell the router to reload its configuration? Specifically, SIGHUP is commonly accepted for that. That would fit well with tools like systemd and its ExecReload command

Geal avatar Oct 22 '21 08:10 Geal

~~Kinda related: we (optionally) do a graceful shutdown on SIGINT (CTRL+C), do we also do that on SIGTERM?~~ Edit: that's https://github.com/apollographql/router/pull/1497

SimonSapin avatar Aug 12 '22 08:08 SimonSapin