Page MenuHomePhabricator

Quota increase request for project catalyst
Closed, ResolvedPublic

Description

Quota increase requested for project catalyst. OpenStack Browser

ResourceCurrent limitIncreaseNew limitΔ%
Instances8+412+50.0%
vCPUs56+64120+114.0%
RAM (MiB)114688+131072245760+114.0%
Volumes8+816+100.0%
Volume Storage (GB)1570+16003170+101.0%

Reason: We need more resources to provide a code server to users in patchdemo: T429990: Patch demo resource check

NOTE for clinic duty: This request increases a quota by more than double its current limit or adds more than 300 GB of storage, so it requires two +1 comments from other Cloud admins before being fulfilled. See Projects lifecycle: Requests.

Cookbook command:

cookbook wmcs.openstack.quota_increase --cluster-name eqiad1 --project catalyst --instances 4 --cores 64 --ram 131072 --volumes 8 --gigabytes 1600

Event Timeline

Neither the linked task in Reason nor the parent task really explain to me what you are planning to use these resources for or how you ended up on these specific numbers.

Neither the linked task in Reason nor the parent task really explain to me what you are planning to use these resources for or how you ended up on these specific numbers.

Sorry about that, I just followed the example in the form when writing the reason.

We plan to provide to users of patchdemo, a code server attached to their wiki. The wikis are running on the kubernetes cluster in our catalyst project. We give the demo wikis ~1CPU and 1G memory. In addition, the code server requirements are 2CPU and 1G memory. We give those as hard limits on the pods, but regular CPU usage should be lower.

Currently we have each node in our cluster using 16vCPU, 20GBdisk, 32GBram. We also have a 230GB volume attached to each node and a backup volume. @jnuche can provide more information about this if needed, but decided for the extra nodes, 200GB is okay.

For initial rollout, we decided to only allow 1 code server per patchdemo user so that we can see how things go and optimize. So we're requesting fewer resources than originally discussed in a meeting with cloud services. We estimated about 50 different users on patchdemo currently.

Based on those numbers, and CPU being the limiting factor, we estimated we could support about 8 code servers per node. We wanted to have some extra leeway and we also have other non-patchdemo workloads running on catalyst so we decided on 10 nodes.

So for the numbers we come to:
16vCPU x 10 = 160 + existing 56 = 216vCPU
32GB RAM x 10 = 320 + existing 112 = 432GB
200GB DISK x10 x2 (for backup volume) + existing (I realized I only added the currently used amount here) 1520 = 5520GB DISK
1 Volume x 10 x 2 (for backup volume) + existing 8 = 28 Volumes

As for the instances, @brennen suggested to increase to 20 total for headroom since it doesn't affect anything if not provisioned...but I don't think we need that many so I will decrease it to 15.

Pinging @Andrew since the Catalyst team originally discussed this quota increase with him

As I understand it, Patch Demo is a tool for testing and demoing existing patches that have been developed within a developer's existing local development environment. This seems to be wanting to move it towards a "development environment in the cloud" model for which we've had a long-standing policy against, so I have a bunch of questions relating to how you are planning to mitigate the concerns behind that policy.

Have you verified that the resources you're planning per pod are enough for the work that would be done on those servers?

Are those 50 users all active concurrently? If not, can the resource usage be lowered by shutting down these servers when they're not in use? (What is the plan if there's more demand for this service than this quota request can handle?)

What anti-abuse mechanisms will you have in place? AIUI currently patch demo access controls are based on the author of the Gerrit patch, which is not particularly helpful if the patch demo wiki creator can then adjust the code they're running.

As I understand it, Patch Demo is a tool for testing and demoing existing patches that have been developed within a developer's existing local development environment. This seems to be wanting to move it towards a "development environment in the cloud" model for which we've had a long-standing policy against, so I have a bunch of questions relating to how you are planning to mitigate the concerns behind that policy.

I think it is fair to have questions. I was a bit confused when @CCiufo-WMF, Levi, and Alexandros started talking about cloud dev environments as a feature that we should explore during the WE5 + WE6 offsite in Lisbon last fall. I think you may have been in the room for some of that, but maybe it was more of a side conversation at that point than product planning.

Have you verified that the resources you're planning per pod are enough for the work that would be done on those servers?

Are those 50 users all active concurrently? If not, can the resource usage be lowered by shutting down these servers when they're not in use? (What is the plan if there's more demand for this service than this quota request can handle?)

What anti-abuse mechanisms will you have in place? AIUI currently patch demo access controls are based on the author of the Gerrit patch, which is not particularly helpful if the patch demo wiki creator can then adjust the code they're running.

These are all great questions, and a couple of them may even have answers already. Can we take the discussion into a planning space for the feature and use them to improve documentation and refine plans, or do you feel strongly that blocking this resource request is a necessary step for resolving concerns about any pilot project from the point of view of the WMCS SREs?

Pinging @Andrew since the Catalyst team originally discussed this quota increase with him

There is some related information in the wikimedia.org gsuite accessible meeting notes from 2026-04-23 too.

I was a bit confused when @CCiufo-WMF, Levi, and Alexandros started talking about cloud dev environments as a feature that we should explore during the WE5 + WE6 offsite in Lisbon last fall. I think you may have been in the room for some of that, but maybe it was more of a side conversation at that point than product planning.

I was told that offsite was already over-budget and thus was not invited to attend.

These are all great questions, and a couple of them may even have answers already. Can we take the discussion into a planning space for the feature and use them to improve documentation and refine plans, or do you feel strongly that blocking this resource request is a necessary step for resolving concerns about any pilot project from the point of view of the WMCS SREs?

I would like to have at least some reasoning why this project that I am hearing in detail for the first time is different from the other resource requests for hosted development environments we've declined in the past before granting a resource request of this magnitude.

There is some related information in the wikimedia.org gsuite accessible meeting notes from 2026-04-23 too.

I am again confused why this meeting seemingly included everyone on the tools-infrastructure-team but me.

I think it is fair to have questions. I was a bit confused when @CCiufo-WMF, Levi, and Alexandros started talking about cloud dev environments as a feature that we should explore during the WE5 + WE6 offsite in Lisbon last fall. I think you may have been in the room for some of that, but maybe it was more of a side conversation at that point than product planning.

Yeah those conversations were more bouncing ideas around than real product planning. I wasn't aware of that aspect of the request review policy, so thanks for raising this @taavi. The code server on patch demo (which is already deployed, just not widely available) is not meant for long-running remote personal development sessions. It's aimed at supporting rapid in-context prototyping so that developers don't need to continuously push patches and spin up new instances just to see the impact of minor changes to their code. I can see how the use case is fuzzy in regards to that policy though and a lot of that depends on what guardrails are in place to prevent abuse (for example, my understanding is that the code server does not have access to the open internet, making it less useful as a real PDE).

These are all great questions, and a couple of them may even have answers already. Can we take the discussion into a planning space for the feature and use them to improve documentation and refine plans, or do you feel strongly that blocking this resource request is a necessary step for resolving concerns about any pilot project from the point of view of the WMCS SREs?

Agreed that we should dedicate some space/time to discuss this in more detail if needed. I was aware the catalyst folks met with the tools infra team but sounds like not everyone was informed.

We have put together a wiki page giving context to this request: https://www.mediawiki.org/wiki/Patch_demo/Code_server

We have been using the autoscaler in production for a couple of days and things looks stable. I've adapted the quota increase request to match the resources mentioned here: https://www.mediawiki.org/wiki/Patch_demo/Code_server#1._KEDA_autoscaling_works

Andrew claimed this task.

granted