Commit Graph

13 Commits

Author SHA1 Message Date
Rain
fbfff507dd fix(region): Fix problems of AutoScaling
1. Add List dispaly Params 'brand' and List filter Params 'brand' for
GuestTemplate and ScalingGroup.
2. ScalingActivity's list elem should be sorted in order by StartTime and EndTime
3. HealthCheckCycle and HealthCheckGov in ScalingGroup work now
4. Detach all ScalingGroup when pending delete Guest
5. If the scaling behavior of the scaling group fails n(n is 3 for now) times consecutively,
the controller will automatically disablet this group
6. Timer will trigger ScalingPolicy throught request but func call
2020-04-14 20:50:07 +08:00
Rain
1266fb5a16 fix: Fix problems about health check in auto scaling
1. Detach Guest with ScalingGroup
2. Health Check
2020-04-13 10:35:56 +08:00
Rain
45865571c9 fix(region): Fix some problem about auto scaling
1. Add status 'creating' for ScalingPolicy.
2. Do nothing when call ScalingGroup.Scale when ScalingGroup is disable.
3. Change the obj about GuestDetachScalingGroupTask from Guest to
ScalingGroup.
4. Fix some problem about ScalingTimer and add test for its Update func.
5. Fix problem when ScalingTimer work in controller.
2020-04-09 21:43:21 +08:00
Rain
e0cc7bf04f fix(region): Check and update ScalingActivities when controller init 2020-04-08 22:11:34 +08:00
Rain
09797e3abe fix(region): Fix problems about Auto Scaling
1. Alarm 的创建统一使用 AdminSession
2. ScalingTimer 的更新有些问题
3. 创建的主机名称不应该包含大写字母
4. ScalingTimer 的描述有些问题
5. 绑定LB的时候少传递了一个参数
2020-04-08 21:47:56 +08:00
Rain
d595a6a61f fix: fix based on reviewer's and tester's suggestions
1. ScalingPolicy's CoolingTime will limit ScalingPolicy with 'alarm' TriggerType
2. Health Check will remove instance that has been shut down for 3 minutes.
3. If TargetNumer > SG.MaxInstanceNumber or TargetNumber < SG.MinInstanceNumber,
ScalingActivity's status will be set to 'part_success'.
4. When you want to increase the DesireInstanceNumber that has reached the maximum value,
or decrease the this that has reached the minimum value, the ScalingActivity is rejected.
5. ScalingPolicy.PostCreate and PostDelete asynchronous execution.
2020-04-04 21:45:12 +08:00
Rain
d1c92c689a fix: fmt's format string 2020-04-04 21:10:57 +08:00
Rain
7eb38704d1 feature: Add instance health check 2020-04-04 21:10:57 +08:00
Rain
690fb0c95d Add copyright and format code 2020-04-04 21:10:57 +08:00
Rain
b9ed3c1bc2 feature: scaling_group support alert 2020-04-04 21:10:51 +08:00
Rain
f0a8d60dbd feature: autoscaling controller finished 2020-04-04 21:03:28 +08:00
Rain
e8eadc24ce feature: Controller and some api 2020-04-02 20:42:47 +08:00
Rain
a776f21762 feat(scaling): Auto scaling group 2020-04-02 14:57:37 +08:00