[Spread-users] New to spread and got some problems

Yair Amir yairamir at cs.jhu.edu
Thu Jan 29 09:32:23 EST 2009


Hi,

As a temporary fix (which will work with about the same performance as long
as you have 2 machines) you can use the following in the configuration file:

Spread_Segment 0.0.0.0:4803  {
          node01           x.y.z.10
}

Spread_Segment 0.0.0.0:4803  {
          node02           x.y.z.20
}


This will declare 2 segments, forcing Spread to use unicast between them.

If you want to use a broadcast address as in your original configuration,
then in my opinion, it is likely that your broadcast address is x.y.z.63
and not x.y.z.64

Also, Spread comes with two programs - spsend and sprecv - that enable you
to check (without using Spread) what works and what does not work on your network.

Cheers,

	:) Yair.

Tobias Stocker wrote:
> Hi Jeremy,
> 
> Thanks for your replay. My segment config looks on both hosts like this:
> 
> Spread_Segment x.y.z.64:4803  {
>         node01           x.y.z.10
>         node02           x.y.z.20
> }
> 
> The Network is x.y.z.0/26, x.y.z.64 is the broadcast address... I assume this should work, right? Also there are no ports closed or filtered.
> 
> Regards, Tobi
> 
> -----Ursprüngliche Nachricht-----
> Von: Jeremy James [mailto:jbj at forbidden.co.uk]
> Gesendet: Thursday, January 29, 2009 2:42 PM
> An: Tobias Stocker
> Cc: 'spread-users at lists.spread.org'
> Betreff: Re: [Spread-users] New to spread and got some problems
> 
> Tobias Stocker wrote:
>> I configured two hosts with spread 3.17.4 on Debian Lenny and
>> configured a Spread segment with my two servers x.y.z.10 and x.y.z.20.
>> I can start spread, connect with the spuser command to the local and
>> the remote daemon, so this works fine for me, at least so far.
> 
> What does your spread.conf look like? (specifically the relevant 'Spread_Segment' section)
> 
>> I connect on both machines to the local daemon with spuser and join
>> the group test. I expected to see the joins and sent messages on both
>> hosts, but instead the messages are only delivered localy. Shouldn't
>> the daemon on host A forward the messages to host B if the clients are
>> in the same group? Multicasting works, there is no firewall or router,
>> so I was just wondering if I understand the way how spread works
>> right. In the manuals and docs I can't find anything thereto, so I
>> suggest this should work "out of the box".
> 
> Multicast will only be used if explicitly specified, eg.
> 
> Spread_Segment 255.0.0.1:4803 {
>   host1  192.168.1.1
>   host2  192.168.1.2
> }
> 
> And you need to ensure your machine is set up to use multicast. Probably something like 'route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0'.
> 
> Otherwise, using the broadcast address will look something like:
> 
> Spread_Segment 192.168.1.255:4803 {
>   host1  192.168.1.1
>   host2  192.168.1.2
> }
> 
> Hosts should be able to communicate with both TCP and UDP on the port given, and UDP on the port above (4804 in this case), on both their local IP and the given broadcast/multicast IP, just in case some local firewall rules are still about.
> 
> There is also a mode where hosts will communicate directly through unicast - most likely where the Segment address is not a broadcast or multicast address for the given hosts, but I haven't had a need to use that yet.
> 
> spuser should indeed be able to see joins, and messages on both machines to that group.
> 
> -jeremy
> 
> 
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users
> 




More information about the Spread-users mailing list