stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <im...@apache.org>
Subject [Discuss] Issue in Cluster Monitor Min Rule Global Parameters
Date Tue, 17 Feb 2015 13:03:41 GMT
Hi Devs,

As I see following line highlighted is not correct:

getScaleCheckKnowledgeSession().setGlobal("primaryMembers",
primaryMemberListInClusterInstance);
getMinCheckKnowledgeSession().setGlobal("clusterId", getClusterId());
getMinCheckKnowledgeSession().setGlobal("isPrimary", hasPrimary);

String paritionAlgo = instanceContext.getPartitionAlgorithm();

getMinCheckKnowledgeSession().setGlobal("algorithmName",
        paritionAlgo);

if (log.isDebugEnabled()) {
    log.debug(String.format("Running minimum check for cluster instance %s ",
            instanceContext.getId() + " for the cluster: " + clusterId));
}

minCheckFactHandle =
AutoscalerRuleEvaluator.evaluate(getMinCheckKnowledgeSession(),
        minCheckFactHandle, instanceContext);



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Mime
View raw message