0

这是一个微服务部署问题。您将如何部署Envoy SDS(服务发现服务),以便其他 Envoy 代理可以找到 SDS 服务器主机,以便发现其他服务来构建服务网格。我应该将它放在具有 DNS 名称(单点故障)的负载均衡器后面,还是只在每台机器上本地运行 SDS,以便其他微服务可以访问它?或者有没有更好的部署方式,可以将 SDS 集群动态添加到 envoy 配置中而不会出现单点故障?

4

1 回答 1

0

Putting it behind a DNS name with a load balancer across multiple SDS servers is a good setup for reasonable availability. If SDS is down, Envoy will simple not get updated, so it's generally not the most critical failure -- new hosts and services simply won't get added to the cluster/endpoint model in Envoy.

If you want higher availability, you set up multiple clusters. If you add multiple entries to your bootstrap config, Envoy will fail over between them. You can either specify multiple DNS names or multiple IPs.

(My answer after misunderstanding the question below, for posterity)

You can start with a static config or DNS, but you'll probably want to check out a full integration with your service discovery.

Check out Service Discovery Integration on LearnEnvoy.io.

于 2018-03-26T20:58:01.027 回答