I've a decently sized ES index (10TB) with 50 split on 50 machines (1 shard each), close to 10B rows. Machines are top-tier (the largest you can get on AWS). RAM per ES instance is set to 30 GB.
Whenever I run a very simple query such as :
POST /my_index/_search
{
"size": 1,
"query": {
"match_all": {}
}
}
It takes between 2 to 20+ seconds (I even got 502):
Response
{
"took" : 17584,
"timed_out" : false,
"_shards" : {
"total" : 50,
"successful" : 50,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 1.0,
"hits" : [
{
Is there a way to make it faster? I noticed that the LIMIT clause is not working great in ElasticSearch (or better, I'm probably not using it right)