Spring Cloud Config: differentiate configs for service instances

时间:2015-10-06 08:35:25

标签: config spring-cloud

Spring Cloud Config serves configuration based on app name, profile and label. I'm wondering, how to differentiate configuration of two instances of same service on same environment. They should basically have the same configuration, but, for example, I would like to allow on testing environment running them on the same host, so I need different ports.

How you solve this? Using fake profiles (dev-1, dev2)? Or is there some better way?

1 个答案:

答案 0 :(得分:2)

如您所述,没有针对单个实例配置的工具。你可以做假的个人资料。但是对于端口,为什么不设置server.port