diff --git a/config/environments/development.js.example b/config/environments/development.js.example index e5d69a0e..41eb4a17 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -58,6 +58,14 @@ var config = { */ row_limit: 65535, simplify_geometries: true, + /* + * Set persist_connection to false if you want + * database connections to be closed on renderer + * expiration (1 minute after last use). + * Setting to true (the default) would never + * close any connection for the server's lifetime + */ + persist_connection: false, max_size: 500 } ,mapnik_version: undefined diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 19ac0861..bc50d114 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -51,6 +51,14 @@ var config = { port: 6432, extent: "-20037508.3,-20037508.3,20037508.3,20037508.3", row_limit: 65535, + /* + * Set persist_connection to false if you want + * database connections to be closed on renderer + * expiration (1 minute after last use). + * Setting to true (the default) would never + * close any connection for the server's lifetime + */ + persist_connection: false, simplify_geometries: true, max_size: 500 } diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 99e0a56f..4302c99d 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -52,6 +52,14 @@ var config = { extent: "-20037508.3,-20037508.3,20037508.3,20037508.3", row_limit: 65535, simplify_geometries: true, + /* + * Set persist_connection to false if you want + * database connections to be closed on renderer + * expiration (1 minute after last use). + * Setting to true (the default) would never + * close any connection for the server's lifetime + */ + persist_connection: false, max_size: 500 } ,mapnik_version: undefined diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 7f700d96..8ded2588 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -52,6 +52,14 @@ var config = { extent: "-20037508.3,-20037508.3,20037508.3,20037508.3", row_limit: 65535, simplify_geometries: true, + /* + * Set persist_connection to false if you want + * database connections to be closed on renderer + * expiration (1 minute after last use). + * Setting to true (the default) would never + * close any connection for the server's lifetime + */ + persist_connection: false, max_size: 500 } ,mapnik_version: ''