If you want to:
- 1.Scale out your application across multiple antlets
- 2.Allow access to your antlet from the outside world
- 3.Route traffic from one antlet to another when one fails or hangs
then load balancing is perfect for you!
Load Balancing is a feature on antMan that lets you distribute outside traffic across a set of antlets, called upstreams. Each upstream typically accomplishes the same task (e.g. serve static web content, service API requests).
As each database technology has its own version of multi-node/clustering, utilize the multi-node/clustering functionality for that database rather than a load balancer.
Navigate to the "Load Balancing" page from the sidebar. On this page, you will see a table that will show high-level details of each load balancing rule.
Click the "Create +" button, as shown below.
Fill out the form below, and click "Create Rule."
Test your load balancer by repeatedly visiting the Server URL (e.g.
my-balanced-page.local). As you repeatedly visit the URL, the load balancer will route the request to each of the different upstreams, taking into account the weight of each upstream.
To make changes to a load balancing rule, click the "Edit" button as shown below:
Once confirmed, the changes will take place immediately.
To delete a load balancing rule, click the "Delete" button as shown below:
Confirm deletion by clicking the button below that says "Yes, delete!"