SpringBoot multinode login ( homogenous cluster )

Hello !!

I am trying to setup a SpringBoot based Camunda cluster ( homogenous at this point), the app is deployed in AWS. When i am trying to access the BPM Webapp, I am being prompted with the login page multiple times and i am not able to login even after entering the creds multiple times.(the same app is working fine when deployed on a single node)
further debugging brought me to use either sticky session or session handling to overcome this, based on this blog i am inclined towards using the session handling https://blog.camunda.com/post/2019/06/camunda-bpm-with-session-manager/

Is there an springboot example project ( camunda + spring boot + redis cache (for session management)) which i can refer to check regarding how the session is being managed on multi node clusters ?


Hi @vasu.patnaik,

the Camunda Webapp uses a cookie based login mechanism (https://docs.camunda.org/manual/7.12/webapps/shared-options/cookie-security/). To make this work in a cluster behind a load balancer, configure the load balancer to use sticky sessions.

Using Round Robin, the next servet container didn’t know the session from the previous one and provide the login screen again.

Hope this helps, Ingo

1 Like

thanks @Ingo_Richtsmeier the solution worked out well ( setting sticky session on the load balancer ).