The effective way to update elasticsearch.yml

Hi ES guys

I am a n00b to elasticsearch. We have a cluster of ES nodes(24 hosts). I
need to enable the "http.compression" to for this cluster. Do I have to
manually edit the elasticsearch.yml file in each host and then restart
elasticserach service in each host to take the configuration change? Is
there an easier way for me to do that, such as a http endpoint to enable
the "http.compression"?

Thanks a lot for the help.

Xiaolin.

--
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/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes this is an update and restart.

You should really be using things like puppet/chef/ansible to manage config
:slight_smile:

On 19 February 2015 at 08:51, Xiaolin Xie alphabnu@gmail.com wrote:

Hi ES guys

I am a n00b to elasticsearch. We have a cluster of ES nodes(24 hosts). I
need to enable the "http.compression" to for this cluster. Do I have to
manually edit the elasticsearch.yml file in each host and then restart
elasticserach service in each host to take the configuration change? Is
there an easier way for me to do that, such as a http endpoint to enable
the "http.compression"?

Thanks a lot for the help.

Xiaolin.

--
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/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%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/CAEYi1X9ye4KQ-%2B26QrAt10Z_Df%2BHF8BQd8GLpvTqNUn-ojnmfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Mark

Thanks a lot for the quick response. Does elasticsearch itself has any
restful API for me to enable the option "http.compression"? Thus, one http
request to the ES cluster will do the job for me.

Xiaolin.

On Wednesday, February 18, 2015 at 2:10:32 PM UTC-8, Mark Walkom wrote:

Yes this is an update and restart.

You should really be using things like puppet/chef/ansible to manage
config :slight_smile:

On 19 February 2015 at 08:51, Xiaolin Xie <alph...@gmail.com <javascript:>

wrote:

Hi ES guys

I am a n00b to elasticsearch. We have a cluster of ES nodes(24 hosts). I
need to enable the "http.compression" to for this cluster. Do I have to
manually edit the elasticsearch.yml file in each host and then restart
elasticserach service in each host to take the configuration change? Is
there an easier way for me to do that, such as a http endpoint to enable
the "http.compression"?

Thanks a lot for the help.

Xiaolin.

--
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/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%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/54972514-f883-41d3-b90a-7d6080bce111%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Turns out you can enable this dynamically, but you have to close all your
indices for it to be accepted.

On 19 February 2015 at 10:08, Xiaolin Xie alphabnu@gmail.com wrote:

Hi Mark

Thanks a lot for the quick response. Does elasticsearch itself has any
restful API for me to enable the option "http.compression"? Thus, one http
request to the ES cluster will do the job for me.

Xiaolin.

On Wednesday, February 18, 2015 at 2:10:32 PM UTC-8, Mark Walkom wrote:

Yes this is an update and restart.

You should really be using things like puppet/chef/ansible to manage
config :slight_smile:

On 19 February 2015 at 08:51, Xiaolin Xie alph...@gmail.com wrote:

Hi ES guys

I am a n00b to elasticsearch. We have a cluster of ES nodes(24 hosts). I
need to enable the "http.compression" to for this cluster. Do I have to
manually edit the elasticsearch.yml file in each host and then restart
elasticserach service in each host to take the configuration change? Is
there an easier way for me to do that, such as a http endpoint to enable
the "http.compression"?

Thanks a lot for the help.

Xiaolin.

--
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/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%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/54972514-f883-41d3-b90a-7d6080bce111%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/54972514-f883-41d3-b90a-7d6080bce111%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/CAEYi1X8_Ugh86Z2fd7yo5bVkKoveVadgoQHeyw4XeV-XAzqxtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Mark

I am a little bit confused here. The option(http.compression) makes
elasticsearch return a "zipped" http response to client when possible (with
Accept-Encoding). Why does it request the close of indices? what do you
mean "close" here?

In addition, what is the http endpoint for enable this option?

Thanks a lot for your help

Xiaolin.

On Wednesday, February 18, 2015 at 4:18:31 PM UTC-8, Mark Walkom wrote:

Turns out you can enable this dynamically, but you have to close all your
indices for it to be accepted.

On 19 February 2015 at 10:08, Xiaolin Xie <alph...@gmail.com <javascript:>

wrote:

Hi Mark

Thanks a lot for the quick response. Does elasticsearch itself has any
restful API for me to enable the option "http.compression"? Thus, one http
request to the ES cluster will do the job for me.

Xiaolin.

On Wednesday, February 18, 2015 at 2:10:32 PM UTC-8, Mark Walkom wrote:

Yes this is an update and restart.

You should really be using things like puppet/chef/ansible to manage
config :slight_smile:

On 19 February 2015 at 08:51, Xiaolin Xie alph...@gmail.com wrote:

Hi ES guys

I am a n00b to elasticsearch. We have a cluster of ES nodes(24 hosts).
I need to enable the "http.compression" to for this cluster. Do I have to
manually edit the elasticsearch.yml file in each host and then restart
elasticserach service in each host to take the configuration change? Is
there an easier way for me to do that, such as a http endpoint to enable
the "http.compression"?

Thanks a lot for the help.

Xiaolin.

--
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/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/54972514-f883-41d3-b90a-7d6080bce111%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/54972514-f883-41d3-b90a-7d6080bce111%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/d7dc7739-4c59-4483-82b0-0efdadb2b39c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

There are some settings you can update dynamically so I tried to see if I
could update this one dynamically.
It initially looked like my tests worked, hence my comment, but further
testing shows I was going down the wrong path. So apologies about that :slight_smile:

You will need to update your config and restart the process for it to be
read.

On 19 February 2015 at 12:39, Xiaolin Xie alphabnu@gmail.com wrote:

Hi Mark

I am a little bit confused here. The option(http.compression) makes
elasticsearch return a "zipped" http response to client when possible (with
Accept-Encoding). Why does it request the close of indices? what do you
mean "close" here?

In addition, what is the http endpoint for enable this option?

Thanks a lot for your help

Xiaolin.

On Wednesday, February 18, 2015 at 4:18:31 PM UTC-8, Mark Walkom wrote:

Turns out you can enable this dynamically, but you have to close all your
indices for it to be accepted.

On 19 February 2015 at 10:08, Xiaolin Xie alph...@gmail.com wrote:

Hi Mark

Thanks a lot for the quick response. Does elasticsearch itself has any
restful API for me to enable the option "http.compression"? Thus, one http
request to the ES cluster will do the job for me.

Xiaolin.

On Wednesday, February 18, 2015 at 2:10:32 PM UTC-8, Mark Walkom wrote:

Yes this is an update and restart.

You should really be using things like puppet/chef/ansible to manage
config :slight_smile:

On 19 February 2015 at 08:51, Xiaolin Xie alph...@gmail.com wrote:

Hi ES guys

I am a n00b to elasticsearch. We have a cluster of ES nodes(24 hosts).
I need to enable the "http.compression" to for this cluster. Do I have to
manually edit the elasticsearch.yml file in each host and then restart
elasticserach service in each host to take the configuration change? Is
there an easier way for me to do that, such as a http endpoint to enable
the "http.compression"?

Thanks a lot for the help.

Xiaolin.

--
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/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%40goo
glegroups.com
https://groups.google.com/d/msgid/elasticsearch/e2f1fdb0-f8a3-436d-8c22-0f1461ab189d%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 elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/54972514-f883-41d3-b90a-7d6080bce111%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/54972514-f883-41d3-b90a-7d6080bce111%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/d7dc7739-4c59-4483-82b0-0efdadb2b39c%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/d7dc7739-4c59-4483-82b0-0efdadb2b39c%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/CAEYi1X_rVMNgXRrTgBA5iHQ2%2BWCTxGDjuH9%2BjFG4ytVrNzPRvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.