I'm using ES 0.19.0. While the cluster was running I set the
index.merge.policy.segments_per_tier setting to a new value (before it was
the default value) dynamically for all the indices through the Update
Settings API. After that I checked the settings of the indices and it
indeed appeared there so seems to work fine.
Then I edited my configuration file (elasticsearch.yml) and added the same
option there too:
index.merge.policy.segments_per_tier:
After that I restarted the cluster and checked again the setting of the
indices but the new index.merge.policy.segments_per_tier setting was not
there (so it's probably using the default setting again). Did I do
something wrong? I was expecting that all settings coming from the
elasticsearch.yml are used automatically.
Configuration file aside, it's strange that the index settings didn't
persist after restart. Can you double-check that? They might appear in a
different order.
As for index settings not being applied from the configuration, I can also
reproduce this on 0.19.10 with quite a lot of such settings:
At this point I'm not sure whether this is how it should be. I guess you
can always open an issue on github about it.
In any case, you have the option of using index templates to work around
this. You can also store them in configuration and it works. Plus, you can
update the templates from configuration without restarting Elasticsearch.
Take a look here for details:
On Monday, October 15, 2012 11:23:33 AM UTC+3, Stefan Pi wrote:
Hi everybody,
I'm using ES 0.19.0. While the cluster was running I set the
index.merge.policy.segments_per_tier setting to a new value (before it was
the default value) dynamically for all the indices through the Update
Settings API. After that I checked the settings of the indices and it
indeed appeared there so seems to work fine.
Then I edited my configuration file (elasticsearch.yml) and added the same
option there too:
index.merge.policy.segments_per_tier:
After that I restarted the cluster and checked again the setting of the
indices but the new index.merge.policy.segments_per_tier setting was not
there (so it's probably using the default setting again). Did I do
something wrong? I was expecting that all settings coming from the
elasticsearch.yml are used automatically.
I don't think you did something wrong here. Previously your setting
was stored inside the cluster metadata. Now your setting is stored in
the elasticsearch.yml and loaded during startup. The get settings api
only shows the settings in the cluster metadata.
Did you saved the set the 'segments_per_tier' option in all
elasticsearch.yml files in your cluster? If not then only the nodes
with the this setting will merge segments with this new value in mind.
I'm using ES 0.19.0. While the cluster was running I set the
index.merge.policy.segments_per_tier setting to a new value (before it was
the default value) dynamically for all the indices through the Update
Settings API. After that I checked the settings of the indices and it indeed
appeared there so seems to work fine.
Then I edited my configuration file (elasticsearch.yml) and added the same
option there too:
index.merge.policy.segments_per_tier:
After that I restarted the cluster and checked again the setting of the
indices but the new index.merge.policy.segments_per_tier setting was not
there (so it's probably using the default setting again). Did I do something
wrong? I was expecting that all settings coming from the elasticsearch.yml
are used automatically.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.