Jcrespo has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/403678 )
Change subject: mariadb: Promote db1055 to be the x1 eqiad master instead of
db1031
......................................................................
mariadb: Promote db1055 to be the x1 eqiad master instead of db1031
Depool db1031 as x1 master and pool db1055 instead. This will allow
to decommission db1031 afterwards.
Bug: T183469
Change-Id: I2ec21570314bc523d4742bc44cabb6fd8d815c64
---
M hieradata/hosts/db1031.yaml
M hieradata/hosts/db1055.yaml
M manifests/site.pp
M modules/role/files/prometheus/mysql-core_eqiad.yaml
4 files changed, 5 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/78/403678/1
diff --git a/hieradata/hosts/db1031.yaml b/hieradata/hosts/db1031.yaml
index bf53ebf..7a7fc72 100644
--- a/hieradata/hosts/db1031.yaml
+++ b/hieradata/hosts/db1031.yaml
@@ -1,4 +1,2 @@
mariadb::shard: 'x1'
-mariadb::mysql_role: 'master'
mariadb::binlog_format: 'ROW'
-mariadb::socket: '/tmp/mysql.sock'
diff --git a/hieradata/hosts/db1055.yaml b/hieradata/hosts/db1055.yaml
index 7a7fc72..e19c352 100644
--- a/hieradata/hosts/db1055.yaml
+++ b/hieradata/hosts/db1055.yaml
@@ -1,2 +1,3 @@
mariadb::shard: 'x1'
+mariadb::mysql_role: 'master'
mariadb::binlog_format: 'ROW'
diff --git a/manifests/site.pp b/manifests/site.pp
index b5b4d43..e70dd72 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -502,11 +502,11 @@
## x1 shard
# eqiad
-node 'db1031.eqiad.wmnet' {
+node 'db1055.eqiad.wmnet' {
role(mariadb::core)
}
-node /^db10(55|56)\.eqiad\.wmnet/ {
+node /^db10(31|56)\.eqiad\.wmnet/ {
role(mariadb::core)
}
diff --git a/modules/role/files/prometheus/mysql-core_eqiad.yaml
b/modules/role/files/prometheus/mysql-core_eqiad.yaml
index c140642..d00d91a 100644
--- a/modules/role/files/prometheus/mysql-core_eqiad.yaml
+++ b/modules/role/files/prometheus/mysql-core_eqiad.yaml
@@ -133,13 +133,13 @@
shard: x1
role: slave
targets:
- - db1055:9104
+ - db1031:9104
- db1056:9104
- labels:
shard: x1
role: master
targets:
- - db1031:9104
+ - db1055:9104
- labels:
shard: es1
--
To view, visit https://gerrit.wikimedia.org/r/403678
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ec21570314bc523d4742bc44cabb6fd8d815c64
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jcrespo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits