Page MenuHomePhabricator

Change switchover template
Closed, ResolvedPublic

Description

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"

Details

TitleReferenceAuthorSource BranchDest Branch
Update the templatetoolforge-repos/switchmaster!2marosteguiT363833main
Customize query in GitLab

Event Timeline

Ladsgroup moved this task from In progress to Done on the DBA board.

@Ladsgroup does this need to get the code deployed or something?

It does but I did it one minute before closing the ticket so don't worry!