# Issue moving index between different node/shards configurations

**URL:** <https://discuss.elastic.co/t/issue-moving-index-between-different-node-shards-configurations/7157>\
**Category:** Elasticsearch\
**Created:** [March 28, 2012, 12:20am UTC](https://discuss.elastic.co/t/issue-moving-index-between-different-node-shards-configurations/7157 "2012-03-28T00:20:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrgrzcool](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rrgrzcool/32/2940_2.png) [@rrgrzcool](https://discuss.elastic.co/u/rrgrzcool)\
**Post date:** [March 28, 2012, 12:20am UTC](https://discuss.elastic.co/t/issue-moving-index-between-different-node-shards-configurations/7157/1 "2012-03-28T00:20:48Z")

</div>

I have a question regarding the issue of index copying. I've seen this discussed, but have not found a solution suiting my needs below. I would appreciate any guidance you can provide.

My current situation is such that I have 3 environments (all ES v0.18.4):  
(i)process, (ii) prod, (iii) dev

Currently, all 3 have the same configuration:  
2 nodes, 5 shards, replication=1

I generally index data on the "process" nodes, then rsync their data directories to the corresponding environment/node where I want to move the data. eg: to move my index from "process" to "dev", I would copy /data from "process node 1" to "dev node 1" and from "process node 2" to "dev node 2".

This works fine as long as every environment has the exact same node/shard config. However, I may soon need 50 nodes in prod, and only 1 in dev. Is there a proper (configuration-independent) method to do this?

To summarize my goal, I want to move data, regardless of X, Y, M, N:  
FROM: X process nodes with Y shards  
TO: M prod nodes with N shards

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 29, 2012, 2:19pm UTC](https://discuss.elastic.co/t/issue-moving-index-between-different-node-shards-configurations/7157/2 "2012-03-29T14:19:07Z")

</div>

Then you need to reindex that data, read it from one system and index it  
into the other.

On Wed, Mar 28, 2012 at 2:20 AM, rrgrzcool [greg.zimerman@gmail.com](mailto:greg.zimerman@gmail.com) wrote:

> I have a question regarding the issue of index copying. I've seen this  
> discussed, but have not found a solution suiting my needs below. I would  
> appreciate any guidance you can provide.
> 
> My current situation is such that I have 3 environments (all ES v0.18.4):  
> (i)process, (ii) prod, (iii) dev
> 
> Currently, all 3 have the same configuration:  
> 2 nodes, 5 shards, replication=1
> 
> I generally index data on the "process" nodes, then rsync their data  
> directories to the corresponding environment/node where I want to move the  
> data. eg: to move my index from "process" to "dev", I would copy /data from  
> "process node 1" to "dev node 1" and from "process node 2" to "dev node 2".
> 
> This works fine as long as every environment has the exact same node/shard  
> config. However, I may soon need 50 nodes in prod, and only 1 in dev. Is  
> there a proper (configuration-independent) method to do this?
> 
> To summarize my goal, I want to move data, regardless of X, Y, M, N:  
> FROM: X process nodes with Y shards  
> TO: M prod nodes with N shards
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/issue-moving-index-between-different-node-shards-configurations-tp3863195p3863195.html](http://elasticsearch-users.115913.n3.nabble.com/issue-moving-index-between-different-node-shards-configurations-tp3863195p3863195.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:34am UTC](https://discuss.elastic.co/t/issue-moving-index-between-different-node-shards-configurations/7157/3 "2017-07-06T03:34:13Z")

</div>

Closed on July 6, 2017, 3:34am UTC


