Hi Manula, Here is the autoscale-policy I am using for cartridge subscription
Syntax used for subscription is : “subscribe-cartridge <type> <alias> -ap <autoscale-policy-name> -dp <deployment-policy name> “ { "id": "economyPolicy", "loadThresholds": { "requestsInFlight": { "average": "300", "gradient": "0", "secondDerivative": "0", "scaleDownMarginOfGradient": "1.0", "scaleDownMarginOfSecondDerivative": "0.2" }, "memoryConsumption": { "average": "6000", "gradient": "0", "secondDerivative": "0", "scaleDownMarginOfGradient": "1.0", "scaleDownMarginOfSecondDerivative": "0.2" }, "loadAverage": { /* Load average is multiplied by 100 then divided by no. cores. * Thus it's basically box utilisation % */ "average": "40", "gradient": "0", "secondDerivative": "0", "scaleDownMarginOfGradient": "1.0", "scaleDownMarginOfSecondDerivative": "0.2" } } } Regards Manas From: Manula Chathurika Thantriwatte [mailto:manu...@wso2.com] Sent: Monday, October 27, 2014 4:41 PM To: dev@stratos.apache.org Subject: Re: Getting Cluster Monitor Failure Messages in wso2carbon.log Hi Manas, Can you please share the autoscaling policy JSON which you have used for subscribe cartridges. Thanks ! On Mon, Oct 27, 2014 at 4:36 PM, Manas Padegaonkar -T (mpadegao - ARICENT TECHNOLOGIES HOLDINGS LIMITED at Cisco) <mpade...@cisco.com<mailto:mpade...@cisco.com>> wrote: Hi, I am getting following messages periodically in wso2carbon.log for all of the subscribed cartridges which came Active. Want to know what is triggering this error to come & what is its impact if any. TID: [0] [STRATOS] [2014-10-13 13:04:59,436] ERROR {org.apache.stratos.autoscaler.monitor.ClusterMonitor} - Cluster monitor: Monitor failed.ClusterMonitor [clusterId=1-14.1-14.domain, serviceId=1-14, deploymentPolicy=Deployment Policy [id]static-1-Core [partitions] [org.apache.stratos.cloud.controller.stub.deployment.partition.Partition@118c06f9], autoscalePolicy=null, lbReferenceType=null, hasPrimary=false ] {org.apache.stratos.autoscaler.monitor.ClusterMonitor} [Error: null pointer: autoscalePolicy.getLoadThresholds()] [Near : {... autoscalePolicy.getLoadThresho ....}] Regards Manas -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com<mailto:manu...@wso2.com> / man...@apache.org<mailto:man...@apache.org> phone : +94 772492511 blog : http://manulachathurika.blogspot.com/