Giuseppe Lavagetto has uploaded a new change for review. https://gerrit.wikimedia.org/r/197498
Change subject: jobqueue: add configuration for codfw ...................................................................... jobqueue: add configuration for codfw Bug: T91754 Change-Id: I528545a375903f5d6ad61abfcaee73cad7474e47 --- A wmf-config/jobqueue-codfw.php 1 file changed, 52 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/98/197498/1 diff --git a/wmf-config/jobqueue-codfw.php b/wmf-config/jobqueue-codfw.php new file mode 100644 index 0000000..2d89d10 --- /dev/null +++ b/wmf-config/jobqueue-codfw.php @@ -0,0 +1,52 @@ +<?php +# WARNING: This file is publically viewable on the web. Do not put private data here. + +// Note: on server failure, partition masters should be switched to the slave +// Note: MediaWiki will fail-over to other shards when one is down. On master +// failure, it is best to either do nothing or just disable the whole shard +// until the master is fixed or full fail-over is done. Proper fail over +// requires changing the slave to stop slaving the old master before updating +// the MediaWiki config to direct traffic there. +$wgJobTypeConf['default'] = array( + 'class' => 'JobQueueFederated', + 'configByPartition' => array( + 'rdb1' => array( + 'class' => 'JobQueueRedis', + 'redisServer' => '10.192.0.119', # rdb2001 (master) + #'redisServer' => '10.192.16.122', # rdb2003 (slave) + 'redisConfig' => array( + 'connectTimeout' => 2, + 'password' => $wmgRedisPassword, + 'compression' => 'gzip' + ), + 'daemonized' => true + ), + 'rdb2' => array( + 'class' => 'JobQueueRedis', + 'redisServer' => '10.192.0.120', # rdb2002 (master) + #'redisServer' => '10.192.16.123', # rdb2004 (slave) + 'redisConfig' => array( + 'connectTimeout' => 2, + 'password' => $wmgRedisPassword, + 'compression' => 'gzip' + ), + 'daemonized' => true + ), + ), + 'sectionsByWiki' => array(), // default + 'partitionsBySection' => array( + 'default' => array( 'rdb1' => 50, 'rdb2' => 50 ), + ) +); +// Note: on server failure, this should be changed to any other redis server +$wgJobQueueAggregator = array( + 'class' => 'JobQueueAggregatorRedis', + 'redisServers' => array( // all after the first are fallbacks + '10.192.0.199', # rdb2001 + '10.192.0.120', # rdb2002 + ), + 'redisConfig' => array( + 'connectTimeout' => 2, + 'password' => $wmgRedisPassword, + ) +); -- To view, visit https://gerrit.wikimedia.org/r/197498 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I528545a375903f5d6ad61abfcaee73cad7474e47 Gerrit-PatchSet: 1 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: Giuseppe Lavagetto <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
