Forum Discussion
hooleylist
Jul 05, 2011Cirrostratus
Hi Jucao,
You can create a string datagroup with the URIs and then use the class command (v10) or the matchclass command (v9) to do the lookup. You can use the rand function to do ratio load balancing between the pools. For requests sent to cjj pool, you can set a cookie and check for that cookie before selecting between the pools. Cookie insert persistence would not work for this scenario as default persistence ensures persistence within a single pool.
Here are a few related links:
http://devcentral.f5.com/wiki/default.aspx/iRules/class
http://devcentral.f5.com/wiki/default.aspx/iRules/matchclass
http://devcentral.f5.com/wiki/default.aspx/iRules/ratio_load_balancing_using_rand_function.html
http://devcentral.f5.com/wiki/default.aspx/iRules/http__cookie
Aaron