Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Load balancing based on SOAP Header

$
0
0

@mrenkine wrote:

I would need to load balance based on a soap header. I was able to use HTTP header using hdr(myHeader), but I can't figure out how to read an element in the body of the request.
Say my request has an XML containing the following:
<s:Envelope ><s:Header><id>123456</id> <s:Header > <s:Envelope >....
How can I get the value in id node to use it to create my hash for the load balancing ? Something like

frontend myFrontend
    capture request body id len 15
...
backend myBackend
    balance body(id)
    hash-type consistent

Any help will be appreciated!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>