-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Nomad template custom change_mode #2707
Comments
I'd really like this. Zookeeper cannot be updated with a SIGHUP/SIGUSR1, and the dynamic reconfiguration support requires running
|
Additionally, I'd be happy to submit a PR for this, but I can't find my way around the Repo. If someone can point me towards where |
The script check code is here: https://github.com/hashicorp/nomad/blob/6943943a92f7faaa059519d182bb66799bf41e50/command/agent/consul/script.go The |
+1 here, I've had this need a couple of times. Especially relevant when deploying datastores like Zookeeper or Kafka on Nomad. One workaround that I came up with - but haven't implemented yet - is to:
Having |
Would love to see this feature too, specially knowing that My use case is to be able to reload |
+1 on this feature |
This would be a great feature for some of our JVM based apps too. While we can trap signals in the JVM, we'd prefer not to. |
Currently the (consul-)template stanza in Nomad only supports restarting a task or sending a signal. Lots of C and Go apps support signals but this isn't the case for most apps in other languages, in particular those running in a virtual machine like the JVM. In those cases it would be great to add support for
|
Another use-case: The |
Adding fail2ban to examples where this is useful – you can run |
This PR adds the functionality of allowing custom scripts to be executed on template change. Resolves #2707
This PR adds the functionality of allowing custom scripts to be executed on template change. Resolves #2707
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Custom change_mode scripts
I want to execute my custom scripts when template file changed
Example:
1. Alter mysql config opts can not restart mysqld, I want to execute mysql command to to make the changed opt effect
2. Second: I can custom Validate rules, then decide to make the change commit or rollback.
The text was updated successfully, but these errors were encountered: