Commit Graph

25 Commits

Author SHA1 Message Date
Gaius 856cc374c5
chore: update go-redis verison to v9 (#3182)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-04-09 12:27:49 +08:00
dlut_xz aed2d7255a
feat: add scan function in redis and neighbours function in network topology (#3048)
Signed-off-by: fcgxz2003 <834756128@qq.com>
Signed-off-by: XZ <834756128@qq.com>
2024-02-02 11:55:33 +08:00
Min 0f9c400038
feat: evalutorBase adds networktopology (#3015)
Signed-off-by: huangmin <2107139596@qq.com>
2024-01-29 17:28:32 +08:00
Min b9c25f8c37
feat:add cache about networktopology (#2924)
Signed-off-by: huangmin <2107139596@qq.com>
2023-12-29 15:24:15 +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
dlut_xz a45fcd9558
feat: remove ProbedAt function in network topology (#2529)
Signed-off-by: XZ <834756128@qq.com>
2023-07-11 10:30:20 +08:00
dlut_xz 5cfa4d2493
test: replace keys with scan in redis client (#2509)
Signed-off-by: XZ <834756128@qq.com>
2023-07-04 17:11:39 +08:00
Gaius 1d1e69620c
feat: replace keys with scan in redis client (#2507)
It's not recommended to use the KEYS prefix:* command to get all the keys in a Redis instance,
especially in production environments, because it can be a slow and resource-intensive operation
that can impact the performance of the Redis instance.

Instead, you can iterate over Redis keys that match some pattern using the SCAN command,
refer to https://redis.uptrace.dev/guide/get-all-keys.html.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-04 12:18:06 +08:00
dlut_xz 8a8d6abaae
feat: move probe interval from scheduler config to client config (#2462)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:58 +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
dlut_xz 7fbe7553f9
test: optimize network topology and probes unit tests (#2425)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:56 +08:00
Gaius a3d417a69c
feat: change Dequeue to private func (#2420)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:55 +08:00
Gaius 989f658544
feat: optimize network topology comment (#2415)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:55 +08:00
dlut_xz 5bc465f7d8
test: add probes and network topology unit tests (#2414)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:54 +08:00
Gaius 9999ce51b6
feat: add ProbedAt to network topology (#2413)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:54 +08:00
Gaius 5794cfc02c
refactor: network topology package (#2412)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:54 +08:00
Gaius b4e71f586d
test: optimize network topology and probes tests (#2409)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:54 +08:00
dlut_xz 8630740952
test: add probes and network topology unit tests (#2390)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:54 +08:00
Gaius 81817666e5
feat: move redis key to pkg/redis package (#2378)
Network Topology adds functions to new redis key and move the manager's redis key to pkg/redis.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:52 +08:00
dlut_xz deab6df2c2
feat: add network topology package (#2364)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:52 +08:00
dlut_xz 0c7ccb7517
feat: add network topology and probes storage structs (#2254)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:46 +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 c5549c82e3
fix: modify the traversal condition for Items (#2250)
Signed-off-by: XZ <834756128@qq.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
Co-authored-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:44 +08:00
dlut_xz 734ea4c522
feat: add CreatedAt function (#2244)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:44 +08:00
dlut_xz 0a9cd254f4
feat: add probes struct (#2190)
Signed-off-by: XZ <834756128@qq.com>
Signed-off-by: Gaius <gaius.qi@gmail.com>
Co-authored-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:42 +08:00