JIRA datacenter Load Balancer

Hello,

I have installed JIRA datacenter edition (v7.1.9) on SLES 11SP3 on 2 servers and am able to login to both the systems separately.  I am using Apache to configure the reverse proxy / load balancer to access the JIRA but can't able to get the login page loaded.  The Apache XML configuration that we use accepts numbers (0, 1) for the session where as JIRA configuration uses node1 and node2.  Because of this the JSESSIONID is appended with node1 and node2 where the Apache XML can't forward the requests and getting page not found or dead link found errors.  How and where should we change the node names in the JIRA configuration?  I changed the node entries in the 'cluster.properties' file with no luck.  Any information to resolve this would be helpful.

Thanks,

Vanith

2 answers

Configure your cluster.properties files back to point to node1 and node2 this is the best practise.

Check out this link on JIRA data center load balancer configurations.

Here is an example of the Apache httpd configuration:

<VirtualHost *:80>
        ProxyRequests off
 
        ServerName MyCompanyServer
 
        <Proxy balancer://jiracluster>
                # JIRA node 1
                BalancerMember http://jira1.internal.atlassian.com:8080 route=node1
                # JIRA node 2  Commented pending node installation
                # BalancerMember http://jira2.internal.atlassian.com:8080 route=node2
 
                # Security "we aren't blocking anyone but this the place to make those changes
                Order Deny,Allow
                Deny from none
                Allow from all
 
                # Load Balancer Settings
                # We are not really balancing anything in this setup, but need to configure this
                ProxySet lbmethod=byrequests
                ProxySet stickysession=JSESSIONID
        </Proxy>
 
        # Here's how to enable the load balancer's management UI if desired
        <Location /balancer-manager>
                SetHandler balancer-manager
 
                # You SHOULD CHANGE THIS to only allow trusted ips to use the manager
                Order deny,allow
                Allow from all
        </Location>
 
        # Don't reverse-proxy requests to the management UI
        ProxyPass /balancer-manager !
        # Reverse proxy all other requests to the JIRA cluster
        ProxyPass / balancer://jiracluster/
        ProxyPreserveHost on
</VirtualHost>

Hello Noam,

Thank you for your response.  

The XML Apache configuration that we use accepts only numbers (0,1) where as the JIRA documentation uses characters (node1, node2).  

 <Proxy balancer://jiracluster>
                # JIRA node 1
                BalancerMember http://jira1.internal.atlassian.com:8080 route=node1
                # JIRA node 2  Commented pending node installation
                # BalancerMember http://jira2.internal.atlassian.com:8080 route=node2


As of my knowledge we specify the node ID in the cluster. properties files only.  I don't know if any other files will have the node ID listed where we can update the details.  
Noticed the second balancer member is commented in this configuration.  Not sure if that was a typo or it should be commented out and should enable only when the node1 is unavailable.  
Also should we add another application or proxy balancer (say Confluence) in the configuration files.  Just adding another proxy balancer (balancer://confluencecluster)  will do or should we have make more changes to the configuration files.  
Appreciate your time and inputs.
Thanks.

Yes it should not be commented.

I did not have an issue configuring BalancerMember  route to node1 and node2:

BalancerMember http://jira1:8080 route=node1
BalancerMember http://jira2:8080 route=node2

(Check out this link on this)(Sorry i couldn't be more of help but i did not run into any issues on Apache and on F5 when setting the route value to node1 or node2)

Adding another proxy balancer (balancer://confluencecluster)  will work.

 

Also i recommend adding monitoring to the vip (for Confluence and Jira):

http://<url>/status

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,039 views 13 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot