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

watchdog processes don't get cleaned up #5

Open
bjorgensen1 opened this issue Dec 18, 2013 · 1 comment
Open

watchdog processes don't get cleaned up #5

bjorgensen1 opened this issue Dec 18, 2013 · 1 comment
Labels
Milestone

Comments

@bjorgensen1
Copy link

I have been doing some testing on my servers with glbd and I have noticed that the watchdog processes apparently don't get cleaned up when glbd stops. I have been frequently restarting glbd intentionally and unintentionally and I currently have 378 watchdog processes running. The old processes aren't taking a significant number cpu cycles, however, since from what I can tell it is just sitting in a loop waiting for the main glbd process to tell it to "poll".

If I run glbd NOT with the --daemon switch, the children do get stopped. With verbose mode on, there are messages that confirm that the children are stopped, however, it appears that while running with --daemon verbose mode is always disabled so I can't see what happens at that point.

The processes should be cleaned up when glbd stops.

I am running glbd 1.0.1 on RHEL 6.5. You should be able to see the processes building up by starting and stopping glbd several times with the watchdog configured and checking the count of watchdog processes with "ps -A | grep mysql.sh | wc -l"

@troex
Copy link

troex commented Oct 31, 2014

I had the same issue, lt happened sometimes, sometimes not. I've added a silly patch to ensure it always terminate watchdog exec script, this can produce additional warnings in verbose mode but still working and cleaning up – https://github.com/troex/glb/blob/debian/debian/patches/0001-ensure-wdog-termination.patch

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

No branches or pull requests

2 participants