Forum Discussion
Ganesh_Ramamoor
Nimbostratus
Nov 30, 2005UDP iRule help
Can I write an iRule to distribute a UDP packet based on a specific set of bytes, say byte 10 to byte 20 is less than 100 use pool A, and if the same of set of bytes is between 100 to 200 use pool B a...
Ganesh_Ramamoor
Nimbostratus
Dec 01, 2005Great! Thanks.
So combining that with load balancing, I would do something like:
when CLIENT_DATA {
if { [UDP::payload 50] contains "XYZ" } {
pool xyz_servers
persist uie "[IP::client_addr]:[UDP::client_port]" 300
} else {
pool web_servers
}
}
This should pick one from xyz_servers the first time if the packet contains XYZ and then persist with that server for 300 seconds, is that correct? And within the 300 seconds, if the server that was picked had crashed, the subsequent request would go to another server like how the default load balancing works, right?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects