berngp / docker-zabbix

Docker Container running a Zabbix Server and Zabbix Web UI.
Other
160 stars 66 forks source link

Replace monit with another process monitoring system #22

Open marc- opened 9 years ago

marc- commented 9 years ago

Monit is not suitable for containers. Please see https://bitbucket.org/tildeslash/monit/issue/53/ . It ends up crowded with zombie processes and you'll have to kill the container.

32714 ?        Z      0:00 [service] <defunct>
32730 ?        Z      0:00 [service] <defunct>
32736 ?        Z      0:00 [service] <defunct>
32744 ?        Z      0:00 [service] <defunct>
32753 ?        Z      0:00 [service] <defunct>
32754 ?        Z      0:00 [service] <defunct>

I would suggest to move to supervisord . Please also consider splitting mysql and httpd+php into separate containers. In this case process monitoring system is not required at all.

berngp commented 9 years ago

Thanks @marc-, I'll look into moving things into supervisord, I noticed that issue too. Now, the decission to bundle mysql and httpd+php into the same image/container was to help folks run Zabbix for development and test environments without too much hassle and dependencies. I know that composer is a tool that can aid on this but this will require users to install such tool. In a nutshell, I am a bit hesitant on making such change since it will affect users that assume that the image has no dependencies.

marc- commented 9 years ago

That makes sense. Anyways, I've already created image without mysql and java based on minimalistic Alpine Linux distro.

berngp commented 9 years ago

great, thanks @marc-