For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Al-Mutlaq_21911's avatar
Al-Mutlaq_21911
Icon for Nimbostratus rankNimbostratus
Aug 26, 2015

direct traffic based on information from the XML request

Dear All,

 

I need a solution on IRULE for example to solve the following scenario:

 

I have 10 servers that will receive XML requests. the unique ID in each XML request will be a number such as:

 

965123239490

 

now I want to direct the traffic depends on the last digit on that number. So, the traffic in "if else" style will be as follow:

 

{ if request ends with digit 0 in the number --> send it to server 1 in case server 1 down --> send it to server 2 } if request ends with digit 1 in the number --> send it to server 2 in case server 2 down --> send it to server 3 } if request ends with digit 2 in the number --> send it to server 3 in case server 3 down --> send it to server 4 }

 

etc.....

 

appreciate your support on how to get this down using F5 LB.

 

Thanks in advance. Mohamed.

 

27 Replies