[sheepdog] run two sheepdog cluster on same cluster

Liu Yuan namei.unix at gmail.com
Fri May 9 05:00:53 CEST 2014


On Thu, May 08, 2014 at 07:57:19PM +0900, tuji wrote:
> 
> Thank you for your information.
> 
> > Simply,
> > 1. start corosync process
> > 2. sheep -p 7000 -z 0 /store1
> > 3. sheep -p 7001 -z 1 /store2
> > would be enough. Or do you want to do something different?
> 
> It is enough for me.
> So I tried -z option.
> 
> But it was not function as we expected.
> 
> I executed this command on 10.0.1.3
> /usr/sbin/sheep -p 7000 -z 0 /home/sheepdog
> /usr/sbin/sheep -p 7001 -z 1 /home/sheepdog2
> 
> 10.0.1.3:7000 and 10.0.1.3:7001 were added same cluster.
> 
> [root at node003 ~]# dog node list
>   Id   Host:Port         V-Nodes       Zone
>    0   10.0.1.1:7000            74   16842762
>    1   10.0.1.2:7000            74   33619978
>    2   10.0.1.3:7000            83          0
>    3   10.0.1.3:7001             5          1
>    4   10.0.1.4:7000            83   67174410
> 
> [root at node003 ~]# dog cluster info
> Cluster status: running, auto-recovery enabled
> 
> Cluster created at Fri Feb  7 16:07:41 2014
> 
> Epoch Time           Version
> 2014-05-08 19:45:42     38 [10.0.1.1:7000, 10.0.1.2:7000, 10.0.1.3:7000, 10.0.1.3:7001, 10.0.1.4:7000]
> 2014-05-08 19:44:46     37 [10.0.1.1:7000, 10.0.1.2:7000, 10.0.1.3:7000, 10.0.1.4:7000]
> 2014-05-08 19:44:42     36 [10.0.1.1:7000, 10.0.1.2:7000, 10.0.1.4:7000]
> 

You have to setup two differernt corosync management clusters and associate
different sheep daemons to each corosync.

Or you can set up two zookeeper clusters.

Membership is managed by corosync or zookeeper, so you can only tweak the
configuration of these softwares instead of sheep itself.

Thanks
Yuan



More information about the sheepdog mailing list