| Предупреждение |
|---|
| To update a distributed cluster of Investigation Centre cluster: - 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 | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| : - Stop all scanning tasks in the Data Discovery in the
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| web interface. Follow the steps to prepare Prepare the server for the update ("see Подготовка сервера").
| Информация |
|---|
| The installer checks for: - At 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 at least 20 GB of free space available for directories to store images;
- At at least 8 GB of RAM;
- At at least 2 processor cores;
- Support support of SSE 4.2 instructions;
conntrack package installed.
|
Create a new directory on the disk (e.g., for example, distr_discovery):
| Блок кода |
|---|
mkdir distr_discovery |
- Copy the iw_discovery_setup
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_setup package |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| _2.1.Xx.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 | Multiexcerpt include |
|---|
| MultiExcerptName | DD_setup package |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| _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 has 50 GB or more of disk space. To check the volume of available disk space, use run 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 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 2
pull-image-on-create: false false
disable-pull-on-run: false false |
- Complete Run the commands:
To delete the Platform containers (where х.х.х.х - is a the currently installed version of the Platform): | Блок кода |
|---|
crictl rmi $(crictl image | awk '($2 !~ /х.х.х.х|latest/ && $1 ~ /docker.infowatch.ru\/platform-core-release/ && $1 !~ /flannel/) {print $3}') |
To delete Data Discovery | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| containers (wherex.x.x.x – is a the currently installed version of Data Discovery| Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| ):
| Блок кода |
|---|
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, Platform products that are already installed on the server may be unavailable. |
- Wait for the Data Discovery
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| update to complete. After updating the updateproduct, the installer will automatically delete image containers the container images 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 | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| to work, you need to update the settings of the inotify subsystem in the OS. For To do this: Open the Check if the /etc/sysctl.d/discovery.conf configuration file for editing.Add the following lines at the end of the filewith the following content is available: | Блок кода |
|---|
| 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 fileIf the configuration file is available, skip the next two steps in the instructions. If the file was not created by the installer scripts earlier, create it and add the content from the previous step. To apply the new subsystem settings, run the command: | Блок кода |
|---|
sysctl --load=/etc/sysctl |
-p
Make sure that all services are running. For this, run the command:
| Блок кода |
|---|
kubectl get pods -n infowatch |
The command will display the list of services. Each service should have the status Running.
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
| Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| 2.1 (see "Типы установки и обновления, совместимость с другими продуктами, аппаратные и программные требования"). If Data Discovery | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| is installed in a distributed cluster, update the Platform and products on other servers to versions that are compatible with Data Discovery | Multiexcerpt include |
|---|
| MultiExcerptName | DD_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| shouldDisplayInlineCommentsInIncludes | false |
|---|
| 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.
|