Job queue

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(how to stop)
m
Line 1: Line 1:
 
Job queue runners run on srv151-180 (the job-runners node group). Start them with  
 
Job queue runners run on srv151-180 (the job-runners node group). Start them with  
  
  dsh -N job-runners -f /home/wikipedia/bin/jobs-daemon.
+
  dsh -N job-runners -f /home/wikipedia/bin/jobs-daemon
  
 
No installation or setup is required, just MediaWiki. The script contains:
 
No installation or setup is required, just MediaWiki. The script contains:

Revision as of 07:56, 19 February 2009

Job queue runners run on srv151-180 (the job-runners node group). Start them with

dsh -N job-runners -f /home/wikipedia/bin/jobs-daemon

No installation or setup is required, just MediaWiki. The script contains:

start-stop-daemon --start --background --chuid apache --nicelevel 20 --make-pidfile --pidfile /var/run/mw-jobs.pid --startas /home/wikipedia/common/php-1.5/maintenance/jobs-loop.sh

To stop the job runners on a given server, use:

start-stop-daemon --stop --pidfile /var/run/mw-jobs.pid

It should trap SIGTERM and shut down the child processes.

See also http://www.mediawiki.org/wiki/Manual:Job_queue

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox