shinken
shinken copied to clipboard
shinken poller creates zombie processes when host is unreacheable (ping check)
Running shinken 2.4 in docker
25372 ? Sl 0:00 | \_ docker-containerd-shim 037462e6207b925c5f48a6a68d0e6646c74b63c631d01d38f2394a33d06f2260 /var/run/docker/libcontainerd/037462
25541 ? Ssl 0:21 | | \_ python /usr/bin/shinken-scheduler --replace -c /etc/shinken/daemons/schedulerd.ini
26401 ? S 0:00 | | \_ python /usr/bin/shinken-scheduler --replace -c /etc/shinken/daemons/schedulerd.ini
25377 ? Sl 0:00 | \_ docker-containerd-shim 91477a14b10ebd307e46463abaf741365c8f93ec3e85df40ad8873f6f1067c58 /var/run/docker/libcontainerd/91477a
25502 ? Ssl 0:13 | | \_ python /usr/bin/shinken-reactionner --replace -c /etc/shinken/daemons/reactionnerd.ini
26167 ? Sl 0:01 | | \_ python /usr/bin/shinken-reactionner --replace -c /etc/shinken/daemons/reactionnerd.ini
27702 ? S 0:00 | | \_ python /usr/bin/shinken-reactionner --replace -c /etc/shinken/daemons/reactionnerd.ini
25403 ? Sl 0:00 | \_ docker-containerd-shim f23617c0143f99404869478774523b135633c2f3a6055a17aa49f9bce8f514b8 /var/run/docker/libcontainerd/f23617
25503 ? Ssl 0:00 | | \_ registry serve /etc/docker/registry/config.yml
25641 ? Sl 0:00 | \_ docker-containerd-shim b52fb1cd1599e0332c8120c431e67e720b55c986f7aa0a7dfd7a2b1e897f4cca /var/run/docker/libcontainerd/b52fb1
25682 ? Ssl 0:14 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemons/pollerd.ini
26470 ? Sl 0:04 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemons/pollerd.ini
27651 ? S 0:00 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemons/pollerd.ini
27665 ? S 0:00 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemons/pollerd.ini
27682 ? S 0:00 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemons/pollerd.ini
27711 ? S 0:01 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemons/pollerd.ini
30163 ? Z 0:00 | | \_ [ping6] <defunct>
330 ? Z 0:00 | | \_ [ping6] <defunct>
2422 ? Z 0:00 | | \_ [ping6] <defunct>
4317 ? Z 0:00 | | \_ [ping6] <defunct>
6221 ? Z 0:00 | | \_ [ping6] <defunct>
8133 ? Z 0:00 | | \_ [ping6] <defunct>
9993 ? Z 0:00 | | \_ [ping6] <defunct>
11936 ? Z 0:00 | | \_ [ping6] <defunct>
13787 ? Z 0:00 | | \_ [ping6] <defunct>
15690 ? Z 0:00 | | \_ [ping6] <defunct>
17628 ? Z 0:00 | | \_ [ping6] <defunct>
19703 ? Z 0:00 | | \_ [ping6] <defunct>
21626 ? Z 0:00 | | \_ [ping6] <defunct>
23474 ? Z 0:00 | | \_ [ping6] <defunct>
25558 ? Z 0:00 | | \_ [ping6] <defunct>
27780 ? Z 0:00 | | \_ [ping6] <defunct>
29774 ? Z 0:00 | | \_ [ping6] <defunct>
Getting this with normal ping (not ping6) :
1921 ? Ssl 0:11 /usr/bin/dockerd -H fd://
2127 ? Ssl 0:01 \_ docker-containerd -l unix:///var/run/docker/libcontainerd/docker-container
3790 ? Sl 0:00 | \_ docker-containerd-shim b52fb1cd1599e0332c8120c431e67e720b55c986f7aa0a7
3842 ? Ssl 0:05 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemons/p
5451 ? Sl 0:01 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemo
6578 ? S 0:00 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemo
6631 ? S 0:00 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemo
6684 ? S 0:00 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemo
6726 ? S 0:00 | | \_ python /usr/bin/shinken-poller --replace -c /etc/shinken/daemo
13446 ? Z 0:00 | | \_ [ping] <defunct>
13493 ? Z 0:00 | | \_ [ping] <defunct>
13573 ? Z 0:00 | | \_ [ping] <defunct>
13651 ? Z 0:00 | | \_ [ping] <defunct>
Hi,
- what about without a docker on the same box?
- is the number stable or increasing over time?
Can't test without docker on the same box sorry.
The number of stale is increasing over time (docker restart fixes that).
https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/
You can solve this with something like: https://github.com/Yelp/dumb-init/