question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Open to adding the ability to restart workers

See original GitHub issue

Hi y’all!

First off, thank you for a really great Github project. We use it here at RTR and its added a lot of rigor around the server-side rendering from our Ruby app.

Onto the issue. Would you be open to a PR which allows the hypernova master process to restart its workers after a specific number of requests. We currently have a job calling SIGTERM on the workers due to memory leaks resulting from our not using createGetComponent.

We have a lot of top level modules and so we opted to not go that route for now and are wondering what your opinion would be on allowing for a hybrid approach, similar to what unicorn-worker-killer does for Ruby.

Thanks again!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Will-Sommerscommented, Nov 13, 2017

@ljharb & @goatslacker, I’m going to start off with a PR or perhaps just a hook to be able to send a worker an exit message and will go from there.

0reactions
jamesmosiercommented, Oct 12, 2018

Hey @Will-Sommers. Were you able to make any progress on this? Or care to share a bit about your current setup? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add the ability to set different "restart policies" on process ...
In my case, I have one worker per CPU, and I'm using a local HAProxy to "simulate" a single server. I'd like to...
Read more >
Settings — Gunicorn 20.1.0 documentation
Restart workers when code changes. This setting is intended for development. It will cause workers to be restarted whenever application code changes.
Read more >
Session retry on worker restart - Community Support - Temporal
We have a workflow that uses session When the worker restart for any reason (new deployment for example) we need to retry the...
Read more >
Control Worker Restarts - MATLAB & Simulink - MathWorks
Restart Workers Based on Up Time · If the server instance is running, stop it. · Open the configuration file for the instance...
Read more >
RQ: Workers
Each worker will process a single job at a time. Within a worker, there is no concurrent processing going on. If you want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found