Skip to content

Limit

Description

cpus, memory, get, remove, manages entries in the config file for each service. This is used to limit the resources available to each service.

Usage

valet.sh limit set (cpus|memory) <value> <service-name>
valet.sh limit (get|remove) <service-name> (cpus|memory)

Examples

set the cpu limit for a service

valet.sh limit set cpus 2 opensearch2
set the memory limit for a service
valet.sh limit set memory 2g opensearch2
show the cpu limit for a service
valet.sh limit get cpus opensearch2
show the memory limit for a service
valet.sh limit get memory opensearch2
remove the cpu limit for a service
valet.sh limit remove cpus opensearch2
remove the memory limit for a service
valet.sh limit remove memory opensearch2