Replies: 3 comments 7 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
When you open a graph with import static org.apache.tinkerpop.gremlin.process.traversal.AnonymousTraversalSource.traversal;
String[] addresses = ["janus-1", "janus-2", "janus-3"];
Cluster cluster = Cluster.build().addContactPoints(addresses).create();
private GraphTraversalSource getGraphTraversalSource(String graphName) {
if (graphName == null) {
log.error("Bad graph name");
return null;
}
return traversal().withRemote(DriverRemoteConnection.using(cluster, graphName + "_traversal"));
} Keep in mind that a graph can take up to 20s to be available in all the nodes in the cluster. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As our app must surpport multi tenants.
In embeded mode, we use ConfiguredGraphFactory to create new graph when new tenant registered.
But while multiple graph instance running, the index keep installed, can't transfer to enabled state.
So we are going to change to client-server mode.
I don't konw how to connect multiple graph in client-server mode.
May someone hellp me?
Beta Was this translation helpful? Give feedback.
All reactions