Commit Graph

27 Commits

Author SHA1 Message Date
Gaius 7a5857d389
feat: change scheduler and cdn listen (#1205)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:33:10 +08:00
Jim Ma 98e95e693c
feat: implement bidirectional fetch pieces (#1165)
* feat: implement grpc server side sync pieces

Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-06-28 17:33:06 +08:00
Jim Ma bb73b45b46
fix: wrong md5 sign in cdn (#1126)
* fix: wrong md5 sign in cdn

Signed-off-by: Jim Ma <majinjing3@gmail.com>

* Extract the pieces sorting rule to the GetProgress method

Signed-off-by: sunwp <244372610@qq.com>

* cal sign notice

Signed-off-by: sunwp <244372610@qq.com>

Co-authored-by: sunwp <244372610@qq.com>
2023-06-28 17:33:02 +08:00
sunwp 4a752a47da
fix concurrent piece map panic in cdn (#1121)
Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:33:02 +08:00
sunwp 17e3f933c4
get piece tasks log (#974)
Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:33:02 +08:00
sunwp 0b0dd27ff8
add CDN piece download cost (#966)
Signed-off-by: sunwp <244372610@qq.com>
Co-authored-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:33:01 +08:00
sunwp 84bfe42b2e
cdn returns begin piece (#1045)
Signed-off-by: sunwp <244372610@qq.com>
Co-authored-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:56 +08:00
sunwp 25832aa3d2
cdn rpc server test (#1020)
Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:55 +08:00
sunwp 2c31f35ce2
add cdn get piece tasks result logs (#1019)
Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:54 +08:00
sunwp f63c705b98
Add begin seed piece hint task registered successfully (#997)
* cdn obtainSeeds add begin seed piece hint register successfully

Signed-off-by: sunwp <244372610@qq.com>

* feat: scheduler handle begin of piece

Signed-off-by: Gaius <gaius.qi@gmail.com>

* test: trigger cdn task

Signed-off-by: Gaius <gaius.qi@gmail.com>

Co-authored-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:53 +08:00
sunwp c9b2c0acf8
fix: calculate piece MD5 sign when last piece download (#1006)
* fix: calculate piece md5 sign when last piece download

Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:52 +08:00
sunwp 7965ed70fe
Set totalPieceCount when the file length is available (#930)
* set totalPieceCount when the file length is available

Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:47 +08:00
Gaius cb4202319e
feat: make idgen package public (#931)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:47 +08:00
sunwp 0babd6e519
CDN config (#920)
* CDN config

Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:46 +08:00
sunwp e252ef5880
Adjust CDN module package (#893)
* adjust CDN code package structure

Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:46 +08:00
sunwp 6866ecc3fe
task manager (#885)
Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:43 +08:00
Gaius 1a13ba11a8
feat: log (#852)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:40 +08:00
sunwp c1d84fb56d
validate grpc model (#825)
* base validate

Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:40 +08:00
sunwp d79a2a6877
move RPC code definition to proto file (#829)
* move rpc code to proto
* replace Cdn to CDN

Signed-off-by: sunwp <244372610@qq.com>
2023-06-28 17:32:38 +08:00
Gaius 0cb14903b2
feat: scheduler and cdn report fqdn to manager (#818)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:37 +08:00
Gaius 61f9f83b28
fix: manager typo and cdn peer id (#809)
* fix: manager typo and cdn peer id 

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:36 +08:00
Gaius 558782af00
feat: add idgen peer id (#800)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:35 +08:00
Jim Ma 3d63ab2ca3
chore: update golang import lint (#780)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-06-28 17:32:34 +08:00
Gaius 061e25c3e5
feat: preheat cluster (#731)
* feat: preheat cluster

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:30 +08:00
Gaius 466912aa48
docs: scheduler config (#698)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:32:25 +08:00
Gaius b4e58e3c08
refactor: scheduler supervisor (#655)
* refactor: scheduler supervisor

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:31:49 +08:00
sunwp 359d11367e
chore: rename cdnsystem to cdn (#626)
Signed-off-by: santong <244372610@qq.com>
2023-06-28 17:31:46 +08:00