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

systemd takes 2min to stop mod_gearman_worker #159

Closed
dirtyren opened this issue Jul 27, 2021 · 2 comments
Closed

systemd takes 2min to stop mod_gearman_worker #159

dirtyren opened this issue Jul 27, 2021 · 2 comments

Comments

@dirtyren
Copy link
Contributor

I could not find why, systemctl stop mod-gearman-worker takes almost 2min to finish, although in 10s all the mod_gearman processes and zombies are gone and the service queue in gearman_top is with 0 workers and 0 jobs running
It is not a check that is waiting to finish.

I am running mod-gearman-worker 3.3.3 on CentOS 8 Stream.

time systemctl stop mod-gearman-worker
real 1m44.117s
user 0m0.012s
sys 0m0.011s

Logs
Jul 27 16:01:57 opdev3 systemd[1]: Stopping Mod-Gearman Worker...
Jul 27 16:03:41 opdev3 systemd[1]: mod-gearman-worker.service: State 'stop-final-sigterm' timed out. Killing.
Jul 27 16:03:41 opdev3 systemd[1]: mod-gearman-worker.service: Killing process 167235 (op-snmp-interfa) with signal SIGKILL.
Jul 27 16:03:41 opdev3 systemd[1]: mod-gearman-worker.service: Killing process 171308 (op-snmp-interfa) with signal SIGKILL.
Jul 27 16:03:41 opdev3 systemd[1]: mod-gearman-worker.service: Killing process 171371 (op-snmp-interfa) with signal SIGKILL.
Jul 27 16:03:41 opdev3 systemd[1]: mod-gearman-worker.service: Failed with result 'timeout'.
Jul 27 16:03:41 opdev3 systemd[1]: Stopped Mod-Gearman Worker.

Any idea? Any extra info just let me know.

Tks.

@sni
Copy link
Owner

sni commented Jul 27, 2021

pending checks would have been my first guess as well. Is this the c worker or the go worker?

@dirtyren
Copy link
Contributor Author

It is the C workler, with the Go worker I have the the denial of service from geramand, described here ConSol-Monitoring/mod-gearman-worker-go#9
It not pending checks, at least 10 seconds after the stop has started, all processes, jobs running, workers and zombies are all gone.

Tks.

@sni sni closed this as completed Mar 14, 2022
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

2 participants