Marostegui has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/391757 )

Change subject: mariadb: Convert db1101 to multi-instance
......................................................................

mariadb: Convert db1101 to multi-instance

db1101 will be a recentchanges muti-instance slave that will serve in s5
and s7

Bug: T178359
Change-Id: I4d729d7f6f9b3a878c3125cb719bac3216ae53e9
---
M hieradata/hosts/db1101.yaml
M manifests/site.pp
M modules/role/files/prometheus/mysql-core_eqiad.yaml
3 files changed, 8 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/57/391757/1

diff --git a/hieradata/hosts/db1101.yaml b/hieradata/hosts/db1101.yaml
index 46e99ab..78d3424 100644
--- a/hieradata/hosts/db1101.yaml
+++ b/hieradata/hosts/db1101.yaml
@@ -1,2 +1,5 @@
-mariadb::shard: 's2'
+# Buffer pool sizes/instance enabled
+profile::mariadb::core_multiinstance::num_instances: 2
+profile::mariadb::core_multiinstance::s5: '185G'
+profile::mariadb::core_multiinstance::s7: '185G'
 profile::base::notifications_enabled: '0'
diff --git a/manifests/site.pp b/manifests/site.pp
index c1212dd..4c97aaa 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -357,7 +357,7 @@
 }
 
 # eqiad replicas
-node /^db1(021|060|074|076|090|101)\.eqiad\.wmnet/ {
+node /^db1(021|060|074|076|090)\.eqiad\.wmnet/ {
     role(mariadb::core)
 }
 
@@ -406,7 +406,7 @@
     role(mariadb::core)
 }
 
-node /^db1(103|105)\.eqiad\.wmnet/ {
+node /^db1(101|103|105)\.eqiad\.wmnet/ {
     role(mariadb::core_multiinstance)
 }
 # row-based replication to sanitarium (T150960)
diff --git a/modules/role/files/prometheus/mysql-core_eqiad.yaml 
b/modules/role/files/prometheus/mysql-core_eqiad.yaml
index 00e7beb..db0fde3 100644
--- a/modules/role/files/prometheus/mysql-core_eqiad.yaml
+++ b/modules/role/files/prometheus/mysql-core_eqiad.yaml
@@ -27,7 +27,6 @@
   - db1074:9104
   - db1076:9104
   - db1090:9104
-  - db1101:9104
   - db1103:13312
   - db1105:13312
 - labels:
@@ -80,6 +79,7 @@
   - db1096:9104
   - db1099:9104
   - db1100:9104
+  - db1101:13315
   - db1104:9104
   - db1106:9104
 - labels:
@@ -113,6 +113,7 @@
   - db1079:9104
   - db1086:9104
   - db1094:9104
+  - db1101:13317
 - labels:
     shard: s7
     role: master

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4d729d7f6f9b3a878c3125cb719bac3216ae53e9
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Marostegui <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to