我可以拥有多个Spring Cloud Config Server吗?

yat*_*gan 6 spring config spring-boot spring-cloud spring-cloud-config

我知道我可以使用多个存储库来跨多个存储库(可能是每个应用程序)分配我的配置,但是,我可以为这些存储库运行多个配置服务器,这样我们就可以避免单点故障了配置服务器'.

如果我们可以运行多个配置服务器,我如何抽象我的客户端访问任何一个特定的配置服务器?

更新(进一步阅读后):如果我使用负载均衡多个IP的URL,而不是在URI中使用IP,它是否会解决我在Config Server上单点故障的问题?

spring.cloud.config.uri: http ://myconfigserver.com

Vib*_*shu 5

Spring云服务器可以将自身注册到eureka。看看这个-> http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#eureka-first-bootstrap