{{#if (and (eq mode 'performance') (not version.hasPerfReplication))}}

Performance Replication is a feature of Vault Enterprise Premium.

{{#upgrade-link linkClass="button is-ghost has-icon-right" pageName="Performance Replication"}} Learn more {{i-con glyph="chevron-right"}} {{/upgrade-link}}

{{else if replicationEnabled}}
Enabled
{{capitalize modeForUrl}} {{#if secondaryId}} {{secondaryId}} {{/if}} {{clusterIdDisplay}} {{else}}

{{#if (eq mode 'dr')}} DR is designed to protect against catastrophic failure of entire clusters. Secondaries do not forward service requests (until they are elected and become a new primary). {{else}} Performance replication scales workloads horizontally across clusters to make requests faster. Local secondaries handle read requests but forward writes to the primary to be handled. {{/if}}

{{/if}}
{{#if replicationDisabled}} {{#link-to "vault.cluster.replication.mode.index" cluster.name mode class="button is-primary"}} Enable {{/link-to}} {{else if (eq mode 'dr')}} {{cluster.drReplicationStateDisplay}} {{else if (eq mode 'performance')}} {{cluster.perfReplicationStateDisplay}} {{/if}}