Hi I want o divert rest api calls from external applications to a particular node. We are using F5 load balancer. I wrote a irule for this. Can someone certify whether it is correct or not?
rule divertingtraffic{
when HTTP_REQUEST {
if { [HTTP::host] equals"jira.charter.com"} {
if { [HTTP::uri] contains "/rest"} {
{pool/Common/normal}
}
}
if { [HTTP::host] not equals"jira.charter.com"} {
if { [HTTP::uri] equals "/login.jsp"} {
{pool/Common/normal}
}
}
else{
{pool/common/external}
}
}
}
Note: Pool normal contains (JIRA node 1,2,3, 4)
Pool external contains (JIRA node 5)
reference : https://confluence.atlassian.com/enterprise/traffic-distribution-with-atlassian-data-center-895912660.html