Let's switchover es1023 to es1024 which is already running Buster and Mariadb 10.4.
We cannot put es5 in RO from MW, so we need to do it directly at MySQL level.
My proposal is to use the switchover script using:
```
./switchover.py --skip-slave-move --read-only-master es1023 es1024
```The idea is to move writes to es4 for a few minutes and then do the switchover on es5 master.
So steps (simplified):
Switchover day:Steps:
[] Disable es5 on MW:
[] Disable alerts on es5 hosts
```[] switchover.py --timeout=15 --only-slave-move es1023.eqiad.wmnet es1024.eqiad.wmnet
- switchover.py --timeout=15 --only-slave-move[] Disable puppet es1023.eqiad.wmnet4 and es1024.eqiad.wmnet3
- Disabl[] Merge puppet @et change to promote es1024 and @es1023to master
- Merge puppet change to promote[] !log Starting es5 failover from es1024 to master3 es1024
- !log Starting es5 failover from[] ./switchover.py --skip-slave-move es1023 es1024
- es1023: set global read_only=ON;[] First 10.4 master, so let's double check that all the slaves are well connected.
- ./switchover.py --skip-slave-move --read-only[] dbctl --scope eqiad section es5 set-master es1023 es1024
- dbctl --scope eqiad section es5 set-master[] Enable and run puppet at es1023 and es1024
- es1024: set global read_only=OFF;[] events_coredb_master.sql on the new master es1024
- Enable and run puppet at es1023 and[] events_coredb_slave.sql on the new slave es10243
- events_coredb_master.sql on the new master db1086[] Revert the above patch to make es5 writable again.
- events_coredb_slave.sql on the new slave db1062[] Change es5-master DNS
- Chan[] Reimage es5-master DNSs1023
```[] Slowly repool es1023 and remove weight from es1024
@jcrespo I would appreciate a review of the above simplified steps
Pending: Decide a day&time