How can I websudo under load balancer?

Diego Ferreira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2016

Hey,

I'm setting up a JIRA Data Center in AWS and an issue rose up

  • we can't use administration pages through load balancer - no error - just websudo login don't complete;
  • when connecting to a specific cluster node, it logs into wesudo, and we have no problem;

We are using ehcache.listener.hostName = <node-hostname> on cluster.properties file, because RMI was throwing UnknownHostException without it.

When I've tried setting

ehcache.listener.hostname = <load-balancer-hostname>

RMI couldn't connect to Load Balancer on 40001 due to connection refused. Setting a listener rule in the ELB for port 40001 made no changes on outcome.

Anyone have experienced something similar?

Thanks in advance

1 answer

1 accepted

3 votes
Answer accepted
Diego Ferreira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2016

If anyone encounters this issue, here is what we were missing...

Enable a Stickiness Policy on your listeners

http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html

Enable Stickiness with application cookie and set JSESSIONID as Cookie Name.

Hope this helps,

Suggest an answer

Log in or Sign up to answer