Commit Graph

24 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 31f01557a8
feat: revise findProbedHosts function (#2986)
Signed-off-by: huangmin <2107139596@qq.com>
2024-01-16 11:11:23 +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
Sasha Melentyev d189e18026
chore: gofmt -w -r 'interface{} -> any' . (#2790)
Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
2023-10-11 10:39:34 +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
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
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
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
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 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
dlut_xz e6049d2362
test: add delete host unit tests (#2424)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:55 +08:00
Gaius f325ae67a2
fix: delete host in network topology (#2417)
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