Forum Discussion

calvin_88894's avatar
calvin_88894
Icon for Nimbostratus rankNimbostratus
Jan 12, 2010

A Special issue for web application server balancing in production environment

Hi, We have 30 clients and 3 web application servers for a pack operation in production environment.

 

Our application got concurrent problem cannot be fixed at the moment.

 

So We'd better to keep no more that 10 clients connect to one web server.

 

We are using F5 round robin mode to balancing. It will be 10 client on each server at start, but if one client restart.

 

It will distribut to another web server. Or if one server down. All 10 clients will distribute to another two servers.

 

In 24 hours production environment. Client will not restart except any issue happened. Is there any solution for this kind of issue with F5? Please help.

 

2 Replies

  • Hi Calvin,

     

     

    There are a few example iRules which limit the number of client IP addresses or the number of HTTP sessions to a VIP at a given time. You can search the Codeshare page for the word "limit" to find them:

     

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules.CodeShare

     

     

    It sounds like you want to limit the number of HTTP sessions from a source IP address to one and that you want to ensure the pool member with the lowest number of sessions is the one which receives new sessions. You can get close to this type of functionality using least connections load balancing and an iRule like this:

     

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/HTTPSessionLimit.html

     

     

    Aaron
  • hi,Thanks hoolio. You are right. I just wanna find a way to make sure 10 clients for each web server. even any client restart,It will still find out the node with least num of clients (ip).

     

    But if any server down. I still need those clients can be fail over to another 2 servers.