Open jphilou opened 2 months ago
Coverage variation | Diff coverage |
---|---|
:white_check_mark: +0.04% | :white_check_mark: 99.11% |
:rocket: Don’t miss a bit, follow what’s new on Codacy.
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more
ElasticSearch Upgrade from v7.22 to V8.14 for docker env. like dev one.
The docker-compose file has been updated in order to facilitate and automotive plugins installation and prepare the environment for migration. The ElasticSearch 7.22 is still build and run but would not be the main ES for the service. It could be decommissioned after migration. docker-compose file contains as well :
migration steps
docker-compose build
docker-compose up -d
./scripts/esUpdateMappings78.sh
docker-compose start logstash8
It will stop by itself when migration would be achieveddocker-compose exec api .build/venv/bin/alembic upgrade head
post migration
if all the process has been passed without issues. you can comment or remove in the docker-compose.yml services :
special note
ElasticSearch 8 integrate new security settings and configuration by design like:
in the docker for dev, I let a basic authentification working and keep http.
Base upon the way you make the configuration some adjustments have to be realized.
with the docker provided:
elasticsearch_sheme = http
&&tests_elasticsearch_scheme = http
https instead for tlselasticsearch/bin/elasticsearch-keystore add "bootstrap.password"
valueelastic2024
in app config file, it is necessary to report this authentification :
elasticsearch_user = elastic
&elasticsearch_passwd = elastic2024
tests_elasticsearch_user = elastic
&tests_elasticsearch_passwd = elastic2024
in the script
./scripts/esUpdateMapSettings78.sh
for mapping updatein the logstash pipeline file for data migration purpose, it is also required to report this authentification as well :