Irule question

Is it possible to write an Irule that can redirect certain percent of traffic to different pools?

thanks

Si

I don’t think so. It only directs traffic depending on certain conditions like URI, CLient IP etc..

You can distribute traffic among different servers by configuring ratio based load balancing method or something similar.

Yes - you would either need a global counter (probably using a table - look at the

class

function) to send every nth request to a different pool, or use a random number generator like this example from the codeshare.

I am not able to think of the possible scenario when you would actually need this to be done.