随笔分类 - supervisor
摘要:supervisor与superlance简介 supervisor是一款用python编写的进程监控、进程守护和进程管理的工具,可以工作在各种UNIX-like的操作系统上,通过简单的配置就可以启动、监控和管理大量的进程,并且可以守护这些进程的运行,同时其还提供了一套自带的事件机制与XML-RPC
阅读全文
摘要:# cat kafka.ini [program:kafka] command=/usr/local/kafka/bin/kafka-server-start.sh /usr/local/kafka/config/server.properties user=root autostart=true autorestart=true startsecs=3 # cat zookeeper.i...
阅读全文
摘要:Installing Supervisor1 and Superlance2 on CentOS/RHEL/Fedora can be a little tricky, as the versions of those packages included in the main repositori
阅读全文
摘要:command = /usr/local/bin/nginx 这个命令默认是后台启动,但是supervisor不能监控后台程序,所以supervisor就一直执行这个命令。 加上-g 'daemon off;'这个参数可解决这问题,这个参数的意思是在前台运行。 command = /usr/local/bin/nginx -g 'daemon off;'
阅读全文
摘要:/etc/php-fpm.conf,设置daemonize = no,默认是yes
阅读全文
摘要:XML-RPC API Documentation http://www.supervisord.org/api.html Third Party Applications and Libraries http://www.supervisord.org/plugins.html 本文尝试一下第三方
阅读全文
摘要:Supervisor 是基于 Python 的进程管理工具,只能运行在 Unix-Like 的系统上,也就是无法运行在 Windows 上。Supervisor 官方版目前只能运行在 Python 2.4 以上版本,但是还无法运行在 Python 3 上,不过已经有一个 Python 3 的移植版
阅读全文
摘要:文章在Centos 6.5 linux平台上演示一下如何进行编译安装zlib软件,并配置相关的选项加载使用。示范从下载到安装并配置进行使用过程一系列整套讲解,希望可以给网友考虑使用,谢谢。 文章在Centos 6.5 linux平台上演示一下如何进行编译安装zlib软件,并配置相关的选项加载使用。示
阅读全文
摘要:"daemontools has too much focus on security as opposed to being a process manager for my taste." Hopefully someone will know more. The means of proces
阅读全文
摘要:If you're interested in more of this type of content, check out the Servers for Hackers eBook! As some point you'll likely find yourself writing a scr
阅读全文
摘要:falcon-agent now is running already, pid=4647 falcon-agent now is running already, pid=4647 falcon-agent now is running already, pid=4647 falcon-agent now is running already, pid=4647 falcon-agent no...
阅读全文
摘要:falcon-agent started..., pid=3909 falcon-agent now is running already, pid=3909 falcon-agent now is running already, pid=3909 falcon-agent now is running already, pid=3909 falcon-agent now is running...
阅读全文
摘要:一什么是supervisor Superviosr是一个UNIX-like系统上的进程监控工具。 Supervisor是一个Python开发的client/server系统,可以管理和监控*nix上面的进程。不过同daemontools一样,它也不能监控daemon进程 官网:http://supe
阅读全文
摘要:supervisor提供的两种管理方式,supervisorctl和web其实都是通过xml_rpc来实现的。 xml_rpc其实就是本地可以去调用远端的函数方法,然后函数方法经过一番处理后,把结果返回给我们。 xml_rpc不懂的同学建议去百度百度它的原理机制。这个比较简单,楼主也是上午刚搞懂。
阅读全文
摘要:supervisor的event机制其实,就是一个监控/通知的框架。抛开这个机制实现的过程来说的话,event其实就是一串数据,这串数据里面有head和body两部分。咱们先弄清楚event数据结构,咱们才能做后续的处理。先看看header长啥样的吧 1 ver:3.0 server:supervi
阅读全文
摘要:这两天干的活,是让楼主写一个supervisor的listener,用来监控supervisor所管理子进程的状态,当子进程异常退出时,楼主写的这个listener将会触发报警。在这里总结下supervisor的知识吧 先说说supervisor是干什么的吧? supervisor这东西,其实就是用
阅读全文