# 트래픽 할당하기

{% hint style="warning" %}
트래픽 할당은 모든 환경에서 가능합니다.

* 운영환경에서 설정한 트래픽 할당은 운영환경에만 적용됩니다.
* 개발환경에서 트래픽 할당을 하는 경우, 개발환경에만 적용됩니다.
  {% endhint %}

{% hint style="info" %}
트래픽 할당 기능은 왜 사용하나요?

예상치 못한 버그나 의도하지 않은 고객경험의 영향도를 최소화 하기 위해, 트래픽 할당 기능을 이용하여 적은 비중의 트래픽으로 A/B 테스트를 시작하고 점진적으로 이를 높여갈 수 있습니다.
{% endhint %}

트래픽 할당(Traffic Allocation)이란 A/B 테스트에 전체 사용자 중 원하는 비율만큼의 사용자만 A/B 테스트에 노출되도록 설정하는 기능입니다.

**`운영환경`**&#xC5D0;서 A/B 테스트를 시작할 때 설정할 수 있으며, 시작한 이후에는 A/B 테스트 상세 페이지 우측상단에 위치한 **`트래픽 할당하기`** 버튼을 클릭하여 설정할 수 있습니다.

![테스트 시작 시 트래픽 할당하기](/files/7PNqJCDIZj2rQMON1wfX)

![테스트 시작 이후 트래픽 할당하기](/files/fC8jr6ri4pMjNdug17TE)

## 1. 원하는 트래픽 비중 입력

버튼을 클릭하면 트래픽 할당(Traffic Allocation) 설정을 변경할 수 있는 팝업 창이 표시되며, 팝업 창의 중간 영역에 위치한 텍스트 박스에 트래픽 비중을 입력합니다.

A/B 테스트에 할당하고자 하는 트래픽의 비중은 0(%)부터 100(%)까지 정수만 입력 가능하며, **이전에 설정되어 있던 값보다 낮은 값으로는 변경할 수 없습니다**.

![이전 설정 값이 50인 경우 그 이상을 입력해야 합니다.](/files/fp9p4O5JiV090N722Nra)

## 2. 설정 적용

우측 하단의 **`할당하기`** 버튼을 클릭하면 변경된 트래픽 할당 비중이 적용됩니다.


---

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