You need Advanced Authentication Web servers for load balancing. It is not possible to estimate approximately the number of Web servers required for environments with X users. This is because, the estimation depends on factors such as the available hardware resources, number of users authenticating in a peak time, and the chains they authenticate with.
You can determine the optimal number of Web servers only with experimenting. It is recommended to identify the number of Web servers when the user’s activity is high. For example, when all users start their workday.
To determine the number of Web servers, perform the following steps:
Open the configuration console for the Web servers.
Press Alt+F9 to verify the CPU or memory load. If the Web servers are highly loaded during the peak time, add more Web servers.
Press Alt+F12 to verify the number of active connections. If some Web servers are more loaded than the others, it can be helpful to change weights. For nginx load balancer, you can do it in one of the following ways.
Changing weights:
upstream aucore443 {
server 192.168.108.32:443 weight=1;
server 192.168.108.33:443 weight=2;
server 192.168.108.34:443 weight=2;
}Using least_conn:
upstream aucore443 {
least_conn;
server 192.168.108.32:443;
server 192.168.108.33:443;
server 192.168.108.34:443;
}