Upgrade the elasticsearch backends of swh-search to the last available version (7.15.2).
- ensure all swh-search tests are still green
- upgrade staging
- upgrade production
Upgrade the elasticsearch backends of swh-search to the last available version (7.15.2).
rDENV Development environment | |||
D6685 | rDENV839946f79dc1 swh-search: upgrade elasticsearch to 7.15.2 | ||
rSPSITE puppet-swh-site | |||
D6682 | rSPSITE3c6fdbb59608 swh-search: Upgrade elasticsearch to 7.15.2 | ||
D6677 | rSPSITEa6fda040f0d3 staging: upgrade swh-search elasticsearch to 7.15.2 |
production nodes are upgraded :
root@search1:~# systemctl stop swh-search-journal-client@indexed root@search1:~# systemctl stop swh-search-journal-client@objects
curl -XPOST http://search-esnode4:9200/_flush
For each node :
cat > /tmp/shard_allocation.json <<EOF { "persistent": { "cluster.routing.allocation.enable": "primaries" } } EOF curl -H'content-type: application/json' -XPUT http://search-esnode4:9200/_cluster/settings -d @/tmp/shard_allocation.json
cat > /tmp/shard_allocation.json <<EOF { "persistent": { "cluster.routing.allocation.enable": null } } EOF curl -H'content-type: application/json' -XPUT http://search-esnode4:9200/_cluster/settings -d @/tmp/shard_allocation.json