Просмотр исходного кода

Set UV_THREADPOOL_SIZE to 128 for all processes

James Allen 10 лет назад
Родитель
Сommit
caeac717fc

+ 2 - 0
libraries/metrics/metrics.coffee

@@ -8,6 +8,8 @@ buildKey = (key)-> "#{name}.#{hostname}.#{key}"
 
 destructors = []
 
+require "./uv_threadpool_size"
+
 module.exports =
 	initialize: (_name) ->
 		name = _name

+ 1 - 1
libraries/metrics/package.json

@@ -1,6 +1,6 @@
 {
   "name": "metrics-sharelatex",
-  "version": "1.5.0",
+  "version": "1.6.0",
   "description": "A drop-in metrics and monitoring module for node.js apps",
   "repository": {
     "type": "git",

+ 2 - 0
libraries/metrics/uv_threadpool_size.coffee

@@ -0,0 +1,2 @@
+process.env.UV_THREADPOOL_SIZE=128
+console.log "Set UV_THREADPOOL_SIZE=#{process.env.UV_THREADPOOL_SIZE}"