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 23:26:00 UTC

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

    [ https://issues.apache.org/jira/browse/TINKERPOP-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17558254#comment-17558254 ] 

Boxuan Li commented on TINKERPOP-2766:
--------------------------------------

Relevant thread: [https://lists.apache.org/thread/q3d3oyvph4d57bbnorj7dyfww5hjyn4y]

I can see why 
{code:java}
addy.getAddress().getHostAddress(){code}
 gets reverted to 
{code:java}
addy.getHostName(){code}
[here|[https://github.com/apache/tinkerpop/pull/1213/files#diff-bb8d767caf9f3f7d4070dc4ac564bba296c8e399b6a8782d953848b4cddb5a16R100],] but I still think 
{code:java}
InetAddress.getAllByName(address){code}
could have been retained.

 

> 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
>            Priority: Major
>
> 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)