Changing the replication factor for a DSE Search keyspace

Steps for changing the keyspace replication factor after the solrconfig.xml and schema.xml files are posted.

This example assumes the solrconfig.xml and schema.xml files have already been posted using mykeyspace.mysolr in the URL, which creates a keyspace named mykeyspace that has a default replication factor of 1. You want three replicas of the keyspace in the cluster, so you need to change the keyspace replication factor.


To change the keyspace replication factor
  1. Check the name of the datacenter of the DSE Search nodes.
    ./nodetool -h localhost ring
    The output tells you that the name of the datacenter for your node is, for example, datacenter1.
  2. Use CQL to change the replication factor of the keyspace from 1 to 3.
    ALTER KEYSPACE mykeyspace WITH REPLICATION =  { 'class' :
      'NetworkTopologyStrategy', 'datacenter1' : 3 };
    If you have data in a keyspace and then change the replication factor, run nodetool repair to avoid having missing data problems or data unavailable exceptions.