mstein / elasticsearch-grails-plugin

ElasticSearch grails plugin
Based on Graeme Rocher initial stub. Note that it is still in early stage.
Other
62 stars 164 forks source link

SearchableClassMappingConfigurator waits for green status #6

Closed tcrossland closed 12 years ago

tcrossland commented 12 years ago

Hi Manuarii,

When running elasticsearch with a single node, the cluster health will never become "Green" as none of the shards are replicated. I guess this is a fairly common scenario (especially in dev/test environments).

The problem with waitForGreenStatus() is that it adds 30 seconds to application startup time. I've made a change to use waitForYellowStatus() instead, not sure if this could have implications in multi-node clusters.

Thanks!

mstein commented 12 years ago

Hi, you're right, I don't think it would be a issue, I've also changed it in the latest head for now.