requests
and limits
properties for components in the values.yaml
YAML file.
<component>
: represent the component to configure (i.e. broker
, proxy
, etc).
resources
: describe the compute resource requirements for this component.
limits
: describe the maximum amount of allowed compute resources. This component will throttle if it tries to use more resources than the configured value.
requests
: describe the minimum amount of required compute resources. If the requests
section is omitted, it takes limits
values by default if that are explicitly specified in the same component. Otherwise, the request CPU and memory are set to the values defined for the Kubernetes cluster.
cpu
: CPU resources in the limits
and requests
sections are measured in CPU units. One CPU unit is equivalent to one physical CPU core or one virtual CPU core.
Fractional CPU requests are also allowed. For example, resources.requests.cpu: 0.5
requests half as much CPU time.
For CPU resource units, the quantity expression 0.1
is equivalent to the expression 100m
, which means “one hundred milli CPU”.
memory
: Memories in the limits
and requests
sections are measured in bytes.
<component>.jvm.memoryOptions
) in the component section.
Here’s an example where the JVM heap size is set to 6 GB: