Skip to content

Instantly share code, notes, and snippets.

@renoirb
Last active December 27, 2015 07:48
Show Gist options
  • Save renoirb/7291245 to your computer and use it in GitHub Desktop.
Save renoirb/7291245 to your computer and use it in GitHub Desktop.
WebPlatform system problems. MediaWiki's runJobs.php script not lowering quantity of jobs.
#
# Same for [app1,app2,app3,app4]
#
$ salt 'app*' cmd.run 'ps aux|grep runJob'
...
app5.webplatform.org:
www-data 28200 0.0 0.0 4108 576 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 28201 8.0 0.7 241648 59180 ? S Nov02 120:39 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 28529 0.0 0.0 4108 576 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 28530 6.9 0.6 234772 52092 ? S Nov02 99:42 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 28818 0.0 0.0 4108 580 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 28819 7.3 0.6 234600 51984 ? S Nov02 101:05 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 29089 0.0 0.0 4108 576 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 29090 6.3 0.6 234680 52060 ? S Nov02 83:33 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 29402 0.0 0.0 4108 576 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 29403 5.5 0.6 234552 52032 ? S Nov02 70:13 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 30391 0.0 0.0 4108 580 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 30392 4.9 0.6 234660 52028 ? S Nov02 59:23 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 30657 0.0 0.0 4108 576 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 30658 3.3 0.6 234524 52000 ? S Nov02 38:20 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 30990 0.0 0.0 4108 576 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 30991 2.8 0.6 234544 51952 ? S Nov02 30:36 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 31841 0.0 0.0 4108 580 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 31842 3.8 0.6 234796 52064 ? S Nov02 38:45 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
www-data 32654 0.0 0.0 4108 580 ? Ss Nov02 0:00 /bin/sh -c /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php #1st run
www-data 32655 3.5 0.6 234520 52068 ? S Nov02 33:31 /usr/bin/php /srv/webplatform/wiki/current/maintenance/runJobs.php
<?xml version="1.0"?>
<api>
<query>
<statistics pages="9288" articles="2828" edits="42092" images="1062" users="24664" activeusers="45" admins="34" jobs="1048879" />
</query>
</api>
<?xml version="1.0"?>
<api>
<query>
<statistics pages="9295" articles="2829" edits="42135" images="1062" users="24686" activeusers="45" admins="34" jobs="1316528" />
</query>
</api>
<?xml version="1.0"?>
<api>
<query>
<statistics pages="9295" articles="2829" edits="42152" images="1062" users="24687" activeusers="45" admins="34" jobs="1290437" />
</query>
</api>
<?xml version="1.0"?>
<api>
<query>
<statistics pages="9296" articles="2829" edits="42206" images="1062" users="24689" activeusers="45" admins="34" jobs="1308494" />
</query>
</api>
<?xml version="1.0"?>
<api>
<query>
<statistics pages="9296" articles="2829" edits="42206" images="1062" users="24689" activeusers="45" admins="34" jobs="1309033" />
</query>
</api>
<?xml version="1.0"?>
<api>
<query>
<statistics pages="9312" articles="2840" edits="42452" images="1062" users="24698" activeusers="45" admins="34" jobs="2098294" />
</query>
</api>
@renoirb
Copy link
Author

renoirb commented Nov 3, 2013

I killed all processes with salt:

salt 'app6*' cmd.run 'ps aux|grep runJob|cut -d " " -f 2|xargs kill -9'
salt 'app6*' cmd.run 'ps aux|grep runJob'

Adjusted to get only pid and double checked before running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment