Use postgres pool configuration to have the same configuration for all renderers.
This commit is contained in:
parent
ee38c717a5
commit
f404285140
@ -137,15 +137,7 @@ var config = {
|
|||||||
//If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik,
|
//If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik,
|
||||||
//PostGIS 2.4 is required for this to work
|
//PostGIS 2.4 is required for this to work
|
||||||
//If disabled it will use Mapnik MVT generation
|
//If disabled it will use Mapnik MVT generation
|
||||||
usePostGIS: false,
|
usePostGIS: false
|
||||||
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
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mapnik: {
|
mapnik: {
|
||||||
// The size of the pool of internal mapnik backend
|
// The size of the pool of internal mapnik backend
|
||||||
@ -261,16 +253,7 @@ var config = {
|
|||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
torque: {
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// anything analyses related
|
// anything analyses related
|
||||||
,analysis: {
|
,analysis: {
|
||||||
|
@ -261,16 +261,7 @@ var config = {
|
|||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
torque: {
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// anything analyses related
|
// anything analyses related
|
||||||
,analysis: {
|
,analysis: {
|
||||||
|
@ -137,15 +137,7 @@ var config = {
|
|||||||
//If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik,
|
//If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik,
|
||||||
//PostGIS 2.4 is required for this to work
|
//PostGIS 2.4 is required for this to work
|
||||||
//If disabled it will use Mapnik MVT generation
|
//If disabled it will use Mapnik MVT generation
|
||||||
usePostGIS: false,
|
usePostGIS: false
|
||||||
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
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mapnik: {
|
mapnik: {
|
||||||
// The size of the pool of internal mapnik backend
|
// The size of the pool of internal mapnik backend
|
||||||
@ -261,16 +253,7 @@ var config = {
|
|||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
torque: {
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// anything analyses related
|
// anything analyses related
|
||||||
,analysis: {
|
,analysis: {
|
||||||
|
@ -250,16 +250,7 @@ var config = {
|
|||||||
src: __dirname + '/../../assets/default-placeholder.png'
|
src: __dirname + '/../../assets/default-placeholder.png'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
torque: {
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// anything analyses related
|
// anything analyses related
|
||||||
,analysis: {
|
,analysis: {
|
||||||
|
@ -140,9 +140,9 @@ module.exports = {
|
|||||||
statsInterval: rendererConfig.statsInterval
|
statsInterval: rendererConfig.statsInterval
|
||||||
},
|
},
|
||||||
renderer: {
|
renderer: {
|
||||||
mvt: rendererConfig.mvt,
|
mvt: Object.assign({ dbPoolParams: global.environment.postgres.pool }, rendererConfig.mvt),
|
||||||
mapnik: rendererConfig.mapnik,
|
mapnik: rendererConfig.mapnik,
|
||||||
torque: rendererConfig.torque,
|
torque: Object.assign({ dbPoolParams: global.environment.postgres.pool }, rendererConfig.torque),
|
||||||
http: rendererConfig.http
|
http: rendererConfig.http
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user