From e925ef8b0a33ed0e67e09ca9320b386339e08cea Mon Sep 17 00:00:00 2001 From: HÃ¥kon Hallingstad Date: Sat, 3 Oct 2020 15:02:53 +0200 Subject: Move lock metrics to MetricsReporter Adds two new metrics: - The load of acquiring each lock path: The average number of threads waiting to acquire the lock within the last minute (or unit of time). Aka the lock queue (depth). - The load of the lock for each lock path: The average number of threads holding the lock within the last minute (or unit of time). This is always <= 1. Aka the lock utilization. Changes the LockCounters to LockMetrics, and exporting those once every minute through MetricReporter which is designed for this. --- zkfacade/abi-spec.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'zkfacade/abi-spec.json') diff --git a/zkfacade/abi-spec.json b/zkfacade/abi-spec.json index 0f421621523..e026559b283 100644 --- a/zkfacade/abi-spec.json +++ b/zkfacade/abi-spec.json @@ -68,8 +68,8 @@ "methods": [ "public static com.yahoo.vespa.curator.Curator create(java.lang.String)", "public static com.yahoo.vespa.curator.Curator create(java.lang.String, java.util.Optional)", - "public void (com.yahoo.cloud.config.ConfigserverConfig, com.yahoo.jdisc.Metric, com.yahoo.vespa.zookeeper.VespaZooKeeperServer)", - "protected void (java.lang.String, java.lang.String, java.util.function.Function, java.util.Optional)", + "public void (com.yahoo.cloud.config.ConfigserverConfig, com.yahoo.vespa.zookeeper.VespaZooKeeperServer)", + "protected void (java.lang.String, java.lang.String, java.util.function.Function)", "public java.lang.String connectionSpec()", "public org.apache.curator.framework.recipes.atomic.DistributedAtomicLong createAtomicCounter(java.lang.String)", "public org.apache.curator.framework.recipes.locks.InterProcessLock createMutex(java.lang.String)", @@ -104,8 +104,8 @@ "public" ], "methods": [ - "public void (java.lang.String, com.yahoo.vespa.curator.Curator, java.util.Optional)", - "public void (java.lang.String, org.apache.curator.framework.recipes.locks.InterProcessLock, java.util.Optional)", + "public void (java.lang.String, com.yahoo.vespa.curator.Curator)", + "public void (java.lang.String, org.apache.curator.framework.recipes.locks.InterProcessLock)", "public void acquire(java.time.Duration)", "public void close()" ], -- cgit v1.2.3