Requirements
============

LiveCompareには以下が必要です。

-  Python 3.6または3.7

-  PostgreSQL / EDB Postgres Extended 9.5+ / EDB Postgres Advanced
   Server 11+出力接続上

-  PostgreSQL / EDB Postgres Extended 9.4+ / EDB Postgres Advanced
   Server 11+またはOracle 11g+比較するデータ接続で

LiveCompareには、Debian 10+、Ubuntu 16.04+、SLES 12 SP5および15
SP3、またはCentOS / RHEL/RockyLinux/AlmaLinux 7+が必要です。

LiveCompareは、EnterpriseDB ``products/livecompare``
リポジトリからインストールできます。詳細については、 `EDB customer portal <https://techsupport.enterprisedb.com/customer_portal/sw/livecompare/>`_ を参照してください。

LiveCompareは、次のいずれかにインストールされます。

-  ``python3`` パッケージで提供されている、Ubuntu、Debian、およびCentOS
   / RHEL 8の最新のPythonバージョン

-  ``python-36`` パッケージで提供されているCentOS / RHEL 7のPython 3.6

CentOS /
RHELディストリビューションでは、LiveCompareにはEPELリポジトリも必要です。詳細については、 `EPEL webpage <https://fedoraproject.org/wiki/EPEL>`_ を参照してください。

特にCentOS / RHELバージョン7では、Pythonコンポーネント\ ``tqdm``
が古すぎます< 4.16.0。 LiveCompareを実行しているユーザーの\ ``pip``
または\ ``pip3`` を使用して、最新の\ ``tqdm`` をインストールできます。

::

   pip install --user tqdm --upgrade

Oracleデータベースに対してLiveCompareを実行している場合、Oracle Instant
Clientをインストールする必要があります。詳細については、 :ref:`Oracle support requirements <Oracle support>` を参照してください。

TPAexecを使用したLiveCompare
----------------------------

``TPAexec`` の次のサンプル構成を使用して、\ ``LiveCompare``
および\ ``PostgreSQL 11`` を使用してサーバーを構築できます。

.. code:: yaml

   - --
   architecture: M1
   cluster_name: livecompare_m1
   cluster_tags: {}

   cluster_vars:
     postgres_coredump_filter: 0xff
     postgres_version: 13
     postgresql_flavour: postgresql
     repmgr_failover: manual
     tpa_2q_repositories:
     - products/livecompare/release
     packages:
       common:
       - edb-livecompare
     use_volatile_subscriptions: true

   locations:

   -  Name: main

   instance_defaults:
     image: tpa/rocky
     platform: docker
     vars:
       ansible_user: root

   instances:

   -  Name: livem1node1
     location: main
     node: 1
     role: primary
     published_ports:
       - 5401:5432

   -  Name: livem1node2
     location: main
     node: 2
     role: replica
     upstream: livem1node1
     published_ports:
       - 5402:5432

TPAexecの詳細については、 `EDB customer portal <https://techsupport.enterprisedb.com/customer_portal/sw/tpa/>`_ を参照してください。
