# דיון מרובה על שרת Redis בודד

**URL:** <https://meta.discourse.org/t/multiple-discourse-on-a-single-redis-host/219318>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [24 בפברואר,‏ 2022,‏ 9:37pm UTC](https://meta.discourse.org/t/multiple-discourse-on-a-single-redis-host/219318 "2022-02-24T21:37:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [24 בפברואר,‏ 2022,‏ 9:37pm UTC](https://meta.discourse.org/t/multiple-discourse-on-a-single-redis-host/219318/1 "2022-02-24T21:37:13Z")

</div>

One setup that I use I have multiple discourse containers running behind a reverse proxy on a single server. For a time, I was using

```
DISCOURSE_REDIS_DB: x

```

to allow multiple Discourse servers to use a single redis server. Largely because I am lazy and don’t like keeping careful track of which server is using which number, I wanted to increase the number of redis DBs in redis to more than 16. When I asked about such, the answer I got suggested that it is a _very bad idea_ to use `redis_db` to have multiple sites on a single redis. And since then I have reconfigured things to spin up a separate redis for each site (which makes them easier to keep up with since I can use a name for them).

But this seems a little silly. And now that I’m looking, I see this:

> <https://github.com/discourse/discourse/blob/main/app/models/global_setting.rb#L208>

So, I was wondering if it’s OK to use `redis_db` or whether each Discourse needs its own redis.

---

_[View the full topic](https://meta.discourse.org/t/multiple-discourse-on-a-single-redis-host/219318)._
