How to change the compression method of index snapshot files in Jira Data Center
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Purpose
Jira's index snapshot files are created in a compressed format. Starting with Jira 7.12.0, the default algorithm is Google's Snappy (.tar.sz). It was chosen aiming very high speeds and reasonable compression.
- JRASERVER-67732Getting issue details... STATUS
This can be customised to tarball (.tar) or Zip (.zip).
Solution
Follow these steps in order to change the compression method. Repeat the steps for all Jira Data Center nodes:
- Edit the jira-config.properties file under the JIRA_HOME directory. If the file does not exists, create it. See: Edit the jira-config.properties file in Jira server.
- The compression method used can be configured with the jira.index.snapshot.copy.archiver application property. Add the following line to the file. The values could be either snappy, zip or tar:
jira.index.snapshot.copy.archiver = snappy|zip|tar
- Restart the node for the changes to take effect.
The chosen algorithm will reflect in the size of the compressed snapshot file and how fast the file is created. Ensure to validate it on a staging environment first.