Hello together,
I have a really strange behaviour and need your wisdom.
At first some information about my setup:
2 Nodes
60 Shards
15 Indices
300 millions documents
125gb size
1 replica
After a fresh start of Elasticsearch the following request is very fast:
curl "http://localhost:9200/_all/event/_search?pretty=true"http://localhost:9200/_all/event/_search?pretty=true-d '{
"filter" : {
"term" : { "usert_id" : "510" }
},
"size" : "0"
}'
{
"took" : 105,
"timed_out" : false,
"_shards" : {
"total" : 60,
"successful" : 60,
"failed" : 0
},
"hits" : {
"total" : 24,
"max_score" : 1.0,
"hits" : [ ]
}
}
As you can see it took 105 milliseconds for 24 hits and that is great.
If I execute the same request and add a sort to it then the response time
is growing absurdly:
curl "http://localhost:9200/_all/event/_search?pretty=true"http://localhost:9200/_all/event/_search?pretty=true-d '{
"filter" : {
"term" : { "usert_id" : "510" }
},
"sort" : {
"time" : { "order" : "desc" }
},
"size" : "0"
}'
{
"took" : 129251,
"timed_out" : false,
"_shards" : {
"total" : 60,
"successful" : 60,
"failed" : 0
},
"hits" : {
"total" : 24,
"max_score" : null,
"hits" : [ ]
}
}
Do you have an idea what happends there? After the second execution the
sort-request is fast too, but if I excute the request after some minutes it
is slow again.
Cheers
Jonny
--
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/63d3e4e0-46d1-418e-a33b-77a0d65d55a1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.