how to config voldemort not to bound on 0.0.0.0

29 views
Skip to first unread message

wonderyl

unread,
Jan 30, 2012, 10:35:26 PM1/30/12
to project-voldemort
i would like voldemort bound to a specific ip, like 10.1.1.1
not 0.0.0.0 or *
could anyone teach me how?
thanks

Brendan Harris

unread,
Feb 1, 2012, 3:55:58 AM2/1/12
to project-voldemort
Hello,

It is not currently configurable, though it's not a bad idea for it to
be. VoldemortServer.java calls either SocketService or
NioSocketService (depending on which type you're using), both of which
currently only allow the port to be passed to it as the second
parameter. Both of those methods call  InetSocketAddress(port) to
open the socket. It looks easy enough to add in support for an
optional <bind-ip> field in cluster.xml and update those methods to
support this, having them check if bindIp is not null and calling
InetSocketAddress(bindIp, port) if defined. Let me look into this.

Brendan

wonderyl

unread,
Feb 2, 2012, 12:40:16 AM2/2/12
to project-voldemort
thank u Harris:
i've change the source code of voldemort to support configurable host,
for both niosocketserver and socketserver, but there are still one
more service binding to *, listed as below, the first service is
unknown
--------netstat
output----------------------------------------------------------------
tcp 0 0 *:49454 *:* LISTEN 24831/
java
tcp 0 0 10.151.130.80:56666 *:* LISTEN 24831/
java
tcp 0 0 10.151.130.80:56667 *:* LISTEN 24831/
java

it seems that it's the storage service, i'm using bdb as storage, can
u tell me which class is responsible for this service?
btw, the service seems to use a random port

thank you very much
Reply all
Reply to author
Forward
0 new messages