Use Symbolic link for relocate JIRA index directory

Heshan Manamperi
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 28, 2013

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
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2013

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.

Heshan Manamperi
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.
April 7, 2013

Hi Nic,

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

Hesh

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 7, 2013

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.

Heshan Manamperi
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.
April 7, 2013

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?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 7, 2013

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.

Sergey Svishchev
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.
April 17, 2014

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

0 votes
Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 7, 2013

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