# Deployment for Dynatrace Managed in a fail-over setup at 2 datacenter setup

**URL:** <https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed\
**Created:** [August 4, 2022, 12:39pm UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111 "2022-08-04T12:39:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![EduardLaGrange](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@EduardLaGrange](https://community.dynatrace.com/u/EduardLaGrange)\
**Post date:** [August 4, 2022, 12:39pm UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/1 "2022-08-04T12:39:10Z")

</div>

Hi I have read the documentation ([https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/basic-concepts/dynatrace-managed-cluster-failover-mechanism](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/basic-concepts/dynatrace-managed-cluster-failover-mechanism)) for standard high-availability setup and I am trying to figure out the best way to provide fail-over for our small cluster deployed over 2 datacenters.

We currently have a 3 node cluster split over 2 datacenters.&nbsp; Presumable if the DC with the single node goes (“DC2”) down we should be OK to continue processing with the 2 nodes in “DC1”.

However if “DC1” goes down we are basically dead - leaving a single node.

Adding another node to “DC2” does not improve the situation from a redundancy perspective.&nbsp; Adding a node in each DC (“DC1” = 3 nodes, “DC2” = 2 nodes) still leaves us vulnerable if “DC1” goes down and also breaks the rule/guidance in the documentation - “If you plan to distribute nodes in separate data centers, you shouldn’t deploy more than two nodes in each data center.”

What are our options here if I want to survive the loss of either “DC1” or “DC2”?&nbsp; Is Premium HA our only option?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [August 5, 2022, 8:45am UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/2 "2022-08-05T08:45:46Z")

</div>

Thanks,&nbsp;[@EduardLaGrange](https://community.dynatrace.com/user/43655)&nbsp;for this question. It’s a good one and asked many times.

The way you have it currently with cluster nodes split into 2 datacenters is actually doing more harm than good. This is because, there’s network latency between DCs and a higher risk of network issues between them, causing a split-brain situation.

The solution you pick should depend on the needs you have. For example, measured by Recovery Point Objective (RPO) and Recovery Time Objective (RTO). Possible solutions for you:

1) Use just one data center and leverage backup-restore capability to recover to the 2nd data center in case of a disaster. This solution has medium RTO (about 1h - depending on the data size) and medium RPO (24h).

2) Use just one data center and leverage [Monitoring as a code](https://github.com/dynatrace-oss/dynatrace-monitoring-as-code)&nbsp;to backup configuration. In the 2nd data center keep infrastructure and a different cluster installation to quickly redeploy the configuration in case of a disaster in 1st data center. This solution has high RPO (as your monitored data is lost, only&nbsp;the configuration is persisted) and has low RTO.

3) Use [Premium High Availability](https://www.dynatrace.com/support/help/shortlink/managed-multi-data-center) to replicate the data between data centers. This solution has the lowest RTO and RPO.

…&nbsp; Or you add a third data center and then there are more solutions.

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [August 5, 2022, 9:20am UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/3 "2022-08-05T09:20:47Z")

</div>

I agree with&nbsp;[@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371)

[@EduardLaGrange](https://community.dynatrace.com/user/43655)&nbsp; Kindly go ahead adding nodes in 3rd data center. Try keeping one Data center active at a time. Also with some admin expert try replicating data across all data centers.

You can explore the other suggestions posted by Radoslaw too.

---

<div class="post-metadata">

**Author:** ![EduardLaGrange](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@EduardLaGrange](https://community.dynatrace.com/u/EduardLaGrange)\
**Post date:** [August 5, 2022, 12:13pm UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/4 "2022-08-05T12:13:24Z")

</div>

Thanks Radoslaw&nbsp;for the reply.

One more question here …

if we loose one node in our 3 node cluster (all nodes in the same DC) are we are still vulnerable to “split-brain” (but less so than having nodes split between 2 DCs)?&nbsp; I am asking this in the light of the documentation stating that in a 3 node cluster we can survive the loss of one node.&nbsp;&nbsp;Is there a practical time-limit that one can run with only 2 nodes?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [August 5, 2022, 1:13pm UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/5 "2022-08-05T13:13:45Z")

</div>

If you have 3 nodes - you have 3 copies of the data (excluding log events - where there are 2 copies). So when 1 node is lost - you have 2 remaining copies - that constitute a majority and the state of the data is consistent. So no split-brain situation here - these two should have the same state. In such situation, Cassandra writes to a file “hints” - which are the data updates that should be stored to the node that is down. This is stored in a sliding 3h window. After that time, when a node is back - the data needs to be repaired (resynchronized) on the node that comes back. If it comes back quicker - then hints are loaded to the node.

If another node is lost - then you’re left with 1 copy of the data. So no data is lost yet - however, it may not be up-to-date and needs a repair/boostrap.

In case you have only 2 nodes - then each of those two can have a different state of data. That’s why we call that situation a split-brain. Each part “thinks” its data Is the right one.

---

<div class="post-metadata">

**Author:** ![EduardLaGrange](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@EduardLaGrange](https://community.dynatrace.com/u/EduardLaGrange)\
**Post date:** [August 5, 2022, 1:29pm UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/6 "2022-08-05T13:29:36Z")

</div>

Thanks for clarifying that.

I was thinking that a 3 node cluster loosing 1 node, was a similar situation than a cluster built with only 2 nodes (with the split-brain issue), which is not the case.

---

<div class="post-metadata">

**Author:** ![EduardLaGrange](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@EduardLaGrange](https://community.dynatrace.com/u/EduardLaGrange)\
**Post date:** [August 5, 2022, 1:31pm UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/7 "2022-08-05T13:31:19Z")

</div>

Thanks for clarifying that.

I was thinking that a 3 node cluster loosing 1 node, was a similar situation than a cluster built with only 2 nodes (with the split-brain issue), which is not the case.

---

<div class="post-metadata">

**Author:** ![jalpeshs](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@jalpeshs](https://community.dynatrace.com/u/jalpeshs)\
**Post date:** [December 17, 2024, 11:23am UTC](https://community.dynatrace.com/t/deployment-for-dynatrace-managed-in-a-fail-over-setup-at-2-datacenter-setup/36111/8 "2024-12-17T11:23:26Z")

</div>

Hi&nbsp;&nbsp;Radoslaw,

We have Premium HA with 11 nodes in each cluster.

So how many copies of data will be there ?

Regards,

Jalpesh Shelar
