Comments (6)
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.
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.
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.
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.
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.
@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)
- Improve documentation on required HTTP client dependencies HOT 9
- Before eureka is registered, InstancePreRegisteredEvent will not be published. HOT 1
- Dependency vulnerability (org.codehaus.jettison) HOT 3
- Hello All, HOT 1
- not able to exceute HOT 1
- The API '/serverinfo/statusoverrides' from class ServerInfoResource don't work. HOT 1
- eureka: improve single-server experience
- Spring cloud ribbon loadbalancer error - org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cloud/commons/httpclient/HttpClientConfiguration$OkHttpClientConfiguration.class] cannot be opened because it does not exist HOT 1
- Missing observability support in RestTemplateTransportClientFactory HOT 2
- NullPointerException in EurekaClient when jeresey-client lib is found on the class path HOT 1
- Support Spring RestClient as TransportClientFactory HOT 3
- Cannot invoke "org.springframework.cloud.netflix.eureka.CloudEurekaClient.getApplications() HOT 2
- Jersey3DiscoveryClientOptionalArgs may be configured with TlsProperties in EurekaServerAutoConfiguration.java HOT 1
- UnresolvedAddressException when using webClient.get() to get from a discovery eureka client HOT 4
- When shutting down after 4.1.1, an exception occurs while unregistering HOT 6
- No such host is known (swagger-service) HOT 5
- xstream, woodstox and guava dependencies vulnerabilities HOT 1
- Eureka Service Discovery, after a network failure, updates the client status to DOWN, but when the HEARTBEAT is done from the client it does not change status to UP HOT 1
- 400 error when Eureka discovery client attempts to register Spring Boot 2.7.5 service with service registry HOT 2
- About RefreshScopeRefreshedEvent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-netflix.