# Best way to duplicate data across clusters live?

**URL:** <https://discuss.elastic.co/t/best-way-to-duplicate-data-across-clusters-live/16330>\
**Category:** Elasticsearch\
**Created:** [March 12, 2014, 6:55pm UTC](https://discuss.elastic.co/t/best-way-to-duplicate-data-across-clusters-live/16330 "2014-03-12T18:55:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Harrison](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@Josh\_Harrison](https://discuss.elastic.co/u/Josh_Harrison)\
**Post date:** [March 12, 2014, 6:55pm UTC](https://discuss.elastic.co/t/best-way-to-duplicate-data-across-clusters-live/16330/1 "2014-03-12T18:55:58Z")

</div>

Say I have clusters A and B. Cluster A is consuming data using an ActiveMQ  
river. I would like to stream data to cluster B as well. Do I just create a  
secondary outbound AMQ channel and subscribe cluster B to it, or is there a  
decent way to have a live copy of data going two places at once?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e58efbd5-0cc0-436d-8a41-5f7987587881%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e58efbd5-0cc0-436d-8a41-5f7987587881%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 12, 2014, 9:36pm UTC](https://discuss.elastic.co/t/best-way-to-duplicate-data-across-clusters-live/16330/2 "2014-03-12T21:36:42Z")

</div>

It'd be simpler to do it on the AMQ end and keep your clusters separate.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 13 March 2014 05:55, Josh Harrison [hijakk@gmail.com](mailto:hijakk@gmail.com) wrote:

> Say I have clusters A and B. Cluster A is consuming data using an ActiveMQ  
> river. I would like to stream data to cluster B as well. Do I just create a  
> secondary outbound AMQ channel and subscribe cluster B to it, or is there a  
> decent way to have a live copy of data going two places at once?
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e58efbd5-0cc0-436d-8a41-5f7987587881%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e58efbd5-0cc0-436d-8a41-5f7987587881%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/e58efbd5-0cc0-436d-8a41-5f7987587881%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e58efbd5-0cc0-436d-8a41-5f7987587881%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624b-SPXHz2\_-uBzKVHUddu5Pq6H3KA9UY6S-V6Qh-hhORw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624b-SPXHz2_-uBzKVHUddu5Pq6H3KA9UY6S-V6Qh-hhORw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [March 12, 2014, 9:46pm UTC](https://discuss.elastic.co/t/best-way-to-duplicate-data-across-clusters-live/16330/3 "2014-03-12T21:46:19Z")

</div>

Consider Kafka 0.8.1. It comes with a MirrorMaker tool that mirrors Kafka  
data (to multiple DCs). Once data is local, you can feed your ES from the  
local Kafka broker.

## Otis

Performance Monitoring \* Log Analytics \* Search Analytics  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

On Wednesday, March 12, 2014 2:55:58 PM UTC-4, Josh Harrison wrote:

> Say I have clusters A and B. Cluster A is consuming data using an ActiveMQ  
> river. I would like to stream data to cluster B as well. Do I just create a  
> secondary outbound AMQ channel and subscribe cluster B to it, or is there a  
> decent way to have a live copy of data going two places at once?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/597c9897-2746-4abb-8848-f694d6afe040%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/597c9897-2746-4abb-8848-f694d6afe040%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Josh\_Harrison](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@Josh\_Harrison](https://discuss.elastic.co/u/Josh_Harrison)\
**Post date:** [March 12, 2014, 10:13pm UTC](https://discuss.elastic.co/t/best-way-to-duplicate-data-across-clusters-live/16330/4 "2014-03-12T22:13:56Z")

</div>

Kafka looks interesting, though at this point we're actively trying to  
reduce the number of moving parts, so I think an AMQ based approach is what  
we'll ultimately go for.  
Seems like there might be room here for an  
elasticsearch-elasticsearch-river plugin or something - to do one or two  
way close to real time replication on some selected set of indexes between  
separate clusters. That way you could easily mirror prod data to a dev  
environment without depending on the ability to do the duplication earlier  
in the pipeline, or depending on scripts to move the data around.

On Wednesday, March 12, 2014 2:46:19 PM UTC-7, Otis Gospodnetic wrote:

> Consider Kafka 0.8.1. It comes with a MirrorMaker tool that mirrors Kafka  
> data (to multiple DCs). Once data is local, you can feed your ES from the  
> local Kafka broker.
> 
> ## Otis
> 
> Performance Monitoring \* Log Analytics \* Search Analytics  
> Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)
> 
> On Wednesday, March 12, 2014 2:55:58 PM UTC-4, Josh Harrison wrote:
> 
> > Say I have clusters A and B. Cluster A is consuming data using an  
> > ActiveMQ river. I would like to stream data to cluster B as well. Do I just  
> > create a secondary outbound AMQ channel and subscribe cluster B to it, or  
> > is there a decent way to have a live copy of data going two places at once?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6b1bdbe4-e2fa-4b10-9298-62d3d1869842%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6b1bdbe4-e2fa-4b10-9298-62d3d1869842%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:43am UTC](https://discuss.elastic.co/t/best-way-to-duplicate-data-across-clusters-live/16330/5 "2017-07-06T01:43:37Z")

</div>


