# Load Balancer in vCloudStack

To distribute network traffic to multiple VM servers, as well as ensure efficient resource utilization and increase application availability. vCloudStack provides Load Balancer service by distributing traffic based on defined rules and algorithms, Load Balancer improves performance and is a reliable tool for user applications, preventing any single member server from becoming overloaded.

The model for Load Balancer to work in vCloudStack includes the following components:

* **Layer :** Supports 2 main types, including:
  * *Application Load Balancer:* Application layer Load Balancer routes traffic based on HTTP/HTTPS requests, allowing for analysis of application-level data such as HTTP Headers and Cookies. Ideal for web applications with complex routing requirements or content-based routing needs.
  * *Network Load Balancer:* A transport-layer Load Balancer that uses TCP and UDP to distribute traffic among multiple servers based on IP address and port number, ideal for applications that require high reliability and availability.
* **Scheme** : only apply scheme is Internal:
  * *Internal:* Internal Load Balancer routes traffic from the client's internal network to server clusters, helping to distribute requests efficiently within the internal network.
* **Load Balancer:** Supports the deployment of 2 Load Balancer models including Application LB and Network LB, each Load Balancer includes main components such as:
  * **Listener:** A listener is a component that monitors and listens for incoming connection requests. It is responsible for receiving traffic on a specific port and protocol, and then forwarding or routing that traffic to valid hosts based on defined rules and configuration.
    * **Policy** : For Application Load Balancer, Policy acts as a set of rules/conditions to distribute requests to backend servers
  * **Pool** : A pool represents a group of servers and handles incoming traffic. The pool is responsible for load balancing requests across its members, ensuring efficient distribution and utilization of resources.
    * **Pool Member:** A Pool Memeber acts as a member server in the Pool.
    * **Health Check:** Health Check setting is a set of rules, through which the Load Balancer monitors the health of its Pools and Pool Members.


---

# 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.vngcloud.vn/vng-cloud-document/vcloudstack/get-started-with-vcloudstack/load-balancer-in-vcloudstack.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.
