Bug 1017996 - Scaling not choosing random hosts
Summary: Scaling not choosing random hosts
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OKD
Classification: Red Hat
Component: Master
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-10 23:45 UTC by Diego Castro
Modified: 2017-05-31 18:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-31 18:22:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.