Support of Session affinity in membrane proxy 4.1

35 views
Skip to first unread message

Sachin Garg

unread,
Jan 16, 2017, 4:40:47 AM1/16/17
to membrane-monitor
Hi Team,

We are using Membrane Proxy version 4.1 as reverse proxy in our system.

Just now, we got a requirement of managing session affinity in service proxy for multiple nodes.

1) let us know if that is possible.
2) if yes, how we can achieve it.


Regards,
Sachin Garg

Sachin Garg

unread,
Jan 16, 2017, 6:19:53 AM1/16/17
to membrane-monitor

Please if you can respond on it urgently, that will help!!

we need to provide some fix in system.

Regards,
Sachin Garg

Thomas Bayer

unread,
Jan 16, 2017, 3:24:34 PM1/16/17
to membrane...@googlegroups.com

Hi Sachin,

1.) Yes

2.)

See:

https://www.membrane-soa.org/service-proxy-doc/3.5/configuration/reference/balancer.htm

Use the jSessionIdExtractor or the xmlSessionIdExtractor.

Have a look at the examples/loadbalancer-session-3 sample.

Cheers,
Thomas



Am 16.01.17 um 10:40 schrieb Sachin Garg:
--
You received this message because you are subscribed to the Google Groups "membrane-monitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to membrane-monit...@googlegroups.com.
To post to this group, send email to membrane...@googlegroups.com.
Visit this group at https://groups.google.com/group/membrane-monitor.
For more options, visit https://groups.google.com/d/optout.

Sachin Garg

unread,
Jan 16, 2017, 11:08:12 PM1/16/17
to membrane-monitor
Hi Thomas,

Thanks for your reply.

just need to ask some more points on it.

1) if i mention jSessionIdExtractor in balancer, will that be sufficient to have session affinity in between nodes.below is the proxy.xml which i understood to make session affinity works:

<serviceProxy name="ServiceProxy1" port="2001">

                                <balancer name="Balancer1">

                                                <jSessionIdExtractor />

                                                <clusters>

                                                                <cluster name="Cluster1">

                                                                                <node host="localhost" port="8080"/>

                                                                                <node host="ESEKAVDAHP0067" port="8180"/>

                                                                </cluster>

                                                </clusters>

                                                <roundRobinStrategy/>

                                </balancer>

                </serviceProxy>

Thomas Bayer

unread,
Jan 19, 2017, 3:25:02 AM1/19/17
to membrane...@googlegroups.com

Yes, if you have a Java Server that uses the JSESSIONID cookie.


Am 17.01.17 um 05:08 schrieb Sachin Garg:

Sachin Garg

unread,
Jan 19, 2017, 4:09:06 AM1/19/17
to membrane...@googlegroups.com
in case. jsessionId dosn't come and we have tag<  <jSessionIdExtractor />, how the balancer will behave

1) will it throw any error?


To unsubscribe from this group and stop receiving emails from it, send an email to membrane-monitor+unsubscribe@googlegroups.com.
To post to this group, send email to membrane-monitor@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "membrane-monitor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/membrane-monitor/XIDgvjMLfYQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to membrane-monitor+unsubscribe@googlegroups.com.
To post to this group, send email to membrane-monitor@googlegroups.com.

Thomas Bayer

unread,
Jan 19, 2017, 4:43:41 AM1/19/17
to membrane...@googlegroups.com

I will not be session aware. If you have a different Cookie you can implement the Extractor interface. A generic cookie extractor would be great.

Cheers,
Thomas


Am 19.01.17 um 10:09 schrieb Sachin Garg:
Reply all
Reply to author
Forward
0 new messages