https://flyte.org logo
#ask-the-community
Title
# ask-the-community
k

Katrina P

10/26/2022, 1:36 PM
What's the best way to put a hard limit the number of pods that Flyte & SparkOperator will spin up? (let's say we have some vCPU limit of 100 or something)
k

Ketan (kumare3)

10/26/2022, 2:27 PM
Resourcequota
Flyte can also manage that
k

Katrina P

10/26/2022, 2:28 PM
like this ?
Copy code
defaults:
    cpu: "1"
    memory: 150Mi
limits:
    cpu: "2"
    memory: 450Mi
project: flyteexamples
domain: development
k

Ketan (kumare3)

10/26/2022, 2:30 PM
No this is default cpu etc per task if unspecified and limits
k

Katrina P

10/26/2022, 2:30 PM
Ah
this file for cluster resources
Copy code
attributes:
    projectQuotaCpu: "1000"
    projectQuotaMemory: 5TB
domain: development
project: flyteexamples
k

Katrina P

10/26/2022, 2:33 PM
great thanks, just making sure that's the best way
k

Ketan (kumare3)

10/26/2022, 2:51 PM
Ya it should be and Flyte should start respecting it
There is some stuff that community is working on
2 Views