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

Question: Temporary taking node out of the cluster #239

Closed
alexef opened this issue Feb 18, 2017 · 5 comments
Closed

Question: Temporary taking node out of the cluster #239

alexef opened this issue Feb 18, 2017 · 5 comments

Comments

@alexef
Copy link

alexef commented Feb 18, 2017

I have the following setup: multiple servers and multiple nodes, that are tagged as "worker" and execute jobs.

I want to be able from time to time to take one of the workers out of the cluster, so that temporarily jobs are not scheduled on it, and then be able to bring it back.

Currently, it seems that the only way to do that is to stop the dkron service.

I explored the options:

  • using /leave -> but then there is no /join to come back
  • using /tags -> doesn't seem possible to modify node tags at runtime; also, adding multiple tags like "worker", "active" would not work, since scheduling takes any of the tag combinations.

Any suggestions?

@vcastellm
Copy link
Member

Hi @alexef I'm trying to understand the motivation you have to have Dkron running when taking a node out of the cluster?

@alexef
Copy link
Author

alexef commented Feb 20, 2017

In my use case, I have long running machines that have many services running, dkron being only one of them.

I configured other services to stop accepting requests, when consul goes in maintenance mode. When consul comes back, they automatically start receiving traffic. I imagine the same behaviour for the dkron agent: pause getting tasks, and then automatically resume.

@drauschenbach
Copy link

@alexef I'm also encountering this issue. I cannot find a way to drain a Dkron node of running jobs before stopping it for maintenance.

@cobolbaby
Copy link
Contributor

cobolbaby commented Nov 10, 2020

This question can actually be extended to how to dynamically add and delete Dkron tags. Use tags to control whether the node is within the scheduled range. Refer to: #791

@fopina
Copy link
Contributor

fopina commented Jul 6, 2021

like #808 this should have been fixed by #983

@alexef alexef closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants