Git Product home page Git Product logo

spring-cloud-eureka-zone-affinity-sample's Introduction

spring-cloud-eureka-zone-affinity-sample

Example that configures spring cloud eureka for multi-zone affinity.

spring-cloud-eureka-zone-affinity-sample's People

Contributors

spencergibb avatar

Stargazers

Zakharov Roman avatar Narayan (Naren) avatar Davor Sauer avatar wanghongfei avatar Marcos Barbero avatar

Watchers

James Cloos avatar  avatar

Forkers

valery-barysok

spring-cloud-eureka-zone-affinity-sample's Issues

same zone affinity setup with standard DNS Domain

Howto setup same zone affinity and syncing between 2 Eureka servers reg1.zone1.base and reg1.zone1.base and 2 other eureka servers reg1.zone2.base and reg1.zone2.base. Feign/zuul instances shall use a load balancing strategy where required services are prefered in same zone first.
Can 't find any documentation on that.

Exclude Zone

Is their a way to ignore zone or define list of accepted zone , for example if we have 3 zones ( office, shahbour, joe )

i want the services in zone shahbour to only talk to shahbour primary and office as secondary and ignore all other zones.

I tried it as below and it is working if a service exist on same zone but if their is no service on same zone it do load balance on all the others

spring:
  profiles: shahbour
eureka:
  instance:
    metadataMap:
      zone: shahbour
  client:
    preferSameZoneEureka: true
    shahbour: http://office:8761/eureka/
    availabilityZones:
      lebanon: shahbour,office

This is for development environment where i am trying to setup each developer to use his machine as a zone and if service does not exist use office server as backup but don't use other developers .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.