Konfiguration von NSX Edge Loadbalancer (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/.


Haben Ihnen die Anleitungen geholfen?

Bevor Sie Ihre Meinung abgeben, nehmen wir gerne Ihre Vorschläge auf, wie wir diese Dokumente verbessern können.

Woran liegt es? An den Bildern, dem Inhalt oder Aufbau der Anleitungen? Schreiben Sie es uns gerne, dann machen wir es zusammen besser.

Ihre Support-Anfragen werden in diesem Formular nicht entgegengenommen. Verwenden Sie hierfür bitte das Formular "Ein Ticket erstellen" .

Vielen Dank. Ihr Feedback wurde gesendet.


Diese Anleitungen könnten Sie auch interessieren...

OVHcloud Community

Besuchen Sie Ihren Community-Bereich und tauschen Sie sich mit anderen Mitgliedern der OVHcloud Community aus. Hier können Sie Fragen stellen, zusätzliche Informationen finden und eigene Inhalte veröffentlichen.

Tauschen Sie sich mit der Community aus

Alle Preise verstehen sich inklusive der gesetzlichen Mehrwertsteuer.

In Übereinstimmung mit der Richtlinie 2006/112/EG in der geänderten Fassung können die Preise ab 01.01.2015 je nach Wohnsitzland des Kunden variieren
(die Preise in den Angeboten verstehen sich inklusive der gesetzlichen Mehrwertsteuer für die Bundesrepublik Deutschland).