Hi All,
I'm using WSO2 4.5.1 ESB in my project to balance load to my BE server
nodes.
I created a pass through proxy service calling a Load Balance Endpoint to
handle the request load by 2 BE nodes in a round-robin manner.
When I call the proxy service, although the expected BE response comes to
the out-sequence of my proxy service, only the HTTP response header is sent
back to the client.
LogMediator logs the full response from the BE, so the expected response
comes to the ESB, but the client only receives the HTTP response header
from the proxy-service.
When I enable wire log I can see that only the response header is sent to
the client as below;
[2015-02-10 18:29:36,101] DEBUG - wire << "HTTP/1.1 200 OK[\r][\n]"
[2015-02-10 18:29:36,101] DEBUG - wire << "Content-Type: text/plain;
charset=UTF-8[\r][\n]"
[2015-02-10 18:29:36,102] DEBUG - wire << "Server:
Jetty(7.x.y-SNAPSHOT)[\r][\n]"
[2015-02-10 18:29:36,102] DEBUG - wire << "Date: Tue, 10 Feb 2015 12:59:36
GMT[\r][\n]"
[2015-02-10 18:29:36,102] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"
[2015-02-10 18:29:36,102] DEBUG - wire << "[\r][\n]"
[2015-02-10 18:29:36,103] DEBUG - wire << "0[\r][\n]"
[2015-02-10 18:29:36,103] DEBUG - wire << "[\r][\n]"
Following is my proxy service configuration;
<proxy name="MyProxy"
transports="local https http"
startOnLoad="true"
trace="disable">
<target endpoint="lbendpoint">
<outSequence>
<log level="full"/>
<send/>
</outSequence>
</target>
</proxy>
<endpoint name="lbendpoint">
<loadbalance
algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
<endpoint name="s1">
<address uri="http://localhost:8080/enhancer"/>
</endpoint>
<endpoint name="s2">
<address uri="http://localhost:8082/enhancer"/>
</endpoint>
</loadbalance>
</endpoint>
Can anyone help me figure out what might be going wrong here?
Thanks,
Dileepa
[1] https://docs.wso2.com/display/ESB490/Load-balance+Endpoint
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev