我知道DSE图,在 gremlin-console 您可以使用复制创建一个图形,如下所示
gremlin-console
system.graph('graph_name').replication("{'class' : 'NetworkTopologyStrategy', 'dc1' : 3}")
但是,如何发现现有图形的复制呢?
据我所知,现在不可能通过gremlin控制台内的现有接口来实现。以前 5.1.3, there were separate options 有可能通过 schema.config().describe() ,但被替换为 replication 和; systemReplication . 看起来(不知道100%)通过这些选项提供的字符串可以直接传递给相应的 CREATE KEYSPACE 命令,因此如果您可以访问 cqlsh 然后您可以从 describe keyspace graph_name . 另一种可能性是使用Java代码来获取。 Metadata ,然后通过提取复制因子 getReplication call .
schema.config().describe()
replication
systemReplication
CREATE KEYSPACE
cqlsh
describe keyspace graph_name
Metadata