[erlang-questions] Connect to Node with multiple IPs

18 views
Skip to first unread message

huangjl

unread,
May 6, 2012, 11:11:18 PM5/6/12
to erlang-q...@erlang.org

Hi, All

         I have a question about erlang node connection. There are two machines: MachineA and MachineB, MachineB has two IPs: IP1 and IP2. MachineA want to connect to MachineB using IP, just like net_kernel:connect_node(‘test@IP1’) or net_kernel:connect_node(‘test@IP2’). Then , how to start only one test node at MachineB which can receive all messages from test@IP1 and test@IP2.

 

Zheng Zhibin

unread,
May 7, 2012, 2:08:28 AM5/7/12
to huangjl, <erlang-questions@erlang.org>
use domain instead of ip, then config your hosts table

发自我的 iPhone

在 2012-5-7,上午11:11,"huangjl" <hua...@chinanetcenter.com> 写道:

Hi, All

         I have a question about erlang node connection. There are two machines: MachineA and MachineB, MachineB has two IPs: IP1 and IP2. MachineA want to connect to MachineB using IP, just like net_kernel:connect_node(‘test@IP1’) or net_kernel:connect_node(‘test@IP2’). Then , how to start only one test node at MachineB which can receive all messages from test@IP1 and test@IP2.

 

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

huangjl

unread,
May 7, 2012, 2:53:36 AM5/7/12
to Zheng Zhibin, erlang-q...@erlang.org

But without DNS, it seems I have to config two domains for two IPs?

My purpose is detect which IP is suitable for MachineA to connect to MachineB, but I don’t want to start two nodes for MachineB, is there any way to do this?

 

 

发件人: Zheng Zhibin [mailto:wite...@gmail.com]
发送时间: 201257 14:08
收件人: huangjl
抄送: <erlang-q...@erlang.org>
主题: Re: [erlang-questions] Connect to Node with multiple IPs

Zheng Zhibin

unread,
May 7, 2012, 3:01:48 AM5/7/12
to huangjl, <erlang-questions@erlang.org>
one domain + reverse proxy, such as nginx?

发自我的 iPhone

huangjl

unread,
May 8, 2012, 2:09:02 AM5/8/12
to Zheng Zhibin, erlang-q...@erlang.org

I don’t think so, the proxy mode will increase the net delay or system load.

 

黄锦亮

网宿科技厦门分公司

 

发件人: Zheng Zhibin [mailto:wite...@gmail.com]

发送时间: 201257 15:02
收件人: huangjl
抄送: <erlang-q...@erlang.org>
主题: Re: 答复: [erlang-questions] Connect to Node with multiple IPs

Reply all
Reply to author
Forward
0 new messages