byzhang / terrastore

Automatically exported from code.google.com/p/terrastore
Other
0 stars 0 forks source link

Binding the node host to the wildcard (0.0.0.0) address doesn't work #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Binding the node host (--nodeHost) to the wildcard (0.0.0.0) address doesn't 
work because the server seems to publish the 0.0.0.0 address itself.

So, we should make it work, by manually specifying two different addresses 
(bind/publish), or just letting the server publish the first guessed address.

Any takes?

Original issue reported on code.google.com by sergio.b...@gmail.com on 3 Jan 2011 at 1:47

GoogleCodeExporter commented 9 years ago
Fixed by separating the bind host from the publish host as suggested by Shay, 
with the difference that there's no need to explicitly set both.
If the bind host is different than the wildcard address, the publish host will 
be the same as the bind one.
If the bind host is set as the wildcard one, the server will publish all 
non-loopback active addresses (so that other servers will be able to connect to 
the first reachable one). 

Original comment by sergio.b...@gmail.com on 5 Jan 2011 at 6:07