Skip to content
Snippets Groups Projects
Unverified Commit 2df9095b authored by lni's avatar lni Committed by GitHub
Browse files

logservice: use reverse proxy for service discovery (#4449)

Log Service's ClientConfig and HAKeeper's HAKeeperClientConfig both have an optional DiscoveryAddress field which is the service address of a reverse proxy provided by k8s. The reverse proxy redirects requests to a random Log Service node and we use this mechanism to query Log Shard info from such random node. As such shard info is broadcasted to all Log Service nodes via gossip over time, this allows eventual discovery of the details of the interested Log Service shard.

This feature is required as replicas of a Log Shard can migrate to a completely different set of nodes over time, a pre determined & fixed address list alone won't be enough to allow clients to connect to the interested Log Shard.

Approved by: @aptend, @fengttt, @nnsgmsone
parent 21456c4d
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment