Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-02-02 Thread Andrew Beekhof
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 +, 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();
 }




 Thanks,

 Dejan

 Regards
 KASHIF

 
 From: Andrew Beekhof [and...@beekhof.net]
 Sent: Tuesday, January 31, 2012 2:34 PM
 To: The Pacemaker cluster resource manager
 Subject: Re: [Pacemaker] How to start resources in a Resource Group in  
 parallel

 On Tue, Jan 31, 2012 at 6:46 PM,  manish.gu...@ionidea.com wrote:
  Hi All,
   I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster
   I have configured one Group, which is having 12 resources,
   Ordered parameter is set to false but all 12 resource are not started
  parallel.
   At a time only four resource started parallel.

 This is probably the lrmd limit.

   Resource 1,2,3,4 starts then 5,6,7,8 starts, then 9,10,11,12
   If 5 second sleep is their in Resource-Agent's start method.
   Then All the resources will start in 15 second.
 
   Please can you suggest how can I solve the same,
 
   It seems, only four thread starts at a time for a group's resource,
 
  Regards
  Manish
 
  On Fri, December 2, 2011 4:23 pm, Andreas Kurz wrote:
  Hello Kashif,
 
 
  On 12/02/2011 06:04 AM, Kashif Jawed Siddiqui wrote:
 
  Hi All,
 
 
 
 
  I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.
 
 
 
 
  The old cib.xml for Heartbeat based cluster had an option
  ordered=true | false for group tag which supported starting of
  resources in series or parallel.
 
  this meta attribute is still available ... when in crm shell add:
 
  meta ordered=false
 
  to your group resource ... or you could also use a colocation set.
 
  Regards,
  Andreas
 
 
  --
  Need help with Pacemaker?
  http://www.hastexo.com/now
 
 
 
 
 
  By default, resources in Resource Group start in serial order for
  Pacemaker based clusters.
 
 
 
 
  Is there a way to start multiple resources in parallel?
 
 
 
 
  Regards
 
 
  KASHIF
 
 
 
 
  ___
  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
 
 
 
  ___
  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
 
 
 
 
 
  ___
  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

 ___
 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

 ___
 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

 ___
 Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
 http://oss.clusterlabs.org/mailman/listinfo/pacemaker

 Project Home: 

Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-02-02 Thread Lars Ellenberg
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 +, 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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-01-31 Thread Andrew Beekhof
On Tue, Jan 31, 2012 at 6:46 PM,  manish.gu...@ionidea.com wrote:
 Hi All,
  I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster
  I have configured one Group, which is having 12 resources,
  Ordered parameter is set to false but all 12 resource are not started
 parallel.
  At a time only four resource started parallel.

This is probably the lrmd limit.

  Resource 1,2,3,4 starts then 5,6,7,8 starts, then 9,10,11,12
  If 5 second sleep is their in Resource-Agent's start method.
  Then All the resources will start in 15 second.

  Please can you suggest how can I solve the same,

  It seems, only four thread starts at a time for a group's resource,

 Regards
 Manish

 On Fri, December 2, 2011 4:23 pm, Andreas Kurz wrote:
 Hello Kashif,


 On 12/02/2011 06:04 AM, Kashif Jawed Siddiqui wrote:

 Hi All,




 I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.




 The old cib.xml for Heartbeat based cluster had an option
 ordered=true | false for group tag which supported starting of
 resources in series or parallel.

 this meta attribute is still available ... when in crm shell add:

 meta ordered=false

 to your group resource ... or you could also use a colocation set.

 Regards,
 Andreas


 --
 Need help with Pacemaker?
 http://www.hastexo.com/now





 By default, resources in Resource Group start in serial order for
 Pacemaker based clusters.




 Is there a way to start multiple resources in parallel?




 Regards


 KASHIF




 ___
 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



 ___
 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





 ___
 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

___
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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-01-31 Thread Kashif Jawed Siddiqui
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?

Regards
KASHIF


From: Andrew Beekhof [and...@beekhof.net]
Sent: Tuesday, January 31, 2012 2:34 PM
To: The Pacemaker cluster resource manager
Subject: Re: [Pacemaker] How to start resources in a Resource Group in  parallel

On Tue, Jan 31, 2012 at 6:46 PM,  manish.gu...@ionidea.com wrote:
 Hi All,
  I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster
  I have configured one Group, which is having 12 resources,
  Ordered parameter is set to false but all 12 resource are not started
 parallel.
  At a time only four resource started parallel.

This is probably the lrmd limit.

  Resource 1,2,3,4 starts then 5,6,7,8 starts, then 9,10,11,12
  If 5 second sleep is their in Resource-Agent's start method.
  Then All the resources will start in 15 second.

  Please can you suggest how can I solve the same,

  It seems, only four thread starts at a time for a group's resource,

 Regards
 Manish

 On Fri, December 2, 2011 4:23 pm, Andreas Kurz wrote:
 Hello Kashif,


 On 12/02/2011 06:04 AM, Kashif Jawed Siddiqui wrote:

 Hi All,




 I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.




 The old cib.xml for Heartbeat based cluster had an option
 ordered=true | false for group tag which supported starting of
 resources in series or parallel.

 this meta attribute is still available ... when in crm shell add:

 meta ordered=false

 to your group resource ... or you could also use a colocation set.

 Regards,
 Andreas


 --
 Need help with Pacemaker?
 http://www.hastexo.com/now





 By default, resources in Resource Group start in serial order for
 Pacemaker based clusters.




 Is there a way to start multiple resources in parallel?




 Regards


 KASHIF




 ___
 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



 ___
 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





 ___
 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

___
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

___
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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-01-31 Thread Dejan Muhamedagic
Hi,

On Tue, Jan 31, 2012 at 10:29:14AM +, 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.

Thanks,

Dejan

 Regards
 KASHIF
 
 
 From: Andrew Beekhof [and...@beekhof.net]
 Sent: Tuesday, January 31, 2012 2:34 PM
 To: The Pacemaker cluster resource manager
 Subject: Re: [Pacemaker] How to start resources in a Resource Group in  
 parallel
 
 On Tue, Jan 31, 2012 at 6:46 PM,  manish.gu...@ionidea.com wrote:
  Hi All,
   I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster
   I have configured one Group, which is having 12 resources,
   Ordered parameter is set to false but all 12 resource are not started
  parallel.
   At a time only four resource started parallel.
 
 This is probably the lrmd limit.
 
   Resource 1,2,3,4 starts then 5,6,7,8 starts, then 9,10,11,12
   If 5 second sleep is their in Resource-Agent's start method.
   Then All the resources will start in 15 second.
 
   Please can you suggest how can I solve the same,
 
   It seems, only four thread starts at a time for a group's resource,
 
  Regards
  Manish
 
  On Fri, December 2, 2011 4:23 pm, Andreas Kurz wrote:
  Hello Kashif,
 
 
  On 12/02/2011 06:04 AM, Kashif Jawed Siddiqui wrote:
 
  Hi All,
 
 
 
 
  I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.
 
 
 
 
  The old cib.xml for Heartbeat based cluster had an option
  ordered=true | false for group tag which supported starting of
  resources in series or parallel.
 
  this meta attribute is still available ... when in crm shell add:
 
  meta ordered=false
 
  to your group resource ... or you could also use a colocation set.
 
  Regards,
  Andreas
 
 
  --
  Need help with Pacemaker?
  http://www.hastexo.com/now
 
 
 
 
 
  By default, resources in Resource Group start in serial order for
  Pacemaker based clusters.
 
 
 
 
  Is there a way to start multiple resources in parallel?
 
 
 
 
  Regards
 
 
  KASHIF
 
 
 
 
  ___
  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
 
 
 
  ___
  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
 
 
 
 
 
  ___
  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
 
 ___
 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
 
 ___
 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

___
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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-01-31 Thread Kashif Jawed Siddiqui
Hi,
   Yes it has to be provided in init scripts of corosync or heartbeat. But 
for corosync 1.4.2 for SLES, it is not provided.

   Can you help me update corosync init script to include to same?

   Sample script will definitly help.

Thanks in advance.



From: Dejan Muhamedagic [deja...@fastmail.fm]
Sent: Tuesday, January 31, 2012 4:22 PM
To: The Pacemaker cluster resource manager
Subject: Re: [Pacemaker] How to start resources in a Resource Group in  
parallel

Hi,

On Tue, Jan 31, 2012 at 10:29:14AM +, 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.

Thanks,

Dejan

 Regards
 KASHIF

 
 From: Andrew Beekhof [and...@beekhof.net]
 Sent: Tuesday, January 31, 2012 2:34 PM
 To: The Pacemaker cluster resource manager
 Subject: Re: [Pacemaker] How to start resources in a Resource Group in  
 parallel

 On Tue, Jan 31, 2012 at 6:46 PM,  manish.gu...@ionidea.com wrote:
  Hi All,
   I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster
   I have configured one Group, which is having 12 resources,
   Ordered parameter is set to false but all 12 resource are not started
  parallel.
   At a time only four resource started parallel.

 This is probably the lrmd limit.

   Resource 1,2,3,4 starts then 5,6,7,8 starts, then 9,10,11,12
   If 5 second sleep is their in Resource-Agent's start method.
   Then All the resources will start in 15 second.
 
   Please can you suggest how can I solve the same,
 
   It seems, only four thread starts at a time for a group's resource,
 
  Regards
  Manish
 
  On Fri, December 2, 2011 4:23 pm, Andreas Kurz wrote:
  Hello Kashif,
 
 
  On 12/02/2011 06:04 AM, Kashif Jawed Siddiqui wrote:
 
  Hi All,
 
 
 
 
  I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.
 
 
 
 
  The old cib.xml for Heartbeat based cluster had an option
  ordered=true | false for group tag which supported starting of
  resources in series or parallel.
 
  this meta attribute is still available ... when in crm shell add:
 
  meta ordered=false
 
  to your group resource ... or you could also use a colocation set.
 
  Regards,
  Andreas
 
 
  --
  Need help with Pacemaker?
  http://www.hastexo.com/now
 
 
 
 
 
  By default, resources in Resource Group start in serial order for
  Pacemaker based clusters.
 
 
 
 
  Is there a way to start multiple resources in parallel?
 
 
 
 
  Regards
 
 
  KASHIF
 
 
 
 
  ___
  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
 
 
 
  ___
  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
 
 
 
 
 
  ___
  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

 ___
 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

 ___
 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

___
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

___
Pacemaker mailing list: 

Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-01-31 Thread Lars Ellenberg
On Tue, Jan 31, 2012 at 11:38:17AM +, Kashif Jawed Siddiqui wrote:
 Hi,
Yes it has to be provided in init scripts of corosync or heartbeat. 
 But for corosync 1.4.2 for SLES, it is not provided.
 
Can you help me update corosync init script to include to same?
 
Sample script will definitly help.

Well, just look at what the heartbeat start script does:

http://hg.linux-ha.org/heartbeat-STABLE_3_0/file/1f282434405b/heartbeat/init.d/heartbeat.in#l262

The relevant commit adding this was
http://hg.linux-ha.org/heartbeat-STABLE_3_0/rev/f61f00ab4fab

But since you are using SLES, why not complain there,
and have them add it for you?

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

___
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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-01-31 Thread gustavo panizzo gfa
On Tue, Jan 31, 2012 at 11:38:17AM +, Kashif Jawed Siddiqui wrote:
 Hi,
Yes it has to be provided in init scripts of corosync or heartbeat. 
 But for corosync 1.4.2 for SLES, it is not provided.

yeah, is provided, it's called openais (/etc/init.d/openais)

-- 
1AE0 322E B8F7 4717 BDEA  BF1D 44BB 1BA7 9F6C 6333


___
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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2012-01-30 Thread manish . gupta
Hi All,
  I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster
  I have configured one Group, which is having 12 resources,
  Ordered parameter is set to false but all 12 resource are not started
parallel.
  At a time only four resource started parallel.
  Resource 1,2,3,4 starts then 5,6,7,8 starts, then 9,10,11,12
  If 5 second sleep is their in Resource-Agent's start method.
  Then All the resources will start in 15 second.

  Please can you suggest how can I solve the same,

  It seems, only four thread starts at a time for a group's resource,

Regards
Manish

On Fri, December 2, 2011 4:23 pm, Andreas Kurz wrote:
 Hello Kashif,


 On 12/02/2011 06:04 AM, Kashif Jawed Siddiqui wrote:

 Hi All,




 I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.




 The old cib.xml for Heartbeat based cluster had an option
 ordered=true | false for group tag which supported starting of
 resources in series or parallel.

 this meta attribute is still available ... when in crm shell add:

 meta ordered=false

 to your group resource ... or you could also use a colocation set.

 Regards,
 Andreas


 --
 Need help with Pacemaker?
 http://www.hastexo.com/now





 By default, resources in Resource Group start in serial order for
 Pacemaker based clusters.




 Is there a way to start multiple resources in parallel?




 Regards


 KASHIF




 ___
 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



 ___
 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





___
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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2011-12-02 Thread Andreas Kurz
Hello Kashif,

On 12/02/2011 06:04 AM, Kashif Jawed Siddiqui wrote:
 Hi All,
 
  
 
 I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.
 
  
 
 The old cib.xml for Heartbeat based cluster had an option
 ordered=true | false for group tag which supported starting of
 resources in series or parallel.

this meta attribute is still available ... when in crm shell add:

meta ordered=false

to your group resource ... or you could also use a colocation set.

Regards,
Andreas

-- 
Need help with Pacemaker?
http://www.hastexo.com/now

 
  
 
 By default, resources in Resource Group start in serial order for
 Pacemaker based clusters.
 
  
 
 Is there a way to start multiple resources in parallel?
 
  
 
 Regards
 
 KASHIF
 
 
 
 ___
 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




signature.asc
Description: OpenPGP digital signature
___
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


Re: [Pacemaker] How to start resources in a Resource Group in parallel

2011-12-01 Thread Kashif Jawed Siddiqui
Hi All,



I am using pacemaker 1.0.11 + corosync 1.4.2 for a 2 node cluster.



The old cib.xml for Heartbeat based cluster had an option ordered=true | 
false for group tag which supported starting of resources in series or 
parallel.



By default, resources in Resource Group start in serial order for Pacemaker 
based clusters.



Is there a way to start multiple resources in parallel?



Regards

KASHIF
___
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