Hi, I am developing a load balancing algorithm in java. On my system there will be one node node and a list of subordinate nodes, where the master node will propagate the incoming request to one of its slave nodes. I want to find the CPU load (as a percentage of the CPU used) in each of the subordinate nodes. So that the node wizard can efficiently distribute the request to one of its least loaded node slaves. Can anyone suggest me how we can find him.
The getSystemLoadAverage() method in JMX
can be used to find the processor load of the current system. Is it possible to use the same method to find the load in the subordinate too .. If possible, suggest me how we can find it. If this is not possible, offer me another way to do the same. I will be more grateful if someone provides you with the correct answer.
source share