Job queue
From Wikitech
(Difference between revisions)
| Line 1: | Line 1: | ||
| + | __TOC__ | ||
| + | |||
| + | ==Overview== | ||
Job queue runners run on the job-runners node group. Install a new job runner using the application::jobrunner class in puppet. | Job queue runners run on the job-runners node group. Install a new job runner using the application::jobrunner class in puppet. | ||
| Line 5: | Line 8: | ||
See also http://www.mediawiki.org/wiki/Manual:Job_queue | See also http://www.mediawiki.org/wiki/Manual:Job_queue | ||
| + | ==Emergency kill== | ||
When there's an urgent call to kill job queues everywhere, i.e. when they're causing swapdeath and about to take down the site:<br /> | When there's an urgent call to kill job queues everywhere, i.e. when they're causing swapdeath and about to take down the site:<br /> | ||
- on the job-runner group (see /home/config/others/usr/local/dsh/node_groups) . . .<br /> | - on the job-runner group (see /home/config/others/usr/local/dsh/node_groups) . . .<br /> | ||
- as root . . .<br /> | - as root . . .<br /> | ||
- pkill -9 -f obs (this matches jobs-loop and RunJobs and few others, we don't trap sinals in our php scripts so there's no need to kill gracefully)<br /> | - pkill -9 -f obs (this matches jobs-loop and RunJobs and few others, we don't trap sinals in our php scripts so there's no need to kill gracefully)<br /> | ||
Revision as of 15:46, 19 January 2012
Contents |
Overview
Job queue runners run on the job-runners node group. Install a new job runner using the application::jobrunner class in puppet.
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
Emergency kill
When there's an urgent call to kill job queues everywhere, i.e. when they're causing swapdeath and about to take down the site:
- on the job-runner group (see /home/config/others/usr/local/dsh/node_groups) . . .
- as root . . .
- pkill -9 -f obs (this matches jobs-loop and RunJobs and few others, we don't trap sinals in our php scripts so there's no need to kill gracefully)