Am 15.09.2010 01:02 schrieb Paul:
Still in dev mode, so am clearing my data semi-frequently.
I noticed that on 0.10.0, when I clear the gateway, nodes still come
up and use their local work directories. Is this correct behavior? Not
it is, as long as not all data_nodes were shutdown. The gateway is just
for "longtime persistency", needed in case of a total breakdown of the
cluster. As long as at least one data_node has the index mirrored
locally (that is, it has its "running" index), all other nodes that may
join will get the data from that node, shared through the network-layer.
If all data_nodes are down and if you then bring one up newly, even if
there is a "local" index (Shay speaks of it as a temporary directory
), that index will be ignored and it is tried to load the shared gateway
(if we are speaking of the usage of a shared_filesystem, that is).
a big deal, but in order to clear the cluster state, I now need to
clear the work directory from each node, as well as, the gateway
need not. Just shutdown the cluster e.g. with:
$ curl -XPOST 'http://localhost:9200/_cluster/nodes/_all/_shutdown'
It's definitely debatable on what the correct behavior should be, but
was curious if this was the intent.
it depends on the character of the gateway. The new "local" gateway
will act differently I am sure but not experienced yet.
I am using ES version 0.9, but the behaviour should be the same on 0.10.