0

I'm using 2 instances of WSO2 API Manager 1.8. Each instance is deployed on an Ubuntu instance and fronted with a HAProxy load balancer.

HAProxy -> 192.168.11.1
API Manager 1 -> 192.168.11.2
API Manager 2 -> 192.168.11.3

What I want to do is enable session replication for API Manager 1 and 2 instances, so that once an user is logged into API Manager 1 particular user will be automatically logged into API Manager 2 as well(session will be replicated in both instances). Otherwise there will be problems when user is logged into one API Manager instance and HAProxy redirect the user to other API Manager instace.

There is a guide for WSO2 Application Server but not for the API Manager.

How can I get it done?

Techie
  • 42,101
  • 38
  • 144
  • 232
  • By API Manager, you mean API Store/API Publisher, right? – Abimaran Kugathasan Mar 23 '15 at 09:14
  • Yes, I have separate API Store/API Publisher for each instance. What I want to do is sync API Store sessions so that users won't feel a difference whether it's API Manager 1 or 2. – Techie Mar 23 '15 at 09:18

1 Answers1

1

API manager doesn't support session replication itself .What you have to do is configure load balancer for session affinity (sticky session).Use JSESSIONID for sticky session.

Jenananthan
  • 1,191
  • 2
  • 9
  • 17
  • Thank you very much for the answer, Could you please point me a guide which helps to get it done? – Techie Mar 23 '15 at 11:15
  • http://blog.haproxy.com/2012/03/29/load-balancing-affinity-persistence-sticky-sessions-what-you-need-to-know/ – Jenananthan Mar 25 '15 at 09:17