Re: [openstack-dev] Fwd: [Senlin]Support more complicatedscalingscenario

2015-11-25 Thread Jun Xu
1, action=CLUSTER_SCALE_IN
webhook2: count=2, action=CLUSTER_SCALE_IN

   trigger webhook1, all policy1's cooldown and policy2's cooldown will 
be checked.
   trigger webhook2, all policy1's cooldown and policy2's coolddow will 
be checked.



In Heat
   policy1: type=OS::Heat::ScalingPolicy, cooldown=60s, 
scaling_adjustment=1
   policy2: type=OS::Heat::ScalingPolicy, cooldown=300s, 
scaling_adjustment=2

   policy1 will return a webhook as webhook1.
   policy2 will return a webhook as webhook2.

   trigger webhook1, only policy1's cooldown will be checked.
   trigger webhook1, only policy1's cooldown will be checked.



Each policy has its default cooldown value when created. However, you
can easily override that default value when attaching such a policy to a
cluster. See 'senlin help cluster-policy-attach' for more info.

Regards,
   Qiming


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
Best regards,

Jun Xu

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] Fwd: [Senlin]Support more complicated scalingscenario

2015-11-23 Thread Jun Xu
For a senlin webhook, could we assign a policy which will be
checked ?

/   User is not allowed to specify the policy when defining a webhook. 
The webhook target is decided by target object(cluster or node) and 
target action type./


Yes we can define cooldown for each policy, but my meaning is that 
each cluster_scaling_in action is only checked by specified 
scaling_policy like OS::Heat::ScalingPolicy in heat.
1) In heat, we could define two scaling_in actions(via define two 
OS::Heat::ScalingPolicy polices ), each scaling_in action is checked by 
one OS::Heat::ScalingPolicy, so each scaling_in action's cooldown is 
only checked in one OS::Heat::ScalingPolicy.
 2)But in senlin, each scaling_in action will be checked by all 
attached scaling_policies, so all scaling_polices' cooldown will be 
checked.How does senlin support different cooldown time for each 
scaling_in action?




Then each time alarm1 is triggered, cluster will be scaled out
with count 1 which means one new node will be created and
added to cluster. When alarm2 is triggered, cluster will be
scaled out with count 2 that two new nodes will be created and
added to cluster.

The question you asked is really interesting and we did
consider to support this kind of requirement using a 'complex'
ScalingPolicy which defined both trigger(alarm), webhook and
some rules for scaling. But after some discussion, we felt
that maybe we should let some high level service/enduser to
define this kind of 'POLICY' since it's more like a workflow
definition rather than a description of the rule cluster
scaling. So currently, we only provide atomic operation(e.g.
webhook, 'simple' ScalingPolicy) in Senlin while leaving the
work of combining these operations to support a use case to
enduser/high-level service.

Thanks a lot for throwing this interesting question and I do
agree that we should make more discussion about it to think
whether we need to adjust our policy design to support this
kind of scenario more smoothly.

--
Best regards,

Yanyan




--
Best regards,

Yanyan


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
Best regards,

Jun Xu

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev