Add persistence in single node

This commit is contained in:
vcerenu
2022-03-31 13:39:53 -03:00
parent a3e39bd5c0
commit dd179c82dc
+9 -5
View File
@@ -7,21 +7,25 @@ In case of upgrading from 4.2, the deployment hosted in the multi-node directory
For the next deployment, the following steps must be performed: For the next deployment, the following steps must be performed:
1) Increase max_map_count on your host (Linux) 1) Increase max_map_count on your host (Linux)
```
$ sysctl -w vm.max_map_count=262144 $ sysctl -w vm.max_map_count=262144
```
This command must be run with root permissions This command must be run with root permissions
2) Run the certificate creation script: 2) Run the certificate creation script:
```
$ docker-compose -f generate-indexer-certs.yml run --rm generator $ docker-compose -f generate-indexer-certs.yml run --rm generator
```
3) Start the stack with docker-compose: 3) Start the stack with docker-compose:
In Foregroud: In Foregroud:
```
$ docker-compose up $ docker-compose up
```
Background Background:
```
$ docker-compose up -d $ docker-compose up -d
```
The stack takes about 1 minute to get up for the first time, since Wazuh Indexer must be started for the first time and the Indexes and Index Patterns must be generated. The stack takes about 1 minute to get up for the first time, since Wazuh Indexer must be started for the first time and the Indexes and Index Patterns must be generated.