spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

eureka.instance.appname not working with gateway

Open zorlac opened this issue 5 years ago • 3 comments

It seems like gateway can't resolve application registered in eureka server using eureka.instance.appname. In our case we have applications deployed in two different environment (uat and qa) but both will register on one clustered eureka server. We differentiate the applications from two environments using eureka.instance.appname. One is registered as service_app_uat and another one as service_app_qa however the spring.application.name is service.app. Eureka is able to register the app from two different environment just fine but Spring Cloud Gateway can't resolve these two registered instances from eureka. However if we removed the eureka.instance.appname both app from two environments registered as service_app with two instances which we don't want.

zorlac avatar Jan 02 '21 22:01 zorlac

Closing in favor of stack overflow. Please don't cross post. https://stackoverflow.com/q/65551489/2730527

spencergibb avatar Jan 03 '21 15:01 spencergibb

Sorry about that, I posted the issue here first hoping you guys would give a more helpful response.

zorlac avatar Jan 03 '21 15:01 zorlac

We monitor both. And we're on holiday until tomorrow or Tuesday

spencergibb avatar Jan 03 '21 16:01 spencergibb