# Weaviate replication setup on VM's

**URL:** <https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988>\
**Category:** Support\
**Created:** [April 11, 2024, 2:33pm UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988 "2024-04-11T14:33:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![adithya.ch](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adithya.ch/32/615_2.png) [@adithya.ch](https://forum.weaviate.io/u/adithya.ch)\
**Post date:** [April 11, 2024, 2:33pm UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/1 "2024-04-11T14:33:32Z")

</div>

Hi Team,

We are trying to install weaviate on VM’s with storage volumes attached (persistent disk) instead of k8s installation and we are looking for multi-DC replication.

Please suggest

1. How to setup replication on VM based installation ?
2. Is there any way we can have active - active replication setup across multiple k8s clusters spread across multi data center setup ?

Regards,  
Adithya

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [April 11, 2024, 7:11pm UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/2 "2024-04-11T19:11:22Z")

</div>

hi @adithya.ch ! Welcome to our community 🤗

AFAIK, as long as each node can communicate with each other, they will replicate, considering that the collection is set up accordingly (replication factor).

Of course, the communication between each node will have more latency as they are across DC, but that is expected.

Let me know if this helps 🙂

---

<div class="post-metadata">

**Author:** ![adithya.ch](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adithya.ch/32/615_2.png) [@adithya.ch](https://forum.weaviate.io/u/adithya.ch)\
**Post date:** [April 11, 2024, 7:53pm UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/3 "2024-04-11T19:53:57Z")

</div>

Thank you for the quick reply !!

Can you share the documentation to enable replication ? What are the parameters to consider in config file.

Regards,  
Adithya

---

<div class="post-metadata">

**Author:** ![adithya.ch](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adithya.ch/32/615_2.png) [@adithya.ch](https://forum.weaviate.io/u/adithya.ch)\
**Post date:** [April 16, 2024, 4:14am UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/4 "2024-04-16T04:14:54Z")

</div>

Thank you for the quick reply @DudaNogueira !!

Can you share the documentation to enable replication ? What are the parameters to consider in config file.

Regards,  
Adithya

---

<div class="post-metadata">

**Author:** ![adithya.ch](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adithya.ch/32/615_2.png) [@adithya.ch](https://forum.weaviate.io/u/adithya.ch)\
**Post date:** [April 16, 2024, 5:13am UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/5 "2024-04-16T05:13:51Z")

</div>

@DudaNogueira

As of now we installed 3 standalone weaviate instances running on port 6443 using “[How to run Weaviate using a binary?](https://forum.weaviate.io/t/how-to-run-weaviate-using-a-binary/100)” document.

Can you share the details on the parameters to be used in weaviate.conf.json to enable replication between three standalone weaviate instances host1, host2, host3 ?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [April 17, 2024, 6:38pm UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/6 "2024-04-17T18:38:08Z")

</div>

Hi! You will enable that on a per collection base.

Check here for more on that:

> **[Replication | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/configuration/replication)**
>
> Weaviate instances can be replicated to increase availability and read throughput, and to enable zero-downtime upgrades. On this page, you will learn how to set replication for your Weaviate instance.

---

<div class="post-metadata">

**Author:** ![adithya.ch](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adithya.ch/32/615_2.png) [@adithya.ch](https://forum.weaviate.io/u/adithya.ch)\
**Post date:** [April 18, 2024, 3:49pm UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/7 "2024-04-18T15:49:15Z")

</div>

Thank you @DudaNogueira

We tried replication setup and it works after running the export commands

```auto
founding node

export PERSISTENCE_DATA_PATH=/tmp/wv
export CLUSTER_HOSTNAME='node0'
export CLUSTER_GOSSIP_BIND_PORT=27060
export CLUSTER_DATA_BIND_PORT=27061

second node

export PERSISTENCE_DATA_PATH=/tmp/wv
export CLUSTER_HOSTNAME='node1'
export CLUSTER_GOSSIP_BIND_PORT=27060
export CLUSTER_DATA_BIND_PORT=27061
export CLUSTER_JOIN=node0:27060

```

will add similarly for other nodes of the cluster.

But the problem here is, i want to add all these parameters into a config file not with the export commands. I don’t see any of the documents covering the actual parameter names to add into a conf file.

example what’s the key name for “CLUSTER\_DATA\_BIND\_PORT” when adding to a yaml file ? Where i can get that information.

Rehards,  
Adithya

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [April 19, 2024, 6:51pm UTC](https://forum.weaviate.io/t/weaviate-replication-setup-on-vms/1988/8 "2024-04-19T18:51:24Z")

</div>

There was a config file in the past, but it is now marked as deprecated, so not a path to follow, sorry ☹

> <https://github.com/weaviate/weaviate/blob/3d373b6adf8081926b06f4ced7f4fe3da4163182/usecases/config/config_handler.go#L397>

Regarding the environment variables, here you can get more info on those:

> **[Environment variables | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/config-refs/env-vars#multi-node-instances)**
>
> To configure Weaviate in a Docker or a Kubernetes deployment, set these environment variables

Let me know if this helps 🙂
