Resource request and limits
Resource request and limits can be set for base components and assemblies in KX Insights.
Resource requests and limits for assemblies are set by a k8sPolicy.
Resource requests and limits for base components are set in the install configuration.
numbers
The numbers for limits used on this page are not suggestions, and are meant to demonstrate how to use these settings, not recommend values.
Defaults
The default values for components related to the query path are:
component | cpu requests | cpu limits | memory requests | memory limits |
---|---|---|---|---|
resource-coordinator | 100m | 1000m | 128Mi | 256Mi |
aggregator | 500m | 2000m | 1024Mi | 2048Mi |
sg-gateway | 250m | 1000m | 512Mi | 4096Mi |
dap | 100m | 100m | 128Mi | 128Mi |
sm | 1000m | 1000m | 4000Mi | 4000Mi |
Resource limits for base components
To set resource limits for the resource-coordinator, aggregators, and service gateway, set resources
in your install configuration.
service-gateway:
aggregator:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
sg-gateway:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
resource-coordinator:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
Resource limits for storage manager and data access processes
To set requests and limits for your databases set a k8sPolicy for the SM and DAP elements of your assemblies.
spec:
elements:
sm:
resourceAllocation: 5
eoi:
resourceAllocation: 45
eod:
resourceAllocation: 45
dbm:
resourceAllocation: 5
k8sPolicy:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
dap:
instances:
hdb:
k8sPolicy:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
Sandbox resource limits and requests
By default, when you query with the UI, the newly created sandboxes get resource limits that match the resource limits of those from the assemblies.
This means that if you set a k8sPolicy for an HDB, the sandbox-hdb will also get those same limits.