JIRA Data Center のインストール
These instructions are applicable for installing JIRA Software Data Center or JIRA Service Desk Data Center on your own hardware. You can also install JIRA Software Data Center or JIRA Service Desk Data Center in Amazon Web Services.
アトラシアンの Web サイトで、Jira Software Data Center および Jira Service Desk Data Center の詳細をご確認ください。
JIRA Data Center のインストール
以下の図は、JIRA のクラスター化インスタンス の一般的なインストール方法を示しています。
このインストールガイドは、既に JIRA インスタンスとロードバランサが存在し、ネットワークファイル共有システムをセットアップできることを前提としています。
JIRA の旧バージョンをアップグレードする前に、データをバックアップします。 JIRA バックアップの自動化 を参照してください。
1. JIRA インスタンスを 7.0 以降にアップグレードする
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. JIRA ファイルストレージの場所を共有ストレージに設定する
この手順では、JIRA インスタンスと今後追加されるノードが書き込むことのできる共有ホーム ディレクトリを設定する必要があります。
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,caches} /data/jira/sharedhome
DO NOT create symbolic links between the local and shared homes! This will cause issues when having more than one node running at the same time.
3. 既存の JIRA インスタンスをクラスター内で機能するように設定する
既存の JIRA インスタンスに以下のものを設定します。
- 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 データセンターは、ロードバランサによってノード間のトラフィックのバランスを取っています。多くの JIRA をインストールする大規模環境では、既にリバースプロキシを設定しており、多くのリバースプロキシには、ロードバランシングも同様に実行する能力があります。例として役立つように、サンプルの Apache httpd 設定を提供しましたが、固有の情報については、ご利用のプロキシベンダーに確認してください。
JIRA をロードバランサに追加したら、 JIRA インスタンスの再起動後、基本機能が動作していることを確認します。これを行うには、インスタンスに移動してログインし、壊れたリンクや正常に動作しない JIRA 機能がないか調べます。
ベースサーバーの URL が (ロードバランサのパブリック URL に対して) 正しく設定されていることを必ず確認してください。
5. 新しい JIRA ノードをクラスターに追加する
- JIRA インストレーションディレクトリを新しいホストにコピーします。ドキュメンテーションとデプロイメントの負担を軽くするために、設定は、可能な限り最初のインストールから逸脱しないようにすることをお勧めします (インストールパス、ユーザー、ファイル権限など)。
- 新しいホストが共有ホーム ディレクトリにアクセスできることを確認します (たとえば、共有 JIRA ディレクトリのコンテンツの読み取りが可能なことや、共有 JIRA ディレクトリへの書き込みアクセス権限があることを確認します)。
- 最初のノードからこの新しいノードに、ローカルのホーム ディレクトリをコピーします。
- 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 | はい | すべての Jira ノードの共有ホーム ディレクトリの場所。 |
ehcache.peer.discovery | いいえ | ノードがお互いを見つける方法を示します。
|
ehcache.listener.hostName | いいえ | キャッシュ通信のための現行ノードのホスト名。JIRA データセンターは、パラメーターが設定されていない場合、内部的にこれを解決します。 ネットワークのホスト名の解決に問題がある場合、このパラメータを設定できます。 |
ehcache.listener.port | いいえ | ノードがリッスンすることになるポート ( デフォルト = 40001) 複数のノードが同じホスト上にあるか、このポートが利用できない場合、手動でこれを設定することが必要な場合もあります。 |
ehcache.listener.socketTimeoutMillis | いいえ | By default this is set to the Ehcache default. |
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 ドキュメントを参照してください。
