Allow configuring TTL of mapConfigs via "mapConfigTTL"

This commit is contained in:
Sandro Santilli 2014-02-13 15:44:54 +01:00
parent 4a6af108b4
commit 678d653ee9
6 changed files with 23 additions and 2 deletions

View File

@ -12,6 +12,7 @@ Enhancements:
* Use single redis pooler for torque and grainstore
* Reduce cost of garbage collection for localized resources
* Allow limiting number of templates for each user (#136)
* Allow configuring TTL of mapConfigs via "mapConfigTTL"
1.7.1 -- 2014-02-11
-------------------

View File

@ -26,6 +26,11 @@ var config = {
,maxConnections:128
// Maximum number of templates per user. Unlimited by default.
,maxUserTemplates:1024
// Seconds since "last creation" before a detached
// or template instance map expires. Or: how long do you want
// to be able to navigate the map without a reload ?
// Defaults to 7200 (2 hours)
,mapConfigTTL: 7200,
// idle socket timeout, in miliseconds
,socket_timeout: 600000
,enable_cors: true

View File

@ -26,6 +26,11 @@ var config = {
,maxConnections:128
// Maximum number of templates per user. Unlimited by default.
,maxUserTemplates:1024
// Seconds since "last creation" before a detached
// or template instance map expires. Or: how long do you want
// to be able to navigate the map without a reload ?
// Defaults to 7200 (2 hours)
,mapConfigTTL: 7200,
// idle socket timeout, in miliseconds
,socket_timeout: 600000
,enable_cors: true

View File

@ -26,6 +26,11 @@ var config = {
,maxConnections:128
// Maximum number of templates per user. Unlimited by default.
,maxUserTemplates:1024
// Seconds since "last creation" before a detached
// or template instance map expires. Or: how long do you want
// to be able to navigate the map without a reload ?
// Defaults to 7200 (2 hours)
,mapConfigTTL: 7200,
// idle socket timeout, in miliseconds
,socket_timeout: 600000
,enable_cors: true

View File

@ -26,6 +26,11 @@ var config = {
,maxConnections:128
// Maximum number of templates per user. Unlimited by default.
,maxUserTemplates:1024
// Seconds since "last creation" before a detached
// or template instance map expires. Or: how long do you want
// to be able to navigate the map without a reload ?
// Defaults to 7200 (2 hours)
,mapConfigTTL: 7200,
// idle socket timeout, in miliseconds
,socket_timeout: 600000
,enable_cors: true

View File

@ -47,8 +47,8 @@ module.exports = function(){
datasource: global.environment.postgres,
cachedir: global.environment.millstone.cache_basedir,
mapnik_version: global.environment.mapnik_version || mapnik.versions.mapnik,
default_layergroup_ttl: 7200, // seconds (default is 300)
gc_prob: 0.01 // default is 0.01 TODO: make configurable via env config
default_layergroup_ttl: global.environment.mapConfigTTL || 7200,
gc_prob: 0.01 // @deprecated since Windshaft-1.8.0
},
mapnik: {
metatile: rendererConfig.metatile,