How do I set Load Balancing Properties?
Load balancing properties can be set using com.pramati.naming.distributeload. The com.pramati.naming.distributeload takes the values of:
- VM: When a new IC is created in a VM, the client context attaches itself to one node in the cluster depending on Load Balancer. All subsequent IC are directed to this node.
- IC: Multiple InitialContexts within a VM are directed to different EJB nodes using round robin algorithm.
Note: The Load Balancer that runs in the cluster node is different. The client-based load balancer distributes IC in a round robin fashion.
- LOOKUP: This implies that a lookup based on each lookup of the IC is a sub-set of this option. Apart from alternating nodes for each new IC, each lookup of an EJBHome will be rotated.