Skip to content

Latest commit

 

History

History

loadbalancing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Loadbalancing APIs

Membrans loadbalancer supports a variety of setups from a simple static configuration up to dynamically managed nodes in the cloud.

Examples

Each sample add a new aspect to the previous one. You can start with sample 1 and go on from there.

Sample Description
Static Simple setup using a static configuration of backend nodes.
[Dynamic with UI] Managing nodes of the cluster in the Web console.
Dynamic with client Managing nodes using the commandline
XML Session Sticky session with XML and Web Services
Multiple Run multiple loadbalancers in one Membrane installation

|loadbalancer-basic-1|By using the LoadBalancerInterceptor you can balance requests to a number of different nodes.| |loadbalancer-client-2|In the previous example we set up a load balancer with 3 nodes. We used a URL based interface to register the nodes with the balancer. That interface can be called from a simple client that supports encrypted parameters.| |loadbalancer-multiple-4|This example shows how to use multiple load balancers (LBs) within the same Membrane API Gateway instance, and how to statically configure your nodes within. You should be familiar with loadbalancer-basic-1 and loadbalancer-static.| |loadbalancer-session-3|The LoadBalancerInterceptor can be configured to look for session ids in requests and responses. When the LoadBalancerInterceptor finds a new session id, the balancer will associate the session with the node that has received or sent the message. If the session id is detected again in another message the message will be forwarded to the associated node.|