Distributing Traffic in a HyperServer Cluster

This task is handled automatically by HyperServer. You only need to make some small adjustments to make sure each server in the cluster will receive a balanced load. Each ServerNode is capable of handling a maximum number of Nodes. This is determined by the max_nodes parameter which is adjusted in the CFG file. Based on this max_nodes parameter the master HyperServer will decide how to distribute the traffic among ServerNodes.

Consider a scenario where you have a cluster with 4 ServerNodes with the following max_nodes parameters:

ServerNode
Node Id
Max Nodes

0

10240

24

1

10250

24

2

10260

32

3

10270

64

Also assume that the master HyperServer will not serve any local Nodes (i.e., its max_nodes parameter is set to 0). Its only role is to distribute traffic.

Based on these parameters ServerNodes 0 and 1 will receive 17% of the traffic. That is how it is calculated:

24 / (24 + 24 + 32 + 64) = 0.166 ~ 0.17

Likewise, ServerNode 2 will receive 22% and ServerNode 3 will receive 44% of the traffic.

So you need to assign a proper max_nodes parameter to each ServerNode. You can decide based on the server specifications, amount of RAM and number of served applications to calculate this parameter. For example, if one ServerNode is dedicated to a rarely used application it is better to limit its max_nodes accordingly.