aknostic / elasticsearch-cloudwatch

Elasticsearch plugin which posts ES data to CloudWatch
14 stars 3 forks source link

Should only the master node in the cluster report stats? #5

Open copiousfreetime opened 10 years ago

copiousfreetime commented 10 years ago

In both the elasticsearch-graphite-plugin and the elasticsearch-statsd-plugin they have a guard that only allows the master node to submit the stats. Is this something that should be added to the cloudwatch plugin?

locomundo commented 10 years ago

Perhaps for the cluster data, not for things like the JVM and OS data, which are node-specific. But even that might not bring a real benefit...

We see that sometimes an ES cluster is not healthy and for example "broken" in two, so some nodes see different things than others. So in that case you might want to see what each node is seeing, because even the master can be wrong at that time (or a node considers itself a master but it's only master of its broken piece of cluster :P).

locomundo commented 10 years ago

a suggestion from jurg: it could be made into an option :)