Poor load balancing in 0.5.3


Doug Whitfield
 

Hi folks,


From what we are seeing in the gremlin driver code, it is expected that all gremlin server host names are provided and not a VIP. Is that correct?  

For example,

  Cluster cluster = Cluster.build()

    .addContactPoints("localhost")

    .port(server.getPort())

    .create();

In the example, 'localhost' is where we put in a generic VIP that points to 3 servers. Is this a bad approach?

In the end, what we are seeing is that load is severely unbalanced.

 

Despite my many protests to upgrade, we are running JanusGraph v0.5.3 and tinkerpop-3.4.6.

 

Please let us know if there is any additional information that would be helpful.


Best Regards,

 

Douglas Whitfield | Enterprise Architect

 

 


This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.



Boxuan Li
 

I suspect this is an issue with gremlin java-driver. I just reported here: https://issues.apache.org/jira/browse/TINKERPOP-2766

I believe you should provide all hostnames for now.

Best regards,
Boxuan

On Jun 23, 2022, at 2:29 PM, Doug Whitfield via lists.lfaidata.foundation <dwhitfield=perforce.com@...> wrote:

Hi folks,

From what we are seeing in the gremlin driver code, it is expected that all gremlin server host names are provided and not a VIP. Is that correct?  
For example,
  Cluster cluster = Cluster.build()
    .addContactPoints("localhost")
    .port(server.getPort())
    .create();
In the example, 'localhost' is where we put in a generic VIP that points to 3 servers. Is this a bad approach?
In the end, what we are seeing is that load is severely unbalanced.
 
Despite my many protests to upgrade, we are running JanusGraph v0.5.3 and tinkerpop-3.4.6.
 
Please let us know if there is any additional information that would be helpful.

Best Regards,
 
Douglas Whitfield | Enterprise Architect
 

This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.