Skip to content
SHC Docs

shc quota set

set resource quotas

Set resource quotas at a scope. At least one of --cpu, --memory, --disk, or a --max-* counter must be supplied; each maps to one quota key persisted at the chosen scope. The tenant, environment and deployment the scope applies to come from the global -t/-e/-s flags (tenant scope needs -t; environment scope -t and -e; deployment scope all three).

The --max-* counters are tenant-wide. Every install’s +1 cascades up to the tenant usage row and the count check reads there, so a --max-* row below tenant scope is refused with X400066CFGSCP. Set counters at --scope tenant or base. The next install reads a new ceiling with no daemon restart, and running deployments are never checked again against a lowered one. --cpu, --memory and --disk ride the per-deployment path and are meaningful at every tier.

shc quota set [flags]
shc quota set --scope tenant -t acme --cpu 2000m --memory 4g
shc quota set --scope tenant -t acme --max-apps 5
shc quota set --scope environment -t acme -e prod --disk 10g
shc quota set --scope deployment -t acme -s myblog -e prod --cpu 500m
--cpu string cpu limit (e.g. '500m')
-D, --disk string disk limit
-h, --help help for set
--max-apps int maximum number of apps
--max-deployments int maximum number of deployments
--max-environments int maximum number of environments
--max-vdeployments int maximum number of vdeployments
-m, --memory string memory limit
--scope string scope (base|tenant|environment|deployment)
--config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win
-d, --debug enable debug mode (default: $SHC_DEBUG)
-e, --environment string environment name (default: "prod", or "default" on an estate with no licence and no trial; $SHC_ENVIRONMENT and shc ctx -e override it, and the "master" tenant is always "default")
--exclude string comma-separated dotted paths to drop
--fields string comma-separated columns/keys to show (and their order)
--filter string comma-separated dotted paths to keep (drops everything else)
-o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT)
-s, --stack string stack name (default: $SHC_STACK)
-t, --tenant string tenant name (default: $SHC_TENANT)
-v, --verbose verbose output (default: $SHC_VERBOSE)
  • shc quota - manage resource quotas and limits