Comments (6)
Curious whether you tried with the actual TXT record having a comma between
entries as suggested by the wiki? If yes, does that work?
On Fri, Jun 14, 2013 at 4:34 AM, OskarKjellin [email protected]:
I ran into some issues when I tried to setup multiple zones with eureka.
According to the wiki, the txt records should be separated with ','.
However, it seems like the code is using the whitespace character?
Wiki page I am referring to:
https://github.com/Netflix/eureka/wiki/Configuring-Eureka-in-AWS-CloudBut on this line it splits using whitespace:
This would be fine if it was as simple as a code->wiki mismatch. But when
there is a whitespace within a txt record it returns it as "eu-west1a
eu-west1b", instead of with comma as eu-west1a,eu-west1b (hard to
illustrate but in the first case it returns a string containing actual
quotation marks). So when it splits it winds up with:
- "eu-west1a
- eu-west1b"
Which of course causes problems.
Am I the only one who ran into this issue? Like the way that the
TXT-records and automatic assigning of EIPs but it's very fragile to have
only one eureka server.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/22
.
from eureka.
@NiteshKant Well yeah, that was the first thing I tried. That ended up just like trying to connect to
"ec2-54-216-23-251.eu-west-1.compute.amazonaws.com,ec2-54-216-23-251.eu-west-1.compute.amazonaws.com:8080"
which of course didn't work which was when I started stepping through the code and found that it was actually splitting on a whitespace:
String[] cnames = txtRecord.split(" ");
from eureka.
Hi,
Yes - the wiki has to be fixed. I think you are probably getting the format of the TXT record wrong. I think the TXT records should be similar to this
"eu-west-1a" "eu-west-1b".
Can you try this and let me know?
from eureka.
@karthik-vn It ends up the same. Tries to query like
txt."eu-west1.mydomain.com
Which doesn't work. According to the route53 documentation, multiple values should be one per line. But that doesn't work either. I had a fix before that just did value.replace(""", "") which worked. But I should be able to use your jars and not need to modify my code.
from eureka.
Not sure what is going wrong in your case. Our route53 configuration works perfectly.
For eg. here is the TXT record for our test environment.
from eureka.
@karthik-vn thanks. The issue was the setup in route53 that I had made. The test link helped me narrow down the issue with my configuration. It's working now.
The wiki should be updated to match our discussion here
from eureka.
Related Issues (20)
- JerseyEurekaHttpClient issue with 404 responses in Spring Boot 3.x HOT 4
- Netflix HOT 1
- Unable to register Eureka server [Error: eureka registration FAILED: status: 404 body: undefined] HOT 1
- DependencyConvergence failed for spring-cloud-starter-netflix-eureka-client 3.1.5 and 4.0.3
- How can I add "ip prefer" with "rest api"?
- weld-001408: unsatisfied dependencies for type EurekaServerContext with qualifiers @default
- updateDelta() bug? In come case, reconcileHashCode inconsistencies may occur after updating
- Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat HOT 1
- eureka client failed to renew lease after a period of time
- Unable to properly log out of the Eureka service after registration
- Status HOT 2
- Inconsistent service instances caused by synchronization issues between Eureka servers HOT 1
- WARN Ignoring onDemand update due to rate limiter
- Uplift httpclient to 5.x
- Eureka Client - CVE-2023-2976
- Eureka server 500 when "overriddenstatus" is omitted from request body
- Eureka client using vulnerable version of apache commons-configuration. HOT 1
- Error in connection between Eureka client and Eureka registration center HOT 1
- com.netflix.hystrix.exception.HystrixRuntimeException: api timed-out and no fallback available
- com.netflix.discovery.DiscoveryClient: DiscoveryClient_EUREKA-TEST-CLIENT/eureka-client-544b94f967-gcx2f:eureka-test-client - was unable to send heartbeat! HOT 1
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 eureka.