Skip to main content

Set Compute Resources

Set how many instances of an integration run, and the CPU and memory of each.

How it works​

Requests are what an instance is guaranteed and what the scheduler reserves; limits are the most it may use. CPU above the limit is throttled; memory above the limit kills the container. Replicas are identical instances behind the same service.

Two replicas for anything that must stay up

With one replica, every restart (a deployment, a node drain) is an interruption.

Prerequisites​

Procedure​

  1. In Runtime Manager, go to Integrations and open the integration.
  2. Choose Add Capability, then Compute.
  3. Set Replicas, then the CPU and memory requests and limits.
  4. Choose Apply changes.

Parameters​

FieldWhat it isDefault
ReplicasThe number of instances.1
CPU RequestThe CPU each instance is guaranteed.125m
Memory RequestThe memory each instance is guaranteed.128Mi
CPU LimitThe most CPU an instance may use.500m
Memory LimitThe most memory an instance may use. Beyond it, the instance is stopped.512Mi

Behavior and limits​

  • Applying this setting restarts the integration; it does not rebuild its image.
  • 1000m is one core. Memory is written 128Mi, 1Gi.
  • An integration stopped for using too much memory restarts in a loop: raise the memory limit.
  • Two instances or more keep the integration answering while one restarts.

See also​