Load Balancing Model
A Load Balancer is a logical target name that contains one or more backend Targets. A Service uses the Load Balancer name as its Host, and incoming traffic is distributed to the registered Targets according to the selected algorithm and weight.
Use this model when the same API runs on multiple hosts or ports and traffic must be distributed without changing the public Route.
Route → Service → Load Balancer → Target. Changing Target membership does not require changing the public Route.
Create a Load Balancer
- Open Load Balancers and select Create Load Balancer.
- Enter a unique name containing at least three characters. Letters, numbers, hyphens and underscores are accepted.
- Select Round Robin, Least Connections or Consistent Hashing.
- Enter the slot count. The accepted range is 10 through 65536 and the default is 10000.
- Add optional comma-separated tags and select Create.
| Algorithm | Distribution behavior | Use when |
|---|---|---|
| Round Robin | Distributes requests across Targets in rotation. | Targets have similar capacity and requests have similar cost. |
| Least Connections | Prefers the Target with fewer active connections. | Request duration varies and long-lived connections are common. |
| Consistent Hashing | Uses a stable hash-based distribution strategy. | Requests should tend to reach the same Target for a selected hash input. |
Add and Manage Targets
- Open the action menu of a Load Balancer and select Manage Targets.
- Enter the backend as host:port, for example 10.20.0.15:8080.
- Enter a Weight from 0 through 1000. The default is 100.
- Add optional tags and save the Target.
- Review the Target list and its Healthy, Unhealthy or Unknown state. Health information refreshes every ten seconds.
- Use the Target action menu to mark it Healthy or Unhealthy manually, or delete it when it must no longer receive traffic.
A weight of 0 keeps the Target record but prevents it from receiving normal weighted traffic. Use it deliberately and verify behavior after the change.
Connect a Service to a Load Balancer
- Copy the Load Balancer name from the list.
- Create or edit the Service using Manual Configuration.
- Enter the Load Balancer name in Host and set the protocol, port and optional path expected by the backend Targets.
- Save the Service without changing its public Routes.
- Send repeat test requests and review Target health and Monitoring data.
The Service remains reachable through the same Route while eligible Targets receive traffic according to the configured algorithm and weight.
Create a Certificate
- Prepare the PEM-encoded public certificate and its matching private key.
- Open Certificates and select Create Certificate.
- Paste the certificate into Cert and the private key into Key.
- Optionally enter an alternate certificate and alternate key as a matching pair.
- Optionally enter comma-separated SNI names and tags, then save the Certificate.
- Protect the private key source and remove temporary copies created during the operation.
| Field | Requirement | Expected format |
|---|---|---|
| Cert | Required | PEM certificate beginning with -----BEGIN CERTIFICATE-----. |
| Key | Required | PEM private key that matches Cert. |
| Cert Alt | Optional | Alternate PEM certificate. |
| Key Alt | Optional | Private key matching Cert Alt. |
| SNIs | Optional | Comma-separated domain names associated with the Certificate. |
| Tags | Optional | Comma-separated organizational labels. |
Manage SNI Records
- Open the SNI module and select Create SNI.
- Enter the exact domain name used by clients during the TLS handshake.
- Select an existing SSL Certificate from the list.
- Add optional tags and save the SNI record.
- Verify that the domain resolves to the intended endpoint and that clients receive the selected certificate.
An SNI record requires an existing Certificate. Create and validate the Certificate before associating the domain name.
Configure CA Certificates and Upstream TLS
- Add the trusted PEM-encoded CA certificate. A SHA-256 certificate digest and tags are optional.
- Save the record and copy its ID from the CA Certificates list.
- Open the target Service and expand Advanced Configuration.
- Enter one or more comma-separated CA Certificate IDs.
- Enable TLS Verification and save the Service.
- Send a test request and confirm that the TLS connection succeeds only for a certificate trusted by the configured CA records.
Load Balancing and TLS Troubleshooting
| Problem | Likely cause | What to do |
|---|---|---|
| A Target cannot be added. | The address is not in host:port format or the weight is outside 0–1000. | Correct the address and weight, then retry. |
| A Target remains Unknown. | Health information is unavailable or no successful state has been reported. | Refresh after ten seconds, verify connectivity and review the target health endpoint configuration. |
| Traffic is not distributed as expected. | The Service Host does not equal the Load Balancer name or weights differ. | Check the Service Host, algorithm, Target weights and health states. |
| A Certificate cannot be saved. | Cert or Key is missing or the PEM content is incomplete. | Paste the complete matching certificate and private key blocks. |
| Clients receive the wrong certificate. | The SNI name is missing, incorrect or associated with another Certificate. | Compare the requested domain with the SNI record and selected Certificate. |
| The Service reports a TLS error. | The CA chain, target hostname or certificate validity is incorrect. | Verify the CA Certificate IDs, hostname and certificate dates. |