-
How to calculate the load of a linux server?
Hi
I recently go through the some of the commands like uptime w and top commands but it just giving information such that servers load average for 1,5 1nd 15 mins respectively. But my question is can i use this for Dynamic load balancing concept?.
I tried in this way such that, i get the load average from all the necessary servers for every 1 minute and store it to one file (file is in NFS).this would running in infinite loop. and one more script that search this file and gives the IP address of the least load average. when ever the user/client request particular server then i execute this script and return the ip address which is currently less loaded...
But the thing is this logic is some thing like round robin fashion. means it becomes static load balancing. because the request from the users in particular time/minute goes to same server.
I need to modify this to Dynamic i mean at run time i has to take a decision.
there fore please any body wanted to give suggestions.. please drop here...
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks