| Предупреждениеinfo |
|---|
| To update a distributed cluster of Investigation Centre: - Update the central node of the cluster and all products that are installed on this node.
Update office nodes and all products that are installed on them.
|
Direct update to 2.1 is supported only from version 2.0. If you are using a remote connection via SSH protocol, we recommend using the Screen utility in order 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 Data Discovery: Stop all scanning tasks in the Data Discovery web interface.Follow the steps to prepare the server for the update ("Подготовка сервера").
| Информация |
|---|
| The installer checks for: - At least 100 GB of free space available for directories to store data for ClickHouse, PostgreSQL, NATS, as well as binary data. You will specify these directories when following the installation instructions. If the directories for storing data are located on different disks, the installer checks if 100 GB of free space is available on each of them;
- At least 20 GB of free space available for directories to store images;
- At least 8 GB of RAM;
- At least 2 processor cores;
- Support of SSE 4.2 instructions;
conntrack package installed.
|
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 |
| Информация |
|---|
| 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: 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 |
- Complete the commands:
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}') |
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}') |
To delete Docker containers: | Блок кода |
|---|
rm -rf /var/lib/docker |
|
Run the updater: | Блок кода |
|---|
./setup.py update |
| Предупреждение |
|---|
| 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.
| Информация |
|---|
| To increase the speed of scanning resources, you can add Inotify subsystem settings in the OS. For this: - Open the
/etc/sysctl.conf configuration file for editing. 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 |
- Save the changes and close the configuration file.
To apply the new subsystem settings, run the command:
|
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. | Если в кластере с установленным | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| 2.2 обновлена Платформа до версии 2.5, для повторного подключения сервиса contentbroker к базе данных перезапустите его.| Раскрыть |
|---|
| На любой ноде | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| выполните команду перезапуска:| Блок кода |
|---|
kubectl -n infowatch rollout restart deployment/contentbroker-central |
Проверьте статус сервиса с помощью команды: | Блок кода |
|---|
kubectl -n infowatch rollout status deployment/contentbroker-central |
|
|
|