How to maintain same session in clustering environment in cq.. | Community
Skip to main content
October 16, 2015
Solved

How to maintain same session in clustering environment in cq..

  • October 16, 2015
  • 2 replies
  • 905 views

While accessing a link through web server, sling request going to one server(lets say server1) but the service call through ajax(which is defined in jsp of server1) going to another server(server2). Due to this it is taking time to update data at a time in all servers. By making ajax call to server1 itself hope we can overcome this issue. Could anyone please suggest me a way to maintain the same session so that both the calls with same server.

Thanks in advance.

 

Regards,

Sreenu

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by PaulMcMahon

It sounds like you need to enable sticky sessions. I don't know what your infrastructure set up looks like so you may only need to do this for the load balancers in front of your web servers, or you may also need to implement them between the web servers and the publish servers. 

2 replies

smacdonald2008
Level 10
October 16, 2015

There is a lot of information covered in this AEM topic:

http://dev.day.com/docs/en/crx/current/administering/cluster.html

Hope this helps

PaulMcMahonAccepted solution
Level 8
October 16, 2015

It sounds like you need to enable sticky sessions. I don't know what your infrastructure set up looks like so you may only need to do this for the load balancers in front of your web servers, or you may also need to implement them between the web servers and the publish servers.