Forum Discussion

marlon_Gino-gi1's avatar
marlon_Gino-gi1
Icon for Nimbostratus rankNimbostratus
Jan 08, 2007

load balance based on CPU load of the backend server

hello Guys,

 

 

is it possible to create an Irule that will monitor or check the CPU utilization of the backend servers,if one of the backend server's cpu utilization reached 80%, the LTM should no longer send client request to that particular server that already reach 80% of Cpu utilization.

 

 

I know that there is an option on the LTM to monitor the cpu via the snmp_dca monitor and sets the dynamic ratio load balancing on the pool, but it doesn't achive the requirements of my customer since it still sends traffic on the backend server eventhough it already exceeds the threshold set on the snmp_dca monitor for the CPU.

 

 

 

thanks in advance.

 

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    This solution would be something that you would want to implement via iControl, not iRules, since iRules aren't able to monitor anything outside of the BIG-IP.

     

     

    With an iControl solution you could easily write code to monitor the utilization of your back-end systems, and then have the script use iControl to change the behavior of the BIG-IP based on that.

     

     

    Colin
  • hello Colin

     

     

     

    thanks for your reply, can you give me some idea how am i going to do it using icontrol? or it would be better if there are sample documents there.

     

     

    regards,
  • Don_MacVittie_1's avatar
    Don_MacVittie_1
    Historic F5 Account
    Hey spherehead,

     

     

    There are samples in the iControl SDK ( http://devcentral.f5.com/Default.aspx?tabid=31 ) that should help you get started.

     

     

    Good luck, and let us know how it's going!

     

     

    Don.
  • Interesting to know about iControl.

     

    How easy to add(or install) this iControl Client application to the client Server/Node ?

     

    And also how easy to setup F5 to decide to pass the request to right Server/Node based on the iControl service which fetches CPU utilization & Memory usage of each servers and report to F5 ?