You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Lahiru Sandaruwan <la...@wso2.com> on 2015/02/23 20:10:19 UTC
Mock iaas send 0 as health stat if we set it to "continuous" mode?
Hi,
Noticed $subject.
Configs,
<pattern factor="load-average" mode="continue">
<!-- Sample values -->
<sampleValues>20</sampleValues>
<!-- Duration of each sample value in seconds -->
<sampleDuration>60</sampleDuration>
</pattern>
See below logs,
[2015-02-24 00:34:06,846] INFO
{org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsUpdater}
- Continuing last sample value: [cartridge-type] php [factor]* LoadAverage
[value] 20*
[2015-02-24 00:34:06,846] INFO
{org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsGenerator}
- * Mock statistics updater task stopped: [service-name] php [factor]
LoadAverage*
....
[2015-02-24 00:34:36,539] DEBUG
{org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
php1.php.domain RIF predicted value: 0.0
[2015-02-24 00:34:36,539] DEBUG
{org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
php1.php.domain RIF threshold: 50.0
[2015-02-24 00:34:36,540] DEBUG
{org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
php1.php.domain MC predicted value: 20.0
[2015-02-24 00:34:36,540] DEBUG
{org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
php1.php.domain MC threshold: 40.0
[2015-02-24 00:34:36,540] DEBUG
{org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
*php1.php.domain
LA predicted value: 0.0*
[2015-02-24 00:34:36,541] DEBUG
{org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
php1.php.domain LA threshold: 40.0
Thanks.
--
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: Mock iaas send 0 as health stat if we set it to "continuous" mode?
Posted by Lahiru Sandaruwan <la...@wso2.com>.
Looks like this happens independent of the "mode". I get same for memory
consumption with following configs,
<pattern factor="memory-consumption" mode="loop">
<!-- Sample values -->
<sampleValues>20,100</sampleValues>
<!-- Duration of each sample value in seconds -->
<sampleDuration>600</sampleDuration>
</pattern>
On Tue, Feb 24, 2015 at 12:40 AM, Lahiru Sandaruwan <la...@wso2.com>
wrote:
> Hi,
>
> Noticed $subject.
>
> Configs,
>
> <pattern factor="load-average" mode="continue">
>
> <!-- Sample values -->
>
> <sampleValues>20</sampleValues>
>
> <!-- Duration of each sample value in seconds -->
>
> <sampleDuration>60</sampleDuration>
>
> </pattern>
>
> See below logs,
>
> [2015-02-24 00:34:06,846] INFO
> {org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsUpdater}
> - Continuing last sample value: [cartridge-type] php [factor]*
> LoadAverage [value] 20*
>
> [2015-02-24 00:34:06,846] INFO
> {org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsGenerator}
> - * Mock statistics updater task stopped: [service-name] php [factor]
> LoadAverage*
>
> ....
>
> [2015-02-24 00:34:36,539] DEBUG
> {org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
> php1.php.domain RIF predicted value: 0.0
>
> [2015-02-24 00:34:36,539] DEBUG
> {org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
> php1.php.domain RIF threshold: 50.0
>
> [2015-02-24 00:34:36,540] DEBUG
> {org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
> php1.php.domain MC predicted value: 20.0
>
> [2015-02-24 00:34:36,540] DEBUG
> {org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
> php1.php.domain MC threshold: 40.0
>
> [2015-02-24 00:34:36,540] DEBUG
> {org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster] *php1.php.domain
> LA predicted value: 0.0*
>
> [2015-02-24 00:34:36,541] DEBUG
> {org.apache.stratos.autoscaler.rule.RuleLog} - [scaling] [cluster]
> php1.php.domain LA threshold: 40.0
> Thanks.
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
>
--
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146