In my current setup I have a 2 node elasticsearch cluster (EC2 m1.medium
machines),
and the need of making a 100+ query batch at certain times in my
application.
The queries follow this structure:http://pastebin.com/HbZSET16
But may vary in the number of conditions inside the "must" or the "should"
(as a general rule it will not exceed, say, 6 conditions).
The Example on pastebin has 3 conditions, which are "has_child" queries,
each running on a different child type (we may assume that this will always
be the case).
Running 60 of those queries took 15 seconds, which is too slow for my
application, is there any way to speed it up?
The obvious question being: Putting more and more powerful machines on the
cluster (say, 10 xlarge machines) will speed this process up? could I
achieve a < 5s time?

Yes, adding/upgrading nodes should decrease the time for each query. While
adding nodes, adding more replicas should help support more concurrent
queries. Which should also decrease your total time because you seem to
have many queries running at once.

Since you're on EC2, it should be pretty easy to add some more nodes to
your cluster and do a quick test to see how much better performance gets.
On Dec 2, 2013 6:21 PM, "Matheus Salvia" matheus2740@gmail.com wrote:

Hello everyone,

In my current setup I have a 2 node elasticsearch cluster (EC2 m1.medium
machines),
and the need of making a 100+ query batch at certain times in my
application.
The queries follow this structure:http://pastebin.com/HbZSET16
But may vary in the number of conditions inside the "must" or the "should"
(as a general rule it will not exceed, say, 6 conditions).
The Example on pastebin has 3 conditions, which are "has_child" queries,
each running on a different child type (we may assume that this will always
be the case).
Running 60 of those queries took 15 seconds, which is too slow for my
application, is there any way to speed it up?
The obvious question being: Putting more and more powerful machines on the
cluster (say, 10 xlarge machines) will speed this process up? could I
achieve a < 5s time?

I have found ec2 to be pretty poor in terms of performance. It is really handy for scaling up and down, but mot so good for speed. This is even more the case if you want your data on ebs, which is handy but non-local.
Have you you considered different hosting options. You can get 1 month deals from linode, and hetzner has eur99/month dedicated servers.
You might find this type of setup easier to manage than a cluster of machines...