# Multiple instance in single LAN of different servers

**URL:** <https://forum.weaviate.io/t/multiple-instance-in-single-lan-of-different-servers/2472>\
**Category:** Support\
**Created:** [May 25, 2024, 2:08am UTC](https://forum.weaviate.io/t/multiple-instance-in-single-lan-of-different-servers/2472 "2024-05-25T02:08:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lawrence\_Hope](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/lawrence_hope/32/926_2.png) [@Lawrence\_Hope](https://forum.weaviate.io/u/Lawrence_Hope)\
**Post date:** [May 25, 2024, 2:08am UTC](https://forum.weaviate.io/t/multiple-instance-in-single-lan-of-different-servers/2472/1 "2024-05-25T02:08:17Z")

</div>

I tried to find the doc for deploying multiple instances of weaviate in different machine inside single LAN environment to make a cluster. The example I find is on ONE machine docker compose for three instance. Any chance you could point me to the right doc for multiple servers? I would like to test deploy to our Google Cloud.

### Description

### Server Setup Information

- Weaviate Server Version:
- Deployment Method: 
- Multi Node? Number of Running Nodes:
- Client Language and Version:

### Any additional Information

---

<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:** [May 25, 2024, 9:09am UTC](https://forum.weaviate.io/t/multiple-instance-in-single-lan-of-different-servers/2472/2 "2024-05-25T09:09:13Z")

</div>

Hi Lawrence!

Considering the latest 1.25 version, that introduced RAFT consensus as a way to choose a lider in the Cluster, you will need to define some of those variables:

> **[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

the main variable being: `RAFT_JOIN`

With those set, as long as each node can communicate with the other nodes from that cluster, it should work.

Thanks!

---

<div class="post-metadata">

**Author:** ![Lawrence\_Hope](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/lawrence_hope/32/926_2.png) [@Lawrence\_Hope](https://forum.weaviate.io/u/Lawrence_Hope)\
**Post date:** [May 25, 2024, 5:06pm UTC](https://forum.weaviate.io/t/multiple-instance-in-single-lan-of-different-servers/2472/3 "2024-05-25T17:06:04Z")

</div>

Cool… will do the test very soon and see how it goes.

---

<div class="post-metadata">

**Author:** ![Lawrence\_Hope](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/lawrence_hope/32/926_2.png) [@Lawrence\_Hope](https://forum.weaviate.io/u/Lawrence_Hope)\
**Post date:** [May 25, 2024, 5:11pm UTC](https://forum.weaviate.io/t/multiple-instance-in-single-lan-of-different-servers/2472/4 "2024-05-25T17:11:11Z")

</div>

Checked it. And yes, RAFT\_JOIN is one of the key to set in dockerfile. The only thing left is how to set the IP address (or DNS name) of weaviate-1 (as cluster master) in weaviate-2 or weaviate-3’s docker file. I know the environment variable could set the port and others.

---

<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:** [May 26, 2024, 8:25am UTC](https://forum.weaviate.io/t/multiple-instance-in-single-lan-of-different-servers/2472/5 "2024-05-26T08:25:08Z")

</div>

you can set those at /etc/hosts with corresponding ips for each machine.
