dazzling-advantage-95256
08/01/2023, 2:29 PMkind-kite-58745
08/01/2023, 2:46 PMdazzling-advantage-95256
08/01/2023, 2:54 PMdazzling-advantage-95256
08/01/2023, 2:56 PMfreezing-boots-56761
dazzling-advantage-95256
08/01/2023, 2:57 PMfreezing-boots-56761
dazzling-advantage-95256
08/01/2023, 2:59 PMkind-kite-58745
08/01/2023, 3:08 PMResourceQuota
resource, which is templated here: https://github.com/flyteorg/flyte/blob/master/charts/flyte-core/values.yaml#L877
According to the cluster-resources section in the configuration guide, you can create custom attributes, which can then be passed to a custom template specified in the values.yaml (assuming helm installation)freezing-boots-56761
kind-kite-58745
08/01/2023, 3:10 PM- key: ab_project_resource_quota
value: |
apiVersion: v1
kind: ResourceQuota
metadata:
name: project-quota
namespace: {{ namespace }}
spec:
hard:
limits.cpu: {{ projectQuotaCpu }}
limits.memory: {{ projectQuotaMemory }}
<http://limits.nvidia.com/gpu|limits.nvidia.com/gpu>: {{ projectQuotaGpu }} # this is the added line, the rest is from the default values
and
attributes:
projectQuotaCpu: "1000"
projectQuotaMemory: 5Ti
projectQuotaGpu: "100" # this is the added custom attribute
domain: development
project: flyteexamples
with
flytectl update cluster-resource-attribute --attrFile cra.yaml
dazzling-advantage-95256
08/01/2023, 3:54 PMSo basically the control plane would load balance across the data planes, ensuring that the quotas are respected (based on projects), right?
dazzling-advantage-95256
08/02/2023, 1:28 PMfreezing-boots-56761
dazzling-advantage-95256
08/02/2023, 4:33 PMfreezing-boots-56761
freezing-boots-56761
dazzling-advantage-95256
08/02/2023, 5:21 PM