Skip to content

Load balancer configuration

1. Create targets

You should create 2 target groups for port 80 and port 443 Go through the following steps for each target group

  1. Go to EC2 > Target groups and press Create target group button
  2. Choose Instances as target type
  3. Provide Target group name:
  4. bl-ingress-80
  5. bl-ingress-443
  6. Choose TCP protocol and the following ports for each target group:
    80 - bl-ingress-80
    443 - bl-ingress-443
    
  7. Select the same VPC as for you EC2 instance
  8. Use TCP health check
  9. Press Next button
  10. Choose instance with backendless pro
  11. Press Include as pending bellow button
  12. Press Create target groupbutton

At the end your target page should look like the on the following screen

2. Create Load balancers

You should create Network Load Balancer. Go through the following steps for each load balancer

  1. Go to EC2 > Load balancers and press Create load balancer button
  2. Use Network Load Balancer type
  3. Provide Load balancer name
  4. bl-ingress
  5. Use Internet-facing as schema
  6. Use IPv4
  7. Choose Network mapping and Security groups
  8. For Listeners and routing and routing use TCP protocol:
  9. Press Create load balancer button

At the end your Load balancers page should look like the on the following screen

3. Create domains

  1. Go to Route 53 > Hosted zones > your-domain.com
  2. Press Create record button
  3. You should create 3 subdomain
  4. bl-api
  5. bl-console
  6. bl-rt
  7. Choose CNAME as record type
  8. Provide load balancer DNS name as Value
  9. Press Create records button

4. Configure domain in Pro Manager

Adding Let's Encrypt issuer

  1. Access the Backendless Pro Manager:

    • Open your preferred web browser.
    • Navigate to the Backendless Pro Manager interface by entering http://<public-ip>:5050 in the address bar. Replace <public-ip> with the actual public IP address of your Backendless Pro installation.
  2. Navigate to the SSL Certificate Section:

    • In the Backendless Pro Manager, find and click on the Configuration tab in the top menu.
    • Select Domains and then choose Ingress > Certificates. You'll be directed to the Certificates page, which allows for the management of SSL certificates.
  3. Add a New Certificate:

    • Click on the Add button to begin the process of creating a new Let's Encrypt issuer.
    • You will be prompted to provide your email address. This is for the Let's Encrypt issuer, which uses it to notify about certificate renewals and important account updates.

Configuring Domain Ingress

After securing your application with an SSL certificate, the next step is to configure domain ingress settings to ensure your application is accessible and secure.

  1. Access Ingress Settings:

    • Within the Configuration section of the Backendless Pro Manager, navigate to Domains > Ingress > Ingress.
    • This page allows you to configure how external traffic is routed to your services.
  2. Create a New Ingress Configuration:

    • Press the Create button to save your new ingress configuration. This action saves the configuration to both the Backendless config values and the Kubernetes ingress.
  3. Apply Configuration:

    • To finalize the ingress settings, press the Apply button. This will restart all dependent Backendless Pro services to ensure the new configuration is active.

Verifying Server Status

Ensuring that your Backendless Pro services are up and running is crucial for the smooth operation of your application.

  1. Check Server Status:

    • Navigate to Server status > All within the Backendless Pro Manager.
    • This page displays a comprehensive list of all Backendless processes and their current status.
  2. Confirm Service Availability:

    • Wait until the status of all processes changes to Running. This may take a few moments as the system applies the new configurations and restarts services.