Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Connection address #95

Open
bilus opened this issue Jun 18, 2017 · 5 comments
Open

Connection address #95

bilus opened this issue Jun 18, 2017 · 5 comments

Comments

@bilus
Copy link

bilus commented Jun 18, 2017

Hi,

I'm looking for a way to force the library to resolve DNS name after it changes.

To recreate:

  1. Start ES locally, listening on localhost.
  2. Add 127.0.0.1 eventstore to /etc/hosts
  3. Start ConnectionActor connecting to eventstore domain.
  4. Stop eventstore to start getting Connection failed to eventstore/127.0.0.1:1113 errors.
  5. Change /etc/hosts' entry so eventstore points to 127.0.0.2 (or whatever).

PROBLEM: ConnectionActor uses the resolved IP address, and never tries 127.0.0.2.

What's the easiest way to force it to resolve again? Thanks!

@t3hnar
Copy link
Contributor

t3hnar commented Jun 18, 2017

@bilus are you using non-cluster setup ?

@bilus
Copy link
Author

bilus commented Jun 18, 2017

@t3hnar Yes. Unfortunately, I need it to work either way. I'm sorry for not posting any code, but it's Clojure so... :P

@gregoryyoung
Copy link
Contributor

gregoryyoung commented Jun 18, 2017 via email

@t3hnar
Copy link
Contributor

t3hnar commented Jun 19, 2017

@bilus so re-loading Settings.address at runtime should fix your issue.

@bilus
Copy link
Author

bilus commented Jun 23, 2017

Thanks, @t3hnar!

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

No branches or pull requests

3 participants