# 2. Create Scaling Policy

{% hint style="info" %}
**Scaling Policy** is used to scale based on metrics with further information about the rules that users give to decide how many instances are added or removed from the group during an in/out scaling execution.
{% endhint %}

**Step 1:** Go to **Autoscaling** page > **Autoscale Policy** > Select **Create Policy**.

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F18Kpdo0VNH9pUQatMCfo%2Fuploads%2FosFkP6GIYZOZOSbfSqOC%2Fautoscaling-access.png?alt=media\&token=f92afeae-bd7b-49b0-b1eb-1ed3ca26d1b8)

**Step 2:** A new dialog box will appear. On **Policy type**, select **Scaling.**

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F18Kpdo0VNH9pUQatMCfo%2Fuploads%2F5MQ0LdacraC6NJNv7R3p%2Fscaling-policy.jpg?alt=media\&token=779e2f2e-fc4e-473e-9026-dab9035b1980)

**Step 3:** A new dialog box will appear with three more options. Users configure as following:

| Field           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Change type** | <p>The type of adjustment for Autoscale group<br>(Exact capacity/Change in capacity/Change in percentage)</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Event**       | <p>The type of event that will trigger this policy</p><p>(Scale in/Scale out)</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Number**      | <p>Depending on the <strong>Change type</strong> field, the value will have different meanings:</p><p><strong>Exact capacity:</strong> The new capacity of the Autoscale Group (Must be a positive integer).</p><p><strong>Change in capacity:</strong> The number of Instances added/removed from the Autoscale Group (Must be a positive integer).</p><p><strong>Change in percentage:</strong> The current capacity percentage of Autoscale Group to calculate the number of Instances to be added or removed.</p><p><em>Eg: The value of Number is 50%, the capacity of Autoscale Group is 4, the event is Scale out, then when a Scale out action is performed, the number of Instances added is 50% of 4, and the new capacity is 6.</em></p> |

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F18Kpdo0VNH9pUQatMCfo%2Fuploads%2FaHPGNeWSHqpwgREjRF9H%2Fimage.png?alt=media\&token=8c04c815-3812-4f0d-b255-b70a1c3defda)

**Step 4:** Click **Create**.

The system will confirm and create a new policy.
