Git Product home page Git Product logo

Comments (6)

dsyer avatar dsyer commented on May 22, 2024

It would be nice to at least test that this works with a Spring Cloud Eureka server. You would have to run 2 of them in EC2, configure the client serviceUrls to point to each other (in application.yml), and then start registering apps. The apps would have to be running in EC2 as well, and they would need a DefaultEurekaInstanceConfig (overriding the @Bean provided by Spring Cloud) so that the DataCenterInfo is AmazonInfo.

from spring-cloud-netflix.

spencergibb avatar spencergibb commented on May 22, 2024

Note that, by the dynamic nature of Eureka and its reliance on hearbeats to keep itself up to date, a single instance is good enough for a lot of use cases as long as it is restarted if it gets into trouble. To demonstrate this we could use CF elastic runtime to always have one instance of Eureka running. An interesting experiment would be to see Hystrix and Ribbon continue to try and use stale caches while Eureka is down.

from spring-cloud-netflix.

ccit-spence avatar ccit-spence commented on May 22, 2024

I would be willing to give this a try, We use AWS and we have an internal issue for setting up a cluster for Eureka based on Spring Cloud. My assumption has been that just adding the config details as if it is a standard Eureka installation should work. It appears all that is needed is an elastic IP and a couple of Eureka instances plus the config properties.

from spring-cloud-netflix.

dsyer avatar dsyer commented on May 22, 2024

Please do. I actually tried it myself locally and it does work (so peer awareness is not tied to AWS, but it would still be good to know it works).

from spring-cloud-netflix.

ccit-spence avatar ccit-spence commented on May 22, 2024

I have tested it in aws and it is working. Using 1.0.0.M1 had to use the /v2 url instead of /eureka

Did not use the netflix dns version of peer discovery. Configured the instances using serviceURL. Did not try across regions.

from spring-cloud-netflix.

bsushant-athena avatar bsushant-athena commented on May 22, 2024

@dsyer do you have any example repo eureka peer awareness on aws inside a vpc subnet ?
I'm getting "failed to bind EIP error".

from spring-cloud-netflix.

Related Issues (20)

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.