Basic usage of CWQs¶
With Cluster Wide Quotas, cluster admins can bring all resources for all Paas'es belonging to a capability together in one cluster wide resource pool. This brings down over commit at the expense of the risks associated with resource sharing.
Use a quota per Paas¶
Set:
paasconfig.capabilities['tekton'].quotas.clusterwide
tofalse
Use CWQs with one hard-set value¶
You can use CWQs with a single hard-set value (e.a. 10).
Set:
paasconfig.capabilities['tekton'].quotas.clusterwide
totrue
paasconfig.capabilities['tekton'].quotas.ratio
to0
paasconfig.capabilities['tekton'].quotas.min
to10
Use CWQs with autoscaling¶
You can use cluster wide quotas with an autoscaling feature.
For this example: every Paas is expected to use 1 CPU, and a minimum of 3 CPU should always be available. Additionally a maximum of 10 CPU can be reserved, and we scale down to 10% of normal usage.
Set:
paasconfig.capabilities['tekton'].quotas.clusterwide
totrue
paasconfig.capabilities['tekton'].quotas.default
to1
paasconfig.capabilities['tekton'].quotas.default
to1
paasconfig.capabilities['tekton'].quotas.min
to3
paasconfig.capabilities['tekton'].quotas.max
to10
paasconfig.capabilities['tekton'].quotas.ratio
to0.1
(10%)