the first chosen endpoint of lua-resty-etcd is always the first endpoint
spacewander opened this issue · comments
罗泽轩 commented
We should introduce a random initial offset, otherwise all the connections will hit the first endpoint.
All the endpoints should be treated as nodes in a ring.
We pick the first node from a random position in the ring, if it is unhealthy, try the node after it.