loadbalancer icon indicating copy to clipboard operation
loadbalancer copied to clipboard

support for config reload

Open cusspvz opened this issue 10 years ago • 1 comments

Is there any chance, with current architecture, to create a feature that reloads configs on-the-fly?

cusspvz avatar May 27 '15 13:05 cusspvz

@cusspvz It doesn't support it right now, but it's definitely possible to add this feature. Pull requests are welcome. Maybe we can make the master process listen for a SIGUSR2 signal (or other) and when it receives one, it can read the config.json file again and pass the latest config JSON to the workers.

Or maybe the master process can have its own TCP 'command server' and we can just send it the new config data via TCP and then it passes it on to workers.

Not sure what's best practice here so suggestions welcome.

jondubois avatar May 27 '15 14:05 jondubois