Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have any idea for Confluence cluster? I'm facing the same issue for Confluence cluster
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.