mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
issue: #40638 - Add `ChannelID` for streaming replica in future. - Remove the pchannel count fair balance policy for streaming. - Add Score based vchannel fair balance policy for streaming. - Add pchannel stats manager to collect the stats of pchannel for balancer. - Add configuration and metrics for new balance policy --------- Signed-off-by: chyezh <chyezh@outlook.com>
14 lines
390 B
Go
14 lines
390 B
Go
package testutil
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/internal/coordinator/coordclient"
|
|
"github.com/milvus-io/milvus/internal/streamingcoord/server/balancer/channel"
|
|
"github.com/milvus-io/milvus/internal/streamingcoord/server/broadcaster/registry"
|
|
)
|
|
|
|
func ResetEnvironment() {
|
|
coordclient.ResetRegistration()
|
|
channel.ResetStaticPChannelStatsManager()
|
|
registry.ResetRegistration()
|
|
}
|