Resource limits
Resource limits cap what each container can consume. They protect the host from one heavy app and keep a runaway process from starving its neighbors.
Show current limits
Section titled “Show current limits”deku ps limits my-appSet limits
Section titled “Set limits”deku ps limits my-app --memory 512mdeku ps limits my-app --cpu 0.5deku ps limits my-app --process worker --memory 1g --cpu 500m--memoryacceptsk,m, andgsuffixes, or a plain byte count:512m,1g,268435456.--cpuaccepts decimal cores or millicores:0.5,500m.--processscopes the limit to one process type. Omit it to set the default for every process.
Values are checked when you set them. An unparseable --memory or --cpu is rejected, and a request with neither is refused.
When limits apply
Section titled “When limits apply”Limits are applied when containers are created, so a change takes effect on the next deploy:
deku ps limits my-app --memory 512mdeku deploy run my-app --path .A limit set with --process applies to that process only. The default applies to every process that has no limit of its own.