Skip to content

New feature request. Auto reconnection and allow multiple specifying of multiple ips and ports. #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yammelvin opened this issue Apr 9, 2015 · 1 comment

Comments

@yammelvin
Copy link

I would like to request for the following features to be implemented in the driver:

  1. Auto reconnection when connection breaks.
  2. Allow specifying of multiple ips and ports or server endpoints.

The above 2 will enable the driver to automatically connects to another coordinator when the coordinator it is connected to fails.

Even if you use a HA load balancer, when the primary load balancer fails and the secondary takes over with the same IP, the driver will require to reconnect to that IP address.

@a-brandt
Copy link
Contributor

Hello yammelvin,

I added auto reconnection and fallback servers to the configuration class.

Example:

ArangoConfigure configure = new ArangoConfigure();
// default host
configure.setArangoHost(new ArangoHost("192.168.182.50", 8888));
// fallback server
configure.addFallbackArangoHost(new ArangoHost("192.168.182.50", 8889));
// number of connect retries (0 means infinite)
configure.setConnectRetryCount(1000);
// wait time for a connect retry 0.5 seconds
configure.setConnectRetryWait(500);

configure.init();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants