Files
vault/ui/lib/core/addon/helpers/replication-mode-description.js
Hamid Ghaf e55c18ed12 adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

19 lines
755 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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);