The balancer starts along with the instance of the server if the load_balancing_enabled=true parameter is set in the flashphoner.properties configuration file.
The balancer uses the loadbalancing.xml config during operation.
For correct operation of the balancer it is required that every instance correctly provided data about its load and calls via HTTP. A special HTTP URL is used for that: http://192.168.1.5:8081/?action=stat, where 192.168.1.5 is the IP address of the WCS server.
Main parameters that are taken into account when choosing a server:
- calls (mode="FEWESTCALLS")
- systemCpuLoad (mode="LEAST_LOADED_NODE")
The rest of the returned information is supplemental and has no effect on the choice of a server during load balancing.
You can also create your own load balancer that will query servers and choose the most preferable one based, for example, on the nearest geo location.