Configuring dse_perf keyspace replication

The dse_perf keyspace stores performance metrics data.

DataStax Enterprise uses the dse_perf keyspace for storing performance metrics data. Depending on the specific requirements, adjust the replication factor with a keyspace command, such as ALTER KEYSPACE, to prevent potential unavailability of metrics data when nodes are down.

Setting the replication factor 

By default DataStax Enterprise writes performance metrics data with consistency level ONE and writes are performed asynchronously. If you need to increase the replication factor of performance metrics data, use ALTER KEYSPACE. See Configuring data consistency.

Procedure

Set the replication factor based depending on your environment:
  • SimpleStrategy example:
    ALTER KEYSPACE "dse_perf"
      WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
  • NetworkTopologyStrategy example:
    ALTER KEYSPACE "dse_perf"
      WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'dc1' : 3, 'dc2' : 2};