Connection address
Hi,
I'm looking for a way to force the library to resolve DNS name after it changes.
To recreate:
- Start ES locally, listening on localhost.
- Add
127.0.0.1 eventstoreto/etc/hosts - Start ConnectionActor connecting to
eventstoredomain. - Stop eventstore to start getting
Connection failed to eventstore/127.0.0.1:1113errors. - Change
/etc/hosts' entry soeventstorepoints to127.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!
@bilus are you using non-cluster setup ?
@t3hnar Yes. Unfortunately, I need it to work either way. I'm sorry for not posting any code, but it's Clojure so... :P
This sounds like a turtles all the way down problem as there are varying levels of caching by design in DNS.
On Sun, Jun 18, 2017 at 10:28 PM, Marcin Bilski [email protected] wrote:
@t3hnar https://github.com/t3hnar Yes. Unfortunately, I need it to work either way. I'm sorry for not posting any code, but it's Clojure so... :P
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EventStore/EventStore.JVM/issues/95#issuecomment-309304127, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXRWi1GCK-zAZPXyrOJZqwt8Y0p0CpVks5sFZaEgaJpZM4N9g0F .
-- Studying for the Turing test
@bilus so re-loading Settings.address at runtime should fix your issue.
Thanks, @t3hnar!