02-Sep-2021 00:05
Hello experts, I have a question, is there a way to balance a traffic based on the payload of an http request? For example, inside an http message (not headers) there are some html tags that must be used to determine which pool member to use, is it possible?
02-Sep-2021 04:22
Hello Omar.
It's not the most efficient way to do it, but technically it's possible.
HTTP_REQUEST_DATA occurs before the loadbalancing decision (LB_SELECTED).
REF - https://clouddocs.f5.com/training/community/irules/html/class1/module1/iRuleEventsFlowHTTPS.html
You should use the HTTP::payload method to collect the payload in the HTTP_REQUEST event and then apply your logic inside the HTTP_REQUEST_DATA event.
REF - https://clouddocs.f5.com/api/irules/HTTP__payload.html
Regards,
Dario.
02-Sep-2021 10:28
thank you man!