Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,159
Community Members
 
Community Events
184
Community Groups

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

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

@Lessandro 

 

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

 

Thank you so much

 

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.

@Lessandro 

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

Thanks

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.

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
AUG Leaders

Atlassian Community Events