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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space IDD and version 2.2
  • Чтобы увеличить скорость сканирования ресурсов, вы можете в ОС дополнить настройки подсистемы Inotify

    Для работы

  • Sv translation
    languageru
    Предупреждение
    titleВажно!

    После обновления на версию 2.2 останутся только данные последних завершенных сканирований, данные прошлых сканирований будут удалены.

    Чтобы обновить распределенный кластер Центра расследований:

    1. Обновите центральную ноду кластера и все установленные на ней продукты. 
    2. Обновите офисные ноды и все установленные на них продукты.

    Если вы используете удаленное подключение по протоколу SSH, чтобы избежать проблем в случае разрыва соединения с сервером, рекомендуем использовать утилиту Screen. При отключении от утилиты запущенные в ней процессы не прервутся, что позволит безопасно продолжить обновление.

    Чтобы обновить

    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    :

    1. Остановите все задачи сканирования в веб-интерфейсе
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      .
    2. Выполните шаги по подготовке сервера

      Подготовьте сервер к обновлению (см.

      "

      Подготовка сервера

      "

      ).

    3. Создайте новую директорию на диске (например, distr_discovery):

      Блок кода
      mkdir distr_discovery
    4. Cкопируйте Скопируйте архив
      Multiexcerpt include
      MultiExcerptNameDD_setup package
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      _2.2.x.xxx.tar.xz
      в созданную директорию.
      В нашем примере будет использована версия 2.2.0.191, соответственно, то есть архив - будет
      Multiexcerpt include
      MultiExcerptNameDD_setup package
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      _2.2.0.191.tar.xz
      .
    5. Перейдите в директорию, в которую был скопирован архив.
    6. Распакуйте архив с дистрибутивом в эту директорию:

      Блок кода
      tar -xvf iw_discovery_setup_2.2.0.191.tar.xz
    7. Убедитесь, что в разделе с директорией /var/lib/containerd доступно не менее 50 ГБ дискового пространства.
      Чтобы проверить доступное дисковое пространство, используйте команду:

      Блок кода
      df -h /var/lib/containerd
      Информация
      titleПримечание:
      Раскрыть
      titleЧтобы освободить дисковое пространство, вы можете удалить неиспользуемые образы контейнеров прошлых версий.

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

      Выполните следующие шаги:

      1. Создайте или дополните файл /etc/crictl.yaml или дополните его следующим содержимым:

        Блок кода
        languagetext
        runtime-endpoint: unix:///run/containerd/containerd.sock
        image-endpoint: unix:///run/containerd/containerd.sock
        timeout: 2
        pull-image-on-create: false
        disable-pull-on-run: false
      2. Выполните команды:
        1. Для удаления контейнеров Платформы (где х.х.х.х - – текущая установленная я версия Платформы):

          Блок кода
          languagetext
          crictl rmi $(crictl image | awk '($2 !~ /х.х.х.х|latest/ && $1 ~ /docker.infowatch.ru\/platform-core-release/ && $1 !~ /flannel/) {print $3}')
        2. Для удаления контейнеров продукта

          Multiexcerpt include
          MultiExcerptNameDD_Short_Name
          PageWithExcerptExcerpt Source
          shouldDisplayInlineCommentsInIncludesfalse
          (где x.x.x.x – текущая установленная версия
          Multiexcerpt include
          MultiExcerptNameDD_Short_Name
          PageWithExcerptExcerpt Source
          shouldDisplayInlineCommentsInIncludesfalse
          ):

          Блок кода
          languagetext
          crictl rmi $(crictl image | awk '($2 !~ /x.x.x.x|latest/ && $1 ~ /docker.infowatch.ru\/discovery/) {print $3}')
        3. Для удаления контейнеров Docker:

          Блок кода
          rm -rf /var/lib/docker
    8. На время обновления для миграции данных Clickhouse ClickHouse понадобится дополнительное свободное пространство на диске помимо того, что было выделено для работы инсталлятора и перехода на новую версию. После завершения обновления дополнительное пространство будет освобождено.

      Раскрыть
      titleЧтобы определить необходимое дополнительное пространствообъем дополнительного пространства:
      1. На Для подключения к ClickHouse на ноде c

        Multiexcerpt include
        MultiExcerptNameDD_Short_Name
        PageWithExcerptExcerpt Source
        в режиме central для подключения к Clickhouse выполните команду:

        Блок кода
        languagetext
        kubectl exec --stdin --tty -n infowatch deploy/clickhouse-central -- clickhouse-client -d discovery --user discovery --password $(kubectl get secret discoperator-discovery-central-db-secret -n infowatch -o jsonpath='{.data.service_ch_password}' | base64 --decode)
      2. Для получения размеров таблиц с данными выполните запрос:

        Блок кода
        languagetext
        SELECT
            name,
            formatReadableQuantity(total_rows) AS rows,
            formatReadableSize(total_bytes) AS size
        FROM system.tables
        WHERE database = 'discovery'

        В результате выполнения запроса будут выведены названия таблиц (name) с количество количеством строк (rows) и общим размером (size).

      3. Для определения необходимого нужного дополнительного пространства определите наибольшее значение из трех:
        • Размер размер таблицы files x 3
        • Размер размер таблицы file_analysis x 2
        • Размер размер таблицы file_protoclusters x 2

          Раскрыть
          titleПример:

          Размеры таблиц: files = 29 ГБ, file_analysis = 42 ГБ, file_protoclusters = 30 ГБ.

          В этом примере необходимо нужно выделить дополнительно 87 ГБ, так как 29 * 3 = 87 - – это наибольшее значение.

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

      Учитывайте также, что миграция данных потребует дополнительного времени при обновлении. Чем больше данных в таблицах, тем больше времени займет миграция. Например, миграция 100 млн. записей занимает ~12 минут дополнительного времени.

    9. Запустите программу обновления:

      Блок кода
      ./setup.py update
      Предупреждение
      titleВажно!

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

      Во время обновления продукты Платформы, уже установленные на сервере продукты Платформы могут быть недоступны.

    10. Укажите путь для временного хранения событий 
      Multiexcerpt include
      MultiExcerptNameTM_Short_Name
      PageWithExcerptExcerpt Source
      перед их загрузкой в Платформу (по умолчанию: /opt/factsldrtmdata) и нажмите Enter.
    11. Дождитесь завершения обновления
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      . После обновления продукта инсталлятор автоматически удалит образы контейнеров прошлых версий.
    12. Убедитесь, что все сервисы запущены. Для этого выполните команду:

      Блок кода
      kubectl get pods -n infowatch

      Команда выведет список сервисов. Каждый сервис должен иметь статус Running.

    Информация
    titleПримечание:
    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    в ОС должны быть дополнены настройки подсистемы inotify.

    Для этого:

    Создайте конфигурационный файл
    1. Проверьте наличие конфигурационного файла /etc/sysctl.d/discovery.conf со следующим содержимым:

      Блок кода
      languagetext
      fs.inotify.max_user_instances = 32768
      fs.inotify.max_user_watches = 32768
      fs.inotify.max_queued_events = 262144

    Чтобы применить новые настройки подсистемы, выполните команду:

    Блок кодаsysctl -p
    1. При наличии конфигурационного файла пропустите два следующих шага инструкции.

    2. Если файл не был создан ранее скриптами инсталлятора, создайте его и добавьте содержимое из предыдущего шага.

    3. Чтобы применить новые настройки подсистемы, выполните команду:

      Блок кода
      sysctl --load=/etc/sysctl.d/discovery.conf
  • Чтобы вывести на экран информацию о Платформе и продуктах в кластере, выполните команду:

    Блок кода
    ./setup.py showproducts

    В выводе команды будет отражена информация по всем серверам кластера.

  • Если на сервере установлены и другие продукты, обновите их до версий, совместимых с

    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    2.2 (см. "Типы установки и обновления, совместимость с другими продуктами, аппаратные и программные требования").

  • Если

    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    установлен в распределенном кластере, обновите Платформу и продукты на других серверах кластера до версий, совместимых с
    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    2.2.

  • Очистите кеш браузера, в котором работали до обновления продукта.
    Веб-интерфейс Центра расследований доступен по адресу центральной ноды Платформы.

  • sv-translation
    Информация
    language
    Предупреждение
    titleWarning!

    To update a distributed cluster of Investigation Centre:

    1. Update the central node of the cluster and all products that are installed on this node. 
    2. Update office nodes and all products that are installed on them.

    Direct update to 2.1 is supported only from version 2.0.

    To update Data Discovery:

  • Stop all scanning tasks in the Data Discovery web interface.
  • Follow the steps to prepare the server for the update ("Подготовка сервера").
  • Create a new directory on the disk (e.g., distr_discovery):

    Блок кода
    mkdir distr_discovery
  • Copy the iw_discovery_setup_2.1.X.xxx.tar.xz archive to the created directory.
    Here, we are using version 2.1.0.152, so the archive name is iw_discovery_setup_2.1.0.152.tar.xz.
  • Open the directory, to which you have copied the archive.
  • Unpack the archive with the distribution kit to this directory:

    Блок кода
    tar -xvf iw_discovery_setup_2.1.0.152.tar.xz
  • Make sure that the section with the /var/lib/containerd directory contains 50 GB or more of disk space. 
    To check the volume of available disk space, use the command:

    Блок кода
    df -h /var/lib/containerd
    Информация
    titleNote:

    To free up disk space, you can delete unused container images of the previous versions. Do not remove containers of the currently installed version. Please note that the commands below will remove all versions of containers except the one specified. To do this complete the following steps:

    1. Create a file /etc/crictl.yaml or add the following content to it:

      Блок кода
      runtime-endpoint: unix:///run/containerd/containerd.sock
      image-endpoint: unix:///run/containerd/containerd.sock
      timeout: 2
      pull-image-on-create: false
      disable-pull-on-run: false
    2. Complete the commands:
      1. To delete Platform containers (where х.х.х.х - is a currently installed version of Platform):

        Блок кода
        crictl rmi $(crictl image | awk '($2 !~ /х.х.х.х|latest/ && $1 ~ /docker.infowatch.ru\/platform-core-release/ && $1 !~ /flannel/) {print $3}')
      2. To delete Data Discovery containers (where x.x.x.x – is a currently installed version of Data Discovery):

        Блок кода
        crictl rmi $(crictl image | awk '($2 !~ /x.x.x.x|latest/ && $1 ~ /docker.infowatch.ru\/discovery/) {print $3}')
      3. To delete Docker containers:

        Блок кода
        rm -rf /var/lib/docker
  • Run the updater:

    Блок кода
    ./setup.py update
    Предупреждение
    titleWarning!

    Files metadata left within the storage after scanning tasks deletion will be also deleted when upgrading to version 2.1.

    During the update, products that are already installed on the server may be unavailable.

  • Specify the path to temporarily place Traffic Monitor events before uploading them into the Platform (by default, /opt/factsldrtmdata) and press Enter.
  • Wait for the Data Discovery update to complete. After the update, the installer will automatically delete image containers of previous versions.
  • Make sure that all services are running. For this, use the following command:

    Блок кода
    kubectl get pods -n infowatch

    The command will display the list of services. Each service should have the Running status.

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

    To increase the speed of scanning resources, you can add Inotify subsystem settings in the OS.

    For this:

    1. Open the /etc/sysctl.conf configuration file for editing.
    2. Add the following lines at the end of the file:

      Блок кода
      fs.inotify.max_user_instances = 32768
      fs.inotify.max_user_watches = 32768
      fs.inotify.max_queued_events = 262144
    3. Save the changes and close the configuration file.
    4. To apply the new subsystem settings, run the command:

      Блок кода
      sysctl -p
  • To display information about the Platform and products in the cluster, run the command:

    Блок кода
    ./setup.py showproducts

    The command will output information about all servers of the cluster.

  • If there are other products installed on the server, update them to versions that are compatible with Data Discovery 2.1 (see "Типы установки и обновления, совместимость с другими продуктами, аппаратные и программные требования").
  • If Data Discovery is installed in a distributed cluster, update the Platform and products on other servers to versions that are compatible with Data Discovery 2.1.

  • If you need to free up disk space after updating, you can delete unused docker or containerd containers. For details, see "How to delete unused Docker and Containerd containers".
  • Clear the cache of the browser you were using before updating the product.
    The Investigation Centre web interface is available at the Platform central node address.
    title
    en
    Примечание:

    Если в кластере с установленным

    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    2.2 Платформа обновлена до версии 2.5, для повторного подключения сервиса contentbroker к базе данных перезапустите его.

    Раскрыть
    titleДля этого:
    1. На любой ноде

      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      выполните команду перезапуска:

      Блок кода
      kubectl -n infowatch rollout restart deployment/contentbroker-central
    2. Проверьте статус сервиса с помощью команды:

      Блок кода
      kubectl -n infowatch rollout status deployment/contentbroker-central
    Sv translation
    languageen
    Предупреждение
    titleWarning!

    After updating to version 2.2, only the data from the last completed scans will remain, and the data from previous scans will be deleted.

    To update a distributed Investigation Centre cluster:

    1. Update the central node of the cluster and all products that are installed on this node. 
    2. Update office nodes and all products that are installed on them.

    If you are using a remote connection via SSH protocol, we recommend using the Screen utility to avoid problems if the connection to the server is lost. If you disconnect from the utility, the processes running in it will not be interrupted, which will allow you to continue the update safely.

    To update

    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    :

    1. Stop all scanning tasks in the
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      web interface.
    2. Prepare the server for the update (see Подготовка сервера).

    3. Create a new directory on the disk (for example, distr_discovery):

      Блок кода
      mkdir distr_discovery
    4. Copy the
      Multiexcerpt include
      MultiExcerptNameDD_setup package
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      _2.2.X.xxx.tar.xz archive to the created directory.
      Here, we are using version 2.2.0.191, so the archive name is
      Multiexcerpt include
      MultiExcerptNameDD_setup package
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      _2.2.0.191.tar.xz.
    5. Open the directory to which you have copied the archive.
    6. Unpack the archive with the distribution kit to this directory:

      Блок кода
      tar -xvf iw_discovery_setup_2.2.0.191.tar.xz
    7. Make sure that the section with the /var/lib/containerd directory contains 50 GB or more of disk space. 
      To check the volume of available disk space, use the command:

      Блок кода
      df -h /var/lib/containerd
      Информация
      titleNote:
      Раскрыть
      titleTo free up disk space, you can delete unused container images of the previous versions.

      Do not remove containers of the currently installed version. Note that the commands below will remove all versions of containers except the one specified.

      To do this, complete the following steps:

      1. Create a file /etc/crictl.yaml or add the following content to it:

        Блок кода
        runtime-endpoint: unix:///run/containerd/containerd.sock
        image-endpoint: unix:///run/containerd/containerd.sock
        timeout: 2
        pull-image-on-create: false
        disable-pull-on-run: false
      2. Complete the commands:

        1. To delete the Platform containers (where х.х.х.х is a version of a currently installed Platform):

          Блок кода
          crictl rmi $(crictl image | awk '($2 !~ /х.х.х.х|latest/ && $1 ~ /docker.infowatch.ru\/platform-core-release/ && $1 !~ /flannel/) {print $3}')
        2. To delete

          Multiexcerpt include
          MultiExcerptNameDD_Short_Name
          PageWithExcerptExcerpt Source
          shouldDisplayInlineCommentsInIncludesfalse
          containers (where x.x.x.x is a version of a currently installed
          Multiexcerpt include
          MultiExcerptNameDD_Short_Name
          PageWithExcerptExcerpt Source
          shouldDisplayInlineCommentsInIncludesfalse
          ):

          Блок кода
          crictl rmi $(crictl image | awk '($2 !~ /x.x.x.x|latest/ && $1 ~ /docker.infowatch.ru\/discovery/) {print $3}')
        3. To delete Docker containers:

          Блок кода
          rm -rf /var/lib/docker
    8. During the update, ClickHouse data migration will require disk space in addition to the space allocated for the installer operation and for the transition to the new version. Once the update is complete, the additional space will be freed.

      Раскрыть
      titleTo determine the amount of additional space:
      1. On the node with

        Multiexcerpt include
        MultiExcerptNameDD_Short_Name
        PageWithExcerptExcerpt Source
        in the central mode, run the following command to connect to ClickHouse:

        Блок кода
        languagetext
        kubectl exec --stdin --tty -n infowatch deploy/clickhouse-central -- clickhouse-client -d discovery --user discovery --password $(kubectl get secret discoperator-discovery-central-db-secret -n infowatch -o jsonpath='{.data.service_ch_password}' | base64 --decode)
      2. To get the size of the data tables, run the following request:

        Блок кода
        languagetext
        SELECT
            name,
            formatReadableQuantity(total_rows) AS rows,
            formatReadableSize(total_bytes) AS size
        FROM system.tables
        WHERE database = 'discovery'

        The request will display the table names (name) with the number of rows (rows) and the total size (size).
        Image Added

      3. To determine the required additional space, select the highest value from the following:
        • size of table files x 3
        • size of table file_analysis x 2
        • size of table file_protoclusters x 2

          Раскрыть
          titleExample:

          Table sizes: files = 29 GB, file_analysis = 42 GB, file_protoclusters = 30 GB.

          In this example, additional 87 GB are required, because 29 * 3 = 87 is the highest value.

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

      Note that data migration will require additional time during the update process. The more data in the tables, the longer the migration will take. For example, migrating 100 million records will take approximately 12 minutes of additional time.

    9. Run the updater:

      Блок кода
      ./setup.py update
      Предупреждение
      titleWarning!

      Files metadata left within the storage after scanning tasks deletion will be also deleted when upgrading to version 2.0.

      During the update, products that are already installed on the server may be unavailable.

    10. Specify the path to temporarily place
      Multiexcerpt include
      MultiExcerptNameTM_Short_Name
      PageWithExcerptExcerpt Source
      events before uploading them to the Platform (by default, /opt/factsldrtmdata) and press Enter.
    11. Wait for the
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      update to complete. After the update, the installer will automatically delete image containers of previous versions.
    12. Make sure that all services are running. To do this, run the command:

      Блок кода
      kubectl get pods -n infowatch

      The command will display the list of services. Each service should have the status Running.

    13. For

      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      to work, you need to update the settings of the inotify subsystem in the OS.

      To do this:

      1. Check if the /etc/sysctl.d/discovery.conf configuration file with the following content is available:

        Блок кода
        languagetext
        fs.inotify.max_user_instances = 32768
        fs.inotify.max_user_watches = 32768
        fs.inotify.max_queued_events = 262144

        If the configuration file is available, skip the next two steps in the instructions.

      2. If the file was not created by the installer scripts earlier, create it and add the content from the previous step.

      3. To apply the new subsystem settings, run the following command:

        Блок кода
        sysctl --load=/etc/sysctl.d/discovery.conf
    14. To display information about the Platform and products in the cluster, run the command:

      Блок кода
      ./setup.py showproducts

      The command will output information about all servers of the cluster.

    15. If there are other products installed on the server, update them to versions that are compatible with
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      2.2 (see Типы установки и обновления, совместимость с другими продуктами, аппаратные и программные требования).
    16. If

      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      is installed in a distributed cluster, update the Platform and products on other servers to versions that are compatible with
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      2.2.

    17. Clear the cache of the browser you were using before updating the product.
      The Investigation Centre web interface is available at the Platform central node address.
    Информация
    titleNote:

    If in the cluster with

    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
     2.2 installed the Platform was updated to version 2.5, then restart the contentbroker service to reconnect it to the database.

    Раскрыть
    titleTo do this:
    1. On any

      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      node, run the restart command:

      Блок кода
      kubectl -n infowatch rollout restart deployment/contentbroker-central
    2. Check the service status with the command:

      Блок кода
      kubectl -n infowatch rollout status deployment/contentbroker-central