Bug 1232907

Summary: "service openshift-gears start" should not be calling unidle
Product: OpenShift Online Reporter: Andy Grimm <agrimm>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED CURRENTRELEASE QA Contact: Meng Bo <bmeng>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jgoulding, jokerman, libra-bugs, mmccomas, yadu
Target Milestone: ---   
Target Release: 2.x   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1264216 (view as bug list) Environment:
Last Closed: 2015-07-07 23:49:55 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:
Bug Depends On: 966790    
Bug Blocks: 1264216    

Description Andy Grimm 2015-06-17 19:19:23 UTC
Description of problem:

When our nodes boot, it takes a very long time for all of the gears to start.  I just found one contributing factor to this, which is that we do an "unidle" call for every gear, which in turn calls oo-httpd-singular graceful.

In addition to making start-up take longer, this can cause many small outages for the apps that start first.

Version-Release number of selected component (if applicable):
rubygem-openshift-origin-node-1.36.1-1.el6oso.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a node with lots of gears
2. Stop the node 
3. Start the node
4. grep -c oo-httpd-singular /var/log/openshift/node/platform.log

Actual results:

oo-httpd-singular ran once for every gear on the system

Expected results:

All of these gears were simply going from stopped to started at boot time.  There were no apache reloads required.

Comment 2 Yan Du 2015-06-25 02:29:16 UTC
Test on devenv_5556

Create about 50 gears on the node, and there is no apache reloads required after stop and start the node. 

[root@ip-10-156-28-2 openshift]# service ruby193-mcollective stop
Shutting down mcollective:                                 [  OK  ]
[root@ip-10-156-28-2 openshift]# service ruby193-mcollective start
Starting mcollective:                                      [  OK  ]
[root@ip-10-156-28-2 openshift]# grep -c oo-httpd-singular /var/log/openshift/node/platform.log
0

Issue have been fixed. Move bug to verified.