broker report stats to balancer

This commit is contained in:
chrislu
2023-09-16 23:00:51 -07:00
parent a1cb49d078
commit a65088d739
11 changed files with 645 additions and 470 deletions

View File

@@ -34,6 +34,7 @@ func (broker *MessageQueueBroker) BrokerConnectToBalancer(self string) error {
}
glog.V(1).Infof("broker %s found balancer %s", self, brokerBalancer)
broker.currentBalancer = pb.ServerAddress(brokerBalancer)
// connect to the lock owner
err = pb.WithBrokerGrpcClient(false, brokerBalancer, broker.grpcDialOption, func(client mq_pb.SeaweedMessagingClient) error {