requests
and limits
properties for components in the values.yaml
YAML file.
-
[1]
<component>
: represent the component to configure (i.e.broker
,proxy
, etc). -
[2]
resources
: describe the compute resource requirements for this component. -
[3]
limits
: describe the maximum amount of allowed compute resources. This component will throttle if it tries to use more resources than the configured value. -
[5]
requests
: describe the minimum amount of required compute resources. If therequests
section is omitted, it takeslimits
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. -
[4][7]
cpu
: CPU resources in thelimits
andrequests
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 expression0.1
is equivalent to the expression100m
, which means “one hundred milli CPU”. -
[5][8]
memory
: Memories in thelimits
andrequests
sections are measured in bytes.
Define Java heap size
In addition to setting memory sizing, you need to define the Java (JVM) heap size. You can define the Java heap size for StreamNative Platform components using the Configuration overrides feature (<component>.jvm.memoryOptions
) in the component section.
Here’s an example where the JVM heap size is set to 6 GB: