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
- An integration, created and bound to an environment.
Procedure
- In Runtime Manager, go to Integrations and open the integration.
- Choose Add Capability, then Compute.
- Set Replicas, then the CPU and memory requests and limits.
- Choose Apply changes.
Parameters
| Field | What it is | Default |
|---|---|---|
| Replicas | The number of instances. | 1 |
| CPU Request | The CPU each instance is guaranteed. | 125m |
| Memory Request | The memory each instance is guaranteed. | 128Mi |
| CPU Limit | The most CPU an instance may use. | 500m |
| Memory Limit | The 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.
1000mis one core. Memory is written128Mi,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
- Integrations: every setting at a glance
- Keep instances up during maintenance