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

gunicorn master process to register ephemeral node to zookeeper #3074

Closed
Duanexiao opened this issue Sep 21, 2023 · 1 comment
Closed

gunicorn master process to register ephemeral node to zookeeper #3074

Duanexiao opened this issue Sep 21, 2023 · 1 comment

Comments

@Duanexiao
Copy link

with gunicorn to deploy my service, I should use kazoo to register this service to zookeeper in ephemeral node.but found this action runs in every process, not only in the master process,even I set this code in gunicorn_conf.py with on_starting hook.Any example for this situation?Thank you

@Duanexiao
Copy link
Author

the on_starting hook task must be complete in limited time, or the corresponding object will be forked into every worker, otherwise the task start in the multiprocessing process method.So this issue will be closed

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