Files
vault/ui/lib/core/addon/helpers/replication-mode-description.js
2024-01-02 10:35:40 -08:00

19 lines
756 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import { helper as buildHelper } from '@ember/component/helper';
const REPLICATION_MODE_DESCRIPTIONS = {
dr: 'Disaster Recovery Replication 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.',
performance:
'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.',
};
export function replicationModeDescription([mode]) {
return REPLICATION_MODE_DESCRIPTIONS[mode];
}
export default buildHelper(replicationModeDescription);