Load Balancers
How to configure load balancers for high availability in Sproobo
Load balancers distribute traffic across multiple servers for high availability and improved performance. Sproobo makes it easy to set up and manage load balancers.
What are Load Balancers?
Load balancers distribute incoming requests across multiple server instances to:
- Improve availability and redundancy
- Handle increased traffic loads
- Enable zero-downtime deployments
- Provide health checking and failover
Load Balancer Features
- Traffic Distribution: Distribute traffic across multiple servers
- Health Checks: Automatic health checking and failover
- SSL Termination: Handle SSL certificates at the load balancer
- Session Persistence: Maintain session affinity
- Automatic Scaling: Integrate with auto-scaling groups
Creating a Load Balancer
- 1
Navigate to Load Balancers
Go to Project → Load Balancers and click "Create Load Balancer".Navigate to Load Balancers to create a new load balancer. - 2
Configure Load Balancer
Configure your load balancer:- Name: A descriptive name for your load balancer
- Type: Choose HTTP/HTTPS or TCP load balancer
- Location: Select the Hetzner datacenter location
- Algorithm: Choose load balancing algorithm (round-robin, least connections)
Configure your load balancer settings. - 3
Add Target Servers
Select the servers or deployments to balance traffic across.Add servers or deployments as targets for the load balancer. - 4
Configure Health Checks
Set up health checks to monitor target servers:- Health Check Path: Endpoint to check (e.g., "/health")
- Interval: How often to check (e.g., every 10 seconds)
- Timeout: Timeout for health checks (e.g., 5 seconds)
- Unhealthy Threshold: Number of failures before marking unhealthy
Configure health checks for your load balancer. - 5
Create Load Balancer
Review your configuration and click "Create Load Balancer".Create your load balancer and start distributing traffic.
Load Balancing Algorithms
Available Algorithms
- Round Robin: Distribute requests evenly across all servers
- Least Connections: Send requests to server with fewest connections
- IP Hash: Route based on client IP for session persistence
SSL/TLS Termination
Load balancers can handle SSL/TLS termination:
SSL Features
- Automatic SSL: Automatic SSL certificates via Let's Encrypt
- Custom Certificates: Upload your own SSL certificates
- HTTP Redirect: Automatically redirect HTTP to HTTPS
- SNI Support: Server Name Indication for multiple domains
Next Steps
Now that you've configured a load balancer: