Bug 1188659

Summary: pcsd status detection is slow
Product: Red Hat Enterprise Linux 7 Reporter: Radek Steiger <rsteiger>
Component: pcsAssignee: Chris Feist <cfeist>
Status: CLOSED DUPLICATE QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: cluster-maint, tojeline
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-20 10:41:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radek Steiger 2015-02-03 13:45:17 UTC
> Description of problem:

The pcs status output is getting out slowly with a higher number of nodes in the cluster, taking as long as 5 seconds on a 16-node clustere. This is because pcs is checking the states linearly one node after another. We could parallelize this process to make it significantly faster.


> Version-Release number of selected component (if applicable):

pcs-0.9.137-13.el7


> Results:

[root@virt-016 ~]# time pcs status pcsd virt-017
  virt-017: Online
real	0m0.633s
user	0m0.322s
sys	0m0.075s

[root@virt-016 ~]# time pcs status pcsd virt-03{0..5}
  virt-030: Online
  virt-031: Online
  virt-032: Online
  virt-033: Online
  virt-034: Online
  virt-035: Online
real	0m1.778s
user	0m0.345s
sys	0m0.072s

[root@virt-016 ~]# time pcs status pcsd
  virt-016: Online
  virt-017: Online
  virt-018: Online
  virt-023: Online
  virt-024: Online
  virt-027: Online
  virt-028: Online
  virt-029: Online
  virt-030: Online
  virt-031: Online
  virt-032: Online
  virt-033: Online
  virt-034: Online
  virt-035: Online
  virt-036: Online
  virt-037: Online
real	0m6.032s
user	0m0.478s
sys	0m0.084s

Comment 2 Tomas Jelinek 2015-04-20 10:41:25 UTC

*** This bug has been marked as a duplicate of bug 1207405 ***