Bug 1123371
| Summary: | set-multiplier action should not be allowed on a non-HA scaling app. | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Luke Meyer <lmeyer> |
| Component: | Pod | Assignee: | Abhishek Gupta <abhgupta> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | jhou, jialiu, jokerman, libra-bugs, libra-onpremise-devel, mmccomas, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1123353 | Environment: | |
| Last Closed: | 2014-10-10 00:49:46 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: | |||
| Bug Blocks: | 1123353 | ||
|
Description
Luke Meyer
2014-07-25 12:55:01 UTC
Firstly, there is value in setting a multiplier without an application being HA. Multiplier is a generic concept for any sparse cart, whereas HA only deals with (at least today) with the HAProxy cartridge. A user may want to regulate the instances of a sparse cart regardless of whether an application is HA or not. Secondly, there was a bug in the code that was blocking the multiplier value from being recorded if the cartridge min/max scaling values were already set. This bug would allow disallow the multiplier from being changed, once set. This will be fixed. Thirdly, the 'DEFAULT_HA_MULTIPLIER' configuration, by virtue of its name, specifically deals with the HA multiplier in case of HA applications and applies only to the haproxy cartridge. Hence, I would not consider that to be an issue if it does not take effect for non-HA applications. The issue with setting/modifying the multiplier is fixed with this PR --> https://github.com/openshift/origin-server/pull/5668 Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/42d048dbb774b35c1895395851f0f145297fb88f Bug 1123371: Fixing issue with setting the cartridge multiplier I'm able to reproduce this issue on devenv_5020
Verified on devenv_5021
1. Create 2 scalable applications
2. Set min scale to one of the apps
3. Set multiplier to both apps
4. Query mongo and verify the multiplier and min of group_overrides are updated correctly:
ip-10-179-168-102(mongod-2.4.6)[PRIMARY] openshift_broker_dev> db.applications.findOne({'name':'php1s'},{'group_overrides':1})
{
"_id": ObjectId("53d77f56be68ab0eed000001"),
"group_overrides": [
{
"components": [
{
"cart": "haproxy-1.4",
"cart_id": ObjectId("53d74b2634f81bd57a000022"),
"comp": "web_proxy",
"multiplier": 1
},
{
"cart": "php-5.3",
"cart_id": ObjectId("53d74b2634f81bd57a000024"),
"comp": "php-5.3"
}
]
}
]
}
ip-10-179-168-102(mongod-2.4.6)[PRIMARY] openshift_broker_dev> db.applications.findOne({'name':'php2s'},{'group_overrides':1})
{
"_id": ObjectId("53d78025be68ab0eed000020"),
"group_overrides": [
{
"components": [
{
"cart": "haproxy-1.4",
"cart_id": ObjectId("53d74b2634f81bd57a000022"),
"comp": "web_proxy",
"multiplier": 1
},
{
"cart": "php-5.3",
"cart_id": ObjectId("53d74b2634f81bd57a000024"),
"comp": "php-5.3"
}
],
"min_gears": 2
}
]
}
5. Applications can be scaled up successfully.
|