Skip to content

Commit

Permalink
Reduce timeout and max threads
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jul 23, 2020
1 parent 912da0c commit f8c72c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions serverless.kyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ package:
functions:
tiler:
handler: landsat_mosaic_tiler.handlers.tiles.app
memorySize: 1024
timeout: 20
memorySize: 1536
timeout: 10
layers:
- arn:aws:lambda:${self:provider.region}:524387336408:layer:gdal24-py37-geolayer:1
environment:
Expand All @@ -104,7 +104,7 @@ functions:
GDAL_HTTP_MERGE_CONSECUTIVE_RANGES: YES
GDAL_HTTP_MULTIPLEX: YES
GDAL_HTTP_VERSION: 2
MAX_THREADS: 10
MAX_THREADS: 1
MOSAIC_DEF_BUCKET: ${self:provider.deploymentBucket}
PROJ_LIB: /opt/share/proj
PYTHONWARNINGS: ignore
Expand Down
10 changes: 5 additions & 5 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ package:
functions:
tiler:
handler: landsat_mosaic_tiler.handlers.tiles.app
memorySize: 3008
timeout: 20
memorySize: 1536
timeout: 10
layers:
- arn:aws:lambda:${self:provider.region}:524387336408:layer:gdal24-py37-geolayer:1
environment:
Expand All @@ -47,7 +47,7 @@ functions:
GDAL_HTTP_MERGE_CONSECUTIVE_RANGES: YES
GDAL_HTTP_MULTIPLEX: YES
GDAL_HTTP_VERSION: 2
MAX_THREADS: 10
MAX_THREADS: 1
MOSAIC_DEF_BUCKET: ${opt:bucket}
PROJ_LIB: /opt/share/proj
PYTHONWARNINGS: ignore
Expand All @@ -60,8 +60,8 @@ functions:

mosaics:
handler: landsat_mosaic_tiler.handlers.mosaic.app
memorySize: 3008
timeout: 30
memorySize: 1024
timeout: 20
layers:
- arn:aws:lambda:${self:provider.region}:524387336408:layer:gdal24-py37-geolayer:1
environment:
Expand Down

0 comments on commit f8c72c2

Please sign in to comment.