A load balancer is needed for distributing requests coming to the gateway server from clients. This page will show you how to set up a load balancer server.
All the fields and their explanations are given in the below table:
|Operating System||The server’s operating system|
|Server Name||Unique server name|
|Host Name/ IP Address||Server’s host name or IP address|
|Port||Port number the server will service from|
|Log Level||Level of logging detail|
|Connection Settings for Install|
|Server Connection Type||How should we connect to the server|
|Installation Directory||Directory where the server should be installed in|
|Initial Memory||JVM minumum stack size in megabytes|
|Maximum Memory||JVM maximum stack size in megabytes|
|Worker Threads||The number of blocking threads in the thread pool. Should be at least 10 per CPU|
|Max Worker Threads||The maximum number of blocking threads in the thread pool. Usually same with Worker Threads count|
|Buffer Size||Cache buffer size|
|I/0 Threads||Number of IO threads. IO threads do non-blocking jobs and are responsible for multiple connections. It’s recomended to create 1 IO thread per CPU|
|Other Settings||Properties that are wanted in the start parameters of the load balancer server can be added here. The parameter should be saved as
Key value must start with “-D” if instance type is load balancer or gateway and with “-E” if instance type is log.Otherwise leave it blank for custom values.For example to set “-Xverboselog:myFile.txt” parameter to instance start script, put it only in “value” field and leave “key” field empty.Another example: To set “-Dlog4j.configuration=file:myFile.txt” parameter to instance start script, put “-Dlog4j.configuration” value to “key” field and put “file:myFile.txt” value to “value” field.
tuneMaxQueueSize and tuneMaxConcurrentRequest parameters can use as tune parameters for gateway and load balancer instances.tuneMaxConcurrentRequest parameter is used to increase handling max request size of gateway or load balancer instance. tuneMaxQueueSize is used to to add requests to the queue after the maximum request.For example ; the tuneMaxQueueSize can add to the servers with writing “-DtuneMaxQueueSize” to key field and writing “100” to value field.
|Log Balancer Settings|
|Max Request Time||Maximum time given for a request to be processed|
|Connections Per Thread||Connection count per thread|
|Rewrite Host Header||The host header is rewritten if this option is selected|
|Reuse X Forwarded||The x-forwarded value is reused if this option is selected|
There has to be at least one load balancer server in the system.