Rolling upgrade


(W0lverine) #1

I am trying to update ES as a rolling upgrade for the 1st time. ( I am a new user) and I am reading the documentation and I come across this syntax that is another representation of JSON:

PUT /_cluster/settings
{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}'

Source: https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html

I thought it was shorthand notation for the following:

curl -POST localhost:9200/elk_cluser_main/settings -d '
{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}'

Obviously I am wrong. Can someone explain this shorthand notation?


(Mark Walkom) #2

It's just;

curl -XPUT host:9200/_cluster/settings -d '{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}'

That syntax is Sense formatted.


(W0lverine) #3

Should have clicked on that sense hyperlink in the docs. Thanks!


(system) #4