Update to v23.02
Update
The update procedure for v23.02 requires
the mandatory replacement of all previously downloaded *.yml
files from the site
as docker.compose.yml
, docker-compose.failover.yml
etc.
If you get the following error when trying to download new images:
ERROR: for accesslog unknown: artifact product/accesslog:v23.02 not found
ERROR: unknown: artifact product/accesslog:v23.02 not found
Replace the remaining occurrences of docker.mitigator.ru/product/
and
docker.mitigator.ru/vendor/
with docker.mitigator.ru/mitigator/
in all
*.yml
files.
Migration
After updating and launching MITIGATOR perform a migration on the leader to optimize the event log work. To do that:
-
Download the migration script into the
/srv/mitigator
directory.wget https://docs.mitigator.ru/kb/update2302/journal_indexes.sql
-
Execute the script with command:
docker-compose exec -T postgres psql mitigator <journal_indexes.sql
Depending on the event log size the script can take up to two hours to complete. While the script is running, the MITIGATOR can safely add entries to the log, but performing a log search at this time may not work properly and it is not recommended to perform.