This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
elasticsearch [2021/01/25 18:32] k2patel [Rolling Upgrade] |
elasticsearch [2021/01/25 23:29] k2patel [Rolling Upgrade] |
||
---|---|---|---|
Line 138: | Line 138: | ||
"persistent": { | "persistent": { | ||
"cluster.routing.allocation.enable": "primaries" | "cluster.routing.allocation.enable": "primaries" | ||
+ | } | ||
+ | }' https://admin:<password>@<hostname>:9200/_cluster/settings --CApath /etc/elasticsearch/root-ca-key.pem | ||
+ | </code> | ||
+ | |||
+ | === Flush / Sync data on all host in cluster === | ||
+ | <code bash> | ||
+ | curl -k -XPOST https://admin:<password>@<hostname>:9200/_flush/synced --CApath /etc/elasticsearch/root-ca-key.pem | ||
+ | </code> | ||
+ | |||
+ | === Stop / Upgrade / start Services === | ||
+ | <code bash> | ||
+ | systemctl stop kibana.service | ||
+ | systemctl stop elasticsearch.service | ||
+ | dnf install opendistroforelasticsearch-1.12.0 -y | ||
+ | dnf install opendistroforelasticsearch-kibana-1.12.0 -y | ||
+ | systemctl start elasticsearch.service | ||
+ | systemctl start kibana.service | ||
+ | </code> | ||
+ | |||
+ | === Enable Sharding === | ||
+ | <code bash> | ||
+ | curl -k -H 'Content-Type: application/json' -XPUT -d '{ | ||
+ | "persistent": { | ||
+ | "cluster.routing.allocation.enable": "all" | ||
} | } | ||
}' https://admin:<password>@<hostname>:9200/_cluster/settings --CApath /etc/elasticsearch/root-ca-key.pem | }' https://admin:<password>@<hostname>:9200/_cluster/settings --CApath /etc/elasticsearch/root-ca-key.pem | ||
</code> | </code> |