Is it possible to create indexes on one node of a cluster and copy it to another

Hello,
I'm wondering if it's possible to create an elasticsearch index on one node
in the cluster and then when it is complete copy it to another node....(and
ultimately delete from the original). In rare cases it is necessary to
rebuild indexes into smaller indexes. I'm thinking that if we had a
"souped" up server with maybe more memory and/or CPU's we could rebuild the
index on this server without impacting other servers. When the index
re-build is complete we could just tar it up (or copy) it to a different
server...(and maybe just update metadata appropriately).

Anyone know if this is possible?

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

On Wed, 2013-03-20 at 18:11 -0700, Dave O wrote:

Hello,
I'm wondering if it's possible to create an elasticsearch index on one
node in the cluster and then when it is complete copy it to another
node....(and ultimately delete from the original). In rare cases it
is necessary to rebuild indexes into smaller indexes. I'm thinking
that if we had a "souped" up server with maybe more memory and/or
CPU's we could rebuild the index on this server without impacting
other servers. When the index re-build is complete we could just tar
it up (or copy) it to a different server...(and maybe just update
metadata appropriately).

Yes you can. In fact the easiest way would be:

  1. start a new node with a different cluster name (so it forms its own
    cluster)
  2. index into that node
  3. shut it down
  4. change the cluster name to the main cluster name and restart
    -> it joins the main cluster, which imports the new index
    and allocates replica shards within the existing nodes
  5. Once cluster is green, shut down the extra node
    -> the replica shards are promoted to primaries, and it
    allocates new replicas on other machines within the cluster

clint

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.