Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

load balancing based on hattp clien data

omar_padilla
Altostratus
Altostratus

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?

2 REPLIES 2

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.

Regards,
Dario.

thank you man!