ChristopherRabotin / bungiesearch

UNMAINTAINED CODE -- Elasticsearch-dsl-py django wrapper with mapping generator
BSD 3-Clause "New" or "Revised" License
67 stars 20 forks source link

Wait for cluster to reach green status after creation #124

Closed NullSoldier closed 9 years ago

NullSoldier commented 9 years ago

I realized my other PR was great for fixing some of the flakes we encountered, but really we need to wait for the green status to avoid all the failures that can happen on production elasticsearch providers. Yellow status does not wait for all shards to finish replication, but green does!

This new solution will create all indices asynchronously and then wait on them all synchronously for a large perf boost. You will only see this error if you're using a properly configured cluster production cluster.

landscape-bot commented 9 years ago

Code Health Repository health decreased by 0.27% when pulling 952fc8b on NullSoldier:wait-for-green into 13e0838 on Sparrho:master.