How expensive is querying the cluster health

(Jeroen Soeters) #1

I would like to understand better how expensive the client.admin().cluster().prepareHealth().get().getStatus() is. Is this something you can do every 10 seconds, every second, multiple times per second? What is the impact? I'm using ES 2.4 right now.

(Simon Willnauer) #2

do you want to get the status of the cluster then just use the default endpoint / it will be fast and will give you a 200 unless the cluster is red then it will respond with a 500. you can also hammer it with requests that should be fine.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.