Bug 1019571

Summary: [origin_broker_135] Multiplier does not function after it has been set
Product: OpenShift Online Reporter: Jianwei Hou <jhou>
Component: PodAssignee: Rajat Chopra <rchopra>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: rchopra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-17 13:35:57 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:

Description Jianwei Hou 2013-10-16 06:02:11 UTC
Description of problem:
Set multiplier of a sparse cartridge to 2, and scale up this application several times, only the head gear of the application has haproxy, the rest gears are still only have web_framework cartridges

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

How reproducible:
Always

Steps to Reproduce:
1. Create a scalable application, take php-5.3 for example
rhc create-app php1s php-5.3 -s
2. On broker, set the multiplier of haproxy-1.4 to 2
oo-admin-ctl-app -l jhou -a php1s --cartridge haproxy-1.4 -c set-multiplier --multiplier 2
3. Scale up the application
rhc cartridge-scale php-5.3 -a php1s --min 6 --max -1
4. On node, verify that half of total gears of the application should have haproxy

Actual results:
After step 4, only the first gear of the application has haproxy, the rest gears only have php framework

=== 525e252336500d10f900000c php-5.3+haproxy-1.4
app-deployments
app-root
git
php
=== 667980963568207590850560 php-5.3+haproxy-1.4
app-deployments
app-root
git
php
=== 525e252336500d10f900000b php-5.3+haproxy-1.4
app-deployments
app-root
git
php
=== 525e252336500d10f900000a php-5.3+haproxy-1.4
app-deployments
app-root
git
php
=== 525e252436500d10f900000d php-5.3+haproxy-1.4
app-deployments
app-root
git
php
=== 525e22d736500d3ec3000042 php-5.3+haproxy-1.4
app-deployments
app-root
gear-registry
git
haproxy
php


Expected results:
At least 3 gears of the application should have haproxy 

Additional info:

Comment 1 Rajat Chopra 2013-10-16 22:27:55 UTC
Hey. Did you increase the max? Max by default is '1'.

Comment 2 Jianwei Hou 2013-10-17 02:40:17 UTC
(In reply to Rajat Chopra from comment #1)
> Hey. Did you increase the max? Max by default is '1'.

Thanks, I have forgotten to increase the max of haproxy's manifest, and not it works well.