diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 2bc6d2d6..91cf2a39 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -111,7 +111,15 @@ var config = { //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, //PostGIS 2.4 is required for this to work //If disabled it will use Mapnik MVT generation - usePgSQL: 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: { // The size of the pool of internal mapnik backend diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 87214c75..7d7a00cb 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -105,7 +105,15 @@ var config = { //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, //PostGIS 2.4 is required for this to work //If disabled it will use Mapnik MVT generation - usePgSQL: 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: { // The size of the pool of internal mapnik backend diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 5e05c83f..3d1098fb 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -105,7 +105,15 @@ var config = { //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, //PostGIS 2.4 is required for this to work //If disabled it will use Mapnik MVT generation - usePgSQL: 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: { // The size of the pool of internal mapnik backend diff --git a/config/environments/test.js.example b/config/environments/test.js.example index c01d52d1..ea788a22 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -104,7 +104,15 @@ var config = { //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, //PostGIS 2.4 is required for this to work //If disabled it will use Mapnik MVT generation - usePgSQL: 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: { // The size of the pool of internal mapnik backend