Membrane can work as a software loadbalancer and distribute requests to a number of backend nodes organized in a clusters.
This sample shows a simple static configuration of nodes in the proxies.xml file. See the overview for more dynamic setups.
This example sets up a loadbalancer to distribute requests to 3 different nodes.
Execute the following steps:
- Go to the
examples/loadbalancing/1-staticdirectory. - Run
membrane.shormembrane.cmdin a terminal. - Open the URL:
http://localhost:8080
- Refresh the browser a few times.
You will notice that requests will be routed to node 1, 2 and 3.
See:
- balancer reference