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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.13
Sv translation
languageru

Чтобы Процесс архивирования состоит из отключения ЕТП от базы данных и их перемещения в заданный каталог (по умолчанию /u02/arch). Данный каталог следует размещать на отдельном носителе, чтобы освободить пространство на жестком диске , вы можете периодически архивировать устаревшие данные. Архив с данными рекомендуется размещать на внешних носителях информациис оперативными данными и избежать его переполнения. При необходимости эти данные могут быть восстановлены.Если вы используете Data Storage, то вы можете хранить архивированные ежедневные табличные пространства (ЕТП) на медленном диске. Путь к этому архивированные ЕТП могут быть восстановлены.

В Системе есть следующие способы архивирования ЕТП:

Если вам нужно архивировать единичное ЕТП, рекомендуется делать это в веб-интерфейсе Traffic Monitor. Если веб-интерфейс недоступен, используйте утилиту сервиса iw_space_manager. В последнюю очередь используйте архивирование ЕТП вручную через БД.

Архивирование при использовании Data Storage

Если вы используете Data Storage, то при архивировании ЕТП бинарные данные будут перемещены на медленный диск Data Storage.
Если медленный диск не подключен, то в веб-интерфейсе Traffic Monitor при архивировании ЕТП будет указан статус "Архивировано". Но при этом бинарные данные ЕТП будут храниться на быстром диске сервера Data Storage, внутри директории для размещения бинарных данных, указанной при установке хранилища (по умолчанию /opt/dsdata/_seaweedfs).

Автоматически после истечения указанного периода (см.

Путь к медленному диску указывается при установке Data Storage. Подробнее см. InfoWatch Traffic Monitor. Руководство по установке. Установка Платформы.

Если медленный диск не подключен, то в Консоли Управления Traffic Monitor при архивации ЕТП будет указан статус "Архивация бакета в хранилище данных". Это значит, что Система пытается отправить бакет с данным ЕТП на медленный диск хранилища. При этом в Data Storage ЕТП будет хранится на быстром диске в директории /mnt/dsdata/_seaweedfs .

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

Если в качестве интервала времени используются месяцы или годы, то рекомендуется в расчете использовать максимальное значение интервала. Для месяца – 31 день. Для года – 366 дней. Например, чтобы архивировать ежедневные табличные пространства старше 4 лет, в задании IWTM_ARCHIVE_TABLESPACES укажите интервал 366*4=1464 дня.

Архивирование может выполняться:


Чтобы добавить путь к медленному диску Data Storage после установки хранилища:

  1. Создайте директорию и смонтируйте в нее медленный диск:

    Блок кода
    mkdir -p /mnt/slowdisk
    mount /dev/<your_slowdisk> /mnt/slowdisk
  2. Назначьте пользователя и права доступа для директории, в которую смонтировали медленный диск:

    Блок кода
    chown 1000 /mnt/slowdisk
    chmod 700 /mnt/slowdisk
  3. Откройте деплоймент Data Storage для редактирования с помощью команды:

    Блок кода
    kubectl -n infowatch edit deployment datastorage-<node_label>

    где <node_label> – здесь и далее это лейбл ноды, на которой установлено хранилище. Для центральной ноды кластера или, если хранилище установлено не в кластере платформенных продуктов, используйте лейбл central. Для офисной ноды лейбл задается при установке, по умолчанию: office.

  4. В секцию containers -> volumeMounts добавьте следующие строки:

    Блок кода
          - mountPath: /var/lib/dataslow           
            name: datastorage-dataslow-host-volume-<node_label>
  5. В секцию volumes добавьте следующие строки:

    Блок кода
          - hostPath:
              path: /mnt/slowdisk
              type: ""
            name: datastorage-dataslow-host-volume-<node_label> 
  6. Сохраните изменения и выйдите из редактора.
Sv translation
languageen

Archiving process consists of disconnecting DTS from the database and moving them to the specified catalogue (by default:/u02/arch). You should place this catalogue on the separate disk to free up space on the hard drive with operational data and avoid its overflow. You can restore this data if necessary.

In the System, there are following ways of archiving DTS:

Sv translation
languageen

To free up disk space on your hard drive, you can periodically archive outdated data. We recommend placing data archive on external devices. You can recover this data if necessary.If you need to archive a single DTS, we recommend to do it in the Traffic Monitor web interface. If the web interface is unavailable, use the iw_space_manager service utility. Last use manual archiving of DTS in the database.

Archiving when using Data Storage

Using the console utility of the iw_space_managerservice (see Управление ежедневными табличными пространствами с помощью консольной утилиты)

If you use Data Storage, then you can store archived daily tablespaces on a slow disk. You can specify the way to this disk when installing Data Storage. For details, see InfoWatch Traffic Monitor. Installation Guide. Installing Platform, when archiving DTS, binary data will be moved to the Data Storage slow disk.
If the slow disk is not connected, then, in Traffic Monitor Management Consoleweb interface, archived daily tablespace will have the "Archive bucket in data storageArchived" status. It means that the System is trying to send the bucket with this daily tablespace to the slow disk of the storage. In this case, on the Data Storage server, daily tablespace But in this case, binary data of DTS will be stored on the fast disk , in the /mntof the Data Storage server, inside the directory for placing binary data. You specify this directory when installing the storage (by default: /opt/dsdata/_seaweedfs directory.

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

If months or years are used as the time interval, we recommend using the maximum value of the interval in calculations. For a month – 31 days. For a year – 366 days. For example, to remove a daily tablespace older than 4 years, specify the interval 366 * 4 = 1464 days in the IWTM_DELETE_TABLESPACES job.

The archiving can be performed:

  • Automatically after the specified period is expired (see Automatically Archiving of Daily Tablespaces);
  • Manually – for archiving the selected daily tablespaces (see Архивирование ежедневных табличных пространств 1);
  • ).

    You specify the path to the slow disk when installing Data Storage. For details, see InfoWatch Traffic Monitor. Installation Guide. Installing Platform.
    To add the path to the Data Storage slow disk after installing the storage:

    1. Create a directory and mount the slow disk to it:

      Блок кода
      mkdir -p /mnt/slowdisk
      mount /dev/<your_slowdisk> /mnt/slowdisk
    2. Set a user and access permissions for the directory, where you have mounted the slow disk:

      Блок кода
      chown 1000 /mnt/slowdisk
      chmod 700 /mnt/slowdisk
    3. Open the Data Storage deployment for editing. For this use the command:

      Блок кода
      kubectl -n infowatch edit deployment datastorage-<node_label>

      where <node_label> (hereafter) is the label of the node where the storage is installed. For the central node or, if the storage is installed not in the cluster of Platform products, use the label central. For the office node, the label is specified during installation (office by default).

    4. Add the following lines to the containers -> volumeMounts section:

      Блок кода
            - mountPath: /var/lib/dataslow           
              name: datastorage-dataslow-host-volume-<node_label>
    5. Add the following lines to the volumes section:

      Блок кода
            - hostPath:
                path: /mnt/slowdisk
                type: ""
              name: datastorage-dataslow-host-volume-<node_label>  
    6. Save the changes and exit the editor.