Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2766

Poor load-balancing with java driver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5.4
    • None
    • driver
    • None

    Description

      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

      InetAddress.getByName(address)

       method, I believe we should use

      InetAddress.getAllByName(address)

      Attachments

        Activity

          People

            Unassigned Unassigned
            li-boxuan Boxuan Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: