diff options
author | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-10-03 15:02:53 +0200 |
---|---|---|
committer | Håkon Hallingstad <hakon@verizonmedia.com> | 2020-10-03 15:02:53 +0200 |
commit | e925ef8b0a33ed0e67e09ca9320b386339e08cea (patch) | |
tree | 066150a4a9f829b3c4935e5f702bb1e17cfefa03 /orchestrator/src | |
parent | 58c15afd3ea77235e2ea26f4baa2e171574dd3b6 (diff) |
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.
Diffstat (limited to 'orchestrator/src')
-rw-r--r-- | orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java index 387fda8ad84..a5877f4a761 100644 --- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java +++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/status/ZkStatusService.java @@ -169,7 +169,7 @@ public class ZkStatusService implements StatusService { Duration duration = context.getTimeLeft(); String lockPath = applicationInstanceLock2Path(reference); - Lock lock = new Lock(lockPath, curator, Optional.of(metric)); + Lock lock = new Lock(lockPath, curator); Instant startTime = timer.currentTime(); Instant acquireEndTime; |