Jira Data Center のインストール
These instructions are applicable for installing Jira Software Data Center, or Jira Service Desk Data Center.
アトラシアンの Web サイトで、Jira Software Data Center および Jira Service Desk Data Center の詳細をご確認ください。
Jira Data Center のインストール
This illustration shows the general method of installing a Jira clustered instance:
This install guide assumes that you already have a Jira instance, already have a load balancer, and are able to set up a network file share system.
Before upgrading from an earlier version of Jira, back up your data. Refer to Automating Jira backups.
1. Upgrade or install Jira 7.0 or later
See Jira applications installation guides or the Jira applications upgrade guides.
- If you're installing your instance from scratch, you should generate a non-Data Center evaluation license at the set up stage, and update to your Data Center license when you're adding your cluster properties file at step 3.
- If you're upgrading your instance, update your license at step 3.
2. Set up the Jira file storage location on shared storage
In this step, you need to set up a shared home directory that is writable by the Jira instance and any future nodes.
There are multiple ways to do this, but the simplest is to use an NFS share. The mechanics of setting one is unique from installation to installation, and is outside the scope of this document. We recommend using a UNC file path to your storage location.
この共有ストレージの場所の最終的なマウントポイントは、/data/jira/sharedhome を想定しています。
- ディレクトリは、他の潜在的なノードによる読み取りと書き込みができるようにします。
- 次のディレクトリを /data/jira/sharedhome にコピーします (一部のディレクトリは空の場合もあります)。
- data
- plugins
- logos
- インポート
- export
$ cp -R /path/to/jira-local-home/{data,plugins,logos,import,export} /data/jira/sharedhome
3. 既存の Jira インスタンスをクラスター内で動作するように設定する
Set up the following on your existing Jira instance:
- Stop your instance.
Put a
cluster.propertiesfile in the local Jira home directory, with contents as follows:If using the Apache load balancer, set the Apache node name by appending the following setting to the same variable (replacing
node1with the node name used in the load balancer configuration):-DjvmRoute=node1
Start your instance, and install your Data Center license.
4. 最初のノードをロードバランサに追加する
Jira Data Center relies on a load balancer to balance traffic between the nodes. Many larger installations of Jira already have a reverse proxy configured, and many reverse proxies have the ability to perform load balancing as well. We've provided a sample Apache httpd configuration to serve as an example, but please check with your proxy vendor for specific information.
After adding Jira to the load balancer, ensure that basic functionality is working after restarting the Jira instance by navigating to the instance, logging in, and noting any broken links or malfunctioning Jira functionality.
ベースサーバーの URL が (ロードバランサのパブリック URL に対して) 正しく設定されていることを必ず確認してください。
5. Add a new Jira node to the cluster
- Copy the Jira installation directory to a new host. Atlassian recommends that your configuration deviates from the first installation as little as possible to ease the burden of documentation and deployment (e.g. Installation paths, users, file permissions, etc).
- Ensure that the new host can access the shared home directory (e.g. ensure that you can read the contents of the shared Jira directory and have write access to it)
- 最初のノードからこの新しいノードに、ローカルのホーム ディレクトリをコピーします。
- cluster.properties ファイルが新しいノード ID を参照するように変更します。すべてのノード ID は、ノード間で一意でなければなりません。
- 新しいノードを起動し、スタートアップの問題がないか監視します。
- 課題の作成、検索、添付ファイル、およびカスタマイズが期待どおりに動作するか確認します。
6. この新しいノードをロードバランサに接続する
Verify that the new node is in the cluster and receiving requests by checking the logs on each node to ensure both are receiving traffic and also check that updates done on one node are visible on the other.
各ノードで、手順 5 と 6 を繰り返します。
セキュリティ
Ensure that only permitted cluster nodes are allowed to connect to a Jira Data Center instance's ehcache RMI port, which by default is port port 40001, through the use of a firewall and/or network segregation. Not restricting access to the ehcache RMI port could result in the compromise of a Jira Data Center instance.
Cluster.properties ファイルのパラメーター
You can set the following parameters in the cluster.properties file:
| パラメーター | 必須 | 説明/値 |
|---|---|---|
jira.node.id | はい | This unique ID must match the username and the BalancerMember entry in the Apache config |
jira.shared.home | はい | The location of the shared home directory for all Jira nodes |
ehcache.peer.discovery | いいえ | ノードがお互いを見つける方法を示します。
|
ehcache.listener.hostName | いいえ | The hostname of the current node for cache communication. Jira Data Center will resolve this this internally if the parameter isn't set. If you have problems resolving the hostname of the network you can set this parameter. |
ehcache.listener.port | いいえ | ノードがリッスンすることになるポート ( デフォルト = 40001) 複数のノードが同じホスト上にあるか、このポートが利用できない場合、手動でこれを設定することが必要な場合もあります。 |
ehcache.listener.socketTimeoutMillis | いいえ | デフォルトでは、これは Ehcache デフォルトに設定されます。 |
If you set ehcache.peer.discovery = automatic then you need to set the following parameters:
ehcache.multicast.addressehcache.multicast.portehcache.multicast.timeToLiveehcache.multicast.hostName
これらのパラメーターについての詳細は、Ehcache ドキュメントを参照してください。
