Something that could happen is that with 0 replicas all the data fit into
your filesystem cache (so everything is done in memory) while with 1
replica, some filesystem operations are translated to actual disk seeks.

Another different between 0 and 1 replicas is that in the latter case,
elasticsearch will wait for the data to be written on 2 shards before
returning. When indexing is slow, are you maxing out the CPU and I/O of
your machine? If not then maybe you just need to increase the concurrency
of indexing requests on client side?

On Wed, Nov 5, 2014 at 9:51 AM, 이윤동 <leey...@gmail.com> wrote:

> thanks answer!
>
> when replica 0, index speed fast,
> when replica 1, index speed very slow...
>
> refresh interval same.120s
> id lookup is good point.
> but we need out id, can't use auto-generated id.. T.T
>
> and when replica 0 and 1, always id lookup.
>
> 2014년 11월 5일 수요일 오후 5시 14분 54초 UTC+9, 이윤동 님의 말:
>
>> hi! my first question!
>>
>> if replica 0 bulk index, then disk read, write ratio same.
>> but batch finish after... disk read is high than write.
>> disk read = 10 X disk write...
>>
>> so cpu load is high, then batch index very slow.. T.T
>>
>>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/99a66b9e-2373-49d1-be46-c47c2c76987a%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/99a66b9e-2373-49d1-be46-c47c2c76987a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Adrien Grand

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j7Ki0k3BNtbLo%3DaRToOJMCtyuBGO3u_%3D6UymNcejjkPwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to