Skip to content
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

Consider health information #154

Open
EnricoMi opened this issue Dec 3, 2021 · 0 comments
Open

Consider health information #154

EnricoMi opened this issue Dec 3, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@EnricoMi
Copy link
Collaborator

EnricoMi commented Dec 3, 2021

Each partition could fetch latest health information to identify alphas that should not be used. This avoids connecting to un-healthy alpha nodes while reading partition data. Health information could be fetched once by the driver (when creating the DataFrame) or for each partition when it starts reading.

The health information also provides the Dgraph version of the alpha nodes, which could be used to make version-dependent features and code paths in the connector more explicit.

[
  {
    "instance": "alpha",
    "address": "localhost:7080",
    "status": "healthy",
    "group": "1",
    "version": "v20.03.0",
    "uptime": 635,
    "lastEcho": 1638524298
  }
]

https://dgraph.io/docs/deploy/dgraph-alpha/

@EnricoMi EnricoMi added the enhancement New feature or request label Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant