Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMIG and version 7.11
Sv translation
languageru
Предупреждение
titleВажно!

Перед установкой обязательно подготовьте сервер (см. Подготовка сервера к установке Платформы). 

Установка Платформы производится вручную, с помощью командной строки.

Для установки Платформы используется архив iw_platform.tar.xz . Архив входит в состав дистрибутива Traffic Monitor. Архив содержит полный набор бинарных модулей образов контейнеров, необходимых для развертывания Платформы без доступа к сети Интернет. Также архив содержит программу установки.

Платформа может быть установлена в двух режимах:

  • central (центральная нода);
  • office (офисная нода).

Центральная и офисные ноды Платформы объединены в кластер.

Раскрыть
titleУстановка в режиме central

Чтобы установить Платформу в режиме central:

  1. Создайте новую директорию на диске (например, Platform):
    mkdir Platform
  2. Cкопируйте архив iw_platform.tar.xz в созданную директорию.
  3. Перейдите в директорию, в которую был скопирован архив.
  4. Распакуйте архив с дистрибутивом Платформы в эту директорию:
    tar -xvf iw_platform.tar.xz

  5. Запустите программу установки Платформы:
    ./setup.py install

    Если вы хотите хранить архивированные ежедневные табличные пространства на медленном диске сервера Data Storage, то запустите установку Платформы с параметром --dsslowdatapath:
    ./setup.py install --dsslowdatapath=/root/slowdisk
    где /root/slowdisk – путь к медленному диску.
    Подробнее о табличных пространствах см.:

    • "InfoWatch Traffic Monitor . Руководство администратора", глава "Администрирование базы данных", статья "Архивирование ежедневных табличных пространств"

    • "InfoWatch Traffic Monitor. Руководство пользователя", статья "Управление табличными пространствами"
  6. Введите IP-адрес сетевого интерфейса для взаимодействия с кластером в формате IPv4: "xxx.xxx.xxx.xxx" и нажмите Enter.

    Информация
    titleПримечание:

    Если указать  0.0.0.0 , будут использованы все доступные сетевые интерфейсы.

    Здесь и далее для использования значений, предложенных по умолчанию, нажмите Enter без ввода значений.

  7. Выделите объем оперативной памяти для размещения данных Clickhouse (по умолчанию: 80%) и нажмите Enter.
  8. Укажите путь для размещения данных Clickhouse (по умолчанию: /mntopt/chdata) и нажмите Enter.
  9. Укажите путь для размещения данных PostgreSQL (по умолчанию: /mntopt/pgdata) и нажмите Enter.
  10. Укажите путь для размещения данных NATS (по умолчанию: /mntopt/natsdata) и нажмите Enter.
  11. Укажите путь для размещения бинарных данных (по умолчанию: /mntopt/dsdata) и нажмите Enter.
  12. Укажите порт подключения к веб-интерфейсу Платформы и нажмите Enter.

    Предупреждение
    titleВажно!

    При установке на один сервер с Traffic Monitor укажите порт отличный от 443, так как по умолчанию порт 443 используется в качестве порта подключения к веб-интерфейсу Traffic Monitor.

  13. Дождитесь окончания процесса установки Платформы.
  14. Ознакомьтесь с отчетом об установке Платформы. В графе  web ui указаны адрес и порт для подключения к веб-интерфейсу Платформы :
    Image Removed Image Added 
  15. Чтобы вывести на экран информацию о Платформе, выполните команду:
    ./setup.py showproducts
  16. Убедитесь, что все сервисы запущены, выполнив команду:
    kubectl get pods -n infowatch
    Команда выведет список сервисов. Каждый сервис должен иметь статус Running.
Раскрыть
titleУстановка в режиме office

Чтобы установить Платформу в режиме office:

  1. Создайте новую директорию на диске (например, Platform):
    mkdir Platform
  2. Cкопируйте архив iw_platform.tar.xz в созданную директорию.
  3. Перейдите в директорию, в которую был скопирован архив.
  4. Распакуйте архив с дистрибутивом Платформы в эту директорию:
    tar -xvf iw_platform.tar.xz

  5. Запустите программу установки Платформы:
    ./setup.py install --nodemode=office

    Если вы хотите хранить архивированные ежедневные табличные пространства на медленном диске сервера Data Storage, то запустите установку Платформы с параметром --dsslowdatapath:
    ./setup.py install --nodemode=office --dsslowdatapath=/root/slowdisk
    где /root/slowdisk – путь к медленному диску.
    Подробнее о табличных пространствах см.:

    • "InfoWatch Traffic Monitor . Руководство администратора", глава "Администрирование базы данных", статья "Архивирование ежедневных табличных пространств"

    • "InfoWatch Traffic Monitor. Руководство пользователя", статья "Управление табличными пространствами"
  6. Укажите адрес центральной ноды кластера в формате IP-адреса или доменного имени (например: 192.0.2.0 или host.example.com).
  7. Укажите токен для подключения к центральной ноде.
    Чтобы получить токен:
    1. Подключитесь к серверу центральной ноды.
    2. В командной строке сервера выполните команду для получения токена:
      kubeadm token list
      На экран будет выведен токен:

      Токен в нашем примере: 3wcvoz.zh2ccxzil1hiz7iy
  8. Укажите лейбл ноды (по умолчанию: office) и нажмите Enter.
    Лейбл может состоять из букв латинского алфавита и/или цифр. Длина лейбла не должна превышать 32 символа.
  9. Выделите объем оперативной памяти для размещения данных Clickhouse (по умолчанию: 80%) и нажмите Enter.
  10. Укажите путь для размещения данных Clickhouse (по умолчанию: /mntopt/chdata) и нажмите Enter.
  11. Укажите путь для размещения данных PostgreSQL (по умолчанию: /mntopt/pgdata) и нажмите Enter.
  12. Укажите путь для размещения данных NATS (по умолчанию: /mntopt/natsdata) и нажмите Enter.
  13. Укажите путь для размещения бинарных данных (по умолчанию: /mntopt/dsdata) и нажмите Enter.
  14. Дождитесь окончания процесса установки Платформы.
  15. Ознакомьтесь с отчетом об установке Платформы.
    Image Removed Image Added 
  16. Чтобы вывести на экран информацию о Платформе, выполните команду:
    ./setup.py showproducts
  17. Убедитесь, что все сервисы запущены, выполнив команду:
    kubectl get pods -n infowatch
    Команда выведет список сервисов. Каждый сервис должен иметь статус Running.

После установки Платформы следуйте дальнейшим инструкциям в статье "Установка Data Storage".

См. также в этом разделе:

Sv translation
languageen
Предупреждение
titleImportant!

Before the installation, be sure to prepare the server (see "Подготовка сервера к установке Платформы").

Platform is installed manually via the command line.

To install the Service, use the iw_platform.tar.xz archive from the Traffic Monitor distribution kit. The archive contains a full set of binary modules of container images that are necessary for deploying Platform without access to the Internet. The archive also includes the installation program.

Platform have two installation modes:

  • central (central node)
  • office (office node)

The central and office nodes of the Platform are combined into a cluster.

Раскрыть
titleInstallation in the central mode

To install Platform in the central mode:

  1. Create a new directory on the disk (e.g. Platform):
    mkdir Platform
  2. Copy the iw_platform.tar.xz archive to this directory.
  3. Open the directory where you have pasted the archive.
  4. Unpack the archive with Platform distribution kit to this directory:
    tar -xvf iw_platform.tar.xz
  5. Run the Platform installation program:
    ./setup.py install

    If you want to store archived daily tablespaces on the slow disk of the Data Storage server, then run the Platform installation program with the --dsslowdatapath parameter:
    ./setup.py install --dsslowdatapath=/root/slowdisk
    where/root/slowdisk is the way to the slow disk.
    For details on tablespaces, see:

    • "InfoWatch Traffic Monitor . Administration Giude", the "Database Administration" chapter, the "Archiving Daily Tablespaces" article

    • "InfoWatch Traffic Monitor. User Guide", the "Managing Tablespaces" article
  6. Enter the IP address of the network interface to communicate with the cluster and press Enter. The IP address should be in IPv4 format: "xxx.xxx.xxx.xxx".

    Информация
    titleNote:

    If you specify 0.0.0.0 as the IP address, then all available network interfaces will be used.

    Hereinafter, to use the default values, press Enter without entering values.

  7. Allocate RAM to host Clickhouse data (by default, 80%) and press Enter.
  8. Specify the path to place Clickhouse data (by default, /mntopt/chdata) and press Enter.
  9. Specify the path to place PostgreSQL data (by default, /mntopt/pgdata) and press Enter.
  10. Specify the path to place NATS data (by default, /mntopt/natsdata) and press Enter.
  11. Specify the path to place binary data (by default, /mntopt/dsdata) and press Enter.
  12. Specify the port for connecting to the Platform web interface and press Enter.

    Предупреждение
    titleImportant!

    When installing on the same server with Traffic Monitor, specify port different than 443 because port 443 is used by default for connecting to the Traffic Monitor web interface.

  13. Wait for the installation of Platform to complete.
  14. Read the Platform installation report. The web ui column contains the address and port to connect to the Platform web interface:
    Image RemovedImage Added
  15. To display information about Platform, use the command:
    ./setup.py showproducts
  16. Make sure that all services are running. For this, use the command:
    kubectl get pods -n infowatch
    The list of services will be displayed. Each service should have the Running status.
Раскрыть
titleInstallation in the office mode

To install Platform in the office mode:

  1. Create a new directory on the disk (e.g. Platform):
    mkdir Platform
  2. Copy the iw_platform.tar.xz archive to this directory.
  3. Open the directory where you have pasted the archive.
  4. Unpack the archive with Platform distribution kit to this directory:
    tar -xvf iw_platform.tar.xz
  5. Run the Platform installation program:
    ./setup.py install --nodemode=office

    If you want to store archived daily tablespaces on the slow disk of the Data Storage server, then run the Platform installation program with the --dsslowdatapath parameter:
    ./setup.py install --nodemode=office --dsslowdatapath=/root/slowdisk
    where/root/slowdisk is the way to the slow disk.
    For details on tablespaces, see:

    • "InfoWatch Traffic Monitor . Administration Giude", the "Database Administration" chapter, the "Archiving Daily Tablespaces" article

    • "InfoWatch Traffic Monitor. User Guide", the "Managing Tablespaces" article
  6. Enter the address of the central node. You can specify it as an IP address or domain name (e.g., 192.0.2.0 or host.example.com).
  7. Specify a token to connect to the central node.
    To get the token:
    1. Connect to the central node server.
    2. On the server command line, run the following command to get the token:
      kubeadm token list
      The token will be displayed on the screen:


      Here the token is as follows: 3wcvoz.zh2ccxzil1hiz7iy
  8. Specify the node label (the default value is office) and press Enter.
    The label may consist of letters of the Latin alphabet and/or numbers.Label length must not exceed 32 characters.
  9. Allocate RAM to host Clickhouse data (by default, 80%) and press Enter.
  10. Specify the path to place Clickhouse data (by default, /mntopt/chdata) and press Enter.
  11. Specify the path to place PostgreSQL data (by default, /mntopt/pgdata) and press Enter.
  12. Specify the path to place NATS data (by default, /mntopt/natsdata) and press Enter.
  13. Specify the path to place binary data (by default, /mntopt/dsdata) and press Enter.
  14. Wait for the installation of the Platform to complete.
  15. Read the Platform installation report.
    Image RemovedImage Added
  16. To display information about Platform, use the command:
    ./setup.py showproducts
  17. Make sure that all services are running. For this, use the command:
    kubectl get pods -n infowatch
    The list of services will be displayed. Each service should have the Running status.

After installing Platform, follow the further instructions in the "Установка Data Storage" article.

See also in this section: