Red Hat OpenShift Workshop For Developers
  • OpenShift Workshop For Developers
    • Getting Started
  • Application Containerization
    • Building Application
    • Application Packaging
    • Running Application Container
    • Externalize Application Configurations
  • Deployment On OpenShift
    • Database Deployment Via Web Console
    • Build And Deploy Application Using S2I
    • Configure Application With ConfigMap
    • Simple Application Scaling
  • Monitoring And Logging
    • View Application Logs
    • Application Monitoring
  • Scaling
    • Resources Allocation For Application
    • Scale Application Automatically
  • Resiliency
    • Application Health Checks
    • Self Healing
Powered by GitBook
On this page
  1. Scaling

Scale Application Automatically

PreviousResources Allocation For ApplicationNextApplication Health Checks

Last updated 2 years ago

  1. Select the quarkus-todo-app node, click on the Actions drowdownlist menu then select Add HorizontalPodAutoscaler.

  2. Enter following inputs:

    • Name: quarkus-todo-hpa

    • CPU Utilization: 30

    • Memory Utilization: 70

    Then click Save button.

  3. 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;
  4. 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.

  5. Go back to the Web Terminal and cancel the load testing command by pressing Ctrl+C on keyboard.

Add HPA
Add HPA
Run curl command
Pods are automatically scaled