# Is it possible to use two servers for same domain or database clone?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-use-two-servers-for-same-domain-or-database-clone/219379>\
**Category:** Self-hosting\
**Created:** [February 25, 2022, 1:21pm UTC](https://meta.discourse.org/t/is-it-possible-to-use-two-servers-for-same-domain-or-database-clone/219379 "2022-02-25T13:21:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 25, 2022, 2:05pm UTC](https://meta.discourse.org/t/is-it-possible-to-use-two-servers-for-same-domain-or-database-clone/219379/2 "2022-02-25T14:05:02Z")

</div>

> [@rahulMasal](#):
>
> or is it possible to auto clone the database backup in different server machine?

It’s not a supported solution, but one way to do that appears to be

[https://github.com/discourse-org/postgres-bdr](https://github.com/discourse-org/postgres-bdr)

edit: … except that seems to install pg9, which is odd because there is a commit in February, but that was a year ago, so maybe this isn’t a good idea. Or BDR is now supported without such heroic efforts. But I think that this isn’t the go-to place for advice on advanced Postgres configuration.

> [@rahulMasal](#):
>
> is it possible to host same domain on different server machines? so when one is down then auto route to secondary?

Yes, you can have multiple servers talking to the same database behind some kind of load balancer or dns pointing to both. But this isn’t the place to get advice on load balancing

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-use-two-servers-for-same-domain-or-database-clone/219379)._
