uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

4.5.4 Definition for distributing requests by the POST data size

The following workers that are used for distributing requests by the POST data size are already defined in a standard workers.properties file.

#worker.list=postsizelb1
#worker.postsizelb1.type=post_size_lb
#worker.postsizelb1.post_size_workers=worker1, worker2
#worker.postsizelb1.default_worker=worker1

Set the type of the worker in worker.postsizelb1.type. In worker.postsizelb1.post_size_workers, set the worker process name of the POST request-forwarding worker that forms the target of distribution. In worker.postsizelb1.default_worker, set the default worker. In workers.properties, define post_size_lb in the worker type, worker1 and worker2 in the POST request-forwarding worker, and worker1 in the default worker as postsizelb1.

This definition is, however, described as a comment. Therefore, when using the POST request-distributing worker of this definition, delete the hash mark (#) at the beginning of the applicable line in workers.properties.

Specify the POST data size for distributing the request in the post_data parameter of the worker definition in workers.properties.

For example, use the postsizelb1 definition that is provided by default to define the following POST data size in the 2 POST request-forwarding workers named worker1 and worker2 respectively:

In this case, the requests of size less than 100 MB are distributed to worker1 and the requests of size between 100 MB to 200 MB are distributed to worker2. If the request-distributing worker distributes a request of size 200 MB or more, the request is forwarded to worker1 that is set as the default worker.