Skip to content
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

Prana Sidecar Seems Unusable in Non-AWS Docker Environment #10

Open
grahamc opened this issue Apr 17, 2015 · 2 comments
Open

Prana Sidecar Seems Unusable in Non-AWS Docker Environment #10

grahamc opened this issue Apr 17, 2015 · 2 comments

Comments

@grahamc
Copy link

grahamc commented Apr 17, 2015

I'm running into an issue where I am using Prana for RabbitMQ service discovery. In the middle, we have our own sidecar for performing the actual healthcheck, as well as metric reporting.

In AWS it looks like this:

canvas 1

This works in AWS, because it pulls the hostname from the AWS Metadata API:

$ curl -v 'http://prana/eureka/hosts?appName=RABBIT'
["ec2-55-66-111-77.us-west-2.compute.amazonaws.com"]

However in a non-AWS Docker container:

  • where the Prana IP is different from the service it is a sidecar to
  • and eureka.validateInstanceId=false

it uses Prana's IP address, like so:

in aws

Due to this, it does not seem possible to use Prana + Eureka in a non-AWS development environment.

@grahamc grahamc changed the title Prana Sidecar Seems Unusable in Docker Environment Prana Sidecar Seems Unusable in Non-AWS Docker Environment Apr 17, 2015
@diptanu
Copy link
Contributor

diptanu commented Apr 18, 2015

@grahamc So for now aws environments you have to implement a DataCenterInfo which provides the instance information to Eureka. I think @aspyker has some experience in running Eureka in docker. Can you chime in please @aspyker ?

@aspyker
Copy link
Contributor

aspyker commented Oct 24, 2015

@grahamc Thank you for the contribution. More will be coming, but please see http://ispyker.blogspot.com/2015/10/towards-being-better-about-open-source.html for a bit of context on the status of this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants