Use Symbolic link for relocate JIRA index directory

Guys,

Do you guys use Symbolic links to change the location (out of jira_home directory) of JIRA directories such as caches/index?

Hesh

2 answers

1 accepted

2 votes

Yes, a simple soft link works perfectly.

It's a bit of a pain not being able to relocate these directories in the UI. A common setup is to want the attachments on a disk that's mirrored and backed up, (SAN, shared file system or something) but the index on the fastest nastiest non-shared disk you can find.

Hi Nic,

Is it OK, If I use RAM disk as index directory?

Hesh

Yes, but there are issues with a simple RAM disk.

First, you might be better off using the RAM allocated to it to run the JVM, and, more importantly, you'll lose your index and need to re-index every time you restart the machine.

Hi Nic,

I have 64GB of RAM in my server and I have alocated 32GB for JVM. SO I guess it will not be a problem if I use RAM disk. Is there any other issues rather than data loose in server restart?

Not that I have run into.

You aren't really risking data loss in a restart, but that you'll need to re-index on every reboot. This might be acceptable if your re-index is a matter of a couple of minutes, but if it's starting to run over 2-3 minutes (it's proportional to the number of issues and complexity of customfields), that might not be acceptable to your users.

And you can always save the contents of RAM disk if the restart is a planned one.

We actually us a soft link for our complete home directory and installation directory. So it works perfectly.

In this way we can use jira-home and atlassian-jira as directories in all our configurations, but in the end they are just soft links to the actual directories. (It's part of our backup and falll back mechanism should an update go awry).

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

893 views 3 12
Read article

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