-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document uses of eureka appName, vipAddress, with regards to spring cloud uses of serviceId, etc... #1788
Comments
I think, at most, there should be some clarifying documentation. |
Thinking of changing |
I think I used vip address for parity with the eureka ribbon integration. |
I think the best thing would be to document uses, see #1789 (comment) |
More reasons for spring-cloud/spring-cloud-commons#227 |
@spencergibb it's been a while but I agree that really writing down the meaning of the terms application name, virtual host name, host name, instance id, and service id would go a long way towards solving the issue. What's the difference though between I'm really somewhat removed from the whole Eureka and Ribbon thing. Though I do trust my 5-month-younger self enough to say that this seems to be a good idea ;) |
ps I lost a lot of time here, because there's no parity for reasons mentioned above. If you know the vip address, likely you have little to use eureka for. It seems odd that the service list returns applications (which makes sense), but you have to guess a vip address to well. discover metadata around that vip address. basically you already have to know a lot of info to get started. |
EurekaDiscoveryClient.getIntsances(String)
doesn't use theserviceId
or application name but the VIP Address to lookup instances:here's the doc for
DiscoverClient.getInstances(String serviceId)
So far I haven't noticed this as
EurekaInstanceConfigBean
usesspring.application.name
asvirtualHostName
which is used byInstanceInfoFactory
asVIPAddress
here's the doc for
InstanceInfo
:so it looks like this implementation treats application name and VIP address as synonyms - and don't rely use VIP addresses anywhere - so that's why this bug went undetected.
So the proper implementation would be this:
The text was updated successfully, but these errors were encountered: