mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Current benchmark picks destinations of RPCs in a random manner. However, it will result divergent benchmarking result because RPCs other than serializable range must be forwarded to a leader node when a follower node receives it. This commit adds a new flag --target-leader for avoid the problem. If the flag is passed, benchmark always picks an endpoint of a leader node.