-
Notifications
You must be signed in to change notification settings - Fork 21
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
Promtimer should support alternate address (was: promtimer issue working with remote AWS instances) #50
Comments
Thinking that it might work against the second node it too used the non-external hostname and thus timed out.
|
Hey Steve
When you bring up a standalone node and don't configure it with a hostname explicitly, it will pick up the name When you add a second node, you did so using the internal addresses - and so these are returned in the |
Hi Dave, Both nodes show the Servers as I'm not sure how to setup the first node and tell it to use ec2-52-23-193-116.compute-1.amazonaws.com as the hostname. |
That did the trick! I am able to start promtimer against either of the two nodes. Thanks for the help Dave! |
Hey Steve - I've created a PR that will allow Promtimer to connect to a remote single node instance running on localhost: #51. Would you be able to give it a try? It doesn't solve the problem of having Promtimer be able to connect via alternate address - but it should work for single nodes, which can be convenient. |
Tested on AWS linux instance. Thanks for the quick fix. |
I was encountering an issue when starting promtimer against a remote AWS instance. I put a printf in urllib/request.py in do_open
and see this crash. Note the /pools/default/buckets is being done against the localhost (127.0.0.1) which is my mac. This is a single node, just created cluster so maybe that's a reason
I then add a second node to the cluster and try again. Note it uses a non-local IP address (172.31.15.151) but not the external one and so the connection times out.
I skimmed the promtimer code and see it is using /pools/default/nodeServices
Running on my node
and
Having entered this issue perhaps there's two issues: 1) remote promtimer doesn't work against a node that doesn't have a "hostname" in the results from /pools/default/nodeServices and 2) ns_server may not be returning the right hostname...though I'm not sure how ns_server would know the IP isn't the external IP.
The text was updated successfully, but these errors were encountered: