From 39112dafb773d621e225e802d6618d33e8976296 Mon Sep 17 00:00:00 2001 From: Liangjun Song <146005915+adai26@users.noreply.github.com> Date: Mon, 29 Jul 2024 16:47:02 +0100 Subject: [PATCH] Revert "log clsi concurrency (#19651)" (#19655) This reverts commit 504f6f9cc3d4b7386dbcde86f76c1cf3a13e944f. GitOrigin-RevId: 3719f468a6336ff4bf5126f3e5d79dcde172b7ea --- services/clsi/app/js/LockManager.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/services/clsi/app/js/LockManager.js b/services/clsi/app/js/LockManager.js index 21abb43a2a..0ecd04356e 100644 --- a/services/clsi/app/js/LockManager.js +++ b/services/clsi/app/js/LockManager.js @@ -1,7 +1,6 @@ const logger = require('@overleaf/logger') const Errors = require('./Errors') const RequestParser = require('./RequestParser') -const Metrics = require('@overleaf/metrics') // The lock timeout should be higher than the maximum end-to-end compile time. // Here, we use the maximum compile timeout plus 2 minutes. @@ -20,8 +19,6 @@ function acquire(key) { } } - Metrics.gauge('concurrent_compile_requests', LOCKS.size) - const lock = new Lock(key) LOCKS.set(key, lock) return lock @@ -42,9 +39,6 @@ class Lock { if (!lockWasActive) { logger.error({ key: this.key }, 'Lock was released twice') } - if (this.isExpired()) { - Metrics.inc('compile_lock_expired_before_release') - } } }