Is it possible to query the current data rate (bps) through a virtual server, or to a pool or node using an iRule?
The reason I ask is this. We’re trying to configure a setup where we have 2 virtual servers, A and B. They both share the same upstream bandwidth but A is more important than B. We would like to apply rate shaping like this:
A - Can use all but 10 Mbs of the available bandwidth.
B - Is guarenteed 10Mbs but can use any available bandwidth that A is not using.
I have tried to implement this using the standard rate shaping functionality by putting A as B’s parent class. However when B is under load it will take bandwidth from A regardless of whether A is using it or not.
If it is possible to query current rates through a VS it should be possible to apply some rules to change the applied rate shapes dynamically and thus achieve what I’m after.
Any thooughts or should I be looking at doing this a different way?