Bug 1017996

Summary: Scaling not choosing random hosts
Product: OKD Reporter: Diego Castro <spinolacastro>
Component: MasterAssignee: Jordan Liggitt <jliggitt>
Status: CLOSED WONTFIX QA Contact: Wei Sun <wsun>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: aos-bugs, mmccomas, xtian
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: 2017-05-31 18:22:11 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 Diego Castro 2013-10-10 23:45:07 UTC
Description of problem:
After change scaling limits the broker create all gears on the same node on a district with 3 nodes

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

Origin-release-2
How reproducible:

Create a district with 3 nodes
Create a scaled app
Change scaling limits to --min 3 --max 6

Actual results:

Almost all gears are running on unique node

Expected results:

The gears should be distributed and the node with less gears running should be used

Additional info:

Comment 1 Abhishek Gupta 2014-02-25 22:06:08 UTC
I tried this on a 2-node setup and it worked. The new gears were shared between the nodes. Selecting a node to host a gear also depends on the active capacity of the node, among other factors. 

If this still does not work for your specific use case, you now have the ability to provide your own implementation. We recently introduced the feature to allow admins to provide their own node selection algorithm by implementing the plugin. Refer origin-server/controller/lib/openshift/application_container_proxy.rb for more details. Also take a look at the test case --> origin-server/broker/test/functional/node_selection_plugin_test.rb

Comment 2 Diego Castro 2014-02-26 16:31:18 UTC
Thank you for your comments, this is a very old bug and was filled on Origin Release 2.

Comment 3 weiwei jiang 2016-02-04 05:03:16 UTC
Checked with devenv_5760, and can not reproduce this issue.

Comment 5 Eric Paris 2017-05-31 18:22:11 UTC
We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause.