uCosminexus Application Server, Web Container Functionality Guide
The following load balancer is already defined in a standard workers.properties file.
#worker.list=loadbalancer1 #worker.loadbalancer1.type=lb #worker.loadbalancer1.balanced_workers=worker1, worker2 |
Set the type of the worker in worker.loadbalancer1.type. Set the name of the worker process to which the request is to be distributed in worker.loadbalancer1.balanced_workers. In workers.properties, lb and worker1, worker2 are defined respectively as loadbalancer1.
This definition is, however, described as a comment. Consequently, when using the above-mentioned load balancer, delete the '#' (hash mark) present at the beginning of the corresponding rows of workers.properties.
You can define the ratio of request distribution in lbfactor parameter of each worker definition that is the distribution target. Larger the lbfactor, larger is the ratio of requests transferred to the worker process.
For example, when requests are distributed to two worker processes, namely worker1 and worker2, the ratio of request distribution is defined as follows in the lbfactor parameter of the worker definition:
In this case, worker1 is in charge of double the number of Web clients of worker2.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.