[Pacemaker] Make IP master

Andrew Beekhof andrew at beekhof.net
Thu Dec 8 16:29:01 EST 2011


On Thu, Dec 8, 2011 at 6:34 AM, Charles DeVoe <scarecrow_57 at yahoo.com>wrote:

> We are attempting to st up the cluster such that a user will be logged
> into the least busy node via ssh.  The configuration and crm_mon results
> are included here.  Is it possible to set this up such that doing an ssh to
> the cluster IP will put the user on one node or the other?  If so what are
> we missing?  Thnaks
>

Having them be logged into /a/ machine in this way isn't hard, just a basic
IP address (no cloning or master/slave) will do that.
Getting them on to the least busy machine might be tricky though, perhaps
there is a value for clusterip_hash that might give you something close.



>
> CONFIGURATION
>
> node node1
> node node2
> primitive ClusterIP ocf:heartbeat:IPaddr2 \
>     params ip="10.1.18.100" cidr_netmask="32" clusterip_hash="sourceip" \
>     op monitor interval="30s"
> primitive WebFS ocf:heartbeat:Filesystem \
>     params device="/dev/sde" directory="/data/SAN-VOL4" fstype="gfs2"
> ms AlbertIp ClusterIP \
>     meta master-max="2" master-node-max="2" clone-max="2"
> clone-node-max="1" notify="true"
> clone WedFSClone WebFS
> property $id="cib-bootstrap-options" \
>     dc-version="1.1.6-4.fc16-89678d4947c5bd466e2f31acd58ea4e1edb854d5" \
>     cluster-infrastructure="cman" \
>     stonith-enabled="false" \
>     last-lrm-refresh="1323285086"
>
> crm_mon Yields
> ============
> Last updated: Wed Dec  7 13:48:42 2011
> Last change: Wed Dec  7 13:48:06 2011 via cibadmin on node1
> Stack: cman
> Current DC: node2 - partition with quorum
> Version: 1.1.6-4.fc16-89678d4947c5bd466e2f31acd58ea4e1edb854d5
> 2 Nodes configured, unknown expected votes
> 4 Resources configured.
> ============
>
> Online: [ node1 node2 ]
>
>  Clone Set: WedFSClone [WebFS]
>      Started: [ node2 node1 ]
>  Master/Slave Set: AlbertIp [ClusterIP]
>      Slaves: [ node1 node2 ]
>
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111209/9f3dbcd0/attachment-0003.html>


More information about the Pacemaker mailing list