Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

cluster.properties file get jira.node.id ID automatically, like the hostname.

Lessandro March 19, 2018

Hello, I would like to edit the cluster.properties file to the parameter jira.node.id get an ID automatically, for example the hostname.

It is possible? If so, how?

Thanks in advance!

3 answers

0 votes
Tran Dien Hien September 26, 2021

@Lessandro 

 

You mean, You did the same as Jira for Confluence ?  Could you please explain more about this ?

 

Thank you so much

Jeff Shepherd
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.
September 27, 2021 edited

 

In /opt/confluence/bin/setenv.sh (your directory may differ) I have the following line:

CATALINA_OPTS="-Dconfluence.cluster.node.name=${HOSTNAME} ${CATALINA_OPTS}"

When Confluence starts up this automatically sets the name of the node to the hostname.

On the Jira side, you can't have a variable in the cluster.properties file. The script from @Lessandro is a hack useful trick that modifies the file before Jira is run.

Tran Dien Hien September 28, 2021

Thanks @Jeff Shepherd 

0 votes
Tran Dien Hien September 25, 2021

@Lessandro 

Do you have any idea for Confluence cluster? I'm facing the same issue for Confluence cluster

Thanks

0 votes
Lessandro March 20, 2018

Hi, 

I got it.

Basically I created a bash script to add automatically the hostname in the file. Something like this:

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

This bash is executed in every reboot via cron.

Jeff Shepherd
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.
December 7, 2020

Ick.

In Confluence you can do the $HOSTNAME trick. Sad that you can't do something similar in Jira. Not the answer I was hoping for, but it is an answer.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events