jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/371444 )

Change subject: mariadb: Adding rack allocations, some formatting fixes, 
read-only
......................................................................


mariadb: Adding rack allocations, some formatting fixes, read-only

Adding row and rack numbers to all hosts, not only the metadata ones.

Codfw is currently a passive datacenter and it should not be publicly
reachable. Removing references to a failover. Not giving explicitly
a way to report the issue because it traditionally puts the irc network
or the phabricator site down, but at least not referencing the dc
failover. Also, these should not be shown right now to anyone but
internal monitoring.

This is scheduled to be moved to etcd soon, so not wasting much time
on it.

Also apparently, db1051 is in B3, according to racktables.

Bug: T172459
Change-Id: I9eee9a9cebbeb94072361dff73c72e7c8759ab27
---
M wmf-config/db-codfw.php
M wmf-config/db-eqiad.php
2 files changed, 153 insertions(+), 127 deletions(-)

Approvals:
  Marostegui: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Jcrespo: Looks good to me, approved



diff --git a/wmf-config/db-codfw.php b/wmf-config/db-codfw.php
index 0ec51e5..5421e9b 100644
--- a/wmf-config/db-codfw.php
+++ b/wmf-config/db-codfw.php
@@ -8,15 +8,15 @@
 # $wgReadOnly = "Wikimedia Sites are currently read-only during maintenance, 
please try again soon.";
 
 $wmgParserCacheDBs = [
-       '10.64.0.12'   => '10.192.16.170', # pc2004
-       '10.64.32.72'  => '10.192.32.128', # pc2005
-       '10.64.48.128' => '10.192.48.39',  # pc2006
+       '10.64.0.12'   => '10.192.16.170', # pc2004, B5 2.4TB 256GB
+       '10.64.32.72'  => '10.192.32.128', # pc2005, C5 2.4TB 256GB
+       '10.64.48.128' => '10.192.48.39',  # pc2006, D5 2.4TB 256GB
 ];
 
 $wmgOldExtTemplate = [
-       '10.192.16.171' => 1, # es2011
-       '10.192.32.129' => 1, # es2012
-       # '10.192.48.40'  => 1, # es2013 # BBU issues T172265
+       '10.192.16.171' => 1, # es2011, B1 11TB 128GB
+       '10.192.32.129' => 1, # es2012, C1 11TB 128GB
+       # '10.192.48.40'  => 1, # es2013, D1 11TB 128GB # BBU issues T172265
 ];
 
 $wgLBFactoryConf = [
@@ -24,52 +24,60 @@
 'class' => 'LBFactoryMulti',
 
 'sectionsByDB' => [
-       'enwiki' => 's1',
+       # s1: enwiki
+       'enwiki'       => 's1',
 
-       # New master
-       'bgwiki' => 's2',
+       # s2: large wikis
+       'bgwiki'       => 's2',
        'bgwiktionary' => 's2',
-       'cswiki' => 's2',
-       'enwikiquote' => 's2',
+       'cswiki'       => 's2',
+       'enwikiquote'  => 's2',
        'enwiktionary' => 's2',
-       'eowiki' => 's2',
-       'fiwiki' => 's2',
-       'idwiki' => 's2',
-       'itwiki' => 's2',
-       'nlwiki' => 's2',
-       'nowiki' => 's2',
-       'plwiki' => 's2',
-       'ptwiki' => 's2',
-       'svwiki' => 's2',
-       'thwiki' => 's2',
-       'trwiki' => 's2',
-       'zhwiki' => 's2',
+       'eowiki'       => 's2',
+       'fiwiki'       => 's2',
+       'idwiki'       => 's2',
+       'itwiki'       => 's2',
+       'nlwiki'       => 's2',
+       'nowiki'       => 's2',
+       'plwiki'       => 's2',
+       'ptwiki'       => 's2',
+       'svwiki'       => 's2',
+       'thwiki'       => 's2',
+       'trwiki'       => 's2',
+       'zhwiki'       => 's2',
 
-       'commonswiki' => 's4',
+       # s3 (default)
 
-       'dewiki' => 's5',
+       # s4: commons
+       'commonswiki'  => 's4',
+
+       # s5: dewiki and wikidata
+       'dewiki'       => 's5',
        'wikidatawiki' => 's5',
 
-       'frwiki' => 's6',
-       'jawiki' => 's6',
-       'ruwiki' => 's6',
+       # s6: large wikis
+       'frwiki'       => 's6',
+       'jawiki'       => 's6',
+       'ruwiki'       => 's6',
 
-       'eswiki' => 's7',
-       'huwiki' => 's7',
-       'hewiki' => 's7',
-       'ukwiki' => 's7',
+       # s7: large wikis, centralauth
+       'eswiki'       => 's7',
+       'huwiki'       => 's7',
+       'hewiki'       => 's7',
+       'ukwiki'       => 's7',
        'frwiktionary' => 's7',
-       'metawiki' => 's7',
-       'arwiki' => 's7',
-       'centralauth' => 's7',
-       'cawiki' => 's7',
-       'viwiki' => 's7',
-       'fawiki' => 's7',
-       'rowiki' => 's7',
-       'kowiki' => 's7',
+       'metawiki'     => 's7',
+       'arwiki'       => 's7',
+       'centralauth'  => 's7',
+       'cawiki'       => 's7',
+       'viwiki'       => 's7',
+       'fawiki'       => 's7',
+       'rowiki'       => 's7',
+       'kowiki'       => 's7',
 
-       'labswiki' => 'silver',
-       'labtestwiki' => 'labtestweb2001',
+       # labs-related wikis
+       'labswiki'     => 'silver',
+       'labtestwiki'  => 'labtestweb2001',
 ],
 
 # Load lists
@@ -158,10 +166,10 @@
                'db2077' => 400, # C1 3.3TB 512GB
        ],
        'silver' => [
-               'silver' => 100,   # I have no idea if this is right
+               'silver' => 1,
        ],
        'labtestweb2001' => [
-               'labtestweb2001' => 100,   # I have no idea if this is right
+               'labtestweb2001' => 1,
        ],
 ],
 
@@ -609,19 +617,19 @@
 
        # es2
        'cluster24' => [
-               '10.192.48.41'  => 1, # es2016, master
-               '10.192.0.141'  => 3, # es2014
-               '10.192.32.130' => 3, # es2015
+               '10.192.48.41'  => 1, # es2016, D1 11TB 128GB, master
+               '10.192.0.141'  => 3, # es2014, A1 11TB 128GB
+               '10.192.32.130' => 3, # es2015, C1 11TB 128GB
        ],
        # es3
        'cluster25' => [
-               '10.192.16.172' => 1, # es2018, master
-               '10.192.0.142'  => 3, # es2017
-               '10.192.48.42'  => 3, # es2019
+               '10.192.16.172' => 1, # es2018, B6 11TB 128GB, master
+               '10.192.0.142'  => 3, # es2017, A6 11TB 128GB
+               '10.192.48.42'  => 3, # es2019, D6 11TB 128GB
        ],
        # ExtensionStore shard1
        'extension1' => [
-               '10.192.32.4' => 1, # db2033, master
+               '10.192.32.4' => 1, # db2033, C6 3.5TB 160GB, master
        ],
 ],
 
@@ -651,19 +659,24 @@
        'cluster25'     => [ 'blobs table' => 'blobs_cluster25' ],
 ],
 
-# This key must exist for the master switch script to work.
+# This key must exist for the master switch script to work, which means 
comment and uncomment
+# the individual shards, but leave the 'readOnlyBySection' => [ ], alone.
 #
-# These read only messages should currently be kept,
-# to prevent accidental write to eqiad from codfw,
-# when the master dc is eqiad.
+# When going read only, please change the comment to something appropiate 
(like a brief idea
+# of what is happening, with a wiki link for further explanation. Avoid 
linking to external
+# infrastructure if possible (IRC, other webpages) or infrastructure not 
prepared to absorve
+# large traffic (phabricator) because they tend to collapse. A meta page would 
be appropiate.
+#
+# Also keep these read only messages if codfw is not the active dc, to prevent 
accidental writes
+# getting trasmmitted from codfw to eqiad when the master dc is eqiad.
 'readOnlyBySection' => [
-       's1'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       's2'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       'DEFAULT' => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.', # s3
-       's4'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       's5'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       's6'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       's7'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
+       's1'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       's2'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       'DEFAULT' => 'This request is served by a passive datacenter. If you 
see this something is really wrong.', # s3
+       's4'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       's5'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       's6'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       's7'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
 ],
 
 ];
@@ -672,7 +685,3 @@
        'DB://cluster24',
        'DB://cluster25',
 ];
-
-# $wgLBFactoryConf['readOnlyBySection']['s2'] =
-# $wgLBFactoryConf['readOnlyBySection']['s2a'] =
-# 'Emergency maintenance, need more servers up, new estimate ~18:30 UTC';
diff --git a/wmf-config/db-eqiad.php b/wmf-config/db-eqiad.php
index df072d2..b7ebd67 100644
--- a/wmf-config/db-eqiad.php
+++ b/wmf-config/db-eqiad.php
@@ -8,15 +8,15 @@
 # $wgReadOnly = "Wikimedia Sites are currently read-only during maintenance, 
please try again soon.";
 
 $wmgParserCacheDBs = [
-       '10.64.0.12'   => '10.64.0.12',   # pc1004
-       '10.64.32.72'  => '10.64.32.72',  # pc1005
-       '10.64.48.128' => '10.64.48.128', # pc1006
+       '10.64.0.12'   => '10.64.0.12',   # pc1004, A3 2.4TB 256GB
+       '10.64.32.72'  => '10.64.32.72',  # pc1005, C7 2.4TB 256GB
+       '10.64.48.128' => '10.64.48.128', # pc1006, D3 2.4TB 256GB
 ];
 
 $wmgOldExtTemplate = [
-       '10.64.0.7'    => 1, # es1012
-       '10.64.32.185' => 1, # es1016
-       '10.64.48.115' => 1, # es1018
+       '10.64.0.7'    => 1, # es1012, A2 11TB 128GB
+       '10.64.32.185' => 1, # es1016, C2 11TB 128GB
+       '10.64.48.115' => 1, # es1018, D1 11TB 128GB
 ];
 
 $wgLBFactoryConf = [
@@ -24,52 +24,60 @@
 'class' => 'LBFactoryMulti',
 
 'sectionsByDB' => [
-       'enwiki' => 's1',
+       # s1: enwiki
+       'enwiki'       => 's1',
 
-       # New master
-       'bgwiki' => 's2',
+       # s2: large wikis
+       'bgwiki'       => 's2',
        'bgwiktionary' => 's2',
-       'cswiki' => 's2',
-       'enwikiquote' => 's2',
+       'cswiki'       => 's2',
+       'enwikiquote'  => 's2',
        'enwiktionary' => 's2',
-       'eowiki' => 's2',
-       'fiwiki' => 's2',
-       'idwiki' => 's2',
-       'itwiki' => 's2',
-       'nlwiki' => 's2',
-       'nowiki' => 's2',
-       'plwiki' => 's2',
-       'ptwiki' => 's2',
-       'svwiki' => 's2',
-       'thwiki' => 's2',
-       'trwiki' => 's2',
-       'zhwiki' => 's2',
+       'eowiki'       => 's2',
+       'fiwiki'       => 's2',
+       'idwiki'       => 's2',
+       'itwiki'       => 's2',
+       'nlwiki'       => 's2',
+       'nowiki'       => 's2',
+       'plwiki'       => 's2',
+       'ptwiki'       => 's2',
+       'svwiki'       => 's2',
+       'thwiki'       => 's2',
+       'trwiki'       => 's2',
+       'zhwiki'       => 's2',
 
-       'commonswiki' => 's4',
+       # s3 (default)
 
-       'dewiki' => 's5',
+       # s4: commons
+       'commonswiki'  => 's4',
+
+       # s5: dewiki and wikidata
+       'dewiki'       => 's5',
        'wikidatawiki' => 's5',
 
-       'frwiki' => 's6',
-       'jawiki' => 's6',
-       'ruwiki' => 's6',
+       # s6: large wikis
+       'frwiki'       => 's6',
+       'jawiki'       => 's6',
+       'ruwiki'       => 's6',
 
-       'eswiki' => 's7',
-       'huwiki' => 's7',
-       'hewiki' => 's7',
-       'ukwiki' => 's7',
+       # s7: large wikis, centralauth
+       'eswiki'       => 's7',
+       'huwiki'       => 's7',
+       'hewiki'       => 's7',
+       'ukwiki'       => 's7',
        'frwiktionary' => 's7',
-       'metawiki' => 's7',
-       'arwiki' => 's7',
-       'centralauth' => 's7',
-       'cawiki' => 's7',
-       'viwiki' => 's7',
-       'fawiki' => 's7',
-       'rowiki' => 's7',
-       'kowiki' => 's7',
+       'metawiki'     => 's7',
+       'arwiki'       => 's7',
+       'centralauth'  => 's7',
+       'cawiki'       => 's7',
+       'viwiki'       => 's7',
+       'fawiki'       => 's7',
+       'rowiki'       => 's7',
+       'kowiki'       => 's7',
 
-       'labswiki' => 'silver',
-       'labtestwiki' => 'labtestweb2001',
+       # labs-related wikis
+       'labswiki'     => 'silver',
+       'labtestwiki'  => 'labtestweb2001',
 ],
 
 # Load lists
@@ -95,7 +103,7 @@
        's1' => [
                'db1052' => 0,   # B3 2.8TB  96GB, master
                'db1067' => 0,   # D1 2.8TB 160GB, old master
-               'db1051' => 50,  # C2 2.8TB  96GB, watchlist, recentchanges, 
contributions, logpager
+               'db1051' => 50,  # B3 2.8TB  96GB, watchlist, recentchanges, 
contributions, logpager
                'db1055' => 50,  # C2 2.8TB  96GB, watchlist, recentchanges, 
contributions, logpager
                'db1065' => 0,   # D1 2.8TB 160GB, vslow, dump, master for 
sanitarium
                'db1066' => 10,  # D1 2.8TB 160GB, api
@@ -167,10 +175,10 @@
                'db1094' => 500, # D2 3.6TB 512GB
        ],
        'silver' => [
-               'silver' => 100,   # I have no idea if this is right
+               'silver' => 1,
        ],
        'labtestweb2001' => [
-               'labtestweb2001' => 100,   # I have no idea if this is right
+               'labtestweb2001' => 1,
        ],
 ],
 
@@ -632,20 +640,20 @@
 
        # es2
        'cluster24' => [
-               '10.64.0.6'    => 0, # es1011, master
-               '10.64.16.186' => 1, # es1013
-               '10.64.32.184' => 1, # es1015
+               '10.64.0.6'    => 0, # es1011, A2 11TB 128GB, master
+               '10.64.16.186' => 1, # es1013, B1 11TB 128GB
+               '10.64.32.184' => 1, # es1015, C2 11TB 128GB
        ],
        # es3
        'cluster25' => [
-               '10.64.16.187' => 0, # es1014, master
-               '10.64.48.114' => 1, # es1017
-               '10.64.48.116' => 1, # es1019
+               '10.64.16.187' => 0, # es1014, B1 11TB 128GB,  master
+               '10.64.48.114' => 1, # es1017, D1 11TB 128GB
+               '10.64.48.116' => 1, # es1019, D8 11TB 128GB
        ],
        # ExtensionStore shard1
        'extension1' => [
-               '10.64.16.20' => 0, # db1031, master
-               '10.64.16.18' => 1, # db1029
+               '10.64.16.20' => 0, # db1031, B1 1.5TB 64GB, master
+               '10.64.16.18' => 1, # db1029, B1 1.5TB 64GB
        ],
 ],
 
@@ -675,15 +683,24 @@
        'cluster25'     => [ 'blobs table' => 'blobs_cluster25' ],
 ],
 
-# This key must exist for the master switch script to work
+# This key must exist for the master switch script to work, which means 
comment and uncomment
+# the individual shards, but leave the 'readOnlyBySection' => [ ], alone.
+#
+# When going read only, please change the comment to something appropiate 
(like a brief idea
+# of what is happening, with a wiki link for further explanation. Avoid 
linking to external
+# infrastructure if possible (IRC, other webpages) or infrastructure not 
prepared to absorve
+# large traffic (phabricator) because they tend to collapse. A meta page would 
be appropiate.
+#
+# Also keep these read only messages if eqiad is not the active dc, to prevent 
accidental writes
+# getting trasmmitted from codfw to eqiad when the master dc is eqiad.
 'readOnlyBySection' => [
-       # 's1'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       # 's2'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       # 'DEFAULT' => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.', # s3
-       # 's4'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       # 's5'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       # 's6'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
-       # 's7'      => 'This wiki is in read-only mode for a datacenter 
switchover test. See https://meta.wikimedia.org/wiki/codfw for more 
information.',
+       # 's1'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       # 's2'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       # 'DEFAULT' => 'This request is served by a passive datacenter. If you 
see this something is really wrong.', # s3
+       # 's4'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       # 's5'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       # 's6'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
+       # 's7'      => 'This request is served by a passive datacenter. If you 
see this something is really wrong.',
 ],
 
 ];

-- 
To view, visit https://gerrit.wikimedia.org/r/371444
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9eee9a9cebbeb94072361dff73c72e7c8759ab27
Gerrit-PatchSet: 9
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jcrespo <jcre...@wikimedia.org>
Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>
Gerrit-Reviewer: Jcrespo <jcre...@wikimedia.org>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Marostegui <maroste...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to