> For the complete documentation index, see [llms.txt](https://audomsak.gitbook.io/openshift-workshop-for-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://audomsak.gitbook.io/openshift-workshop-for-developers/scaling/scale-application-automatically.md).

# Scale Application Automatically

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

   ![Add HPA](/files/i3lPgtCgPWHuf7sOUICz)
2. Enter following inputs:

   * **Name:** `quarkus-todo-hpa`
   * **CPU Utilization:** `30`
   * **Memory Utilization:** `70`

   Then click **Save** button.

   ![Add HPA](/files/FEm1keysZWrAi3wVMn3m)
3. Open the Web Terminal and run this command to simulate load testing.

   ```sh
   while(true); do curl -o /dev/null http://quarkus-todo-app:8080/todo.html; sleep 0.2; done;
   ```

   ![Run curl command](/files/H1mQlMIg54Pu9toSbJ9L)
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.

   ![Pods are automatically scaled](/files/hJUKU10nI3QoIVpF1c1Q)
5. Go back to the Web Terminal and cancel the load testing command by pressing `Ctrl+C` on keyboard.
