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 の詳細をご確認ください。

始める前に

Before you install Jira Data Center, review this prerequisite information:

  • Understand how Jira Data Center documentation works.
  • 次のノード要件を理解します。
    • Each Jira node must run on its own machine (physical or virtual), with a separate machine for the shared services. The shared services machine must be accessible by each node.
    • Normal Jira supported platforms and requirements apply to each node.
    • 各ノードはまったく同じである必要はありませんが、一貫性のあるパフォーマンスのために、可能な限り同質になるようにします。
    • Nodes must run the exact same Jira version and must be located in the same data center.
    • ノードは、同じタイムゾーンに設定され、現在時刻の同期を維持する必要があります。これを行うには、ntpd や類似のサービスを利用すると便利です。
    • Nodes must be configured to have unrestricted port access to each other.
  • 選択したロードバランサのインストールと設定を行います。
    • ロードバランサは、"クッキー ベースのセッション アフィニティ"("スティッキー セッション" としても知られる) をサポートする必要があります。
  • You need a Jira Data Center license. You'll need this to allow Jira to use the clustering capabilities. To get one you should either:

オプションで、ロードバランサ、データベース、および共有ファイルシステムをクラスター化できます。

After you install Jira Data Center or add a new node to your environment, use the health check tools to check that your instance is configured and operating correctly.

このページの内容

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:

  1. Stop your instance.
  2. Put a cluster.properties file in the local Jira home directory, with contents as follows:

    例を展開

    cluster.properties ファイルの例


    # This ID must be unique across the cluster
    jira.node.id = node1
    # The location of the shared home directory for all Jira nodes
    jira.shared.home = /data/jira/sharedhome

    詳細は、Cluster.properties ファイルのパラメーター を参照してください。

    If using the Apache load balancer, set the Apache node name by appending the following setting to the same variable (replacing node1 with the node name used in the load balancer configuration):

      • -DjvmRoute=node1
  3. 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.

mod_balancer を使用したサンプル httpd 設定
<VirtualHost *:80>
        ProxyRequests off
 
        ServerName MyCompanyServer
 
        <Proxy balancer://jiracluster>
                # JIRA node 1
                BalancerMember http://jira1.internal.atlassian.com:8080 route=node1
                # JIRA node 2  Commented pending node installation
                # BalancerMember http://jira2.internal.atlassian.com:8080 route=node2
 
                # Security "we aren't blocking anyone but this the place to make those changes
                Order Deny,Allow
                Deny from none
                Allow from all
 
                # Load Balancer Settings
                # We are not really balancing anything in this setup, but need to configure this
                ProxySet lbmethod=byrequests
                ProxySet stickysession=JSESSIONID
        </Proxy>
 
        # Here's how to enable the load balancer's management UI if desired
        <Location /balancer-manager>
                SetHandler balancer-manager
 
                # You SHOULD CHANGE THIS to only allow trusted ips to use the manager
                Order deny,allow
                Allow from all
        </Location>
 
        # Don't reverse-proxy requests to the management UI
        ProxyPass /balancer-manager !
        # Reverse proxy all other requests to the JIRA cluster
        ProxyPass / balancer://jiracluster/
        ProxyPreserveHost on
</VirtualHost>

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

  1. 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).
  2. 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)
  3. 最初のノードからこの新しいノードに、ローカルのホーム ディレクトリをコピーします。
  4. cluster.properties ファイルが新しいノード ID を参照するように変更します。すべてのノード ID は、ノード間で一意でなければなりません。
  5. 新しいノードを起動し、スタートアップの問題がないか監視します。
  6. 課題の作成、検索、添付ファイル、およびカスタマイズが期待どおりに動作するか確認します。

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いいえ

ノードがお互いを見つける方法を示します。

default - Jira will automatically discover nodes. Recommended
automatic - Will use EhCache's multicast discovery. This is the historical default method used by ehCache, but can be problematic for customers to configure and is no longer recommended by Atlassian for use with Jira clustering

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.address

  • ehcache.multicast.port

  • ehcache.multicast.timeToLive

  • ehcache.multicast.hostName

これらのパラメーターについての詳細は、Ehcache ドキュメントを参照してください。

最終更新日 2018 年 7 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.