I'm playing with ES to adjust some parameters for my needs and here is what
I can see.
I'm running on Ubuntu 64 bits, openJDK1.7.0_03 with elasticsearch 0.19.4
Here is my scenario:
I inject "small documents" (less than 10 fields).
I inject 1 000 000 docs.
I run one search query (with facet).
First test : Only one node and one shard with no replica
. Injection time : 155 s
. Search time : 972 ms
Second test : Five nodes (but on the same hardware) and 5 shards with no
. Injection time : 444 s
. Search time : 346 ms
As I can see, search time is better with multiple shards (nodes). That's
what I was expected.
But indexation time is worst (3 times) with multiple shards (nodes). At
least, I was thinking that I would get the same result.
What do you think ?
Is it because I'm running on the same hardware (file system) ? So I have
some IOWaits ?
Should I expect better results when running five nodes on different boxes or
at least different hard disks ?
That's not an issue. I can wait for 8 minutes to inject 1 million docs