-
Notifications
You must be signed in to change notification settings - Fork 134
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 ability to watch a key in Consul and trigger jobs based on changes to the value for that key #506
Comments
I think this is another reasonable solution to use cases similar to #504. It's also nice that it doesn't rely on UNIX signal processing which can be a headache at times. |
It's also useful in much more general cases. IIRC this was in discussion when we made the switch to Consul-only anyways. So 👍 on this feature. |
Two issues that I can think of are that the CP config for watches assumes only services, so we'll have to figure out a path through that. I also can't remember if CP is now updated to use true Consul watches or if it's still polling (which was definitely something we had in mind in the switch to Consul only). |
I'm pretty sure @geek had a good proposed config for that, it just never made it into an issue and I can't remember it (or go back through Slack now! 😀 )
Not yet. See #461 |
Starting to sketch out the order of operations for this task. Looks something like...
I'll flesh this out a bit more in the coming days. |
This is an excellent idea. @cheapRoc That seems like a profitable avenue to go down. |
I need to be able to make changes to a configuration template outside of the Docker image. I'd typically argue that the config file is code and needs to be versioned with code, but that's not exactly the same as saying it needs to be deployed as an update to the image.
So, I'm looking for a way to keep the config template in Consul (in the k/v store) and have ContainerPilot watch watch the key for any changes, then trigger a job if it detects changes. I can write a job that will fetch that config template and poke my app with the update when it's complete, but I'd prefer to use the watch mechanism in ContainerPilot to do so.
The text was updated successfully, but these errors were encountered: