Updating node settings

Hello,
I would like to update the settings of all the nodes in our cluster without
having to restart them. The settings are the following:
PUT _cluster/settings
{
"persistent" : {
"gateway.type": "local",
"gateway.recover_after_nodes": 3,
"gateway.expected_nodes": 3,
"gateway.recover_after_time": "30m",
"gateway.local.auto_import_dangled": "no",
"gateway.local.dangling_timeout": "30m"
}
}

After executing the precious instruction I get an "aknowledge:true" answer,
however when I try to get the settings via "get _nodes/settings", those
settings are not updated at all. Any idea why this happens? Do these
settings require a restart?

Kind regards,

Ernesto

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maybe because you are looking at _node when you applied it to _cluster, see
if they are returned when you get _cluster/settings.

Cluster settings are applied to the nodes, but they are not "stored' in the
same API endpoint.

On 3 December 2014 at 22:10, Ernesto Reig ernirulez@gmail.com wrote:

Hello,
I would like to update the settings of all the nodes in our cluster
without having to restart them. The settings are the following:
PUT _cluster/settings
{
"persistent" : {
"gateway.type": "local",
"gateway.recover_after_nodes": 3,
"gateway.expected_nodes": 3,
"gateway.recover_after_time": "30m",
"gateway.local.auto_import_dangled": "no",
"gateway.local.dangling_timeout": "30m"
}
}

After executing the precious instruction I get an "aknowledge:true"
answer, however when I try to get the settings via "get _nodes/settings",
those settings are not updated at all. Any idea why this happens? Do these
settings require a restart?

Kind regards,

Ernesto

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8a5%3D5hx69KngkuY9aEkbK4i6J-RyEUOsZVaP9GDgmpwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

That was the first place I look into (get _cluster/settings), and I just
got:
{
"persistent": {},
"transient": {}
}

On Wednesday, December 3, 2014 12:29:19 PM UTC+1, Mark Walkom wrote:

Maybe because you are looking at _node when you applied it to _cluster,
see if they are returned when you get _cluster/settings.

Cluster settings are applied to the nodes, but they are not "stored' in
the same API endpoint.

On 3 December 2014 at 22:10, Ernesto Reig <erni...@gmail.com <javascript:>

wrote:

Hello,
I would like to update the settings of all the nodes in our cluster
without having to restart them. The settings are the following:
PUT _cluster/settings
{
"persistent" : {
"gateway.type": "local",
"gateway.recover_after_nodes": 3,
"gateway.expected_nodes": 3,
"gateway.recover_after_time": "30m",
"gateway.local.auto_import_dangled": "no",
"gateway.local.dangling_timeout": "30m"
}
}

After executing the precious instruction I get an "aknowledge:true"
answer, however when I try to get the settings via "get _nodes/settings",
those settings are not updated at all. Any idea why this happens? Do these
settings require a restart?

Kind regards,

Ernesto

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Then that's not a setting you can apply via the API, you need to edit the
elaticsearch.yml and restart unfortunately.

On 3 December 2014 at 22:31, Ernesto Reig ernirulez@gmail.com wrote:

That was the first place I look into (get _cluster/settings), and I just
got:
{
"persistent": {},
"transient": {}
}

On Wednesday, December 3, 2014 12:29:19 PM UTC+1, Mark Walkom wrote:

Maybe because you are looking at _node when you applied it to _cluster,
see if they are returned when you get _cluster/settings.

Cluster settings are applied to the nodes, but they are not "stored' in
the same API endpoint.

On 3 December 2014 at 22:10, Ernesto Reig erni...@gmail.com wrote:

Hello,
I would like to update the settings of all the nodes in our cluster
without having to restart them. The settings are the following:
PUT _cluster/settings
{
"persistent" : {
"gateway.type": "local",
"gateway.recover_after_nodes": 3,
"gateway.expected_nodes": 3,
"gateway.recover_after_time": "30m",
"gateway.local.auto_import_dangled": "no",
"gateway.local.dangling_timeout": "30m"
}
}

After executing the precious instruction I get an "aknowledge:true"
answer, however when I try to get the settings via "get _nodes/settings",
those settings are not updated at all. Any idea why this happens? Do these
settings require a restart?

Kind regards,

Ernesto

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ok, thank you very much for the answer :slight_smile:

On 3 December 2014 at 12:59, Mark Walkom markwalkom@gmail.com wrote:

Then that's not a setting you can apply via the API, you need to edit the
elaticsearch.yml and restart unfortunately.

On 3 December 2014 at 22:31, Ernesto Reig ernirulez@gmail.com wrote:

That was the first place I look into (get _cluster/settings), and I just
got:
{
"persistent": {},
"transient": {}
}

On Wednesday, December 3, 2014 12:29:19 PM UTC+1, Mark Walkom wrote:

Maybe because you are looking at _node when you applied it to _cluster,
see if they are returned when you get _cluster/settings.

Cluster settings are applied to the nodes, but they are not "stored' in
the same API endpoint.

On 3 December 2014 at 22:10, Ernesto Reig erni...@gmail.com wrote:

Hello,
I would like to update the settings of all the nodes in our cluster
without having to restart them. The settings are the following:
PUT _cluster/settings
{
"persistent" : {
"gateway.type": "local",
"gateway.recover_after_nodes": 3,
"gateway.expected_nodes": 3,
"gateway.recover_after_time": "30m",
"gateway.local.auto_import_dangled": "no",
"gateway.local.dangling_timeout": "30m"
}
}

After executing the precious instruction I get an "aknowledge:true"
answer, however when I try to get the settings via "get _nodes/settings",
those settings are not updated at all. Any idea why this happens? Do these
settings require a restart?

Kind regards,

Ernesto

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e7221ad8-7041-44cd-b271-063a2b15384e%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/044a4499-8ba3-4942-b7d5-d1329b869a77%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/OFHKnlMbBEw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9g%2BFwdHeS71MyXXZDEUr1-3BQ6fBugpc05xcLNWCHH3A%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAJg-YDLSMC9176E12H%3Db98Dq%2BEq0bHSbvDcMKgU25qUnuJiNAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.