-
Notifications
You must be signed in to change notification settings - Fork 773
[docs]supernode file ha design doc #766
base: master
Are you sure you want to change the base?
Conversation
16a0a45
to
f43bd2d
Compare
Codecov Report
@@ Coverage Diff @@
## master #766 +/- ##
==========================================
- Coverage 39.66% 39.64% -0.02%
==========================================
Files 109 109
Lines 6429 6429
==========================================
- Hits 2550 2549 -1
Misses 3671 3671
- Partials 208 209 +1
Continue to review full report at Codecov.
|
f43bd2d
to
3061554
Compare
c820a22
to
1a32ee6
Compare
Signed-off-by: yunfeiyangbuaa <[email protected]>
98dfcf3
to
7e0faa3
Compare
Could we add a HA architecture picture for this? I think a picture could express more data that just code and words. WDYT? @yunfeiyangbuaa |
|
|
||
## Tool Introduction | ||
|
||
We can use distributed key-value store system such as etcd,zookeeper,consul and so on to manager the supernodes cluster.of course you can implement your own function to get supernodes information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of course -> Of course,
now -> Now
|
||
- Every supernode is stand-alone,so supernode can't communicate with each other for a better schedule.For example,pieces of a task are in different p2p network,so a supernode can only schedule its plan with its own peer instead of other peer which has pieces of a task in other p2p network. | ||
|
||
- Every supernode will download the same file repeatedly,which makes download slowly and a waste of disk place.This will be obvious when the supernode's num is large. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"makes download slowly and a waste of disk place" -> makes download slow and wastes disk space.
"the supernode's num" -> the number of supernodes
* feat: add lint errcheck and fix errcheck Signed-off-by: Gaius <[email protected]> * replace assert to require Signed-off-by: 孙伟鹏 <[email protected]> Co-authored-by: 孙伟鹏 <[email protected]>
Ⅰ. Describe what this PR did
this pr is a branch of #758 and should be marged after it
I modify the supernodeAPI and dfget.Now the supernode ha is done,supernode can be ha.but there some bugs needed to be fixed,and design tests to tests ha. I will work on it
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews