Forum Discussion
abachman_72712
Nimbostratus
Jul 31, 2009Traffic destined for certain port
New to working with iRules.
I need to write an iRule for Soap HTTP call. The HTTP traffic will need to go to a certain port listening on the server pool (IBM WebSphere JVM on port 9082)...
hoolio
Cirrostratus
Jul 31, 2009When the app sends the client a reference to the VIP, it should include the port of the VIP if it's not 80 for HTTP or 443 for HTTPS. It shouldn't matter for load balancing what is in the HTTP host header unless you specifically use an iRule to check the Host header value.
I'm not sure how your statement "traffic will need to go to primary server all the time unless that server is down" meshes with the iRule you've posted. That iRule would send all traffic with SoapAction in the Content-Type to one specific pool member and all other requests to the soap pool. The type of load balancing logic you refer to can be achieved using priority groups. You can check the LTM config guide for your version for details.
Also, the Content-Type header value will probably contain xml, like text/xml and there would be a header *named* SoapAction and it would have a value. Maybe you want to check for 'HTTP::header exists "SoapAction"?
Aaron
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
