Configura il Load Balancer NSX Edge (EN)

Simple steps to use the NSX Edge load balancing service

Last Updated on 29th November 2021

Objective

The NSX Edge load balancing service spreads traffic from a specified public or private IP accross several defined VMs in your infrastructure.

This guide explains how to setup the NSX Edge Load Balancer

Requirements

Instructions

Interface access

In the vSphere interface menu, go to the Networking and Security dashboard.

Menu

On the left side, navigate to the NSX Edges section then click on the appliance you're setting up.

NSX

The Load Balancer tab shows the status of the service and its basic configuration.

Global Configuration

In the Global Configuration tab, click on Edit.

Global

Enable options as needed:

  • Load Balancer: global service.
  • Acceleration: enabled, Load Balancer engine works at layer 4 (faster) vs layer 7 if disabled.
  • Logging: capture logs for the service (log level to be set as intended).

Click Save when ready.

Global

The service is now active.

Service Monitor

A service monitor defines health check parameters for a particular type of network traffic. When you associate a service monitor with a pool, the pool members are monitored according to the service monitor parameters.

By default, three monitors are set up in the NSX Edge:

  • TCP
  • HTTP
  • HTTPS

In the Service Monitoring tab, click + Add.

Monitor

Set a name and choose the type of monitor you are setting up. You can customize Interval, Timeout and Retries as well.

Click Add.

Monitor

Your monitor is added to the list.

Application Profiles

An application profile defines the behavior of a particular type of network traffic. After configuring a profile, you associate the profile with a virtual server. The virtual server then processes traffic according to the values specified.

In the Application Profiles tab, click + Add.

Profiles

Set the type and name of the profile.
Set the other options in regards to the type chosen.

Two settings of note:

  • Persistence allows session data tracking by cookie or source IP
  • Inserting X-Forwarded-For HTTP header keeps the originating IP of a client connecting through the load balancer

Click Add.

Profiles

Your profile is now available.

Pools

A server pool manages load balancer distribution methods and has a service monitor attached to it for health check parameters.

In the Pools tab, click + Add.

Pools

Name the pool.

Select the Algorithm to apply:

  • IP-HASH selects a server based on a hash of the source IP address and the total weight of all the running servers
  • LEASTCONN distributes client requests to multiple servers based on the number of connections already on the server
  • ROUND_ROBIN uses each server in turn according to the weight assigned to it
  • URI hashes the left part of the URI and divides by the total weight of the running servers. The result designates which server receives the request. This ensures that a URI is always directed to the same server if no server goes up or down.
  • HTTPHEADER looks up the HTTP header in each HTTP request
  • URL looks up the argument in the query string of each HTTP GET request

Choose the Monitor to be used.

To make client IP addresses visible to the back-end servers, enable the Transparent option.

Pools

In the Members tab, + Add the servers that will be used for the pool.

Click Add.

Pools

Your pool is now ready for use.

Virtual Servers

A virtual server is an NSX Edge internal or uplink interface used to redirect traffic.

In the Virtual Servers tab, click + Add.

Virtual

Set all fields as needed using the previously created objects or using previously existing ones.

You can manually enter the IP that will be redirected or click Select IP Address.

Virtual

Select the vNIC and IP if you did.

Click OK then Add.

Virtual

Your virtual server is now active.

Application Rules

An application rule is a server-side script using the HAProxy syntax to manipulate and manage traffic.

In the Application Rules tab, click + Add.

Rules

Name your rule and copy your script.

Click Add when done.

Rules

You can now apply the rule in the Advanced section of your Virtual Server.

The Load Balancer is now fully configured.

Done

Go further

Join our community of users on https://community.ovh.com/en/.


Questa documentazione ti è stata utile?

Prima di inviare la valutazione, proponici dei suggerimenti per migliorare la documentazione.

Immagini, contenuti, struttura... Spiegaci perché, così possiamo migliorarla insieme!

Le richieste di assistenza non sono gestite con questo form. Se ti serve supporto, utilizza il form "Crea un ticket" .

Grazie per averci inviato il tuo feedback.


Potrebbero interessarti anche...

OVHcloud Community

Accedi al tuo spazio nella Community Fai domande, cerca informazioni, pubblica contenuti e interagisci con gli altri membri della Community OVHcloud

Discuss with the OVHcloud community

Conformemente alla Direttiva 2006/112/CE e successive modifiche, a partire dal 01/01/2015 i prezzi IVA inclusa possono variare in base al Paese di residenza del cliente
(i prezzi IVA inclusa pubblicati includono di default l'aliquota IVA attualmente in vigore in Italia).