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());
}
}
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();
}
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());
}
}
Aggregations