I would appreciate some help here or over on StackOverflow... Thanks! -David
Getting an ElasticSearch Cluster to Green (Cluster Setup on OS X)
I have installed ElasticSearch on Mac OS X using Homebrewhttps://github.com/mxcl/homebrew/blob/master/Library/Formula/elasticsearch.rb.
It works. The cluster started off with "green" healthhttp://www.elasticsearch.org/guide/reference/api/admin-cluster-health.html.
However, right after adding data, it has gone to "yellow".
The cluster health is status is: green, yellow or red. On the shard level,
a red status indicates that the specific shard is not allocated in the
cluster, yellow means that the primary shard is allocated but replicas are
not, and green means that all shards are allocated. The index level status
is controlled by the worst shard status. The cluster status is controlled
by the worst index status.
So, my replica shards are not allocated. How do I allocate them? (I'm
thinking out loud.)
According to Shay on "I keep getting cluster health status of Yellow"http://elasticsearch-users.115913.n3.nabble.com/I-keep-getting-cluster-health-status-of-Yellow-td929520.html:
"the shard allocation mechanism does not allocate a shard and its replica
on the same node, though it does allocate different shards on the same
node. So, you will need two nodes to get cluster state of green."
So, I need to start up a second node. I did this by:
cp homebrew.mxcl.elasticsearch.plist homebrew.mxcl.elasticsearch-2.plist
launchctl load -wF ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch-2.plist
Now I have "Korvus" on http://localhost:9200/ and "Iron Monger" on
http://localhost:9201/. Woot. But, I don't see any indications that they
know about each other. How do I connect / introduce them to each other?
Note: I read Zen Discoveryhttp://www.elasticsearch.org/guide/reference/modules/discovery/zen.html,
but do not feel enlightened yet.