On Thu, Feb 02, 2012 at 08:28:16PM +1100, Andrew Beekhof wrote: > On Tue, Jan 31, 2012 at 9:52 PM, Dejan Muhamedagic <deja...@fastmail.fm> > wrote: > > Hi, > > > > On Tue, Jan 31, 2012 at 10:29:14AM +0000, Kashif Jawed Siddiqui wrote: > >> Hi Andrew, > >> > >> It is the LRMD_MAX_CHILDREN limit which by default is 4. > >> > >> I see in forums that this parameter is tunable by adding > >> /etc/sysconfig/pacemaker > >> with the following line as content > >> LRMD_MAX_CHILDREN=8 > >> > >> But the above works only for Hearbeat. How do we do it for > >> Corosync? > >> > >> can you suggest? > > > > It is not heartbeat or corosync specific, but depends on support > > in the init script (/etc/init.d/corosync). The init script should > > read the sysconfig file and then invoke lrmadmin to set the max > > children parameter. > > Just a reminder, but systemd unit files cannot do this. > SLES wont be affected for a while, but openSUSE users will presumably > start complaining soon. > > I recommend: > > diff -r 0285b706fcde lrm/lrmd/lrmd.c > --- a/lrm/lrmd/lrmd.c Tue Sep 28 19:10:38 2010 +0200 > +++ b/lrm/lrmd/lrmd.c Thu Feb 02 20:27:33 2012 +1100 > @@ -832,6 +832,13 @@ main(int argc, char ** argv) > init_stop(PID_FILE); > } > > + if(getenv("LRMD_MAX_CHILDREN")) { > + int tmp = atoi(getenv("LRMD_MAX_CHILDREN")); > + if(tmp > 4) { > + max_child_count = tmp; > + } > + } > + > return init_start(); > }
Yes, please... and of course we have to remember to not only set, but also export LRMD_MAX_CHILDREN from wherever lrmd will be started from. Lars _______________________________________________ Pacemaker mailing list: Pacemaker@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