Bug 1025229
Summary: | make-ha event does not create new haproxy gear when setting minimum scaling value to 2 | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Johnny Liu <jialiu> |
Component: | Pod | Assignee: | Rajat Chopra <rchopra> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | dmcphers, jhou, rchopra |
Target Milestone: | --- | Keywords: | UpcomingRelease |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-24 03:28:10 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
Johnny Liu
2013-10-31 09:46:09 UTC
It is expected behaviour. What is missing is the right messaging. We do not configure haproxy on existing gears. What we do is set the application up for HA. In this case a scale-up and scale-down will be needed to make haproxy appear on two gears. In the case where min==1 on web component, we just issue a scale-up anyway. It is debatable why the platform itself can't scale-up or down. The reason we did not do it is because in some cases it could be several scale-ups/downs required. e.g. if the multiplier was set to 3 and then it is changed to 4. This would require several scale-down/ups to reach the optimum ratio. The right messaging should be either of the two, depending on what we really did: - 'We have enabled HA on your application, it will need atleast one scale-up for HA to be effective.' or, - 'We have enabled HA on your application, and also performed a scale-up for it to be effective' (In reply to Rajat Chopra from comment #1) > It is expected behaviour. What is missing is the right messaging. > We do not configure haproxy on existing gears. What we do is set the > application up for HA. In this case a scale-up and scale-down will be needed > to make haproxy appear on two gears. > > In the case where min==1 on web component, we just issue a scale-up anyway. > > It is debatable why the platform itself can't scale-up or down. The reason > we did not do it is because in some cases it could be several > scale-ups/downs required. e.g. if the multiplier was set to 3 and then it is > changed to 4. This would require several scale-down/ups to reach the optimum > ratio. > > The right messaging should be either of the two, depending on what we really > did: > - 'We have enabled HA on your application, it will need atleast one > scale-up for HA to be effective.' or, > - 'We have enabled HA on your application, and also performed a scale-up > for it to be effective' Thanks for your clarification. Indeed when min==2, do scale-up one time, new gear will be created, and it is a haproxy gear, then my application become HA. I have a question about multiplier, I set multiplier to 2 using oo-admin-ctl-app. # oo-admin-ctl-app -c set-multiplier --multiplier 2 -a scaphp53app -l jialiu --cartridge haproxy-1.4 Then scale-up for several times, but my application only has 2 haproxy gears, looks like multiplier does not take any effect. Am I missing some thing? You are right. And the reason is that haproxy still has the max value==1. After the min is satisfied, the max value constraints it. 'make-ha' should ideally fix the max of the cartridge. Fix put in with https://github.com/openshift/origin-server/pull/4070 The problem discussed in comment 2 and 3 has been verified on devenv_3984. Regarding the messaging discussed in comment 1, will there be any updates(fixes)? The message now is all the same when enabling ha to a scalable app that has 1 or 2 gears closing the NeedInfo. |