Search in sources :

Example 16 with Diagnosis

use of com.microsoft.dhalion.diagnoser.Diagnosis in project incubator-heron by apache.

the class UnderProvisioningDiagnoserTest method diagnosisFailsNotSimilarQueueSizes.

@Test
public void diagnosisFailsNotSimilarQueueSizes() {
    List<Symptom> symptoms = TestUtils.createBpSymptomList(123, 0, 0);
    symptoms.add(TestUtils.createWaitQueueDisparitySymptom(100, 500, 500));
    Diagnosis result = new UnderProvisioningDiagnoser().diagnose(symptoms);
    assertNull(result);
}
Also used : Diagnosis(com.microsoft.dhalion.diagnoser.Diagnosis) Symptom(com.microsoft.dhalion.detector.Symptom) Test(org.junit.Test)

Aggregations

Diagnosis (com.microsoft.dhalion.diagnoser.Diagnosis)16 Symptom (com.microsoft.dhalion.detector.Symptom)15 Test (org.junit.Test)11 ComponentMetrics (com.microsoft.dhalion.metrics.ComponentMetrics)6 InstanceMetrics (com.microsoft.dhalion.metrics.InstanceMetrics)3 Action (com.microsoft.dhalion.resolver.Action)3 ComponentMetricsHelper (com.twitter.heron.healthmgr.common.ComponentMetricsHelper)3 ArrayList (java.util.ArrayList)3 MetricsStats (com.twitter.heron.healthmgr.common.MetricsStats)2 PackingPlan (com.twitter.heron.spi.packing.PackingPlan)2 HashMap (java.util.HashMap)2 TopologyAPI (com.twitter.heron.api.generated.TopologyAPI)1 ContainerRestart (com.twitter.heron.healthmgr.common.HealthManagerEvents.ContainerRestart)1 TopologyUpdate (com.twitter.heron.healthmgr.common.HealthManagerEvents.TopologyUpdate)1 PackingPlanProvider (com.twitter.heron.healthmgr.common.PackingPlanProvider)1 Scheduler (com.twitter.heron.proto.scheduler.Scheduler)1 UpdateTopologyRequest (com.twitter.heron.proto.scheduler.Scheduler.UpdateTopologyRequest)1 ISchedulerClient (com.twitter.heron.scheduler.client.ISchedulerClient)1 Config (com.twitter.heron.spi.common.Config)1