Search in sources :

Example 1 with AvgMetric

use of com.alibaba.graphscope.groot.metrics.AvgMetric in project GraphScope by alibaba.

the class StoreService method initMetrics.

@Override
public void initMetrics() {
    this.lastUpdateTime = System.nanoTime();
    this.partitionToMetric = new HashMap<>();
    for (Integer id : this.idToPartition.keySet()) {
        this.partitionToMetric.put(id, new AvgMetric());
    }
}
Also used : AtomicInteger(java.util.concurrent.atomic.AtomicInteger) AvgMetric(com.alibaba.graphscope.groot.metrics.AvgMetric)

Example 2 with AvgMetric

use of com.alibaba.graphscope.groot.metrics.AvgMetric in project GraphScope by alibaba.

the class WriterAgent method initMetrics.

@Override
public void initMetrics() {
    this.lastUpdateTime = System.nanoTime();
    this.totalWrite = 0L;
    this.writePerSecond = 0L;
    this.lastUpdateWrite = 0L;
    this.maxPollLatencyNano = new AtomicLong(0L);
    this.maxPollLatencyMs = 0L;
    this.lastUpdatePollLatencyNano = 0L;
    this.totalPollLatencyNano = 0L;
    this.pollLatencyPerSecondMs = 0L;
    this.bufferWritePerSecondMetric = new AvgMetric();
}
Also used : AtomicLong(java.util.concurrent.atomic.AtomicLong) AvgMetric(com.alibaba.graphscope.groot.metrics.AvgMetric)

Example 3 with AvgMetric

use of com.alibaba.graphscope.groot.metrics.AvgMetric in project GraphScope by alibaba.

the class BatchSender method initMetrics.

@Override
public void initMetrics() {
    this.lastUpdateTime = System.nanoTime();
    this.sendBytesMetric = new AvgMetric();
    this.sendRecordsMetric = new AvgMetric();
    this.bufferBatchCountMetrics = new ArrayList<>(this.storeCount);
    this.callbackLatencyMetrics = new ArrayList<>(this.storeCount);
    for (int i = 0; i < this.storeCount; i++) {
        this.bufferBatchCountMetrics.add(new AvgMetric());
        this.callbackLatencyMetrics.add(new AvgMetric());
    }
}
Also used : AvgMetric(com.alibaba.graphscope.groot.metrics.AvgMetric)

Aggregations

AvgMetric (com.alibaba.graphscope.groot.metrics.AvgMetric)3 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1 AtomicLong (java.util.concurrent.atomic.AtomicLong)1