Allow to add more node.js' threadpool workers via process.env.UV_THREADPOOL_SIZE

This commit is contained in:
Raul Ochoa 2014-10-08 16:50:35 +02:00
parent 91229dd1e1
commit d89b2986fd
6 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,9 @@
1.18.1 -- 2014-mm-dd 1.18.1 -- 2014-mm-dd
-------------------- --------------------
New features:
- Allow to add more node.js' threadpool workers via process.env.UV_THREADPOOL_SIZE
1.18.0 -- 2014-10-03 1.18.0 -- 2014-10-03
-------------------- --------------------

4
app.js
View File

@ -37,6 +37,10 @@ log4js_config = {
replaceConsole:true replaceConsole:true
}; };
if (global.environment.uv_threadpool_size) {
process.env.UV_THREADPOOL_SIZE = global.environment.uv_threadpool_size;
}
if ( global.environment.log_filename ) { if ( global.environment.log_filename ) {
var logdir = path.dirname(global.environment.log_filename); var logdir = path.dirname(global.environment.log_filename);
// See cwd inlog4js.configure call below // See cwd inlog4js.configure call below

View File

@ -2,6 +2,7 @@ var config = {
environment: 'development' environment: 'development'
,port: 8181 ,port: 8181
,host: '127.0.0.1' ,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username // Regular expression pattern to extract username
// from hostname. Must have a single grabbing block. // from hostname. Must have a single grabbing block.
,user_from_host: '^(.*)\\.localhost' ,user_from_host: '^(.*)\\.localhost'

View File

@ -2,6 +2,7 @@ var config = {
environment: 'production' environment: 'production'
,port: 8181 ,port: 8181
,host: '127.0.0.1' ,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username // Regular expression pattern to extract username
// from hostname. Must have a single grabbing block. // from hostname. Must have a single grabbing block.
,user_from_host: '^(.*)\\.cartodb\\.com$' ,user_from_host: '^(.*)\\.cartodb\\.com$'

View File

@ -2,6 +2,7 @@ var config = {
environment: 'production' environment: 'production'
,port: 8181 ,port: 8181
,host: '127.0.0.1' ,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username // Regular expression pattern to extract username
// from hostname. Must have a single grabbing block. // from hostname. Must have a single grabbing block.
,user_from_host: '^(.*)\\.cartodb\\.com$' ,user_from_host: '^(.*)\\.cartodb\\.com$'

View File

@ -2,6 +2,7 @@ var config = {
environment: 'test' environment: 'test'
,port: 8888 ,port: 8888
,host: '127.0.0.1' ,host: '127.0.0.1'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username // Regular expression pattern to extract username
// from hostname. Must have a single grabbing block. // from hostname. Must have a single grabbing block.
,user_from_host: '(.*)' ,user_from_host: '(.*)'