Update windshaft devel branch

This commit is contained in:
Daniel García Aubert 2019-07-29 19:14:27 +02:00
parent 61b66e88d5
commit 945c122dda
4 changed files with 9 additions and 9 deletions

View File

@ -100,7 +100,8 @@ module.exports = class ApiRouter {
const tileBackend = new windshaft.backend.Tile(rendererCache);
const attributesBackend = new windshaft.backend.Attributes();
const previewBackend = new windshaft.backend.Preview(rendererCache);
const concurrency = serverOptions.renderer.mapnik.poolSize + serverOptions.renderer.mapnik.poolMaxWaitingClients;
const previewBackend = new windshaft.backend.Preview(rendererCache, { concurrency });
const mapValidatorBackend = new windshaft.backend.MapValidator(tileBackend, attributesBackend);
const mapBackend = new windshaft.backend.Map(rendererCache, mapStore, mapValidatorBackend);

12
package-lock.json generated
View File

@ -5,9 +5,8 @@
"requires": true,
"dependencies": {
"@carto/cartonik": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/@carto/cartonik/-/cartonik-0.6.1.tgz",
"integrity": "sha512-7tRnEe8JTGzbYxBcsXhneWzK2HVP/Fc4KcI0PNIgMAUsu3q2Yz3tikA9/OoT9PtGvcOmqNn6CwfVibBKwYO23Q==",
"version": "github:cartodb/cartonik#c91fa13562a1fbda30d55405e86ed72bae503eda",
"from": "github:cartodb/cartonik#19-preview-batch-fetchs",
"requires": {
"@carto/mapnik": "3.6.2-carto.16",
"@mapbox/sphericalmercator": "^1.1.0",
@ -4040,11 +4039,10 @@
"integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU="
},
"windshaft": {
"version": "5.5.1",
"resolved": "https://registry.npmjs.org/windshaft/-/windshaft-5.5.1.tgz",
"integrity": "sha512-Z8ChaxzBThnYCaSQsJJ5uWdNlTQRBndXvefn8DCaU8pikGfG1kcUD6IGE306MziljNDikKJC5XKf5Dmx6Awt5g==",
"version": "github:cartodb/windshaft#29b0c44e8d74eec8658460eb16b940f02ee157ec",
"from": "github:cartodb/windshaft#update-cartonik-0.7.0",
"requires": {
"@carto/cartonik": "^0.6.1",
"@carto/cartonik": "github:cartodb/cartonik#19-preview-batch-fetchs",
"@carto/mapnik": "3.6.2-carto.16",
"canvas": "^2.4.1",
"carto": "github:cartodb/carto#0.15.1-cdb5",

View File

@ -49,7 +49,7 @@
"step-profiler": "0.3.0",
"turbo-carto": "0.21.2",
"underscore": "1.6.0",
"windshaft": "^5.5.1",
"windshaft": "github:cartodb/windshaft#update-cartonik-0.7.0",
"yargs": "11.1.0"
},
"devDependencies": {

View File

@ -50,6 +50,7 @@ module.exports = _.extend({}, serverOptions, {
renderer: {
mapnik: {
poolSize: 4,//require('os').cpus().length,
poolMaxWaitingClients: 32,
metatile: 1,
bufferSize: 64,
snapToGrid: false,