spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.51k stars 3.32k forks source link

Zone Affinity not working #2840

Open mahan14 opened 1 year ago

mahan14 commented 1 year ago

Describe the bug Zone affinity works in the same zone but when it doesn't refer to another zone when first instance is down.

 <java.version>11</java.version>
  <spring-cloud.version>2021.0.5</spring-cloud.version>
  <spring.boot.version>2.7.6</spring.boot.version>

bootstrap.yml
eureka:
  client:
    region: default
    registryFetchIntervalSeconds: 60
    register-with-eureka: false
    fetch-registry: false
    serviceUrl:
      defaultZone: http://******:*****!@localhost:14973/eureka
  instance:
    healthCheckUrl: http://localhost:14974/actuator/health
    homePageUrl: http://localhost:14974/
    hostname: localhost
    nonSecurePortEnabled: true
    securePortEnabled: false
    statusPageUrl: http://localhost:14974/actuator/info

It used to work with other services with older version of spring cloud and java but since we have migrated, this is the issue we are able to see

mahan14 commented 1 year ago

Hi @spring-projects-issues community, any help on the above issue?

mahan14 commented 1 year ago

Hi @spring-projects-issues @spring-cloud-issues can someone suggest here