milvus/internal/querycoordv2
congqixia 7b7b56b4e1
enhance: [2.4] Utilize coll2replica mapping when getting rg by collection (#32892) (#32922)
Cherry-pick from master
pr: #32892
See also #32165

In old `GetResourceGroupByCollection` implementation, it iterates all
replicas to match collection id, which is slow and CPU time consuming.
This PR make it utilize the coll2Replicas mapping by calling
`GetByCollection` and mapping replicas into resource group.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-05-10 14:35:30 +08:00
..
balance enhance: reduce the cpu usage when collection number is high (#32245) 2024-04-26 11:49:25 +08:00
checkers enhance: reduce the cpu usage when collection number is high (#32245) 2024-04-26 11:49:25 +08:00
dist enhance: [2.4] Avoid iteration over channel results when update leaderview(#32887) (#32893) 2024-05-09 17:45:30 +08:00
job enhance: reduce the cpu usage when collection number is high (#32245) 2024-04-26 11:49:25 +08:00
meta enhance: [2.4] Utilize coll2replica mapping when getting rg by collection (#32892) (#32922) 2024-05-10 14:35:30 +08:00
mocks enhance:Refactor hybrid search (#32020) 2024-04-09 14:21:18 +08:00
observers enhance: resource group unittest refactory (#32740) 2024-05-06 10:17:34 +08:00
params Moving etcd client into session (#27069) 2023-10-27 07:36:12 +08:00
session enhance: Add restful api for devops to execute rolling upgrade (#29998) 2024-03-27 16:15:19 +08:00
task enhance: Remove duplicated collectionID label for task latency (#32308) 2024-04-16 18:55:19 +08:00
utils enhance: declarative resource group api (#31930) 2024-04-15 08:13:19 +08:00
OWNERS Add QueryCoord OWNERS file (#21552) 2023-01-10 16:15:37 +08:00
api_testonly.go test: support segment release in integration test (#31190) 2024-04-09 11:39:17 +08:00
handlers.go fix: get replica should not report error when no querynode serve (#32536) 2024-04-25 19:25:24 +08:00
ops_service_test.go enhance: declarative resource group api (#31930) 2024-04-15 08:13:19 +08:00
ops_services.go enhance: reduce the cpu usage when collection number is high (#32245) 2024-04-26 11:49:25 +08:00
server.go enhance: declarative resource group api (#31930) 2024-04-15 08:13:19 +08:00
server_test.go enhance: declarative resource group api (#31930) 2024-04-15 08:13:19 +08:00
services.go fix: fix GetShardLeaders return empty node list (#32685) 2024-04-29 14:19:26 +08:00
services_test.go fix: get replica should not report error when no querynode serve (#32536) 2024-04-25 19:25:24 +08:00