jenkins-bot has submitted this change and it was merged. Change subject: Enable async secondary swift writes for non-"big" wikis ......................................................................
Enable async secondary swift writes for non-"big" wikis Bug: T91869 Change-Id: I6923b62faa9cde2cfbf4f7d86ec406b6ad8e163c --- M wmf-config/filebackend-production.php 1 file changed, 8 insertions(+), 6 deletions(-) Approvals: Aaron Schulz: Looks good to me, approved Filippo Giunchedi: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/wmf-config/filebackend-production.php b/wmf-config/filebackend-production.php index 4c81226..2af5f37 100644 --- a/wmf-config/filebackend-production.php +++ b/wmf-config/filebackend-production.php @@ -91,11 +91,13 @@ 'name' => 'local-multiwrite', 'wikiId' => "{$site}-{$lang}", 'lockManager' => 'redisLockManager', - 'backends' => array( - # DO NOT change the master backend unless it is fully trusted or autoRsync is off - array( 'template' => 'local-swift-eqiad', 'isMultiMaster' => true ), - #array( 'template' => 'local-swift-codfw' ), - ), + # DO NOT change the master backend unless it is fully trusted or autoRsync is off + 'backends' => in_array( $wgDBname, $wmfSwiftBigWikis ) + ? array( array( 'template' => 'local-swift-eqiad', 'isMultiMaster' => true ) ) + : array( + array( 'template' => 'local-swift-eqiad', 'isMultiMaster' => true ), + array( 'template' => 'local-swift-codfw' ) + ), 'replication' => 'async', 'syncChecks' => ( 1 | 4 ), // (size & sha1) ); @@ -104,8 +106,8 @@ 'name' => 'shared-multiwrite', 'wikiId' => "wikipedia-commons", 'lockManager' => 'redisLockManager', + # DO NOT change the master backend unless it is fully trusted or autoRsync is off 'backends' => array( - # DO NOT change the master backend unless it is fully trusted or autoRsync is off array( 'template' => 'shared-swift-eqiad', 'isMultiMaster' => true ), #array( 'template' => 'shared-swift-codfw' ), ), -- To view, visit https://gerrit.wikimedia.org/r/272611 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6923b62faa9cde2cfbf4f7d86ec406b6ad8e163c Gerrit-PatchSet: 2 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Faidon Liambotis <fai...@wikimedia.org> Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits