Page MenuHomePhabricator

Unexpected media growth led to low disk resources on several media backup hosts
Closed, ResolvedPublic

Description

After T376892 expansion we thought we had at least 2 years of media backup storage, but recently, in a very small amount of time -weeks- 50TB were added to our upload, leading to a non-linear growth in disk utilization: in the last year, storage has grown from 650 TB to 850 TB, getting too uncomfortably close to the maximum available space of 960TB, where now 5 out of 6 servers are at 90% disk usage.

image.png (1,551×513 px, 45 KB)

While we could do some magic writing to only 1 server and using spare disk resources from other hosts with mixed use, it would be nice to do any refactoring at the same time than other expansion to avoid working twice: once for moving data around, and again for a refresh. Doing large expansions rather than small ones is less work and time intensive. Having a couple of extra servers per datacenter (8 instead of 6, or 850/1280 TB) will expand the current space by 2-3 extra years with the current projected growth (but as said, it varies a lot from year to year). There was already a planned refresh for Q3, and maybe it could be combined with garage or other software migration (T410020). Alternatively, we could refresh the hosts with more density per host, as we have the same density as 6 years ago per host.

Another question if if we need to change, while migrating, some of the storage formulas: no SSDs, RAID level, or replication factor + jbod.

Details

Related Changes in Gerrit:

Event Timeline

RobH mentioned this in Unknown Object (Task).Dec 11 2025, 6:11 PM
RobH mentioned this in Unknown Object (Task).
RobH mentioned this in Unknown Object (Task).Jan 15 2026, 7:38 PM
RobH mentioned this in Unknown Object (Task).

Change #1251113 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackups: Initial puppetization of Versity S3 gateway for replacing minio

https://gerrit.wikimedia.org/r/1251113

Change #1251113 merged by Jcrespo:

[operations/puppet@production] mediabackups: Initial puppetization of Versity S3 gateway for replacing minio

https://gerrit.wikimedia.org/r/1251113

Change #1253457 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackups: Modify syntax for new systemd and package version

https://gerrit.wikimedia.org/r/1253457

Change #1253457 merged by Jcrespo:

[operations/puppet@production] mediabackups: Modify syntax for new systemd and package version

https://gerrit.wikimedia.org/r/1253457

Change #1253491 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackups: Fix bug in which services were defined in duplicate

https://gerrit.wikimedia.org/r/1253491

Change #1253491 merged by Jcrespo:

[operations/puppet@production] mediabackups: Fix bug in which services were defined in duplicate

https://gerrit.wikimedia.org/r/1253491

• jcrespo added a subscriber: MoritzMuehlenhoff.

Moritz: I would like your assessment on deploying a new storage service for media backups through the profile temporarily called mediabackups::new_storage, so it doesn't use the existing mediabackups::storage for migration purposes, but will eventually substitute it.

The aim of the new service is:

  • Remove abandoned & old minio packages from SRE-owned production (Garage didn't work for us: T410020)
  • Substitute for a plain, simple S3 proxy to filesystem VersityGW Apache-Licensed https://github.com/versity/versitygw (which mayl allow other interfaces in the future, such as rsync)
  • Keep s3 API compatibility + TLS for transparent upgrade from Minio server
  • Provision more space due to backup growth
  • Upgrade base hosts to trixie
  • Any other upgrade that could be done more easily as a host migration than a reimage/on host update (firewall?)

For this, the following new profile has been created: https://phabricator.wikimedia.org/source/operations-puppet/browse/production/modules/profile/manifests/mediabackup/new_storage.pp
and a module: https://phabricator.wikimedia.org/source/operations-puppet/browse/production/modules/versitygw/manifests/storage.pp

Not asking to evaluate the more storag-y & scaling parts, that's my responsibility, but the more OS-y, debian-y, securit-y and WMF-y parts.

A test service is already running on backup1015 with 4 stores, but there are yet no open ports exposed to network, waiting for an ok to deploy it there and in 6 hosts in total per dc. Ports will be open only to ms-backup* hosts. Some things are still WIP, e.g. thinking if to open web interface and enabling other options.

Sorry for not waiting, but this needs to be done now as we are 1 or 2 days away from running out of space on existing minio hosts.

Change #1254267 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackups: Enable TLS and set multitenant mode

https://gerrit.wikimedia.org/r/1254267

Change #1254267 merged by Jcrespo:

[operations/puppet@production] mediabackups: Enable TLS and set multitenant mode

https://gerrit.wikimedia.org/r/1254267

Change #1254906 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackup: Prepare mediabackup worker profile for new storage backend

https://gerrit.wikimedia.org/r/1254906

Change #1254999 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackup: Deploy new 24 shards (6 hosts) for mediabackups@eqiad

https://gerrit.wikimedia.org/r/1254999

Change #1255003 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackups: Open s3 storage port on storage hosts from working hosts

https://gerrit.wikimedia.org/r/1255003

Change #1255000 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackup: Deploy new 24 shards (6 hosts) for mediabackups@codfw

https://gerrit.wikimedia.org/r/1255000

For this, the following new profile has been created: https://phabricator.wikimedia.org/source/operations-puppet/browse/production/modules/profile/manifests/mediabackup/new_storage.pp
and a module: https://phabricator.wikimedia.org/source/operations-puppet/browse/production/modules/versitygw/manifests/storage.pp

Not asking to evaluate the more storag-y & scaling parts, that's my responsibility, but the more OS-y, debian-y, securit-y and WMF-y parts.

I made a small cleanup patch at https://gerrit.wikimedia.org/r/c/operations/puppet/+/1255690, the rest looks all good!

I also checked all firewall definitions on the new backup1015 role and everything is compatible with nftables, so if you want we can also switch this host to nftables as the first backup node (or we do it later, totally optional=

Change #1255697 had a related patch set uploaded (by Muehlenhoff; author: Muehlenhoff):

[operations/puppet@production] Switch backup1015 to nftables

https://gerrit.wikimedia.org/r/1255697

Change #1255704 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackup: Switch backup new media storage hosts to nftables

https://gerrit.wikimedia.org/r/1255704

Change #1255704 merged by Jcrespo:

[operations/puppet@production] mediabackup: Switch backup new media storage hosts to nftables

https://gerrit.wikimedia.org/r/1255704

Change #1255697 abandoned by Muehlenhoff:

[operations/puppet@production] Switch backup1015 to nftables

Reason:

Obsoleted by https://gerrit.wikimedia.org/r/c/operations/puppet/+/1255704

https://gerrit.wikimedia.org/r/1255697

Change #1254906 merged by Jcrespo:

[operations/puppet@production] mediabackup: Prepare mediabackup worker profile for new storage backend

https://gerrit.wikimedia.org/r/1254906

Change #1255723 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackup: Skip references to Debian package versitygw until available

https://gerrit.wikimedia.org/r/1255723

Change #1255723 merged by Jcrespo:

[operations/puppet@production] mediabackup: Skip references to Debian package versitygw until available

https://gerrit.wikimedia.org/r/1255723

Change #1255732 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackup: Switch backup media worker hosts to nftables

https://gerrit.wikimedia.org/r/1255732

Change #1255732 merged by Jcrespo:

[operations/puppet@production] mediabackup: Switch backup media worker hosts to nftables

https://gerrit.wikimedia.org/r/1255732

Change #1254999 merged by Jcrespo:

[operations/puppet@production] mediabackup: Deploy new 24 shards (6 hosts) for mediabackups@eqiad

https://gerrit.wikimedia.org/r/1254999

Change #1255828 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackup: Apply final role for eqiad mediabackup new storages

https://gerrit.wikimedia.org/r/1255828

Change #1255828 merged by Jcrespo:

[operations/puppet@production] mediabackup: Apply final role for eqiad mediabackup new storages

https://gerrit.wikimedia.org/r/1255828

Change #1255000 merged by Jcrespo:

[operations/puppet@production] mediabackup: Deploy new 24 shards (6 hosts) for mediabackups@codfw

https://gerrit.wikimedia.org/r/1255000

Change #1255877 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] mediabackups: Clarify iam directory

https://gerrit.wikimedia.org/r/1255877

Change #1255877 merged by Jcrespo:

[operations/puppet@production] mediabackups: Clarify iam directory

https://gerrit.wikimedia.org/r/1255877

Change #1255003 merged by Jcrespo:

[operations/puppet@production] mediabackups: Open s3 storage port on storage hosts from working hosts

https://gerrit.wikimedia.org/r/1255003

After fixing some authentication and some region configuration issues, backups are flowing now. This view is really nice, show the new 24 shards getting filled:

cumin2024@db2183.codfw.wmnet[mediabackups]> select count(*), location FROM backups group by location;
+----------+----------+
| count(*) | location |
+----------+----------+
| 30299611 |        1 |
| 30295929 |        2 |
| 30291310 |        3 |
| 30297141 |        4 |
| 28000043 |        5 |
| 13729535 |        6 |
|      103 |        7 |
|      108 |        8 |
|      128 |        9 |
|      113 |       10 |
|       27 |       11 |
|       33 |       12 |
|       29 |       13 |
|       33 |       14 |
|       48 |       15 |
|       43 |       16 |
|       50 |       17 |
|       44 |       18 |
|      108 |       19 |
|       98 |       20 |
|       96 |       21 |
|      110 |       22 |
|      117 |       23 |
|       92 |       24 |
|      123 |       25 |
|      108 |       26 |
|      120 |       27 |
|      114 |       28 |
|      118 |       29 |
|       95 |       30 |
+----------+----------+
30 rows in set (42.289 sec)

The trend is clear here: while old objects had some average size, new ones (shard 6 only had new ones, but it equally space filled), the new average size is 3 times larger, while maintaining the upload speed, meaning we now consume space 3 times faster than usual.

Backups are slowly flowing on eqiad, too:

db1204.eqiad.wmnet[mediabackups]> select count(*), location FROM backups group by location;
+----------+----------+
| count(*) | location |
+----------+----------+
| 30309863 |        1 |
| 29274314 |        2 |
| 31524753 |        3 |
| 30900062 |        4 |
| 28463614 |        5 |
| 14012226 |        6 |
|        5 |        7 |
|        1 |        8 |
|        4 |        9 |
|        3 |       10 |
|        3 |       11 |
|        6 |       12 |
|        6 |       13 |
|        3 |       14 |
|        3 |       15 |
|        8 |       16 |
|        4 |       17 |
|        4 |       18 |
|        2 |       19 |
|        3 |       20 |
|        4 |       21 |
|        3 |       22 |
|        3 |       23 |
|        6 |       24 |
|        6 |       25 |
|        1 |       26 |
|        6 |       27 |
|        6 |       28 |
|        3 |       29 |
|        7 |       30 |
+----------+----------+
30 rows in set (30.025 sec)
• jcrespo claimed this task.