Bug 1004686
Summary: | The count of nodes for every district will be inconsistent in suggestions | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | zhaozhanqi <zzhao> |
Component: | Website | Assignee: | Luke Meyer <lmeyer> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.x | CC: | xtian, yujzhang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-17 13:28:13 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
zhaozhanqi
2013-09-05 08:47:48 UTC
This is surprising, but currently as designed. I'm considering changing that design - it shouldn't be hard. I'm glad you noticed, you're paying good attention. My thought was that we should discourage people from filling their districts up before they have a good idea of what their active percentage is. So, it suggests creating districts half-full, and tries to add nodes evenly to existing districts rather than filling them up. In the case of 3-node districts, "half full" is one node. That's certainly a surprising result if you didn't write the logic like me. As I've since lowered the default active percentage to 5, meaning by default suggesting fairly small districts, it would probably make more sense to stop suggesting creating them half-full. I'll do that if it's not too tough. Talking through this helped me decide. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/b781203ede25ec5130bb2bdc441193f3f4282a24 <capacity suggestions> bug 1004686 https://bugzilla.redhat.com/show_bug.cgi?id=1004686 Testers noted that the fill algorithm for putting new nodes in districts was kind of weird. It was attempting to keep from filling districts prematurely, but this was the wrong approach. What we do now is default to a low active percentage setting that will result in a fairly small district size target. Then, we suggest filling existing districts before creating new districts as full as needed. Tested on devenv_3907, steps as following: 1. Created 1 district with 2 small nodes in the district. 2. Set 'GEAR_EXPECTED_ACTIVE_PERCENT=5' and 'GEAR_UP_THRESHOLD=1000, small: 1000, large: 750' 3. Login on admin-console --suggestion The suggestion is as following: Add capacity for small gear profile Gear profile small has capacity for 180 active gears, which is below the threshold of 1000. Create 10 nodes with profile small to increase the active gear capacity. This suggestion is based on: 820 gears needed to both reach the threshold and meet the configured GEAR_UP_SIZE of this profile. The estimated maximum active gears of 90 for nodes in this profile. Add 1 node to district dist_small, which according to an active gear percent of 5% has room for 1 more node. oo-admin-ctl-district -c add-node -n 'dist_small' -i <server_identity> Create 3 new districts. oo-admin-ctl-district -c create -p 'small' -n <name> Then add 3 nodes to each new district. oo-admin-ctl-district -c add-node -n '<district_name>' -i <server_identity> The suggestion is as expected, so verify this bug, thanks! |