# Setting up a cluster?

**URL:** https://meta.discourse.org/t/setting-up-a-cluster/23032
**Category:** Self-hosting
**Created:** [December 10, 2014, 10:32am UTC](https://meta.discourse.org/t/setting-up-a-cluster/23032 "2014-12-10T10:32:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![yanosz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yanosz/32/115333_2.png) [@yanosz](https://meta.discourse.org/u/yanosz)
#### Post date: [December 10, 2014, 10:32am UTC](https://meta.discourse.org/t/setting-up-a-cluster/23032/1 "2014-12-10T10:32:23Z")

</div>

Hei folks,

I’d like to setup a cluster (two nodes running discourse) for high availibitly and load balancing.  
How do setup such a cluster?

Thanks,  
Jan

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [December 10, 2014, 4:18pm UTC](https://meta.discourse.org/t/setting-up-a-cluster/23032/2 "2014-12-10T16:18:07Z")

</div>

See the install docs at [discourse/docs/INSTALL.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md) which cover the advanced install. Basically you deploy multiple containers in the web role talking to a database container.

---

<div class="post-metadata">

### Author: ![yanosz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yanosz/32/115333_2.png) [@yanosz](https://meta.discourse.org/u/yanosz)
#### Post date: [December 10, 2014, 4:46pm UTC](https://meta.discourse.org/t/setting-up-a-cluster/23032/3 "2014-12-10T16:46:20Z")

</div>

Hello,

> [@codinghorror](#):
>
> See the install docs at [discourse/docs/INSTALL.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md) which cover the advanced install. Basically you deploy multiple containers in the web role talking to a database container.

thanks for your feedback. I read the manual before, but some thinks are not clear to me, yet :-/

- If each cluster-node is running its own database - how are they supposed to be synched? Using Message Queuing, Postgres-Clustering or else?
- What is the reason for using Docker here? How does the App-environment interactv with my Host System? How is resonsible for patching requirements?

Thanks, yanosz

---

<div class="post-metadata">

### Author: ![zh99998](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zh99998/32/100179_2.png) [@zh99998](https://meta.discourse.org/u/zh99998)
#### Post date: [February 12, 2017, 3:31am UTC](https://meta.discourse.org/t/setting-up-a-cluster/23032/4 "2017-02-12T03:31:36Z")

</div>

Should I setup one shared redis for all web nodes, or setup multiply redis for each node separately ?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [February 12, 2017, 5:42am UTC](https://meta.discourse.org/t/setting-up-a-cluster/23032/5 "2017-02-12T05:42:39Z")

</div>

You need one central Redis. Redis isn’t (just) used as a cache for Discourse; it also acts as a message broker for all the MessageBus traffic, so if you had one Redis per node, things would get… weird. And broken.
