From 9a393fa7931c141623c876b11d70bfc8a97c04dc Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 7 Jul 2015 12:27:09 +0200 Subject: [PATCH] Adds some notes about uv_threadpool_size and mapnik renderer pool size --- config/environments/development.js.example | 9 +++++++-- config/environments/production.js.example | 9 +++++++-- config/environments/staging.js.example | 9 +++++++-- config/environments/test.js.example | 9 +++++++-- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 3fcf78f9..37c09037 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -2,6 +2,9 @@ var config = { environment: 'development' ,port: 8181 ,host: '127.0.0.1' + // Size of the threadpool which can be used to run user code and get notified in the loop thread + // Its default size is 4, but it can be changed at startup time (the absolute maximum is 128). + // See http://docs.libuv.org/en/latest/threadpool.html ,uv_threadpool_size: undefined // Regular expression pattern to extract username // from hostname. Must have a single grabbing block. @@ -86,8 +89,10 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mapnik: { - // The size of the pool of internal mapnik renderers - // Check the configuration of uv_threadpool_size to use suitable value + // The size of the pool of internal mapnik backend + // This pool size is per mapnik renderer created in Windshaft's RendererFactory + // See https://github.com/CartoDB/Windshaft/blob/master/lib/windshaft/renderers/renderer_factory.js + // Important: check the configuration of uv_threadpool_size to use suitable value poolSize: 8, // Metatile is the number of tiles-per-side that are going diff --git a/config/environments/production.js.example b/config/environments/production.js.example index c0a63be9..64e0e26e 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -2,6 +2,9 @@ var config = { environment: 'production' ,port: 8181 ,host: '127.0.0.1' + // Size of the threadpool which can be used to run user code and get notified in the loop thread + // Its default size is 4, but it can be changed at startup time (the absolute maximum is 128). + // See http://docs.libuv.org/en/latest/threadpool.html ,uv_threadpool_size: undefined // Regular expression pattern to extract username // from hostname. Must have a single grabbing block. @@ -80,8 +83,10 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mapnik: { - // The size of the pool of internal mapnik renderers - // Check the configuration of uv_threadpool_size to use suitable value + // The size of the pool of internal mapnik backend + // This pool size is per mapnik renderer created in Windshaft's RendererFactory + // See https://github.com/CartoDB/Windshaft/blob/master/lib/windshaft/renderers/renderer_factory.js + // Important: check the configuration of uv_threadpool_size to use suitable value poolSize: 8, // Metatile is the number of tiles-per-side that are going diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 69fa635b..05589ce7 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -2,6 +2,9 @@ var config = { environment: 'production' ,port: 8181 ,host: '127.0.0.1' + // Size of the threadpool which can be used to run user code and get notified in the loop thread + // Its default size is 4, but it can be changed at startup time (the absolute maximum is 128). + // See http://docs.libuv.org/en/latest/threadpool.html ,uv_threadpool_size: undefined // Regular expression pattern to extract username // from hostname. Must have a single grabbing block. @@ -80,8 +83,10 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mapnik: { - // The size of the pool of internal mapnik renderers - // Check the configuration of uv_threadpool_size to use suitable value + // The size of the pool of internal mapnik backend + // This pool size is per mapnik renderer created in Windshaft's RendererFactory + // See https://github.com/CartoDB/Windshaft/blob/master/lib/windshaft/renderers/renderer_factory.js + // Important: check the configuration of uv_threadpool_size to use suitable value poolSize: 8, // Metatile is the number of tiles-per-side that are going diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 5597509a..1d8ea9da 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -2,6 +2,9 @@ var config = { environment: 'test' ,port: 8888 ,host: '127.0.0.1' + // Size of the threadpool which can be used to run user code and get notified in the loop thread + // Its default size is 4, but it can be changed at startup time (the absolute maximum is 128). + // See http://docs.libuv.org/en/latest/threadpool.html ,uv_threadpool_size: undefined // Regular expression pattern to extract username // from hostname. Must have a single grabbing block. @@ -80,8 +83,10 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mapnik: { - // The size of the pool of internal mapnik renderers - // Check the configuration of uv_threadpool_size to use suitable value + // The size of the pool of internal mapnik backend + // This pool size is per mapnik renderer created in Windshaft's RendererFactory + // See https://github.com/CartoDB/Windshaft/blob/master/lib/windshaft/renderers/renderer_factory.js + // Important: check the configuration of uv_threadpool_size to use suitable value poolSize: 8, // Metatile is the number of tiles-per-side that are going