Skip to content
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

Add API endpoint to reload the configuration #576

Open
amuntean-godaddy opened this issue Dec 29, 2024 · 3 comments
Open

Add API endpoint to reload the configuration #576

amuntean-godaddy opened this issue Dec 29, 2024 · 3 comments

Comments

@amuntean-godaddy
Copy link

I am using cousul kv to manage the subscriptions configuration and consul-template to render the gnmi config in k8s. In case I change the subscriptions configuration in kv, the gnmi does not reload it's config and requires a manual re-deployments of the pods.

It will be great if you can add api endpoint to force the reload.

Example:
curl -X POST http://localhost:7890/-/reload

@karimra
Copy link
Collaborator

karimra commented Jan 6, 2025

Something similar was added before see here
It respawns the whole pod but it will essentially achieve the same result.

@amuntean-godaddy
Copy link
Author

Thanks @karimra

@amuntean-godaddy
Copy link
Author

The only thing is that re-spawning the whole pod will take more time, which will result in a metrics gaps(~1m). I think with reloading config this time can be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants