Bandwidth limit using iRule

I’m having a problems with bandwidth limits using rate shaping on BIG-IP LTM. I want to configured rate shaping for one HTTP Service that has three websites on single server IIS6. Example with domains and bandwidth limit as following:

www.abc1.com has a bandwidth is 300K;

www.abc2.com has a bandwidth is 500K;

www.abc3.com has a bandwidth is 1M;

Must I write a irule program? But I haven’t had a experience with iRule yet. So please help me the way to I can do it.->thanks so much.

Hello,

You could use an iRule that inspects the HTTP host header value and applies a rateclass to the request. Here is an example:

switch -glob [string tolower [HTTP::host]] {
   www.abc1.com* {
      rateclass class_200K
   }
   www.abc2.com* {
      rateclass class_500K
   }
   www.abc3.com* {
      rateclass class_1M
   }
   default {
      rateclass class_200K
   }
}

Wiki page on rateclass

Click here

Post: iRules for rate shaping

Click here

Aaron

can i send the request to a pool after applying the rate class ?

does this look lke it’ll work ?

www.abc3.com* {

rateclass class_1M

pool abc3_pool

}

Hi Puli,

Sure that should work.

Aaron