Page MenuHomePhabricator

Setup x4 on sanitarium hosts
Open, MediumPublic

Description

x4 is a new topology which will be a split from s4.
We need to setup a sanitarium master and a sanitarium instance for it.
s4 lives in db1155, so it makes sense to make it there too.

Event Timeline

Marostegui triaged this task as Medium priority.Jul 6 2026, 2:25 PM
Marostegui moved this task from Triage to Refine on the DBA board.
Marostegui added a subscriber: Zabe.

@Ladsgroup @Zabe how inmediately available x4 has to be once we split from s4?.
Unless we drop stuff, it is going to be tight to copy x4 entirely from s4 given the space available on sanitarium:

root@db1155:/srv# du -sh sqldata.s4/
2.3T	sqldata.s4/
root@db1155:/srv# df -hT /srv
Filesystem            Type  Size  Used Avail Use% Mounted on
/dev/mapper/tank-data xfs   8.7T  5.6T  3.1T  65% /srv

I guess if we run optimize we may be able to get some temporary space back.
Also, if we do an entire copy and we live with just 800G available for a few days, how long will it pass to do the _real_ split so only the final tables will be written so we can delete the other ones?

I'd say let's set up sanitarium when we are closer to the split. I can also run an optimize table on s4 to save some space T410589: Optimize all core tables, late 2025. It'll take a while though.

https://lists.wikimedia.org/hyperkitty/list/cloud@lists.wikimedia.org/thread/E4RXH3F3WTBWSGZDN6BZPJGEUY2IM4KP/ announces that on 2026-09-08 (the next WMF US working day after today) the commons link tables will only be available from the x4 cluster. This is going to break a bunch of tools and they will stay broken until the x4 cluster is available in the Wiki Replicas.

The biggest problem is that s4 is so big that we can't set it up before the split since we can't set up two copies of s4 at the same time (s4 is now twice as big as the second biggest database cluster).

! In T431309#12291647, @bd808 wrote:

the commons link tables will only be available from the x4 cluster. This is going to break a bunch of tools and they will stay broken until the x4 cluster is available in the Wiki Replicas.

We have a mitigation, it's not perfect but it worked for s8/x3 split. We are not going to drop the old links tables on s4 sanitarium master and we can keep it for a month or so. That means tools will just start to drift but won't break with errors contrary to when we drop a column or a table. So no fatals or errors or complete breakage, just outdated data which is also okay for most cases, if you want members of categories, most data still be useful.

The announcement sent to the cloud-announce list, which I assume was done so that tool maintainers know things are changing, does not mention that there is no way to access x4 via the Wiki Replicas yet, when that is expected, or what will be possible when the tables are in a new db that cannot be linked across sections to other tables. These are all reasonable questions for folks to have beyond "where did the data go" which is what has been documented in that email.