From a4671b84f060bf4e55777f6ae681434bbe60ef98 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Tue, 1 Sep 2020 07:46:53 -0400 Subject: [PATCH] Expose COPY_CONCURRENCY to users (#972) Allow users to override how the number of threads used when generating map vector tiles. --- .env | 3 +++ docker-compose.yml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.env b/.env index 962aeaf1..a685bd8e 100644 --- a/.env +++ b/.env @@ -44,3 +44,6 @@ BORDERS_CSV_FILE=data/borders/lines.csv # Number of parallel processes to use when importing sql files MAX_PARALLEL_PSQL=5 + +# Number of parallel threads to use when generating vector map tiles +COPY_CONCURRENCY=10 diff --git a/docker-compose.yml b/docker-compose.yml index 469baa84..c82e9055 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,6 +65,8 @@ services: environment: FILTER_MAPNIK_OUTPUT: ${FILTER_MAPNIK_OUTPUT} MBTILES_NAME: ${MBTILES_FILE} + # Control tilelive-copy threads + COPY_CONCURRENCY: ${COPY_CONCURRENCY} generate-vectortiles: image: "openmaptiles/generate-vectortiles:${TOOLS_VERSION}" @@ -80,6 +82,9 @@ services: BBOX: ${BBOX} MIN_ZOOM: ${MIN_ZOOM} MAX_ZOOM: ${MAX_ZOOM} + # Control tilelive-copy threads + COPY_CONCURRENCY: ${COPY_CONCURRENCY} + # postserve: image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"