DCausse has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/387281 )
Change subject: Properly check for cluster existence prior setting TTM mirrors
......................................................................
Properly check for cluster existence prior setting TTM mirrors
in labs we have a single cluster we should avoid setting mirrors to inexistent
cluster.
Bug: T179270
Change-Id: I73f1db96abceaf3eb08fb946d4e3f5213d657069
---
M wmf-config/CommonSettings.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/81/387281/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index fee99bd..ce4190f 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2529,8 +2529,8 @@
// then plan to refresh this index via ttmserver-export when
// it's back up.
$wgTranslateClustersAndMirrors = [
- 'eqiad' => [ 'codfw' ],
- 'codfw' => [ 'eqiad' ],
+ 'eqiad' => [ isset ( $wmfAllServices['codfw']['search']
) ? 'codfw' : '' ],
+ 'codfw' => [ isset ( $wmfAllServices['eqiad']['search']
) ? 'eqiad' : '' ],
];
foreach ( $wgTranslateClustersAndMirrors as $cluster =>
$mirrors ) {
if ( !isset( $wmfAllServices[$cluster]['search'] ) ) {
--
To view, visit https://gerrit.wikimedia.org/r/387281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I73f1db96abceaf3eb08fb946d4e3f5213d657069
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: DCausse <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits