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

Is there a way to issue a rolling worker update? #1222

Open
cat5inthecradle opened this issue Nov 5, 2024 · 0 comments
Open

Is there a way to issue a rolling worker update? #1222

cat5inthecradle opened this issue Nov 5, 2024 · 0 comments

Comments

@cat5inthecradle
Copy link

I'm running a number of workers on a single server. When I update my code, I need to restart workers so they pick up the latest code.

Today, I'm running the following two commands to handle the update.

delayed_job stop
delayed_job -n 150' start

The problem is that both the stop and the start take some time, resulting in a massive spike in job wait times. Is there a way to issue a rolling restart of workers that will replace them in batches or wait until new workers are started before terminating the old workers?

Eventually, I plan to solve this by running workers in Docker containers in an ECS Service, which will handle the rolling deploy for me, but I'd love to be able to do this within a single system.

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

1 participant