Gaius
0b1157bba8
feat: replace filters with filteredQueryParams ( #3049 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-24 22:58:06 +08:00
Gaius
5989a4d4d3
fix: peer events state failed when register task ( #2979 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-12-26 17:12:30 +08:00
Gaius
76530ae000
feat: add prefetch to trigger seed peer downloads entire task ( #2929 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-12-07 20:02:28 +08:00
Gaius
9608eff3bf
feat: avoid hot resolve in grpc ( #2884 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-11-15 22:23:43 +08:00
Gaius
6caf7246db
feat: use scheduler's cluster id in host resource ( #2844 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-10-31 13:57:51 +08:00
Gaius
6addfdf8f4
feat: change DownloadPeerDuration metric type to summary ( #2794 )
...
feat: change DownloadPeerDuration metric to Summary
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-10-11 19:25:49 +08:00
Gaius
82a5b7bf6d
feat: add content-length label to DownloadPeerDuration metric ( #2792 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-10-11 16:26:13 +08:00
Gaius
60080f2e98
fix: if network topology is nil, LeaveHost panic in scheduler ( #2727 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-14 21:26:22 +08:00
dlut_xz
1a652e6594
feat: add InitProbedCount in AnnounceHost and DeleteHost in LeaveHost ( #2722 )
...
Signed-off-by: fcgxz2003 <834756128@qq.com>
2023-09-14 21:20:34 +08:00
Gaius
fe28ba4c8e
feat: merge sync peer with peer table in manager ( #2668 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-24 10:28:08 +08:00
Gaius
f3b92900af
feat: peer announces scheduler cluster id to scheduler ( #2652 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-21 22:00:05 +08:00
Gaius
5b7ea5da2a
Revert "feat: replace fmt.Sprintf with net.JoinHostPort" ( #2649 )
...
Revert "feat: replace fmt.Sprintf with net.JoinHostPort (#2642 )"
This reverts commit a6863f9b19 .
2023-08-17 17:21:50 +08:00
Gaius
a6863f9b19
feat: replace fmt.Sprintf with net.JoinHostPort ( #2642 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-16 16:45:14 +08:00
Gaius
a5b0f7404d
feat: download tiny file with https scheme ( #2617 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-10 16:29:28 +08:00
Gaius
afa665c091
fix: incorrect log message in the scheduler ( #2618 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-10 11:25:54 +08:00
Gaius
094b79d5fd
fix: usage of architecture-dependent int type in the scheduler ( #2619 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-09 19:46:57 +08:00
Gaius
b3f23f71a3
feat: update dy7.io/api to v2 ( #2558 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-20 23:17:57 +08:00
dlut_xz
be6d8085c7
feat: add finished piece count element in types ( #2557 )
...
Signed-off-by: XZ <834756128@qq.com>
2023-07-19 10:28:24 +08:00
Gaius
2cb0acc1e9
refactor: store pieceRecords in download record ( #2539 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-12 11:08:27 +08:00
dlut_xz
aa95dfe52d
feat: add pieces element in download record ( #2531 )
...
Signed-off-by: XZ <834756128@qq.com>
2023-07-12 10:35:20 +08:00
Gaius
1da355018b
feat: implement FindProbedHosts and add LoadRandomHosts to host manager ( #2519 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: XZ <834756128@qq.com>
Co-authored-by: dlut_xz <52518280+fcgxz2003@users.noreply.github.com>
2023-07-06 10:56:52 +08:00
Gaius
5342fb97fc
fix: Interval in SyncProbesResponse ( #2466 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:58 +08:00
Gaius
98aee9640d
feat: implement SyncProbes api in scheduler grpc service ( #2449 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: XZ <834756128@qq.com>
Co-authored-by: dlut_xz <52518280+fcgxz2003@users.noreply.github.com>
2023-06-28 17:34:58 +08:00
Gaius
a44c084f28
feat: handle context in triggerSeedPeerTask ( #2392 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:53 +08:00
Gaius
701a26a8d6
feat: hide sensitive information in log ( #2369 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:51 +08:00
Gaius
71f13df1f0
feat: remove traffic_type in DownloadPeerDuration metric ( #2357 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:51 +08:00
Tianxi
f2130509d1
feat: add traffic type of peer task download duration ( #2349 )
...
Co-authored-by: li.tianxi <li.tianxi@hellogroup.com>
2023-06-28 17:34:51 +08:00
Gaius
65ec5b2906
feat: rename createRecord to createDownloadRecord ( #2306 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:48 +08:00
Gaius
37c588608a
feat: remove security domain ( #2285 )
...
* feat: remove security domain
Remove security domain in dfdaemon and scheduler.
Remove SecurityGroup and SecurityRule table in manager.
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:46 +08:00
dlut_xz
8d29390b51
feat: rename Record to Download in storage ( #2253 )
...
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:45 +08:00
Gaius
2765aa8c35
fix: fsm events failed when register task ( #2225 )
...
fix: fsm events failed when register task.
When there is a high concurrency of registration tasks,
it can cause error InTransitionError, because of looplab/fsm library
uses optimistic locking to implement state transitions,
refer to https://github.com/looplab/fsm/blob/main/fsm.go#L312 .
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:42 +08:00
Gaius
2cda1def7f
feat: rename HostName to Hostname ( #2205 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:40 +08:00
Gaius
6d13b4a871
feat: add metrics to service v2 ( #2153 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:36 +08:00
Gaius
047a55fb84
feat: add handleRegisterSeedPeerRequest to AnnouncePeer in service v2 ( #2147 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:36 +08:00
Gaius
b0e6089783
feat: change ScheduleCandidateParentsForNormalPeer implement ( #2133 )
...
Change ScheduleCandidateParentsForNormalPeer implement.
Remove TaskStateLeave event in task GC.
Implement AnnouncePeer in service v2.
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:35 +08:00
Gaius
670c892898
feat: implement v2 version of scheduler service ( #2125 )
...
Implement StatTask, AnnounceHost and LeaveHost api in
scheduler service v2.
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:34 +08:00
Gaius
58034e4b1f
refactor: scheduling with v2 grpc ( #2104 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:32 +08:00
Gaius
da8c45f2a8
feat: add host ttl to scheduler ( #2089 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:31 +08:00
Gaius
dacf1f01a6
feat: rename scheduler package to scheduling ( #2087 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:31 +08:00
Gaius
010396a0f8
feat: use v2 version of host id and add Addrs func to seed peer ( #2086 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:31 +08:00
Gaius
59856bda21
refactor: type of digest in task ( #2084 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:31 +08:00
Gaius
042bb64ce4
refactor: task.SizeScope with v2 grpc in scheduler ( #2082 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:31 +08:00
Gaius
840c599d04
refactor: task piece with v2 grpc ( #2080 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:30 +08:00
Gaius
d8f36a44be
feat: change piece size to length ( #2079 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:30 +08:00
Gaius
a5685582ce
refactor: resource task with v2 version of grpc ( #2078 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:30 +08:00
Gaius
0f5470b5eb
feat: update task type from v1 to v2 ( #2053 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:29 +08:00
Gaius
e1dd1efca1
feat: add AnnouncePeers to task in resource ( #2051 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:29 +08:00
Gaius
51cc31b574
refactor: peer resource with v2 version of the grpc ( #2039 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:28 +08:00
Gaius
d4b55c7287
refactor: announcer and dynconfig with v2 verison of the manager grpc ( #2037 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:27 +08:00
Gaius
2b9aa7bf83
refactor: resource host without scheduler v1 definition ( #2036 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:27 +08:00