Create a Linode account to try this guide with a $ credit.
This credit will be applied to any valid services used during your first  days.

This guide walks you through creating a NodeBalancer through the Cloud Manager.

  1. Open the Create NodeBalancer Form in the Cloud Manager
  2. Set the Label
  3. Select a Region
  4. Add and Configure Ports
  5. Set Up Health Checks for Each Port
  6. Add Backend Nodes to Each Port
  7. Deploy the NodeBalancer

Open the Create NodeBalancer Form in the Cloud Manager

Log in to the Cloud Manager and select NodeBalancers from the left navigation menu. Click the Create NodeBalancer button. This opens the NodeBalancer Create form.

Set the Label

Within the Label field, enter the label you wish to use to identify it from other NodeBalancers on your account. A good label should provide some indication as to what the NodeBalancer will be used for. The label must be alphanumeric, between 3 and 32 characters, and unique from other NodeBalancer labels on your account.

Select a Region

Select the region where the NodeBalancer will reside. Regions correspond with individual data centers, each located in a different geographical area. Select the region where you’ve deployed the Compute Instances you intend on using with this NodeBalancer. If you haven’t yet deployed Compute Instances or chosen a region, select the region closest to you and/or your customers. This helps reduce latency and can make a significant impact in connection speeds and quality.

Add and Configure Ports

To start load balancing traffic, you need to define which ports the NodeBalancer should listen to and how the incoming traffic should be routed to the backend nodes. These ports can be configured within the NodeBalancer Settings area. By default, a single port configuration is visible in this area. Additional ports can be added by clicking the Add another Configuration button. See Configuration Options for more details regarding each of these settings.

  • Port: Enter the inbound port the NodeBalancer should listen to. This can be any port from 1 through 65534 and should align with the port the client connects to. See Configuration Options > Port.
  • Protocol: Select TCP, HTTP, or HTTPS. For many applications, using TCP offers the most flexibility and allows for TLS pass through. Using HTTP and HTTPS offers some additional NodeBalancer options and allows for TLS termination. See Configuration Options > Protocol.
  • Proxy Protocol: Only visible when the TCP protocol is selected. Used for sending the client IP address to the backend nodes. See Configuration Options > Proxy Protocol.
  • Algorithm: Controls how new connections are allocated across backend nodes. See Configuration Options > Algorithm.
  • Session Stickiness: Controls how subsequent requests from the same client are routed when selecting a backend node. See Configuration Options > Session Stickiness.
Note
For most web applications, it’s common to configure two ports: port 80 and port 443.

Set Up Health Checks for Each Port

Each port can optionally be configured with health checks. These health checks either proactively query the backend nodes (active) or monitor the existing traffic to backend nodes (passive). If a health check determines that the backends aren’t responsive or are encountering another issue, they can be marked as down and taken out of rotation.

Add Backend Nodes to Each Port

Load balancers work by distributing traffic to a pool of servers. For NodeBalancers, these servers are Linode Compute Instances and they are configured as backend nodes. Within the Backend Nodes area of the creation form, add each Compute Instance you intend on using with this NodeBalancer, making sure to select the correct private IP address for the NodeBalancer and the port that the application is using. For information on configuring backend nodes, see the Configure Backend Nodes (Compute Instances) guide.

Deploy the NodeBalancer

Once you’ve adjusted the settings to fit your needs, review the NodeBalancer Summary section and click the Create NodeBalancer button. The NodeBalancer should be provisioned within a few minutes.

This page was originally published on


Your Feedback Is Important

Let us know if this guide was helpful to you.