My janusgraph setup has replication-factor of 1 which I want to change to 3.
I tried to change the replication-factor with Management API of janusgraph using
mgmt.set("storage.cassandra.replication-factor", 3), now everytime I connect to my Janusgraph, when I print mgmt.get("storage.cassandra.replication-factor") it gives me 3.
But when I connect to my cassandra using cqlsh and print the keyspaces, it shows me that the replication factor is 1 for the specific keyspace. I also tried restarting my cassandra after modifying replication factor but still no change.
So that property is only valid if the keyspace doesn't exist so that it knows how many replicas to create it with. It won't modify an existing keyspace, because there are other things that need to happen when you do that (ex: data movement with
nodetool repairornodetool rebuild).You will need to modify the keyspace manually: