Commit Graph

23 Commits

Author SHA1 Message Date
dlut_xz 5289f03289
fix: snapshot network topology id (#2746)
fix snapshot network topology id

Signed-off-by: XZ <834756128@qq.com>
2023-09-19 16:07:08 +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
Gaius 9a36cc5aa1
feat: set scan count for redis client (#2508)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-04 15:13:00 +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 691e884d35
feat: remove useless fields in network topology (#2439)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:56 +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 274c6d04e6
feat: support to collect and snapshot in network topology (#2429)
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 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 57c29ee51a
feat: remove redis Pipelined in network topology (#2416)
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
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 3ad8ddd4b5
refactor: probes package in network topology (#2382)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:53 +08:00
Gaius e1113c17c5
refactor: network topology package in scheduler (#2380)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-28 17:34:52 +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 557046d0d4
feat: add database config and move redis to it (#2338)
Signed-off-by: XZ <834756128@qq.com>
2023-06-28 17:34:50 +08:00