Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Open to adding the ability to restart workers #97

Open
Will-Sommers opened this issue Nov 6, 2017 · 5 comments
Open

Open to adding the ability to restart workers #97

Will-Sommers opened this issue Nov 6, 2017 · 5 comments

Comments

@Will-Sommers
Copy link

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!

@ljharb
Copy link
Collaborator

ljharb commented Nov 6, 2017

That does seem reasonable to me; although it masks the real problem, it would prevent production problems while it's investigated.

@Will-Sommers
Copy link
Author

Cool! One of the things we noticed about running without createGetComponent is that its really helpful for local development because the restarts are really fast. I'm not sure how y'all load components in without restarting the server — perhaps I'm totally missing something.

@ljharb
Copy link
Collaborator

ljharb commented Nov 7, 2017

@goatslacker, what are your thoughts?

@Will-Sommers
Copy link
Author

@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.

@jamesmosier
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants