...
The following screenshot illustrates the autoscaling parameters for webrunner microservice.
Parameter | DescritionDescription |
---|---|
enabled | Parameter to enable HPA by setting its value to true. |
minReplicas | Minimum number of pods for a microservice. |
maxReplicas | The maximum number of pods to which a microservice can scale up to. |
targetCPUUtilizationPercentage | The percentage value of CPU utilization beyond at which the autoscaler spins up a new pod. |
targetmemoryUtilizationPercentage | The percentage value of memory utilization beyond at which the autoscaler spins up a new pod. |
...
Configuring HPA
...
Configuring HPA for runtime microservice before deployment (shared queue)
autoscaler>env:>min pod , and max pod, max queue is Threshold
Configuring HPA for runtime microservice after deployment (shared queue)
go to shared directory
Open AUTOSCALING file in the in the /shared directory in edit mode
2 = min pod
2 = max pod
5 = max queue or Threshold
performance = namespace
runtime = shared queue name
...
for runtime microservice
The HPA configuration for the runtime microservice differs from that of the rest of the microservices. An additional runtime pod spins up or gets deleted based on the number of Process Flows you have in the queued state. As the number of Process Flows in the queue gets beyond the threshold value, a new runtime pod is created.
The configuration steps for HPA depend upon whether the Process Flows are running on ashared or dedicated queue. The sections given below describe how the runtime HPA is configured in the following scenarios.
When the Process Flows to run on the shared queue
If you are configuring the HPA before deployment of the application, set the parameters in the global values.yaml file as instructed below:
- In the global values.yaml file, go to autoscaler: >env:
Set the values for MIN_POD, MAX_POD, and MAX_QUEUE parameters.
Parameter Description MIN_POD Minimum number of pods for runtime microservice. MAX_POD The maximum number of pods the runtime microservice can scale up to. MAX_QUEUE The number of Process Flows in the shared queue beyond which the autoscaler spins up a new runtime pod.
If you want to configure the HPA after deployment of the application, follow the steps given below.
- Go to /shared folder in the PVC.
- Open AUTOSCALING file in edit mode.
Update the file as shown in the example below.
Code Block language css theme Midnight 2|3|7|My_Namespace|shared_queue|deployment_1
Where,
2 - Minimum number of pods for runtime microservice.
3 - The maximum number of pods the runtime microservice can scale up to.
7 - The number of Process Flows in the shared queue beyond which the autoscaler spins up a new runtime pod.
My_Namespace - Namespace
shared_queue - Name of the shared queue
deployment_1 - Name of the deployment
- Save the file.
- Restart the runtime microservice.
Info |
---|
Changes are reflected within 30 secs. |
Info |
---|
Downscaling also happens |
Configuring HPA for runtime microservice (dedicated queue) - done only after deployment
can be performed only by admin user.
...
When the Process Flows to run on a dedicated queue
If your Process flows are running on a dedicated queue, you can configure the HPA by following the steps given on the page "Creating a queue".
Warning | ||
---|---|---|
| ||
Only an Admin user can configure the HPA in this case. |