Scale Application Automatically
Select the quarkus-todo-app node, click on the Actions drowdownlist menu then select Add HorizontalPodAutoscaler.
Add HPA Enter following inputs:
Name:
quarkus-todo-hpa
CPU Utilization:
30
Memory Utilization:
70
Then click Save button.
Add HPA Open the Web Terminal and run this command to simulate load testing.
while(true); do curl -o /dev/null http://quarkus-todo-app:8080/todo.html; sleep 0.2; done;
Run curl command Select the quarkus-todo-app node, then go to Details tab. Notice that the Pods are automatically scaled and you're not allow to scale the pods manually.
Pods are automatically scaled Go back to the Web Terminal and cancel the load testing command by pressing
Ctrl+C
on keyboard.
Last updated