Job queue

From Wikitech
(Difference between revisions)
Jump to: navigation, search
m
(new package)
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). Install a new job runner with:
  
  dsh -N job-runners -f /home/wikipedia/bin/jobs-daemon
+
  apt-get install wikimedia-job-runner
  
No installation or setup is required, just MediaWiki. The script contains:
+
The daemon is controlled via <tt>/etc/init.d/mw-job-runner</tt> and will start on boot by default.
 
+
:<tt>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 </tt>
+
 
+
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
 
See also http://www.mediawiki.org/wiki/Manual:Job_queue

Revision as of 10:09, 23 February 2009

Job queue runners run on srv151-180 (the job-runners node group). Install a new job runner with:

apt-get install wikimedia-job-runner

The daemon is controlled via /etc/init.d/mw-job-runner and will start on boot by default.

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

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox