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 stack the scope applies to come from the global -t/-e/-s flags (tenant scope needs -t; stack scope -t and -s; environment scope -t and -e; deployment scope all three).

shc quota set [flags]
shc quota set --scope tenant -t acme --cpu 2000m --memory 4g
shc quota set --scope stack -t acme -s myblog --disk 10g
shc quota set --scope deployment -t acme -s myblog -e prod --max-apps 5
--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-environments int maximum number of environments
--max-stacks int maximum number of stacks
--max-vapp-instances int maximum number of vApp instances
-m, --memory string memory limit
--scope string scope (base|tenant|stack|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: $SHC_ENVIRONMENT)
--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