Commit Graph

58 Commits

Author SHA1 Message Date
Gaius 903ba33a5d
feat: support get info of the preheating image (#4139)
* feat: support get image by job

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

* feat: support get info of the preheating image

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

* feat: refactor GetImageJob to GetImageDistributionJob and improve error handling

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

---------

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-18 10:57:22 +00:00
Gaius 2c83f80606
feat: add content for calculating task id when preheat file and handle task (#3994)
feat: add content for calculating task id

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-24 15:49:32 +00:00
yxxhero d7f0762f8f
refactor: replace custom math functions with built-in max/min (#3972)
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-04-22 06:23:14 +00:00
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 ff08ba2825
test(scheduler/scheduling): rename resource to standard (#3815)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-10 20:01:46 +08:00
Gaius 20926e7d5e
feat: replicate the persistent cache task when delete host (#3787)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-27 10:31:05 +08:00
Gaius 7c0f0abeb7
feat: replicate persistent cache task when task needs persistent replicas (#3784)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-26 10:46:32 +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 b2c8e76e1e
feat: add disk bandwidth information for host (#3652)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-11-18 20:59:45 +08:00
Gaius 58959be0c2
feat: implement delete persistent cache task in scheduler (#3619)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-10-29 22:24:18 +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 77b88ad717
feat: send config of the seed peer cluster for load limit (#3370)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-07-09 22:10:44 +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 1ce0b3175c
feat: if host is seed client, set concurrentUploadLimit when dynconfig refreshes (#3320)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-06-13 15:11:27 +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 1b88b4b79e
feat: optimize scheduling log when exceeded RetryBackToSourceLimit (#3051)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-25 15:49:50 +08:00
Gaius 5239a6db4b
feat: optimize scheduler default config (#3050)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-25 12:34:39 +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 a38a4578c3
feat: CanAddPeerEdge is moved to the end of filter (#3036)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-19 16:43:30 +08:00
Gaius dd03c97975
feat: prevent concurrent request to cause state switch failed (#3014)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-10 16:42:55 +08:00
Gaius dce1890aa0
feat: change state set when trigger seed peer (#3003)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-09 10:33:23 +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 732819bbe9
feat: case insensitive string comparison in evaluater package of the manager (#2632)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-15 14:14:36 +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