You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geode.apache.org by Mike Stolz <mi...@apache.org> on 2018/11/07 20:39:28 UTC
server-bind-address and bind-address
I'm a little confused about the difference in gfsh between
server-bind-address and bind-address. Can anybody help me out on this?
I started two locators one at 192.168.1.8 and another at 192.168.1.9 using
--bind-address in both cases.
Then I started a server like this:
gfsh>start server --name=server1
--locators=192.168.1.8[10334],192.168.1.9[10334] --bind-address=192.168.1.8
which results in this:
gfsh>list members
Name | Id
-------- | ------------------------------------------------------------
locator | 192.168.1.8(locator:9796:locator)<ec><v0>:1024 [Coordinator]
locator1 | 192.168.1.9(locator1:4784:locator)<ec><v5>:1024
server1 | 192.168.1.8(server1:10180)<v7>:1025
Then I started another server like this:
gfsh>start server --name=server3
--locators=192.168.1.8[10334],192.168.1.9[10334]
--server-bind-address=192.168.1.8 --server-port=40405
which resulted in this:
Name | Id
-------- | ------------------------------------------------------------
server3 | 192.168.1.4(server3:10312)<v10>:1024
locator | 192.168.1.8(locator:9796:locator)<ec><v0>:1024 [Coordinator]
locator1 | 192.168.1.9(locator1:4784:locator)<ec><v5>:1024
server1 | 192.168.1.8(server1:10180)<v7>:1025
This shows that the server3 used the default address of the machine
192.168.1.4 as the bind-address, but what did the server-bind-address
setting actually do?
Re: server-bind-address and bind-address
Posted by John Blum <jb...@pivotal.io>.
--sever-bind-address is used by to configure the NIC that the server uses
to accept client connections. --bind-address is between peers. Only
really useful in a multi-NIC system to channel traffic from clients and
peer separately.
On Wed, Nov 7, 2018 at 12:39 PM, Mike Stolz <mi...@apache.org> wrote:
> I'm a little confused about the difference in gfsh between
> server-bind-address and bind-address. Can anybody help me out on this?
>
> I started two locators one at 192.168.1.8 and another at 192.168.1.9 using
> --bind-address in both cases.
>
> Then I started a server like this:
> gfsh>start server --name=server1 --locators=192.168.1.8[10334],192.168.1.9[10334]
> --bind-address=192.168.1.8
>
> which results in this:
>
> gfsh>list members
>
> Name | Id
>
> -------- | ------------------------------------------------------------
>
> locator | 192.168.1.8(locator:9796:locator)<ec><v0>:1024 [Coordinator]
>
> locator1 | 192.168.1.9(locator1:4784:locator)<ec><v5>:1024
> server1 | 192.168.1.8(server1:10180)<v7>:1025
>
> Then I started another server like this:
>
> gfsh>start server --name=server3 --locators=192.168.1.8[10334],192.168.1.9[10334]
> --server-bind-address=192.168.1.8 --server-port=40405
>
>
> which resulted in this:
>
> Name | Id
>
> -------- | ------------------------------------------------------------
>
> server3 | 192.168.1.4(server3:10312)<v10>:1024
>
> locator | 192.168.1.8(locator:9796:locator)<ec><v0>:1024 [Coordinator]
>
> locator1 | 192.168.1.9(locator1:4784:locator)<ec><v5>:1024
>
> server1 | 192.168.1.8(server1:10180)<v7>:1025
>
>
> This shows that the server3 used the default address of the machine
> 192.168.1.4 as the bind-address, but what did the server-bind-address
> setting actually do?
>
--
-John
john.blum10101 (skype)