HomePhabricator

jobs service: add count quotas for a bunch of related objects

Description

jobs service: add count quotas for a bunch of related objects

Since there are increasing numbers of people using the k8s cluster
for jobs, we need quotas on them. These are intended to be the initial
starting points we'd like people to try to operate within before asking
for more.

To retroactively add these to existing users, we need to run scripts,
but this would be the starting default for new users. The main callouts
here are:

  • 3 deployments (to allow using them for "continuous jobs")
  • increasing default pods to 10 to allow more jobs
  • set limit of 15 jobs at once, which you won't hit because jobs need

pods, but again, ask for more pods first, then jobs if you are running that
many

  • 50 cronjobs -- a cronjob object is a schedule that spawns jobs and pods,

and this is what we had available on the grid. The other limits encourage
reducing concurrency

These limits seem generous and perhaps we want to set them lower prior
to quota increase requests to encourage "frugality".

Bug: T286784
Change-Id: I221c76205eeaa996a4fa81165b373c90a3b33900

Details