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

Goran Hasse gorhas at gmail.com
Tue Mar 16 16:20:38 EDT 2010


This is a general server problem - not a spread specifc one.

You should regard the IP numbers as "filters" for incomming
packet. Outgoing packet always have the main-interface address.

The operating system (router system) ask is this
packet for me? If so it pass the packets to upper levels
(TCP or UDP). There some software have registered a port
to listen to. And serveral servers can't use the same port. (Well they can
but this is done by packet copying in the UDP layer).

So this is the problem.

Try to install a virtual machine instead. Then you should
have no problem.

GH

2010/3/16 Dan Christians <dchristians at vertica.com>:
> 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
>



-- 
gorhas at gmail.com
Mob: 070-5530148




More information about the Spread-users mailing list