apache / incubator-horaedb-meta

Meta service of HoraeDB cluster.
https://horaedb.apache.org
Apache License 2.0
27 stars 15 forks source link

Redirect requests to leader #18

Closed ShiKaiWi closed 2 years ago

ShiKaiWi commented 2 years ago

Description The cluster of ceresmeta provides service as a whole for ceresdb nodes, that is to say, one request can be received by any ceresmeta instance. However, some service, e.g. ID generator, actually can only be provided by the leader. So the followers must can redirect the traffic into the leaders for requests of specific types.

Proposal (TODO)

Additional context

waynexia commented 2 years ago

Should meta client keep the info (route table) about the current leader?

If it does, should we implement the same logic (distinguish operations) in meta client as well?