Be able to customize max waiting workers parameter

This commit is contained in:
Daniel García Aubert 2019-01-30 10:41:39 +01:00
parent d70a87b299
commit 2e85e130c8
6 changed files with 20 additions and 2 deletions

View File

@ -2,7 +2,7 @@
**Deprecation warning**: Next major release will drop support for `Node.js 6 LTS`, `npm 3.x` and `yarn`. You'll be able to use the latest ES features as soon as we release 7.0.0. In the meantime, as a developer, you should keep compatibility with Node.js 6 LTS and keep updated both `package-lock.json` and `yarn.lock` files. **Deprecation warning**: Next major release will drop support for `Node.js 6 LTS`, `npm 3.x` and `yarn`. You'll be able to use the latest ES features as soon as we release 7.0.0. In the meantime, as a developer, you should keep compatibility with Node.js 6 LTS and keep updated both `package-lock.json` and `yarn.lock` files.
## 6.5.2 ## 6.6.0
Released 2018-mm-dd Released 2018-mm-dd
Announcements: Announcements:
@ -14,7 +14,8 @@ Announcements:
- Update dev deps: - Update dev deps:
- jshint@2.9.7 - jshint@2.9.7
- mocha@5.2.0 - mocha@5.2.0
- Be able to customize max waiting workers parameter
- Handle max number of waiting workers error as `429 Too many requests` error.
## 6.5.1 ## 6.5.1
Released 2018-12-26 Released 2018-12-26

View File

@ -139,6 +139,10 @@ var config = {
// Important: check the configuration of uv_threadpool_size to use suitable value // Important: check the configuration of uv_threadpool_size to use suitable value
poolSize: 8, poolSize: 8,
// The maximum number of waiting clients of the pool of internal mapnik backend
// This maximum number is per mapnik renderer created in Windshaft's RendererFactory
poolMaxWaitingClients: 64,
// Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML. // Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML.
// This will prevent blocking the main thread. // This will prevent blocking the main thread.
useCartocssWorkers: false, useCartocssWorkers: false,

View File

@ -139,6 +139,10 @@ var config = {
// Important: check the configuration of uv_threadpool_size to use suitable value // Important: check the configuration of uv_threadpool_size to use suitable value
poolSize: 8, poolSize: 8,
// The maximum number of waiting clients of the pool of internal mapnik backend
// This maximum number is per mapnik renderer created in Windshaft's RendererFactory
poolMaxWaitingClients: 64,
// Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML. // Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML.
// This will prevent blocking the main thread. // This will prevent blocking the main thread.
useCartocssWorkers: false, useCartocssWorkers: false,

View File

@ -139,6 +139,10 @@ var config = {
// Important: check the configuration of uv_threadpool_size to use suitable value // Important: check the configuration of uv_threadpool_size to use suitable value
poolSize: 8, poolSize: 8,
// The maximum number of waiting clients of the pool of internal mapnik backend
// This maximum number is per mapnik renderer created in Windshaft's RendererFactory
poolMaxWaitingClients: 64,
// Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML. // Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML.
// This will prevent blocking the main thread. // This will prevent blocking the main thread.
useCartocssWorkers: false, useCartocssWorkers: false,

View File

@ -139,6 +139,10 @@ var config = {
// Important: check the configuration of uv_threadpool_size to use suitable value // Important: check the configuration of uv_threadpool_size to use suitable value
poolSize: 8, poolSize: 8,
// The maximum number of waiting clients of the pool of internal mapnik backend
// This maximum number is per mapnik renderer created in Windshaft's RendererFactory
poolMaxWaitingClients: 64,
// Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML. // Whether grainstore will use a child process or not to transform CartoCSS into Mapnik XML.
// This will prevent blocking the main thread. // This will prevent blocking the main thread.
useCartocssWorkers: false, useCartocssWorkers: false,

View File

@ -9,6 +9,7 @@ var rendererConfig = _.defaults(global.environment.renderer || {}, {
statsInterval: 60000, statsInterval: 60000,
mapnik: { mapnik: {
poolSize: 8, poolSize: 8,
poolMaxWaitingClients: 64,
metatile: 2, metatile: 2,
bufferSize: 64, bufferSize: 64,
snapToGrid: false, snapToGrid: false,