blob: a6c9262b033c13bb083a05bd775c58a1f11246b7 [file] [log] [blame] [edit]
/**
* 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);