# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://audomsak.gitbook.io/openshift-workshop-for-developers/scaling/scale-application-automatically.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
