Optimum value for "max_num_segments"

Hi,

I have an ES v0.90.0 running on a single server with 1 shard 0 replica per
index configuration.
What is the optimum value for the old index optimize call:

curl -XPOST 'http://localhost:9200/twitter/_optimize?max_num_segments=2'

Should it be 2 or 3? How should it be decided? These are Logstash indexes
and they are rotated
daily. Therefore I plan to run the call once everyday.

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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello,

1 will give you the best search times, but it will put the most stress on
your system. So I would use 1, unless I'd be bothered by load.

If you are bothered by load, the best way to find a good trade-off is to
test different values while monitor your system with something like
SPMhttp://sematext.com/spm/elasticsearch-performance-monitoring/
.

Best regards,
Radu

On Wed, Jul 10, 2013 at 8:06 AM, subin ksubins321@gmail.com wrote:

Hi,

I have an ES v0.90.0 running on a single server with 1 shard 0 replica per
index configuration.
What is the optimum value for the old index optimize call:

curl -XPOST 'http://localhost:9200/twitter/_optimize?max_num_segments=*2*'

Should it be 2 or 3? How should it be decided? These are Logstash indexes
and they are rotated
daily. Therefore I plan to run the call once everyday.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

1 will give you the best search times, but it will put the most stress on

your system.

Does this extra stress occur on the system during the time optimize call is
being run? Or does optimizing by 1 put more stress on the system later
on also, when each time a search is run than what would have been if it was
2 or 3?

Re,

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello,

No, just during the optimize call. Later, your searches should be faster,
and should put less stress on your system.

If you need to find out "how much faster" and "how much less load", you'd
probably have to test for your particular use-case.

On Thu, Jul 11, 2013 at 9:03 AM, subin ks ksubins321@gmail.com wrote:

1 will give you the best search times, but it will put the most stress on

your system.

Does this extra stress occur on the system during the time optimize call
is being run? Or does optimizing by 1 put more stress on the system later
on also, when each time a search is run than what would have been if it
was 2 or 3?

Re,

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

That is nice.

Thanks Radu,
Subin

On Thu, Jul 11, 2013 at 4:13 PM, Radu Gheorghe
radu.gheorghe@sematext.comwrote:

Hello,

No, just during the optimize call. Later, your searches should be faster,
and should put less stress on your system.

If you need to find out "how much faster" and "how much less load", you'd
probably have to test for your particular use-case.

On Thu, Jul 11, 2013 at 9:03 AM, subin ks ksubins321@gmail.com wrote:

1 will give you the best search times, but it will put the most stress on

your system.

Does this extra stress occur on the system during the time optimize call
is being run? Or does optimizing by 1 put more stress on the system later
on also, when each time a search is run than what would have been if it
was 2 or 3?

Re,

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--
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/LSbF1Q0XTDY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.