supervisord php,php – Supervisord只生成1个实例

我认为问题很简单,“numprocs”配置项仅在v3.0中引入,见

http://supervisord.org/configuration.html.

我能够在库存CentOS 6.x系统上复制你的问题,这在发布方面明显落后.

# supervisord -n

2013-09-14 17:19:52,708 CRIT Supervisor running as root (no user in config file)

2013-09-14 17:19:52,724 INFO /var/tmp/supervisor.sock:Medusa (V1.1.1.1) started at Sat Sep 14 17:19:52 2013

Hostname:

Port:/var/tmp/supervisor.sock

2013-09-14 17:19:52,809 CRIT Running without any HTTP authentication checking

2013-09-14 17:19:52,809 INFO supervisord started with pid 21521

2013-09-14 17:19:52,817 INFO spawned: 'gearman-test-worker' with pid 21522

2013-09-14 17:19:53,820 INFO success: gearman-test-worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

# rpm -qa | grep supervisor

supervisor-2.1-8.el6.noarch

# uname -a

Linux dev26.sumilux.com 2.6.32-279.5.1.el6.i686 #1 SMP Tue Aug 14 21:14:52 UTC 2012 i686 i686 i386 GNU/Linux

如果我将主管包升级到3.x(实际上是通过切换到古老的Fedora系统),一切都按预期工作(我设置了3个工人而不是5个).

# supervisord -n

2013-09-14 17:24:56,205 CRIT Supervisor running as root (no user in config file)

2013-09-14 17:24:56,251 INFO RPC interface 'supervisor' initialized

2013-09-14 17:24:56,252 CRIT Server 'unix_http_server' running without any HTTP authentication checking

2013-09-14 17:24:56,252 INFO supervisord started with pid 20889

2013-09-14 17:24:57,258 INFO spawned: 'gearman-test-worker_00' with pid 20890

2013-09-14 17:24:57,263 INFO spawned: 'gearman-test-worker_01' with pid 20891

2013-09-14 17:24:57,269 INFO spawned: 'gearman-test-worker_02' with pid 20892

2013-09-14 17:24:58,271 INFO success: gearman-test-worker_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

2013-09-14 17:24:58,271 INFO success: gearman-test-worker_01 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

2013-09-14 17:24:58,272 INFO success: gearman-test-worker_02 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

# rpm -qa | grep supervisor

supervisor-3.0-0.5.a10.fc14.noarch

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值