Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 8

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. 

View solution in original post

2 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Level 8

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.