Hi Lakmal,

On Mon, Mar 9, 2015 at 12:20 PM, Lakmal Warusawithana <lak...@wso2.com>
 wrote:
>
>
> On Mon, Mar 9, 2015 at 12:16 PM, Imesh Gunaratne <im...@apache.org> wrote:
>
>> Hi David,
>>
>> We might need to check why the load balancer is not sending statistics to
>> CEP. Try to enable debug logs in the load balancer and run, it should trace
>> the statistics sent to CEP.
>>
>> No AFAIK, it is not possible to configure Autoscaler to disregard load
>> balancer statistics. I see this as a very valid requirement (to exclude any
>> of the scaling factors), may be we can consider adding this to 4.1.0. Would
>> you mind reporting this as a feature request?
>>
>>
> I'm bit confuse here! I can scale up a cluster without having a LB. (in
> 4.1.0) which mean LB is not a MUST right?
>

Yes, scaling up would work but scaling down might not work if statistics
for all the autoscaling factors are available:

scaleUp : Boolean() from ((rifReset && (rifPredictedValue > rifAverageLimit
* 0.8)) || (mcReset && (mcPredictedValue > mcAverageLimit * 0.8)) ||
(laReset && (laPredictedValue > laAverageLimit * 0.8)))
scaleDown : Boolean() from ((rifReset && (rifPredictedValue <
rifAverageLimit * 0.1)) && (mcReset && (mcPredictedValue < mcAverageLimit *
0.1)) && (laReset && (laPredictedValue < laAverageLimit * 0.1)))

https://github.com/apache/stratos/blob/4.0.0/products/stratos/modules/distribution/src/main/conf/scaling.drl

Thanks

Reply via email to