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}"
Jeff,
Here is what someone else did to solve the issue. https://community.atlassian.com/t5/Jira-Core-questions/cluster-properties-file-get-jira-node-id-ID-automatically-like/qaq-p/753801
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you solved this issue? If yes please share your experiences because I'm facing the same problem.
I much appreciate your support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.