milvus/internal/querycoordv2/meta
wei liu ad0bf9cad8
enhance: Optimize channel node balancing for uneven QN distribution (#42786) (#43423)
issue: #42860
pr: #42786
Fix channel node allocation when QueryNode count is not a multiple of
channel count. The previous algorithm used simple division which caused
uneven distribution with remainders.

Key improvements:
- Implement smart remainder distribution algorithm
- Refactor large function into focused helper functions
- Support two-phase rebalancing (release then allocate)
- Handle edge cases like insufficient nodes gracefully

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-07-21 17:04:54 +08:00
..
OWNERS Add OWNERS files for querycoordv2 sub pkgs (#23489) 2023-04-18 15:52:30 +08:00
channel_dist_manager.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
channel_dist_manager_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
collection_manager.go enhance: apply load config changes after QueryCoord restart (#43108) (#43236) 2025-07-14 10:22:50 +08:00
collection_manager_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
constant.go enhance: Enable channel exclusive balance policy (#32911) 2024-05-10 17:27:31 +08:00
coordinator_broker.go fix: [2.5] Update logging context and upgrade dependencies (#41319) 2025-04-24 23:50:40 +08:00
coordinator_broker_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
dist_manager.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
dist_manager_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
failed_load_cache.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
failed_load_cache_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
leader_view_manager.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
leader_view_manager_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
meta.go Move meta store to kv catalog (#25915) 2023-07-31 13:57:04 +08:00
mock_broker.go fix: [2.5] mockery too unavailable after upgrade golang version (#41522) 2025-04-25 14:40:40 +08:00
mock_target_manager.go fix: [2.5] mockery too unavailable after upgrade golang version (#41522) 2025-04-25 14:40:40 +08:00
replica.go enhance: Optimize channel node balancing for uneven QN distribution (#42786) (#43423) 2025-07-21 17:04:54 +08:00
replica_manager.go enhance: Optimize channel node balancing for uneven QN distribution (#42786) (#43423) 2025-07-21 17:04:54 +08:00
replica_manager_helper.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
replica_manager_helper_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
replica_manager_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
replica_test.go enhance: Optimize channel node balancing for uneven QN distribution (#42786) (#43423) 2025-07-21 17:04:54 +08:00
resource_group.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
resource_group_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
resource_manager.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
resource_manager_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
segment_dist_manager.go feat: cherry pick json path index (#40313) 2025-03-10 22:14:05 +08:00
segment_dist_manager_test.go enhance: [2.5] Use v2 package name for pkg module (#40117) 2025-02-23 00:46:01 +08:00
target.go enhance: Balance the collection with the largest row count first (#40958) 2025-03-31 16:14:21 +08:00
target_manager.go enhance: Balance the collection with the largest row count first (#40958) 2025-03-31 16:14:21 +08:00
target_manager_test.go enhance: Balance the collection with the largest row count first (#40958) 2025-03-31 16:14:21 +08:00