-
Notifications
You must be signed in to change notification settings - Fork 46
Have an config reloader endpoint #71
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
Comments
Created the method |
@alexppg suggested: add a callback parameter to |
Instruction: Create an endpoint like the Healthcheck and call |
I'll do this |
@avara1986 with the development done, is possible to execute arbitrary orders when the endpoint is fetched? Like the example we talked, if I implement a ms that uses elasticsearch for example, and I reload the configuration, I might need to recreate the connection. Could I do it right now? |
Hi @alexppg, I think so, The reload method has this code:
and |
Oh, I see. That makes sense. I don't see it documented, is it? If not, I'll create an issue. @avara1986 |
good point, We add this functionality but we need to document it 👍 your suggestions always are very good, Thanks a lot @alexppg :) |
Is your feature request related to a problem? Please describe.
Sometimes you have a microservice which you want to change it's configuration. You could make the k8s deployment to recreate the cluster, but that wouldn't be need if the microservice had an endpoint which reloaded the configuration by itself.
Describe the solution you'd like
Implement an endpoint, for example
/-/reload
that will re-read the configuration.The text was updated successfully, but these errors were encountered: