Page MenuHomePhabricator

Swift/Opensearch logging is swamping centrallog hosts
Open, Needs TriagePublic

Description

centrallog hosts in eqiad and codfw are routinely running out of space. These hosts have had storage added, which in turn has been eaten up. The vast majority of logs on theses hosts come from swift hosts, and the volume is probably not particularly useful.

We should do one, some or all of the following:

  • evaluate the retention of these logs (or all logs, if necessary - ideally not) - currently glob-based/per-host retention isn't something we can easily do so this would require a bit of work
  • sample these logs
  • filter the logs before sending (we already attempt to do some different filtering (1, 2) , which gives some precedent even if this isn't the same problem

Event Timeline

on ms-be hosts (the worst offenders), a consistent 50+% of swift log entries are for DELETE operations, possibly related to T379942#11725109 - speed of cleanup was ramped up in March 2026, and we see a marked increase in disk usage since March

image.png (2,043×1,283 px, 183 KB)

That said, the operations themselves are not the concern here, it's how we handle disk usage and what levers we have to pull.

Change #1324302 had a related patch set uploaded (by Tiziano Fogli; author: Tiziano Fogli):

[operations/puppet@production] swift/rsyslog: filter out thumb deletion messages

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

Change #1324302 merged by Tiziano Fogli:

[operations/puppet@production] swift/rsyslog: filter out thumb deletion messages

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

Change #1324330 had a related patch set uploaded (by Tiziano Fogli; author: Tiziano Fogli):

[operations/puppet@production] swift/rsyslog: move comment to avoid parsing issues

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

Change #1324330 merged by Tiziano Fogli:

[operations/puppet@production] swift/rsyslog: move comment to avoid parsing issues

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

Change #1324333 had a related patch set uploaded (by Tiziano Fogli; author: Tiziano Fogli):

[operations/puppet@production] swift/rsyslog: use re_match instead of regex

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

Change #1324333 merged by Tiziano Fogli:

[operations/puppet@production] swift/rsyslog: use re_match instead of regex

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

Mentioned in SAL (#wikimedia-operations) [2026-08-11T15:28:21Z] <tappof> remove 2026-05 swift log archives from centrallog to free some space (T434502)

Thank you and sorry for the side effect.

Change #1324600 had a related patch set uploaded (by Tiziano Fogli; author: Tiziano Fogli):

[operations/puppet@production] rsyslog/opensearch: filter out safepoint messages

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

Change #1324600 merged by Tiziano Fogli:

[operations/puppet@production] rsyslog/opensearch: filter out safepoint messages

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

Change #1324748 had a related patch set uploaded (by Tiziano Fogli; author: Tiziano Fogli):

[operations/puppet@production] rsyslog/opensearch: filter out safepoint messages

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

Change #1324748 merged by Tiziano Fogli:

[operations/puppet@production] rsyslog/opensearch: filter out safepoint messages

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

image.png (1,479×746 px, 80 KB)

We were also discussing the GC-related logs from OpenSearch (coming from cirrussearch), and a patch to discard them has been rolled out.

@bking Maybe we can avoid generating those safepoint/GC messages by tuning the OpenSearch configuration; if that's possible and you have the bandwidth, we could revert the patch for CirrusSearch.

tappof renamed this task from Swift logging is swamping centrallog hosts to Swift/Opensearch logging is swamping centrallog hosts.Tue, Aug 18, 4:02 PM
tappof added a project: User-tappof.
tappof moved this task from Inbox to Radar on the User-tappof board.

I think this is ~mostly solved? clouddumps hosts are a little spammy now that we've tuned down some of the noise but the trends for some of the most impactful directories are good I think.