Jump toUpdate content

Load Balancers - Quickstart

Reviewed on 31 December 2021Published on 26 May 2021

Load Balancers are highly available and fully-managed Instances which allow you to distribute your workload across your various servers. They ensure the scaling of all your applications while securing their continuous availability, even in the event of heavy traffic. Load Balancers are commonly used to improve the performance and reliability of web sites, applications, databases and other services.

Requirements:

How to create a Load Balancer

  1. Click Load Balancers in the Network section of the Scaleway Console side menu. If you have not already created a Load Balancer, the product creation page is displayed.

  2. Click Create a Load Balancer. The creation wizard displays.

  3. Complete the following steps in the wizard:

    • Enter the Load Balancer name and description. Optionally, you can assign tags to help organize your Load Balancers.

    • Choose the Availability Zone in which your Load Balancer will be deployed geographically. Currently we provide the following Availability Zones:

      • PAR1: Paris 1, France.
      • PAR2: Paris 2, France (innovative and sustainable availability zone).
      • AMS1: Amsterdam, The Netherlands.
      • WAW: Warsaw, Poland.
    • Select a Load Balancer type.

    • Select an IP address for your Load Balancer. You can either allocate a new IP, or select one of your existing IPs.

    • Configure the frontend and backend.

      • Configure frontend. Enter a name an a port for your frontend. The frontend will listen on this port, and forward received requests to the backend(s). Note that you cannot add an SSL certificate at this stage, but you can add one after creation of the Load Balancer.
      • Configure backend. Enter the following information for your backend:
        • Backend name
        • Protocol: select TCP or HTTP depending on your required usage. The protocol is used for data transmission between the frontend/s and backend/s.
        • Port: enter the port your backend will listen on.
        • Proxy: select a proxy protocol option from the list. Depending on the type of health check you choose, you are prompted for additional information, for example HTTP healthchecks require a method (GET, PUT or POST, a URI and a response code).
        • Server IPs: enter the IP addresses of each of your backend servers.
    • Configure advanced settings if required:

      • S3 failover: activate the feature and enter a Scaleway Object Storage Bucket Website URL. If none of your backend servers are available, users will be redirected to this page.
      Note:

      The S3 failover feature is only available for Load Balancers using the HTTP protocol on their backend. Find out more about setting up a static website with Object Storage in our dedicated documentation.

      • Sticky session: activate the feature and enter the name for a cookie that will bind users’ sessions to specific Instances.
  4. Click Create a Load Balancer.

Note:

You can add additional frontends and backends to your Load Balancer after its creation.

How to add frontends

  1. Click Load Balancers in the Network section of the Scaleway Console side menu. The Load Balancer dashboard displays.

  2. Click the Load Balancer you want to add frontends to. The Load Balancer information page displays.

  3. Click the Frontends tab.

  4. Click the green + button.

  5. Enter a name, port and SSL certificate(s) for your new frontend. Note that each frontend must listen on a different port.

  6. Choose between using an existing backend or creating a new backend.

    • If using an existing backend, click Use an existing Backend and select the backend of your choice from the dropdown list.
    • If creating a new backend, click Create a new Backend and enter a name, protocol, port proxy, health check type, server IP(s) and advanced settings as required.
  7. Click Create Frontend.

How to add backends

  1. Click Load Balancers in the Network section of the Scaleway Console side menu. The Load Balancer dashboard displays.

  2. Click the Load Balancer you want to add backends to. The Load Balancer information page displays.

  3. Click the Backends tab.

  4. Click the green + button.

  5. Enter a name, protocol, port, proxy, health check type, server IP(s) and advanced settings as required for your new backend.

  6. Click Create Backend.

How to delete a Load Balancer

  1. Click Load Balancers in the Network section of the Scaleway Console side menu. The Load Balancer dashboard displays.

  2. Click the Load Balancer you want to delete.

  3. Scroll down and click Delete Load Balancer.

    Important:

    This will permanently delete your Load Balancer and all your data will be lost. This action is irreversible.

  4. Type DELETE in the pop-up box.

  5. Tick the checkbox to delete the associated IP address.

  6. Click Delete this Load Balancer.