brianlmoon / GearmanManager

PHP daemon for managing gearman workers
http://brian.moonspot.net/GearmanManager
BSD 2-Clause "Simplified" License
682 stars 190 forks source link

The count param in config.ini is not works #115

Closed gzldx closed 9 years ago

gzldx commented 9 years ago

[GearmanManager] ; workers can be found in this dir worker_dir= XXXXXXXXX

; Reload workers as new code is available auto_update=1 count=10

I have set 10 worker to do the job,but why is only 1 worker start? qq 20150512185235

brianlmoon commented 9 years ago

I see 3 and you don't even show the whole ps output. Gearmand is the process server.

gzldx commented 9 years ago

How can I see the worker process id? I config count = 10 in config.ini, but I just see 1 worker process in gearman monitor

brianlmoon commented 9 years ago

I am not familiar with gearman monitor. Can you show me the full ps output?

gzldx commented 9 years ago

$ sudo /etc/init.d/gearman-manager start

$ sudo /data/git/GearmanManager/pecl-manager.php -c /etc/gearman-manager/config.ini -d

$ cat /etc/gearman-manager/config.ini [GearmanManager] ; workers can be found in this dir worker_dir=/data/www/weili/trunk/worker

; Reload workers as new code is available auto_update=1 ;dedicated_count=2 count=10

But I just found 2 workers have been started.. qq 20150513135839

gzldx commented 9 years ago

qq 20150513141107

brianlmoon commented 9 years ago
  1. I would not run my workers as root.
  2. If you run gearman manager without -d what is the console output?
gzldx commented 9 years ago

I will try it later. Thank you