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,558,161
Community Members
 
Community Events
184
Community Groups

User Data for Jira Deployment in AWS/Azure Cloud

Hello Community,

If your organization is using Data Center for Jira/Confluence Deployment in AWS/Azure Cloud, here is an example of User Data to get started.

This template will provide you with an example of how we can achieve auto-scaling for nodes deployment.

This was tested on AWS Amazon Linux 2 Server for the 8.20 Version of Jira 

#!/bin/bash
sudo yum update -y
sudo amazon-linux-extras install java-openjdk11 -y
curl -L -O https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-8.20.0-x64.bin
chmod u+x filename

cat <<EOT >> response.varfile
launch.application\$Boolean=false
rmiPort\$Long=8005
app.jiraHome=/var/atlassian/application-data/jira
app.install.service\$Boolean=false
sys.confirmedUpdateInstallationString=false
sys.languageId=en
sys.installationDir=/opt/atlassian/jira
executeLauncherAction\$Boolean=true
httpPort\$Long=8080
portChoice=default
executeLauncherAction\$Boolean=false
EOT

sudo ./filename -q -varfile response.varfile

sudo mkdir -p /media/atl
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-c5615314.efs.ap-south-1.amazonaws.com:/ /media/atl

cat <<EOT >> /var/atlassian/application-data/jira/dbconfig.xml
<?xml version="1.0" encoding="UTF-8"?>

<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>postgres72</database-type>
<schema-name>public</schema-name>
<jdbc-datasource>
<url>jdbc:postgresql://db-url:5432/jiradb</url>
<driver-class>org.postgresql.Driver</driver-class>
<username>dbuser</username>
<password>dbuserpassword</password>
<pool-min-size>30</pool-min-size>
<pool-max-size>30</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<validation-query>select 1</validation-query>
<min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
<pool-max-idle>30</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
<pool-test-on-borrow>false</pool-test-on-borrow>
<pool-test-while-idle>true</pool-test-while-idle>
<connection-properties>tcpKeepAlive=true;socketTimeout=240</connection-properties>
</jdbc-datasource>
</jira-database-config>
EOT

sudo chown jira:jira /var/atlassian/application-data/jira/dbconfig.xml

cat <<EOT >> /var/atlassian/application-data/jira/cluster.properties
jira.node.id = jira-node-$(shuf -i 0-100 -n 1)
jira.shared.home = /jira/shared
EOT

sudo chown jira:jira /var/atlassian/application-data/jira/cluster.properties

cd /opt/atlassian/jira/bin
sudo /bin/su -m jira -c "/opt/atlassian/jira/bin/start-jira.sh"

Change the appropriate parameters in the file for your server on the cloud and you should be good.

Please let me know your thoughts and comments if any improvements are required and what changes we can make to improve this user data.

Thanks,
Pramodh

1 comment

Matt Doar__ LinkedIn
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 31, 2021

I'd be looking for nginx configuration for terminating ssl somewhere.

And I'm not sure about randomly assigning a node id

The dbconfig.xml file is best if readable only by jira

Like Pramodh M likes this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events