Load balancing JIRA

Adraa Adraa March 1, 2012

Hello,

We need some advice regarding the indexation of JIRA in case we use master and slave configuration. Indexing JIRA in slave mode can take lot of time and makes JIRA unavailable for users, so we need to know if there is a way to avoid this unavailability. We thought about some ideas: create a folder shared between JIRA master and slave.

Any proposition is welcome.
Thanks for your help!

5 answers

2 votes
MatthewC
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.
March 1, 2012

Hi there,

This isn't going to be easy. Despite charge the new Enterprise licences for Jira, it still doesn't come with basic Enterprise features. if you create a shared folder between the two instances and only have one running at a time you may get it to work but the problem is you can't have two instances access the lucine index at once as they will lead to corruption. This is the main problem with trying to get a Jira cluster, attachments are fine but everything in Jira runs off the index which is why it's unavailable during a re-index. There is a distributed version of Lucene available but for some reason Atlassian haven't made any moves to using it.

Even if you got to Atlassian, they will tell you to get a bigger server that can handle the load & use a cold standby for failover.

I presume you've already read this?

http://confluence.atlassian.com/display/JIRA/Is+Clustering+or+Load+Balancing+JIRA+Possible

Ralph Hopman September 1, 2014
1 vote
Stefan Broda
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2012

On this topic: Atlassian has just released a dedicated best practice guide for High Availability. It covers a cold failover scenario and includes implementation details on reverse proxying, monitoring, replication and failover mechanisms:

https://confluence.atlassian.com/display/ATLAS/Failover+for+JIRA

0 votes
Arun_Thundyill_Saseendran
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.
July 20, 2014

On July 9, 2014, Atlassian has released its Enterprise Edition which answers all the questions about JIRA Load Balancing and Clustering. It is available only from JIRA 6.3. Upgrade soon and enjoy clustered JIRA.

More info can be found in:

JIRA DataCenter

0 votes
Adraa Adraa March 4, 2012

OK thanks a lot to both of you. your responses were very helpful for our team.

Thanks again.

0 votes
Dieter
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.
March 1, 2012
Maybe not such a good idea since a shared folder usually means SMB or NFS access to the index which is really too slow for indexes. Atlassian recommends to put the index on the fastest disk you can get, e.g. a local disk or a SSD. If indexing downtime is annoying you could write your own service that loops through all issues and indexes them using the IndexManager.reInde method. This can take a long time but should not put too much load on your system but might of course temporarily produce wrong search results. It's your decision accuracy vs. Availability
Dieter
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.
March 1, 2012
Thanks to Matthew for clarification. In my answer i assumed you want to continuously replicate your combined Jira/DB to a warm standby server and in case of failure you switch to that server by redirecting your load balancer to the standby server so actually you use the load balancer just as a switch.

Suggest an answer

Log in or Sign up to answer