You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by monstereo <me...@gmail.com> on 2018/07/20 10:37:15 UTC

What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?

Here is the config file 
....
<property name="discoverySpi">
                <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                    
                    <property name="localPort" value="48500"/>
                    
                    <property name="localPortRange" value="100"/>
.....
<property name="communicationSpi">

                <bean
class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">

                    <property name="localPort" value="48100"/>
                    
                    <property name="localPortRange" value="2"/>



Every node I have created has different tcp discovery local port but same
tcp commication port. Why? 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What is the difference between TcpCommunicationSpi & TcpDiscoverySpi ?

Posted by Mikhail <mi...@gmail.com>.
localportrange means the same for discovery and for communication, it defines
the range from which node will choose a port to bind.
For example, you have 47100 - discovery port and localportrange 100, it
means that if you run 10 nodes, first will take 47100, second 47101 and so
on, but this means that you can run only 100 node. because ignite node can
take only port between [47100..47199]



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What is the difference between TcpCommunicationSpi & TcpDiscoverySpi ?

Posted by monstereo <me...@gmail.com>.
Then localportrange in tcp communication determines how many nodes will
communicate each other?

Because in tcp disvocery, each node is getting different port number with
range specifies in localportrange

Mikael wrote
> https://stackoverflow.com/questions/37936833/difference-between-tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
> 
> 
> Den 2018-07-20 kl. 12:57, skrev monstereo:
>> Is there anyone who can answer?
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>>





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What is the difference between TcpCommunicationSpi & TcpDiscoverySpi ?

Posted by Mikael <mi...@telia.com>.
https://stackoverflow.com/questions/37936833/difference-between-tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis


Den 2018-07-20 kl. 12:57, skrev monstereo:
> Is there anyone who can answer?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
>


Re: What is the difference between TcpCommunicationSpi & TcpDiscoverySpi ?

Posted by monstereo <me...@gmail.com>.
Is there anyone who can answer?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?

Posted by monstereo <me...@gmail.com>.
??

ezhuravlev wrote
>>Do you have reproducer?
> 
> 
> 2018-07-25 12:25 GMT+03:00 monstereo &lt;

> mehmetozanguven@

> &gt;:
> 
>> Yes same machine
>>
>> ezhuravlev wrote
>> >>What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi
>> ?
>> > https://stackoverflow.com/questions/37936833/difference-between-
>> tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
>> >
>> >>Every node I have created has different tcp discovery local port but
>> same
>> > tcp commication port. Why?
>> > Do you start nodes on the same machine? Do you have reproducer?
>> >
>> > Evgenii
>> >
>> > 2018-07-20 13:37 GMT+03:00 monstereo &lt;
>>
>> > mehmetozanguven@
>>
>> > &gt;:
>> >
>> >> Here is the config file
>> >> ....
>> >>
>> > 
> <property name="discoverySpi">
>> >>
>> > 
> <bean
>>
>  >>
>> >  class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>> >>
>> >>
>> > 
> <property name="localPort" value="48500"/>
>> >>
>> >>
>> > 
> <property name="localPortRange" value="100"/>
>> >> .....
>> >>
>> > 
> <property name="communicationSpi">
>> >>
>> >>
>> > 
> <bean
>>
>  >>
>> >  class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>> >>
>> >>
>> > 
> <property name="localPort" value="48100"/>
>> >>
>> >>
>> > 
> <property name="localPortRange" value="2"/>
>> >>
>> >>
>> >>
>> >> Every node I have created has different tcp discovery local port but
>> same
>> >> tcp commication port. Why?
>> >>
>> >>
>> >>
>> >> --
>> >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>> >>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What is the difference between TcpCommunicationSpi &TcpTcpDiscoverySpi ?

Posted by Evgenii Zhuravlev <e....@gmail.com>.
Then I don't see how this can happen, two different processes can't bind to
the same port. When you will have the reproducer, please share it with
community.

2018-07-25 21:21 GMT+03:00 monstereo <me...@gmail.com>:

> sorry,
> there is no reproducure
>
> Stanislav Lukyanov wrote
> > Please don’t send messages like “?”. Mailing list is not a chatroom,
> > messages need to be complete and meaningful.
> >
> > Reproducer is a code snippet or project that can be run standalone to
> > reproduce the problem.
> > The behavior you see isn’t expected nor known, so we need to see it
> before
> > we can comment on it.
> > So, do you have a reproducer?
> >
> > Stan
> >
> > From: monstereo
> > Sent: 25 июля 2018 г. 17:13
> > To:
>
> > user@.apache
>
> > Subject: Re: What is the difference between TcpCommunicationSpi
> > &TcpTcpDiscoverySpi ?
> >
> > ?
> >
> >
> > ezhuravlev wrote
> >>>Do you have reproducer?
> >>
> >>
> >> 2018-07-25 12:25 GMT+03:00 monstereo &lt;
> >
> >> mehmetozanguven@
> >
> >> &gt;:
> >>
> >>> Yes same machine
> >>>
> >>> ezhuravlev wrote
> >>> >>What is the difference between TcpCommunicationSpi &
> >>> TcpTcpDiscoverySpi
> >>> ?
> >>> > https://stackoverflow.com/questions/37936833/difference-between-
> >>> tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
> >>> >
> >>> >>Every node I have created has different tcp discovery local port but
> >>> same
> >>> > tcp commication port. Why?
> >>> > Do you start nodes on the same machine? Do you have reproducer?
> >>> >
> >>> > Evgenii
> >>> >
> >>> > 2018-07-20 13:37 GMT+03:00 monstereo &lt;
> >>>
> >>> > mehmetozanguven@
> >>>
> >>> > &gt;:
> >>> >
> >>> >> Here is the config file
> >>> >> ....
> >>> >>
> >>> >
> >>
> > <property name="discoverySpi">
> >>> >>
> >>> >
> >>
> > <bean
> >>
> >>
> >>  >>
> >>> >  class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
> >>> >>
> >>> >>
> >>> >
> >>
> > <property name="localPort" value="48500"/>
> >>> >>
> >>> >>
> >>> >
> >>
> > <property name="localPortRange" value="100"/>
> >>> >> .....
> >>> >>
> >>> >
> >>
> > <property name="communicationSpi">
> >>> >>
> >>> >>
> >>> >
> >>
> > <bean
> >>
> >>
> >>  >>
> >>> >  class="org.apache.ignite.spi.communication.tcp.
> TcpCommunicationSpi">
> >>> >>
> >>> >>
> >>> >
> >>
> > <property name="localPort" value="48100"/>
> >>> >>
> >>> >>
> >>> >
> >>
> > <property name="localPortRange" value="2"/>
> >>> >>
> >>> >>
> >>> >>
> >>> >> Every node I have created has different tcp discovery local port but
> >>> same
> >>> >> tcp commication port. Why?
> >>> >>
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
> >>> >>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
> >>>
> >
> >
> >
> >
> >
> > --
> > Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

RE: What is the difference between TcpCommunicationSpi &TcpTcpDiscoverySpi ?

Posted by monstereo <me...@gmail.com>.
sorry,
there is no reproducure

Stanislav Lukyanov wrote
> Please don’t send messages like “?”. Mailing list is not a chatroom,
> messages need to be complete and meaningful.
> 
> Reproducer is a code snippet or project that can be run standalone to
> reproduce the problem.
> The behavior you see isn’t expected nor known, so we need to see it before
> we can comment on it.
> So, do you have a reproducer?
> 
> Stan
> 
> From: monstereo
> Sent: 25 июля 2018 г. 17:13
> To: 

> user@.apache

> Subject: Re: What is the difference between TcpCommunicationSpi
> &TcpTcpDiscoverySpi ?
> 
> ?
> 
> 
> ezhuravlev wrote
>>>Do you have reproducer?
>> 
>> 
>> 2018-07-25 12:25 GMT+03:00 monstereo &lt;
> 
>> mehmetozanguven@
> 
>> &gt;:
>> 
>>> Yes same machine
>>>
>>> ezhuravlev wrote
>>> >>What is the difference between TcpCommunicationSpi &
>>> TcpTcpDiscoverySpi
>>> ?
>>> > https://stackoverflow.com/questions/37936833/difference-between-
>>> tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
>>> >
>>> >>Every node I have created has different tcp discovery local port but
>>> same
>>> > tcp commication port. Why?
>>> > Do you start nodes on the same machine? Do you have reproducer?
>>> >
>>> > Evgenii
>>> >
>>> > 2018-07-20 13:37 GMT+03:00 monstereo &lt;
>>>
>>> > mehmetozanguven@
>>>
>>> > &gt;:
>>> >
>>> >> Here is the config file
>>> >> ....
>>> >>
>>> > 
>> 
> <property name="discoverySpi">
>>> >>
>>> > 
>> 
> <bean
>>
>>
>>  >>
>>> >  class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>>> >>
>>> >>
>>> > 
>> 
> <property name="localPort" value="48500"/>
>>> >>
>>> >>
>>> > 
>> 
> <property name="localPortRange" value="100"/>
>>> >> .....
>>> >>
>>> > 
>> 
> <property name="communicationSpi">
>>> >>
>>> >>
>>> > 
>> 
> <bean
>>
>>
>>  >>
>>> >  class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>>> >>
>>> >>
>>> > 
>> 
> <property name="localPort" value="48100"/>
>>> >>
>>> >>
>>> > 
>> 
> <property name="localPortRange" value="2"/>
>>> >>
>>> >>
>>> >>
>>> >> Every node I have created has different tcp discovery local port but
>>> same
>>> >> tcp commication port. Why?
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>> >>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>>
> 
> 
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: What is the difference between TcpCommunicationSpi &TcpTcpDiscoverySpi ?

Posted by Stanislav Lukyanov <st...@gmail.com>.
Please don’t send messages like “?”. Mailing list is not a chatroom, messages need to be complete and meaningful.

Reproducer is a code snippet or project that can be run standalone to reproduce the problem.
The behavior you see isn’t expected nor known, so we need to see it before we can comment on it.
So, do you have a reproducer?

Stan

From: monstereo
Sent: 25 июля 2018 г. 17:13
To: user@ignite.apache.org
Subject: Re: What is the difference between TcpCommunicationSpi &TcpTcpDiscoverySpi ?

?


ezhuravlev wrote
>>Do you have reproducer?
> 
> 
> 2018-07-25 12:25 GMT+03:00 monstereo &lt;

> mehmetozanguven@

> &gt;:
> 
>> Yes same machine
>>
>> ezhuravlev wrote
>> >>What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi
>> ?
>> > https://stackoverflow.com/questions/37936833/difference-between-
>> tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
>> >
>> >>Every node I have created has different tcp discovery local port but
>> same
>> > tcp commication port. Why?
>> > Do you start nodes on the same machine? Do you have reproducer?
>> >
>> > Evgenii
>> >
>> > 2018-07-20 13:37 GMT+03:00 monstereo &lt;
>>
>> > mehmetozanguven@
>>
>> > &gt;:
>> >
>> >> Here is the config file
>> >> ....
>> >>
>> > 
> <property name="discoverySpi">
>> >>
>> > 
> <bean
>>
>  >>
>> >  class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>> >>
>> >>
>> > 
> <property name="localPort" value="48500"/>
>> >>
>> >>
>> > 
> <property name="localPortRange" value="100"/>
>> >> .....
>> >>
>> > 
> <property name="communicationSpi">
>> >>
>> >>
>> > 
> <bean
>>
>  >>
>> >  class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>> >>
>> >>
>> > 
> <property name="localPort" value="48100"/>
>> >>
>> >>
>> > 
> <property name="localPortRange" value="2"/>
>> >>
>> >>
>> >>
>> >> Every node I have created has different tcp discovery local port but
>> same
>> >> tcp commication port. Why?
>> >>
>> >>
>> >>
>> >> --
>> >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>> >>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?

Posted by monstereo <me...@gmail.com>.
?


ezhuravlev wrote
>>Do you have reproducer?
> 
> 
> 2018-07-25 12:25 GMT+03:00 monstereo &lt;

> mehmetozanguven@

> &gt;:
> 
>> Yes same machine
>>
>> ezhuravlev wrote
>> >>What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi
>> ?
>> > https://stackoverflow.com/questions/37936833/difference-between-
>> tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
>> >
>> >>Every node I have created has different tcp discovery local port but
>> same
>> > tcp commication port. Why?
>> > Do you start nodes on the same machine? Do you have reproducer?
>> >
>> > Evgenii
>> >
>> > 2018-07-20 13:37 GMT+03:00 monstereo &lt;
>>
>> > mehmetozanguven@
>>
>> > &gt;:
>> >
>> >> Here is the config file
>> >> ....
>> >>
>> > 
> <property name="discoverySpi">
>> >>
>> > 
> <bean
>>
>  >>
>> >  class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>> >>
>> >>
>> > 
> <property name="localPort" value="48500"/>
>> >>
>> >>
>> > 
> <property name="localPortRange" value="100"/>
>> >> .....
>> >>
>> > 
> <property name="communicationSpi">
>> >>
>> >>
>> > 
> <bean
>>
>  >>
>> >  class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>> >>
>> >>
>> > 
> <property name="localPort" value="48100"/>
>> >>
>> >>
>> > 
> <property name="localPortRange" value="2"/>
>> >>
>> >>
>> >>
>> >> Every node I have created has different tcp discovery local port but
>> same
>> >> tcp commication port. Why?
>> >>
>> >>
>> >>
>> >> --
>> >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>> >>
>>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?

Posted by Evgenii Zhuravlev <e....@gmail.com>.
>Do you have reproducer?


2018-07-25 12:25 GMT+03:00 monstereo <me...@gmail.com>:

> Yes same machine
>
> ezhuravlev wrote
> >>What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?
> > https://stackoverflow.com/questions/37936833/difference-between-
> tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
> >
> >>Every node I have created has different tcp discovery local port but same
> > tcp commication port. Why?
> > Do you start nodes on the same machine? Do you have reproducer?
> >
> > Evgenii
> >
> > 2018-07-20 13:37 GMT+03:00 monstereo &lt;
>
> > mehmetozanguven@
>
> > &gt;:
> >
> >> Here is the config file
> >> ....
> >>
> > <property name="discoverySpi">
> >>
> > <bean
> >>
> >  class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
> >>
> >>
> > <property name="localPort" value="48500"/>
> >>
> >>
> > <property name="localPortRange" value="100"/>
> >> .....
> >>
> > <property name="communicationSpi">
> >>
> >>
> > <bean
> >>
> >  class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
> >>
> >>
> > <property name="localPort" value="48100"/>
> >>
> >>
> > <property name="localPortRange" value="2"/>
> >>
> >>
> >>
> >> Every node I have created has different tcp discovery local port but
> same
> >> tcp commication port. Why?
> >>
> >>
> >>
> >> --
> >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
> >>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?

Posted by monstereo <me...@gmail.com>.
Yes same machine

ezhuravlev wrote
>>What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?
> https://stackoverflow.com/questions/37936833/difference-between-tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis
> 
>>Every node I have created has different tcp discovery local port but same
> tcp commication port. Why?
> Do you start nodes on the same machine? Do you have reproducer?
> 
> Evgenii
> 
> 2018-07-20 13:37 GMT+03:00 monstereo &lt;

> mehmetozanguven@

> &gt;:
> 
>> Here is the config file
>> ....
>> 
> <property name="discoverySpi">
>>                 
> <bean
>>
>  class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>>
>>                     
> <property name="localPort" value="48500"/>
>>
>>                     
> <property name="localPortRange" value="100"/>
>> .....
>> 
> <property name="communicationSpi">
>>
>>                 
> <bean
>>
>  class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>>
>>                     
> <property name="localPort" value="48100"/>
>>
>>                     
> <property name="localPortRange" value="2"/>
>>
>>
>>
>> Every node I have created has different tcp discovery local port but same
>> tcp commication port. Why?
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?

Posted by Evgenii Zhuravlev <e....@gmail.com>.
>What is the difference between TcpCommunicationSpi & TcpTcpDiscoverySpi ?
https://stackoverflow.com/questions/37936833/difference-between-tcpcommunicationspicommunicationspi-and-tcpdiscoveryspidis

>Every node I have created has different tcp discovery local port but same
tcp commication port. Why?
Do you start nodes on the same machine? Do you have reproducer?

Evgenii

2018-07-20 13:37 GMT+03:00 monstereo <me...@gmail.com>:

> Here is the config file
> ....
> <property name="discoverySpi">
>                 <bean
> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>
>                     <property name="localPort" value="48500"/>
>
>                     <property name="localPortRange" value="100"/>
> .....
> <property name="communicationSpi">
>
>                 <bean
> class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi">
>
>                     <property name="localPort" value="48100"/>
>
>                     <property name="localPortRange" value="2"/>
>
>
>
> Every node I have created has different tcp discovery local port but same
> tcp commication port. Why?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>