> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.quortex.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Add CDNs and setup balancing

**Quortex Switch** is designed to intelligently distribute viewers across your available CDNs.
For each audience segment defined in the decision tree, you can configure:
* Which CDNs are used
* How traffic is balanced between them
Balancing decisions can be based on:
* **Capacity**
* **Quality of Experience (QoE)**
* **Pricing or Commitments**
---

### **Adding a CDN to a Segment**
To add a CDN to a segment:
1. Click **“Add CDN”** and select a CDN from the list.
2. To create a new CDN, click **“+ Create CDN”** and define its parameters.

![Add a CDN](https://storage.crisp.chat/users/helpdesk/website/-/9/8/4/5/9845223dbfb4e800/add-cdn_19q5qvo.png =269xauto)
You can add **as many CDNs as needed** for each segment.
Once all CDNs are added, you can configure how traffic is distributed between them.
---

### **Configuring CDN Balancing**
After adding CDNs to a segment, you can define the **traffic balancing** by assigning a **percentage or a capacity** to each CDN.
The description of these balancing capabilities is available here: Choose the Right Balancing Strategy

![CDN balancing definition](https://storage.crisp.chat/users/helpdesk/website/-/9/8/4/5/9845223dbfb4e800/balancing-choice_15vayie.png)

---

### **Using a CDN as Fallback**
You can configure a CDN as a **fallback** by setting its balancing percentage to **0%** or moving to the bottom of the per capacity balancing CDNs list.
This means:
* The CDN will not receive traffic under normal conditions.
* It will remain available to the player as a **backup**.
* If all other CDNs fail, the fallback CDN will be used automatically.
![Fallback CDN](https://storage.crisp.chat/users/helpdesk/website/-/9/8/4/5/9845223dbfb4e800/fallback_mbomaz.png =664xauto)


