To make things a little bit easier and reduce the chances to forget stuff, let's modify the switchover template to split the following step into two:
The current template says (this is an example of https://phabricator.wikimedia.org/T363672):
- Set NEW primary with weight 0 (and depool it from API or vslow/dump groups if it is present).
sudo dbctl instance db1223 set-weight 0 sudo dbctl config commit -m "Set db1223 with weight 0 T363672"
Let's split that into two steps:
- Set NEW primary with weight 0.
sudo dbctl instance db1223 set-weight 0 sudo dbctl config commit -m "Set db1223 with weight 0 T363672"
- Depool NEW from any specific group (API, vslow, dump) if present
sudo dbctl instance db1223 edit # If some changes were made: sudo dbctl config commit -m "Remove db1223 from API T363672"