You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Boxuan Li (Jira)" <ji...@apache.org> on 2022/06/23 20:52:00 UTC

[jira] [Created] (TINKERPOP-2766) Poor load-balancing with java driver

Boxuan Li created TINKERPOP-2766:
------------------------------------

             Summary: Poor load-balancing with java driver
                 Key: TINKERPOP-2766
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2766
             Project: TinkerPop
          Issue Type: Improvement
            Reporter: Boxuan Li


As reported [here|[https://lists.lfaidata.foundation/g/janusgraph-users/message/6544],] load balancing is poor when using the java driver. 

Relevant code:

[https://github.com/apache/tinkerpop/blob/5438925e6be3ec8df7e04a2fd232fda018232fe3/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Cluster.java#L956-L963]

 

Instead of
{code:java}
InetAddress.getByName(address){code}
 method, I believe we should use
{code:java}
InetAddress.getAllByName(address){code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)