Get elasticsearch settings


(eunever32) #1

I have what I think is an obvious question. If I tweak some settings such
as:

index.translog.flush_threshold_period

or
index.merge.policy.use_compound_file

or
index.refresh_interval

or
indices.memory.index_buffer_size

or
index.cache.field.type

or
index.gateway.snapshot_interval

Is it possible to do say

GET /_settings?name=...

???

What I find in practice is that sometimes it gives a result. Such as:
GET /_all/_settings?name=index.refresh_interval

But mostly it's just blank if I do

GET /_all/_settings?name=bullybeef.n.chips

I get {} as if to suggest it's just not set yet. And it might be a valid
setting (instead of an error: no such setting: "bullybeef.n.chips")

Another setting I would like to confirm is

threadpool.bulk.queue_size

but how?

Thanks

--
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/7da3a9e2-e3ca-4567-812b-f5aa4e0f9445%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Binh Ly-2) #2

Unfortunately, there is no 1 place to get all settings. However, you can
usually get them as follows:

  1. Cluster settings: curl "localhost:9200/_cluster/settings?pretty"

  2. Index settings: curl "localhost:9200/foo/_settings?pretty"

  3. Node settings: curl "localhost:9200/_nodes?pretty"

So for example, thread pool settings would be per node:

curl "localhost:9200/_nodes/thread_pool?pretty"

--
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/16c0ff63-6247-4d1f-bd57-9f8ee59e74c2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(eunever32) #3

Thanks!

I still can't seem to find these settings.

Apologies in advance if I am just missing them...
indices.memory.index_buffer_size
indices.memory.min_shard_index_buffer_size
indices.memory.min_index_buffer_size

And when I run the _cluster/settings all I get is:
{
"persistent": {},
"transient": {}
}

?

Thanks

On Tuesday, March 4, 2014 10:44:57 PM UTC, Binh Ly wrote:

Unfortunately, there is no 1 place to get all settings. However, you can
usually get them as follows:

  1. Cluster settings: curl "localhost:9200/_cluster/settings?pretty"

  2. Index settings: curl "localhost:9200/foo/_settings?pretty"

  3. Node settings: curl "localhost:9200/_nodes?pretty"

So for example, thread pool settings would be per node:

curl "localhost:9200/_nodes/thread_pool?pretty"

--
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/de5f7ae1-e529-4ed7-bd5c-d33da918a022%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(The Dude) #4

Unfortunately I cannot help you but I am wondering how to do the same thing.

On Friday, March 7, 2014 12:29:18 AM UTC+9, eune...@gmail.com wrote:

Thanks!

I still can't seem to find these settings.

Apologies in advance if I am just missing them...
indices.memory.index_buffer_size
indices.memory.min_shard_index_buffer_size
indices.memory.min_index_buffer_size

And when I run the _cluster/settings all I get is:
{
"persistent": {},
"transient": {}
}

?

Thanks

On Tuesday, March 4, 2014 10:44:57 PM UTC, Binh Ly wrote:

Unfortunately, there is no 1 place to get all settings. However, you can
usually get them as follows:

  1. Cluster settings: curl "localhost:9200/_cluster/settings?pretty"

  2. Index settings: curl "localhost:9200/foo/_settings?pretty"

  3. Node settings: curl "localhost:9200/_nodes?pretty"

So for example, thread pool settings would be per node:

curl "localhost:9200/_nodes/thread_pool?pretty"

--
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/1a3f444f-ee8e-4b0d-be7c-21a9390cafe3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(The Dude) #5

Looking through the docs, it doesn't seem like we can change the
index_buffer_size through the cluster update api.

--
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/587f03d9-c423-4b6c-b204-78f49d6244ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #6