Merge pull request #13253 from overleaf/em-revert-leaked-socket-detection

Revert leaked socket detection

GitOrigin-RevId: 0f17864122a17fc69d0dac1ad5e2775805639871
This commit is contained in:
Eric Mc Sween 2023-05-29 11:59:29 -04:00 committed by Copybot
parent c625fef364
commit 6077e73dd6
9 changed files with 0 additions and 10 deletions

View file

@ -13,8 +13,6 @@ metrics.initialize('chat')
logger.initialize('chat') logger.initialize('chat')
metrics.open_sockets.monitor() metrics.open_sockets.monitor()
metrics.leaked_sockets.monitor(logger)
export async function createServer() { export async function createServer() {
const app = express() const app = express()

View file

@ -18,7 +18,6 @@ const Path = require('path')
Metrics.open_sockets.monitor(true) Metrics.open_sockets.monitor(true)
Metrics.memory.monitor(logger) Metrics.memory.monitor(logger)
Metrics.leaked_sockets.monitor(logger)
const ProjectPersistenceManager = require('./app/js/ProjectPersistenceManager') const ProjectPersistenceManager = require('./app/js/ProjectPersistenceManager')
const OutputCacheManager = require('./app/js/OutputCacheManager') const OutputCacheManager = require('./app/js/OutputCacheManager')

View file

@ -23,7 +23,6 @@ logger.initialize('docstore')
if (Metrics.event_loop != null) { if (Metrics.event_loop != null) {
Metrics.event_loop.monitor(logger) Metrics.event_loop.monitor(logger)
} }
Metrics.leaked_sockets.monitor(logger)
Metrics.open_sockets.monitor() Metrics.open_sockets.monitor()
const app = express() const app = express()

View file

@ -27,7 +27,6 @@ Metrics.memory.monitor(logger)
if (Metrics.event_loop) { if (Metrics.event_loop) {
Metrics.event_loop.monitor(logger) Metrics.event_loop.monitor(logger)
} }
Metrics.leaked_sockets.monitor(logger)
app.use(function (req, res, next) { app.use(function (req, res, next) {
Metrics.inc('http-request') Metrics.inc('http-request')

View file

@ -29,7 +29,6 @@ logger.initialize('history-v1')
Metrics.open_sockets.monitor() Metrics.open_sockets.monitor()
Metrics.injectMetricsRoute(app) Metrics.injectMetricsRoute(app)
app.use(Metrics.http.monitor(logger)) app.use(Metrics.http.monitor(logger))
Metrics.leaked_sockets.monitor(logger)
// We may have fairly large JSON bodies when receiving large Changes. Clients // We may have fairly large JSON bodies when receiving large Changes. Clients
// may have to handle 413 status codes and try creating files instead of sending // may have to handle 413 status codes and try creating files instead of sending

View file

@ -16,7 +16,6 @@ if (Settings.sentry.dsn) {
Metrics.initialize('project-history') Metrics.initialize('project-history')
Metrics.event_loop.monitor(logger) Metrics.event_loop.monitor(logger)
Metrics.memory.monitor(logger) Metrics.memory.monitor(logger)
Metrics.leaked_sockets.monitor(logger)
Metrics.open_sockets.monitor() Metrics.open_sockets.monitor()
// log updates as truncated strings // log updates as truncated strings

View file

@ -6,7 +6,6 @@ const async = require('async')
const logger = require('@overleaf/logger') const logger = require('@overleaf/logger')
logger.initialize('real-time') logger.initialize('real-time')
Metrics.event_loop.monitor(logger) Metrics.event_loop.monitor(logger)
Metrics.leaked_sockets.monitor(logger)
Metrics.open_sockets.monitor() Metrics.open_sockets.monitor()
const express = require('express') const express = require('express')

View file

@ -12,7 +12,6 @@ if (Settings.sentry?.dsn != null) {
logger.initializeErrorReporting(Settings.sentry.dsn) logger.initializeErrorReporting(Settings.sentry.dsn)
} }
metrics.memory.monitor(logger) metrics.memory.monitor(logger)
metrics.leaked_sockets.monitor(logger)
metrics.open_sockets.monitor() metrics.open_sockets.monitor()
export const app = express() export const app = express()

View file

@ -34,7 +34,6 @@ http.globalAgent.maxSockets = Settings.limits.httpGlobalAgentMaxSockets
https.globalAgent.maxSockets = Settings.limits.httpsGlobalAgentMaxSockets https.globalAgent.maxSockets = Settings.limits.httpsGlobalAgentMaxSockets
metrics.memory.monitor(logger) metrics.memory.monitor(logger)
metrics.leaked_sockets.monitor(logger)
metrics.open_sockets.monitor() metrics.open_sockets.monitor()
const Server = require('./app/src/infrastructure/Server') const Server = require('./app/src/infrastructure/Server')