Setting jira.node.id Automatically

Jeff Shepherd December 3, 2020

Is it possible to set the jira.node.id through a variable?

For example: 

jira.node.id = ${HOSTNAME}

 Sadly, the above example doesn't work. My node id becomes the text "${HOSTNAME}"

2 answers

1 accepted

0 votes
Answer accepted
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 3, 2020
Jeff Shepherd December 7, 2020

Ick. A solution, but not very elegant.

0 votes
Tran Dien Hien September 26, 2021

@Jeff Shepherd ,

Have you solved this issue?  If yes please share your experiences because I'm facing the same problem.

I much appreciate your support

Jeff Shepherd September 27, 2021

Referencing the above link, @Lessandro has a script to modify the cluster.properties before Jira is run (e.g. at reboot or via cron)

HOST=$HOSTNAME
JIRANODE="jira.node.id = "$HOST
sed -i "2s/.*/$JIRANODE/" /var/atlassian/application-data/jira/cluster.properties

The cluster.properties file only needs to be modified once, so a process that happens over and over seems a bit much.

However, I have a recipe I follow that includes a step to modify the file whenever I am adding a new Jira node. There are times I have overlooked the step in the past, so there is merit to an automated process.

Suggest an answer

Log in or Sign up to answer