Commit Graph

42 Commits

Author SHA1 Message Date
Chlins Zhang d0bfdd4e77
refactor: modernize the code by new features provided by golang stand… (#3963)
refactor: modernize the code by new features provided by golang standard library

Signed-off-by: chlins <chlins.zhang@gmail.com>
2025-04-17 07:48:42 +00:00
Gaius 3232f7db40
feat: support to set piece length for preheat (#3848)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-26 15:45:37 +08:00
Gaius a63126ede4
feat: implement FindCandidatePersistentCacheParents for scheduling persistent cache task (#3770)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-17 20:01:59 +08:00
Gaius 5a51a61f8a
feat: support searching task by url for GetTask and DeleteTask (#3607)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-10-28 20:09:56 +08:00
Chongzhi Deng 071072f899
feat: add E2E tests for cases that peers going offline (#3524)
Signed-off-by: BruceAko <chongzhi@hust.edu.cn>
2024-10-21 10:33:16 +08:00
Gaius 5c52a02dd5
feat: add self-signed certs for mTLS (#3583)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-10-17 00:02:22 +08:00
Gaius 4d2e9298db
feat: add downloadRate and uploadRate for host (#3548)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-09-30 18:37:05 +08:00
Gaius 8d956eb3ff
feat: removed network topology (#3547)
Because no one maintains it and has no users run in the production

Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-09-30 17:41:56 +08:00
Gaius 688b9d76cb
feat: rename `scheduler/resource` to `scheduler/resource/standard` (#3542)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-09-29 12:22:29 +08:00
Gaius 9cd6f41eb2
feat: update new task type(TaskType_STANDARD, TaskType_PERSISTENT, TaskType_PERSISTENT_CACHE) (#3540)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-09-27 14:01:17 +08:00
Gaius 3f7e48e005
feat: when peer disabled shared, scheduler will skip peer in filterCandidateParents (#3506)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-09-14 17:07:29 +08:00
Gaius 517aed732e
feat: optimize GetTaskJob and DeleteTaskJob (#3434)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-08-16 16:31:53 +08:00
Gaius aacf7e4d8f
feat: reduce the scheduler return content of the parent (#3349)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-06-27 23:22:36 +08:00
Gaius a370304de1
feat: update api protoc version to v2.0.118 (#3326)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-06-17 19:45:13 +08:00
Gaius e1d8e05004
feat: optimize network topology in evaluator (#3053)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-29 18:44:20 +08:00
Min 0f9c400038
feat: evalutorBase adds networktopology (#3015)
Signed-off-by: huangmin <2107139596@qq.com>
2024-01-29 17:28:32 +08:00
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 e11666deb0
feat: change request header in response (#3038)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-22 16:19:16 +08:00
Gaius 70dd9b109d
feat: remove maxScheduleCount and optimize register in v2 (#3001)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-08 21:06:58 +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 67c36f62b3
feat: remove concurrent_piece_count in scheduler (#2942)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-12-12 16:39:16 +08:00
Gaius 11829e35df
feat: update api version to v2.0.56 (#2891)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-11-21 14:02:24 +08:00
dlut_xz 22f4f9e13b
feat: implement batch calculation of candidate parents scores (#2853)
Signed-off-by: XZ <834756128@qq.com>
2023-11-16 14:01:26 +08:00
Gaius 4d4ea8dda9
feat: add reschedule handler for schduler v2 (#2882)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-11-14 22:20:02 +08:00
Gaius 86ce09f53a
feat: remove TinyTaskResponse and SmallTaskResponse message (#2881)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-11-14 15:07:24 +08:00
Gaius cc417f1f11
feat: add MaxScheduleCount and GetSeedPeers (#2868)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-11-09 13:49:09 +08:00
Gaius 5f4fe5753a
feat: implement ListSeedPeers feature in manager (#2865)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-11-08 20:45:03 +08:00
Gaius 12fc630612
fix: if scheduler has no seed peer, return error in preheating (#2835)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-10-30 16:45:39 +08:00
Gaius b65c1019ed
feat: update api to v2.0.29 with optional (#2751)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-22 14:19:16 +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 778b90c718
feat: add optional to build information (#2567)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 15:15:40 +08:00
Gaius bd3d76a97c
feat: update api version to 2.0.8 (#2566)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 13:45:54 +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
Gaius f610ab9c0d
test: add ParseProbedCountKeyInScheduler and Snapshot tests (#2438)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:56 +08:00
Gaius 25edc40937
fix: evaluate after filter (#2363)
Since the final length of the filter is the candidateParentLimit used,
the parents after the filter is the returned parents.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:51 +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
Gaius 17649a069c
feat: implement announce peer (#2150)
feat: implement announce peer api

Add handleDownloadPeerStartedRequest, handleDownloadPeerBackToSourceStartedRequest,
handleDownloadPeerFinishedRequest, handleDownloadPeerBackToSourceFinishedRequest,
handleDownloadPeerFailedRequest, handleDownloadPeerBackToSourceFailedRequest,
handleDownloadPieceFinishedRequest, handleDownloadPieceBackToSourceFinishedRequest,
handleDownloadPieceFailedRequest and handleDownloadPieceBackToSourceFailedRequest,
to AnnouncePeer service api.

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 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