CartoDB / Windshaft-cartodb

Windshaft tailored for CARTO
BSD 3-Clause "New" or "Revised" License
72 stars 59 forks source link

[limits] Response time limits #701

Closed dgaubert closed 7 years ago

dgaubert commented 7 years ago

Context

In some scenarios such as high database load, demanding users, crazy maps and so on, responses takes too long to be delivered. Depending on the request (tile format, dataview aggregation, etc..) we need to implement a fallback to indicate properly that a timeout in database happened or Mapnik couldn't render the tile in time before the timeout fires.

Things to do

1. Tile service

Note: Unfortunately we cannot stop programatically queries that mapnik runs against the database. We hacked tilelive-mapnik in order to not wait for mapnik when a tile is requested and the timeout fires. At the end, the database is still processing the query.

2. Dataview service

3. Attributes service

4. Static maps service

cc/ @rochoa @jorgesancha

dgaubert commented 7 years ago

Pending stuff: