milvus/internal/querycoordv2/observers
wei liu c919340763
enhance: Optimize channel node balancing for uneven QN distribution (#42786)
issue: #42860
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-06-30 12:14:42 +08:00
..
OWNERS Add OWNERS files for querycoordv2 sub pkgs (#23489) 2023-04-18 15:52:30 +08:00
collection_observer.go enhance: Optimize shard serviceable mechanism (#41937) 2025-05-22 11:38:24 +08:00
collection_observer_test.go feat: supporing load priority for loading (#42413) 2025-06-17 15:22:38 +08:00
leader_cache_observer.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
leader_cache_observer_test.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
replica_observer.go enhance: Optimize channel node balancing for uneven QN distribution (#42786) 2025-06-30 12:14:42 +08:00
replica_observer_test.go feat: supporing load priority for loading (#42413) 2025-06-17 15:22:38 +08:00
resource_observer.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
resource_observer_test.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
target_observer.go fix: Add missing keylocks in ReleasePartition operation (#42940) 2025-06-25 21:48:42 +08:00
target_observer_test.go feat: supporing load priority for loading (#42413) 2025-06-17 15:22:38 +08:00
task_dispatcher.go fix: Fix ants.Pool goroutine leak (#41892) 2025-05-19 17:56:22 +08:00
task_dispatcher_test.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00