Forum Discussion
Direct traffic to pool member according to client connection by bytes
This is a strange requirement, but here goes:
I suspect you may have to do your own accounting.
For each connection, you can initiate
TCP::collect.
With no argument specified, the event
CLIENT_DATA will fire for every packet received, and you can count packets like that.
Otherwise, you can specify bytes, and the event will fire after the set number of bytes (at least) is received.
Once you've reached the counts you want then you can call
pool command to redirect the traffic accordingly.
On the small chance that you're at a service provider trying to do traffic accounting, I am almost certain there are more efficient ways of doing something like this at scale, and you should probably engage with a consultant or architect to evaluate.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com