Expose COPY_CONCURRENCY to users (#972)

Allow users to override how the number of threads used when generating map vector tiles.
pull/969/head^2
David Zhao 2020-09-01 07:46:53 -04:00 zatwierdzone przez GitHub
rodzic 4807ccee24
commit a4671b84f0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 8 dodań i 0 usunięć

3
.env
Wyświetl plik

@ -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

Wyświetl plik

@ -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}"