Use torque renderer config
Adds some notes about db pool params in torque
This commit is contained in:
parent
13a2001a2b
commit
e0a7eb01cc
@ -162,6 +162,16 @@ var config = {
|
|||||||
type: 'fs', // 'fs' and 'url' supported
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
torque: {
|
||||||
|
dbPoolParams: {
|
||||||
|
// maximum number of resources to create at any given time
|
||||||
|
size: 16,
|
||||||
|
// max milliseconds a resource can go unused before it should be destroyed
|
||||||
|
idleTimeout: 3000,
|
||||||
|
// frequency to check for idle resources
|
||||||
|
reapInterval: 1000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
@ -156,6 +156,16 @@ var config = {
|
|||||||
type: 'fs', // 'fs' and 'url' supported
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
torque: {
|
||||||
|
dbPoolParams: {
|
||||||
|
// maximum number of resources to create at any given time
|
||||||
|
size: 16,
|
||||||
|
// max milliseconds a resource can go unused before it should be destroyed
|
||||||
|
idleTimeout: 3000,
|
||||||
|
// frequency to check for idle resources
|
||||||
|
reapInterval: 1000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
@ -156,6 +156,16 @@ var config = {
|
|||||||
type: 'fs', // 'fs' and 'url' supported
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
torque: {
|
||||||
|
dbPoolParams: {
|
||||||
|
// maximum number of resources to create at any given time
|
||||||
|
size: 16,
|
||||||
|
// max milliseconds a resource can go unused before it should be destroyed
|
||||||
|
idleTimeout: 3000,
|
||||||
|
// frequency to check for idle resources
|
||||||
|
reapInterval: 1000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
@ -158,6 +158,16 @@ var config = {
|
|||||||
type: 'fs', // 'fs' and 'url' supported
|
type: 'fs', // 'fs' and 'url' supported
|
||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
torque: {
|
||||||
|
dbPoolParams: {
|
||||||
|
// maximum number of resources to create at any given time
|
||||||
|
size: 16,
|
||||||
|
// max milliseconds a resource can go unused before it should be destroyed
|
||||||
|
idleTimeout: 3000,
|
||||||
|
// frequency to check for idle resources
|
||||||
|
reapInterval: 1000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
|
@ -79,6 +79,7 @@ module.exports = function(redisPool) {
|
|||||||
},
|
},
|
||||||
renderer: {
|
renderer: {
|
||||||
mapnik: rendererConfig.mapnik,
|
mapnik: rendererConfig.mapnik,
|
||||||
|
torque: rendererConfig.torque,
|
||||||
http: rendererConfig.http
|
http: rendererConfig.http
|
||||||
},
|
},
|
||||||
redis: global.environment.redis,
|
redis: global.environment.redis,
|
||||||
|
Loading…
Reference in New Issue
Block a user