I know for DSE graph, in gremlin-console
you can create a graph with replication as follows
system.graph('graph_name').replication("{'class' : 'NetworkTopologyStrategy', 'dc1' : 3}")
But how do you find out about an existing graph's replication?
As far as I know, right now it's not possible to do via existing interfaces inside the gremlin-console. Before 5.1.3, there were separate options that was possible to fetch via schema.config().describe()
, but they were replaced with replication
& systemReplication
. Looks like (don't know 100%) that the strings provided via these options could be just passed to corresponding CREATE KEYSPACE
commands, so if you have access to cqlsh
then you can get replication factor from describe keyspace graph_name
. Another possibility is to use Java code to fetch Metadata
, and then extract replication factor via getReplication call.