[Spread-users] help with starting multiple instances of spread, please

Yair Amir yairamir at cs.jhu.edu
Tue Mar 16 19:34:24 EDT 2010


Dear Dan,

I think what you want to do (if I understand it correctly) is possible
and was discussed on this list in the following post:

http://lists.spread.org/pipermail/spread-users/2007-November/003622.html

I know it worked for Ilya, so if you read his question and the answer in the
post, you should be able to modify Spread to do it by changing a couple of
lines in a single file.

Best regards,

	:) Yair.

On 3/16/10 3:51 PM, Dan Christians wrote:
> Hello,
> 
> I am new to using spread and could use your help.
> I have read through the archives but did not find a discussion on
> this topic exactly.
> 
> I would like to run multiple instances of spread on a single node to
> simulate a multinode cluster.   We setup 3 aliases for the NIC, e.g.
> eth1:0, eth1:1, and eth1:2 etc..  We are using spread version 4.01.00.
> 
> What I have done is created a config file for each spread using
> a different port.   However, by doing this the spread processes do
> not talk to each other.   We used spuser to join the same group but
> each instance says its the only member.  If I specify the same port
> I get an address already in use error from the second instance of
> spread.   Here are the 3 config files I have for 3 spread instances:
> 
> $ cat spread_5819.conf
> Spread_Segment 172.19.1.255:5819 {
>    N172019001003    172.19.1.3 {
>      172.19.1.3
>    }
>    N172019001004    172.19.1.4 {
>      172.19.1.4
>    }
>    N172019001005    172.19.1.5 {
>      172.19.1.5
>    }
> }
> EventLogFile = /tmp/spread_5819.log
> EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
> DaemonUser = spread
> DaemonGroup = spread
> DebugFlags = { PRINT EXIT SESSION CONFIGURATION MEMBERSHIP GROUPS }
> 
> $ cat spread_5823.conf
> Spread_Segment 172.19.1.255:5823 {
>    N172019001003    172.19.1.3 {
>      172.19.1.3
>    }
>    N172019001004    172.19.1.4 {
>      172.19.1.4
>    }
>    N172019001005    172.19.1.5 {
>      172.19.1.5
>    }
> }
> EventLogFile = /tmp/spread_5823.log
> EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
> DaemonUser = spread
> DaemonGroup = spread
> DebugFlags = { PRINT EXIT SESSION CONFIGURATION MEMBERSHIP GROUPS }
> 
> $ cat spread_5826.conf
> Spread_Segment 172.19.1.255:5826 {
>    N172019001003    172.19.1.3 {
>      172.19.1.3
>    }
>    N172019001004    172.19.1.4 {
>      172.19.1.4
>    }
>    N172019001005    172.19.1.5 {
>      172.19.1.5
>    }
> }
> EventLogFile = /tmp/spread_5826.log
> EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
> DaemonUser = spread
> DaemonGroup = spread
> DebugFlags = { PRINT EXIT SESSION CONFIGURATION MEMBERSHIP GROUPS }
> 
> 
> This is the ifconfig output:
> 
> eth1:0    Link encap:Ethernet  HWaddr 00:1B:78:BB:15:18
>            inet addr:172.19.1.3  Bcast:172.19.255.255  Mask:255.255.0.0
>            UP BROADCAST MULTICAST  MTU:1500  Metric:1
>            Interrupt:177 Memory:fa000000-fa011100
> 
> eth1:1    Link encap:Ethernet  HWaddr 00:1B:78:BB:15:18
>            inet addr:172.19.1.4  Bcast:172.19.255.255  Mask:255.255.0.0
>            UP BROADCAST MULTICAST  MTU:1500  Metric:1
>            Interrupt:177 Memory:fa000000-fa011100
> 
> eth1:2    Link encap:Ethernet  HWaddr 00:1B:78:BB:15:18
>            inet addr:172.19.1.5  Bcast:172.19.255.255  Mask:255.255.0.0
>            UP BROADCAST MULTICAST  MTU:1500  Metric:1
>            Interrupt:177 Memory:fa000000-fa011100
> 
> And this is how I started the 3 spreads (as user spread):
> 
>   spread -n N172019001003 -c spread_5819.conf
>   spread -n N172019001004 -c spread_5823.conf
>   spread -n N172019001005 -c spread_5826.conf
> 
> 
> I would really like to know if what I am trying to do is
> possible and if so, what I am doing wrong.
> 
> Any help on this would be appreciated,
> 
> Thanks,
> 
> Dan
> 
> 
> 
> _______________________________________________
> 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