apolloconfig / apollo

Apollo is a reliable configuration management system suitable for microservice configuration management scenarios.
https://www.apolloconfig.com
Apache License 2.0
29.16k stars 10.2k forks source link

为什么MetaServer不能支持多个环境 #2456

Closed Nonlone closed 4 years ago

Nonlone commented 5 years ago

根据这里 传送门 所说,一个环境需要一个ConfigServer和AdminServer,而按照配置建议,ConfigServer和MetaServer在一个JVM实例,这样子情况下,是不是就是一个环境就是一个MetaServer?这样子在配置 env 这个参数有什么意义?MetaServer不能提供多个环境的配置数据吗

wkcaeser commented 5 years ago

控制环境的有两个参数 一个叫env 一个叫cluster(IDC) cluster的名字随便定,env就那几个固定的

wkcaeser commented 5 years ago

多个configserver可以解决网络隔离问题 如果你不介意这个的话,只用一个configserver 指定一个env,然后通过不同的cluster来区分不同的环境就可以

Nonlone commented 5 years ago

就是两者的意思其实是相反的,我理解DC肯定是网络隔离的,但是ENV不一定需要强的网络隔离,我用阿波罗env这个参数来做DC划分,用cluster这个参数做环境

wkcaeser commented 5 years ago

env属于大环境的划分 比如开发、测试、线上 而cluster(IDC)是来做大环境内部的划分的,比如不同的IDC,但他们都属于线上环境

Nonlone commented 5 years ago

我明白这样子理解,但是如果环境划分的时候直接就直接 应用隔离了,这样子在应用规模小的时候有点资源浪费,所以想开发和测试这些内部环境共用一个MetaServer,生产当然是隔离另外一个

wkcaeser commented 5 years ago

开发和测试如果用的同一套网络的话,可以只用两个大环境0-0 不是的话就没办法了

nobodyiam commented 5 years ago

开发和测试环境可以用一套环境,通过集群来区分

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had activity in the last 14 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.