-
Notifications
You must be signed in to change notification settings - Fork 86
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
Implement node role registration #314
Conversation
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #314 +/- ##
========================================
Coverage 39.74% 39.74%
========================================
Files 105 105
Lines 11230 11337 +107
========================================
+ Hits 4463 4506 +43
- Misses 6320 6373 +53
- Partials 447 458 +11
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Does this mean, nodes could be deployed on different roles now? If so, I think the https://skywalking.apache.org/docs/skywalking-banyandb/next/installation/ One is current standalone mode, the other should start from cluster mode deployment. |
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Previous commits have already drafted the role-based deployment. https://github.com/apache/skywalking-banyandb/pull/314/files#diff-8b042e3f94ca5c59a7cd990b950aec0073ea84fe811e7b22be51158d7b180d56 amend more introduced in this change. |
I can see the node ID is unique, and considering our query is applying to all data node, why the node IDs are not auto generated? |
It is important for the data node id to be stateful because the shard allocation algorithm depends on it. This means that the node id should be either obtained from a flag or configuration, or generated initially and then stored locally. The first is easier and ensures straightforward maintenance and storage. |
Some databases can use the hostname as the node id, Would we prefer this pattern? |
We just had a discussion. The node list should be removed, and no need to add node ID manually. Further, etcd server is only recommended in a separate deployment. The bundled etcd should be for standalone only officially. |
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
Register the node role to the metadata registry.
There are two categories of nodes:
CHANGES
log.