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

Make the host name resolution in the cloud more generic #34

Closed
sriramkrishnan opened this issue Oct 4, 2013 · 1 comment
Closed

Make the host name resolution in the cloud more generic #34

sriramkrishnan opened this issue Oct 4, 2013 · 1 comment
Assignees
Labels

Comments

@sriramkrishnan
Copy link
Contributor

Currently, Genie uses System.getenv("EC2_PUBLIC_HOSTNAME") to figure out its hostname in the cloud (if the netflix.genie.server.host property is not set).

We should make this more generic but looking at the instance metadata. By default, it is should get the host name from: http://169.254.169.254/latest/meta-data/public-hostname. If that is unavailable (e.g. in a VPC), it should default to http://169.254.169.254/latest/meta-data/local-ipv4.

@ghost ghost assigned sriramkrishnan Oct 4, 2013
sriramkrishnan added a commit that referenced this issue Oct 7, 2013
Issue #34: code to get host name in the cloud from instance metadata
sriramkrishnan added a commit that referenced this issue Oct 7, 2013
@sriramkrishnan
Copy link
Contributor Author

Verified that this works as expected.

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

No branches or pull requests

1 participant