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

Proxy support for hazelcast (AWS)? #44

Closed
planet opened this issue Oct 9, 2017 · 2 comments
Closed

Proxy support for hazelcast (AWS)? #44

planet opened this issue Oct 9, 2017 · 2 comments

Comments

@planet
Copy link

planet commented Oct 9, 2017

In our AWS environment the EC2 endpoint is only reachable via a proxy server, as there is no other way to get to the Internet. Does hazelcast support this? If so how can we configure hazelcast to discovery members via a proxy? Thanks in advance!

@googlielmo
Copy link
Contributor

The AWS discovery plugin uses java.net.HttpURLConnection, which supports this use case.

Please set the http.proxyHost and http.proxyPort system properties, or their https counterparts https.proxyHost and https.proxyPort, to specify your http, or https, proxy host and port [1].

Also, set the http.nonProxyHosts (which is also used for https!) to the value "169.254.169.254|169.254.170.2", so that the hazelcast-aws plugin can access the Instance Meta Data Service [2] and the IAM Roles for Tasks Service [3].

Hope this helps.

[1] https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html
[2] http://docs.aws.amazon.com/cli/latest/userguide/cli-http-proxy.html
[3] http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html

@planet
Copy link
Author

planet commented Oct 16, 2017

Thanks @googlielmo

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

2 participants