简体   繁体   English

Spring Cloud Server的Git后端-如何确保HA?

[英]Git backend for Spring Cloud Server - how to ensure HA?

I'm trying to wrap my head around a question with the Git backend in Spring Cloud Config. 我试图用Spring Cloud Config中的Git后端解决一个问题。

I have an on-premise cloud setup, using PCF. 我有一个使用PCF的本地云设置。 So my Config Servers would not hold state if restarted. 因此,如果重新启动,我的配置服务器将不会保持状态。 In this scenario, what is the best way to ensure the Git backend would have HA? 在这种情况下,确保Git后端具有HA的最佳方法是什么? I understand that if I run a cluster of Config Server instances, that would resolve part of the problem, but what if they all crash at the same time and my Git server is down for some reason? 我了解如果我运行Config Server实例集群,那可以解决部分问题,但是如果它们都同时崩溃并且Git服务器由于某种原因而关闭怎么办? In this case, the Git backend would need to have HA too (or at least a copy of the files would have to be available somewhere somehow for the Config servers to pickup). 在这种情况下,Git后端也需要具有高可用性(或至少必须以某种方式可以使用Config服务器提取文件的副本)。 I imagine this is a very common scenario, so how are other people doing this? 我想这是一个非常普遍的情况,那么其他人该怎么做?

I think you answered this yourself: 我想你自己回答了这个问题:

if I run a cluster of Config Server instances 如果我运行Config Server实例集群

the Git backend would need to have HA too Git后端也需要HA

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM