Allow to add more node.js' threadpool workers via process.env.UV_THREADPOOL_SIZE
This commit is contained in:
parent
91229dd1e1
commit
d89b2986fd
3
NEWS.md
3
NEWS.md
@ -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
4
app.js
@ -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
|
||||||
|
@ -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'
|
||||||
|
@ -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$'
|
||||||
|
@ -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$'
|
||||||
|
@ -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: '(.*)'
|
||||||
|
Loading…
Reference in New Issue
Block a user