# Traffic Allocation

{% hint style="warning" %}
Traffic allocation is available in all environments.

* Traffic allocation set in the Production Environment applies only to the Production Environment.
* Traffic allocation set in the Development Environment applies only to the Development Environment.
  {% endhint %}

{% hint style="info" %}
Why use the traffic allocation feature?

To minimize the impact of unexpected bugs or unintended customer experience issues, you can use the traffic allocation feature to start an A/B Test with a small percentage of traffic and gradually increase it.
{% endhint %}

Traffic Allocation is a feature that configures how many users out of all users should be exposed to the A/B Test.

You can configure it when starting an A/B Test in the **`Production Environment`**, and after starting, by clicking the **`Traffic Allocation`** button in the upper right of the A/B Test detail page.

![Traffic allocation at test start](/files/E3F0CcVobAQaIooxMUWd)

![Traffic allocation after test start](/files/U9fThRZTu7JySJuINy2R)

## 1. Enter the desired traffic percentage

Clicking the button displays a popup where you can change the Traffic Allocation setting. Enter the traffic percentage in the text box in the middle area of the popup.

The traffic percentage to allocate to the A/B Test can only be entered as an integer between 0(%) and 100(%), and **you cannot change it to a value lower than the previously configured value**.

![If the previous value was 50, you must enter a value greater than or equal to 50.](/files/FhvYYaR0O0eBr4W4gWR0)

## 2. Apply the setting

Click the **`Allocate`** button in the lower right to apply the changed traffic allocation percentage.


---

# 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://docs.hackle.io/en/ab-test/create-and-configure/traffic-allocation.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.
