Skip to content

Huge difference on request response time #973

Answered by vincentsarago
pablo-padua asked this question in Q&A
Discussion options

You must be logged in to vote

I think this might mostly be linked to the network. titiler.xyz is deployed on AWS Lambda using this configuration

env: Dict = {
"GDAL_CACHEMAX": "200", # 200 mb
"GDAL_DISABLE_READDIR_ON_OPEN": "EMPTY_DIR",
"GDAL_INGESTED_BYTES_AT_OPEN": "32768", # get more bytes when opening the files.
"GDAL_HTTP_MERGE_CONSECUTIVE_RANGES": "YES",
"GDAL_HTTP_MULTIPLEX": "YES",
"GDAL_HTTP_VERSION": "2",
"PYTHONWARNINGS": "ignore",
"VSI_CACHE": "TRUE",
"VSI_CACHE_SIZE": "5000000", # 5 MB (per file-handle)
}

we use the same env in the docker compose file

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vincentsarago
Comment options

Answer selected by pablo-padua
@pablo-padua
Comment options

@vincentsarago
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants