Currently, we have different ways to depool a host:
- core dbs use dbctl depool and then wait for drain
- parsercache/ms use dbctl set-weight for the whole section and then weight for drain
- wikireplicas use confctl: https://wikitech.wikimedia.org/wiki/Portal:Data_Services/Admin/Runbooks/Depool_wikireplicas
- Masters shouldn't be depooled
- Backup sources don't need to be depooled but should be avoided when a backup is running.
- misc cluster should use haproxy
- ...
It makes sense to actually let all of these be handled via a cookbook instead. So an SRE oncall simply would run the cookbook instead.
The idea is by @jcrespo