chproxy icon indicating copy to clipboard operation
chproxy copied to clipboard

could apply file change very soon

Open fazhang opened this issue 7 years ago • 2 comments

we want to add users on the fly without restarting. For now , we try to modify config.yml to add users item . But chproxy need restart to apply configuration changes. Chproxy Users will lose their connection if we restart , so it looks like a bad option

At the same time , if we modify the configuration in ClickHouse, it will apply without restarting.

Could we have this feature in chproxy, thanks

fazhang avatar Aug 20 '19 02:08 fazhang

https://github.com/Vertamedia/chproxy/blob/master/main.go#L56

find the nofity code . close

fazhang avatar Aug 20 '19 06:08 fazhang

chproxy use SIGHUP to reload config file

ps -ef | grep chproxy | grep -v grep | awk '{print $2}' will get the pid of chproxy

kill -1 pid trigger reload

fazhang avatar Aug 20 '19 06:08 fazhang