简体   繁体   English

Spring Eureka服务器中的数据中心属性是什么意思?

[英]What means datacenter property in Spring Eureka server?

In Spring Eureka server exists the property "datacenter", what is the purpose of setting this? 在Spring Eureka服务器中存在属性“数据中心”,设置此属性的目的是什么? Do I need to set one if I am not running in standalone mode the server? 如果我未以独立模式运行服务器,是否需要设置一个? Otherwise if I have zone/region for my peers, this property should have the same name to identify the zone they're? 否则,如果我有同龄人的区域/区域,则此属性应该使用相同的名称来标识他们所在的区域吗?

For example 例如

eureka.datacenter=myname

As described here https://github.com/Netflix/eureka/wiki/Configuring-Eureka-in-AWS-Cloud it's required for AWS specific initialization 如此处所述https://github.com/Netflix/eureka/wiki/Configuring-Eureka-in-AWS-Cloud,它是AWS特定的初始化所必需的

In the AWS cloud environment, pass in the java commandline property -Deureka.datacenter=cloud so that the Eureka Client/Server knows to initialize the information specific to AWS cloud. 在AWS云环境中,传递java命令行属性-Deureka.datacenter = cloud,以便Eureka客户端/服务器知道初始化特定于AWS云的信息。

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

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