{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 ~}} {{#if (not (has-feature "DR Replication"))}} {{else if (or this.cluster.allReplicationDisabled this.cluster.replicationAttrs.replicationDisabled)}}

{{#if this.initialReplicationMode}} {{#if (eq this.initialReplicationMode "dr")}} Enable Disaster Recovery Replication {{else if (eq this.initialReplicationMode "performance")}} Enable Performance Replication {{/if}} {{else}} Enable Replication {{/if}}

{{#if this.initialReplicationMode}} {{#if (eq this.initialReplicationMode "dr")}}

Disaster Recovery (DR) Replication

{{replication-mode-description "dr"}}

{{else if (eq this.initialReplicationMode "performance")}}

Performance Replication

{{#if (has-feature "Performance Replication")}}

{{replication-mode-description "performance"}}

{{else}}

Performance Replication is a feature of Vault Enterprise Premium

{{/if}} {{/if}} {{else}}

In both Performance and Disaster Recovery (DR) Replication, secondaries share the underlying configuration, policies, and supporting secrets as their primary cluster.

{{/if}}
{{#if (eq this.mode "secondary")}} {{/if}}
{{#if (eq this.mode "primary")}} {{#if this.cluster.canEnablePrimary}}

Overrides the cluster address that the primary gives to secondary nodes.

{{else}}

The token you are using is not authorized to enable primary replication.

{{/if}} {{else}} {{#if this.cluster.canEnableSecondary}} {{#if (and (eq this.replicationMode "dr") (not this.cluster.performance.replicationDisabled) (has-feature "Performance Replication") ) }}
{{#if this.showExplanation}}

When running as a DR Secondary Vault is read only. For this reason, we don't allow other Replication modes to operate at the same time. This cluster is also currently operating as a Performance {{capitalize this.cluster.performance.modeForUrl}}.

{{/if}}
{{else}}