Page MenuHomePhabricator

Put a limit on demos created by ci
Closed, ResolvedPublic3 Estimated Story Points

Description

To avoid overloading the cluster, we should find a way to disallow ci from creating too many demos.
Some ideas that came up in the meeting:

  • Determine a good limit for CI based on usage
  • Limit the amount of demos a particular "User" (by auth token) can create

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
set default max envs per token to 10repos/test-platform/catalyst/catalyst-api!176jnucheT417304main
add support for token-level env limitsrepos/test-platform/catalyst/catalyst-api!175jnucheT417304main
Customize query in GitLab

Event Timeline

thcipriani updated the task description. (Show Details)
thcipriani set the point value for this task to 3.
thcipriani moved this task from Backlog to Ready on the Catalyst (Luka Ijo Pimeja Jan) board.

As an interesting note, here's an histogram of Catalyst environment usage by CI over time.

We saw a significant jump earlier this year. As of March 13th, CI pipelines have already created 350 envs this month; roughly 27 a day:

histogram.png (480×640 px, 15 KB)

jnuche closed this task as Resolved.EditedTue, Mar 17, 3:26 PM

CI pipelines from Abstract Wikipedia now have a limit of 15 10 non-deleted environments (each AW's env takes up 5 pods, allowing 15 envs brings us dangerously close to the pods limit already at our current usage level)