Skip to content

HOWTO switch of elasticsearch version with the deployer

Why do that

On the LMC platform with elasticsearch snapshotting mecanism, when you upgrade the elasticsearch version, sometimes you may have a breaking change in your mapping configuration.

To query old data in a specific cluster, you must have the capacity to swith the elasticsearch version.

Warning

This procedure is only for this use case. It is not a migration procedure !

What to do

First, add the following settings to your punchplatform.properties

1
2
3
4
5
6
7
"elasticsearch" : {
    "clusters" : {
        "<cluster_id>" : {
            "override_elasticsearch_version" : "elasticsearch-X.Y.Z"
        }
    }
}

Then redeploy the specific cluster

1
$ punchplatform-deployer.sh deploy -Kk -t elasticsearch -l <cluster_id>

Note

To keep the current version, just remove the new section and redeploy