-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LeoFS Gateway - graceful configuration reload #673
Comments
I've checked the current implementation, which only once load How often does you reload the configuration? After receiving your answer, we will consider whether we need to implement reloading the configuration feature or not. |
At this stage we are reloading every couple of days. In the testing environments multiple times a day. |
@pannon @yosukehara
### reload .conf files without restarting
$ ./package/leo_gateway/bin/leo_gateway reload
### reload .conf files without restarting
$ kill -HUP ${leo_gateway_pid} |
Thanks! Maybe something along the lines of This would be a safe choice for most use cases and users. |
WIP. Note: Since signal handling in Erlang has been supported from OTP20, we go for the nodetool way. |
@pannon It's been a long time since you filed this issue. We've finally implemented this feature and it will be shipped with upcoming 1.4.1 (probably today) so please give it a try once it gets released. # reload
$ ./package/leo_gateway/bin/leo_gateway reload_http_conf
# conf test
$ ./package/leo_gateway/bin/leo_gateway test_http_conf Feel free to reopen if you find any problems. |
Is there a way to gracefully reload gateway configuration without restarting the process itself?
We are modifying the http_custom_header.conf file quite often, would like to avoid gateway restarts if possible to reload the new headers.
The text was updated successfully, but these errors were encountered: