Forum Discussion
Irule help 302 + maintain URI
Round Robin load balancing would be fine. I suspect I have to do this via IRules.
I've got some ideas that I'll start testing out in QA but in the meantime, Suggestions greatly welcomed
Thanks,
Justin
- JustinS_88353NimbostratusI'm thinking something like the following snippet. I'm a total newb and haven't found any documentation yet. This would be where 10.1.1.[1-3] are pool members. being monitored. I'll test this out in the morning when I have some access, however I suspect this is close-ish. Is there anyway around editing the IRules anytime I want to add capacity? Is this even close to right?
- Chris_MillerAltostratusAre you looking for feedback on your design as well, or just on how to accomplish this?
when HTTP_RESPONSE { HTTP::header replace "Location" [IP::server_addr] }}
- Ben_95489NimbostratusHey Justin,
when HTTP_REQUEST { switch [LB::select] { "10.1.1.1." { HTTP::redirect "http://10.1.1.1[HTTP::uri]" } "10.1.1.2." { HTTP::redirect "http://10.1.1.2[HTTP::uri]" } "10.1.1.3." { HTTP::redirect "http://10.1.1.3[HTTP::uri]" } }
when HTTP_REQUEST { HTTP::redirect "http://[LB::select][HTTP::uri]" }
- The_BhattmanNimbostratusHi Justin,
It sounds like you want to load balance the requests but not have it handle the outgoing traffic. There is a technique called npath routing which sounds like it's what you need w/o putting in an iRule.
The nPath
method of traffic management increases outbound throughput because packets do not need to be transmitted to the BIG-IP system for translation and forwarding to the next hop.Check it out.
http://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip9_2solguide/BIG_IP9_2SolutionsGuide-03-1.html?sr=10627741
I hope this helps
Bhattman
- JustinS_88353NimbostratusBen,
- JustinS_88353NimbostratusA question for those of you watching. Also, links to any faqs or Docs would be great. Is LB::select able to be left undefined and it just inherits the pool ID from the pool it is assigned to?
- The_BhattmanNimbostratusHi Justin,
Thanks for the additional details about your requirement. Npath routing simply allows the return traffic (outbound) to bypass the F5. As the oubound traffic is your heaviest. If you need the same for inbound it can also be done. Remember inbound/outbound is all relative. From my understanding of your comments above, are you saying that your request traffic (inbound) is as large as the outgoing traffic (return traffic)?
Bhattman
- JustinS_88353Nimbostratuswhen HTTP_REQUEST {
- JustinS_88353NimbostratusWhen testing with curl use -L to follow new header redirects. Otherwise your test will appear to fail.
Recent Discussions
Related Content
* 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