-
Notifications
You must be signed in to change notification settings - Fork 87
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
eye ignores pid change and overwrites again with 'invalid' old pid #52
Comments
it looks like, that oldpid 6751 still alive, after restart-command, but eye wait when it die (2 minutes), like unicorn do. |
Yes, the old pid is still alive. But why does it ignore the new pid entry and rewrites it? |
Little unexpected case when pid_file changes and old process not die. Because eye dont know why pid_file was rewritten, may it just some fuckup. |
When doing a soft restart, there will be two haproxy instances. The old instance exists as long as there are clients connected and kills itself if all clients are disconnected. In our case that could take several minutes or hours. Eye should monitor the new instance in the meantime |
i guess, i will add option for that case. |
👍 |
Thanks! |
Can you test it with 0.6.pre? |
|
Nice! So you decided to go with that default? |
yes this is default, because unicorn works with it well, and why not, |
Hi!
We're monitoring/controlling haproxy instances with eye. The restart_command should do a so called 'soft restart' ('/usr/sbin/haproxy -D -f /etc/haproxy/haproxy_test.conf -sf {PID}'), which works so far and haproxy itself updates (as expected) the pidfile with the new pid. But then eye ignores the new pid entry and rewrites the pid file with the old instance pid. That's really bad, because if the old haproxy instance stops (when all connections on the old instance are closed), eye will restart haproxy again and again
Is it possible to add an option so that eye doesn't ignore a pid change?
according eye config:
The text was updated successfully, but these errors were encountered: