Page MenuHomePhabricator

Limit CPU usage for mw-on-k8s cli deployments
Closed, ResolvedPublic

Description

mw-cron and mw-script currently use the same requests as fpm deployments of MW-on-K8s
This is overkill, since they will at most run one PHP process at a time.
These workloads can also be throttled since they are not latency sensitive

  • Reduce requests for these namespaces to 1 CPU
  • Enforce limits for these namespaces

Event Timeline

Clement_Goubert changed the task status from Open to In Progress.
Clement_Goubert triaged this task as Medium priority.

Change #1151689 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/deployment-charts@master] mw-cron, mw-script: Limit resources

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

Change #1151689 merged by jenkins-bot:

[operations/deployment-charts@master] mw-cron, mw-script: Limit resources

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

Clement_Goubert claimed this task.

Limited resources for mediawiki containers created in these namespaces:

  • CPU request/limit to 1
  • RAM request/limit to 1000Mi/1200Mi

Change #1153602 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/deployment-charts@master] mw-cron: Enable limits

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

Change #1153602 merged by jenkins-bot:

[operations/deployment-charts@master] mw-cron: Enable limits

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

Mentioned in SAL (#wikimedia-operations) [2025-06-05T09:43:32Z] <claime> Re-enabling CPU/RAM limits on mw-cron - T395436

Limited resources for mediawiki containers created in these namespaces:

CPU request/limit to 1
RAM request/limit to 1000Mi/2000Mi

Re-opened for disabling limits until the spiky memory behavior identified in T395465 is fixed.

Change #1155175 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/deployment-charts@master] mw-cron: Disable memory limit

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

Change #1155175 merged by jenkins-bot:

[operations/deployment-charts@master] mw-cron: Disable memory limit

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

CPU limits have been re-enabled, we will revisit memory limits in the future.

Mentioned in SAL (#wikimedia-operations) [2025-07-09T10:37:04Z] <claime> Restoring memory limits on mw-cron - T395436 - T395465