zyearn commented on a change in pull request #592: lb configurable &&
consistency hash lb refactor
URL: https://github.com/apache/incubator-brpc/pull/592#discussion_r273436491
##########
File path: src/brpc/policy/consistent_hashing_load_balancer.h
##########
@@ -56,14 +54,28 @@ class ConsistentHashingLoadBalancer : public LoadBalancer {
return hash < code;
}
};
+ explicit ConsistentHashingLoadBalancer(ConsistentHashingLoadBalancerType
type);
+ bool AddServer(const ServerId& server);
+ bool RemoveServer(const ServerId& server);
+ size_t AddServersInBatch(const std::vector<ServerId> &servers);
+ size_t RemoveServersInBatch(const std::vector<ServerId> &servers);
+ LoadBalancer *New(const butil::StringPiece& params) const;
+ void Destroy();
+ int SelectServer(const SelectIn &in, SelectOut *out);
+ void Describe(std::ostream &os, const DescribeOptions& options);
+ bool SetParameters(const butil::StringPiece& params);
Review comment:
这个SetParameters应该是private?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]