Opened 12 years ago

Closed 12 years ago

#1022 closed enhancement (fixed)

mod_tile should not expire all tiles at once

Reported by: Grant Slater Owned by: jburgess777@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: mod_tile Cc:


mod_tile sets the same HTTP Expires header to all tiles.

Traffic will spike as caches all expire at the same instant.

mod_tile should add a random "delay" factor (upto say 8% of "PLANET_INTERVAL") to the Expires header, which will smooth the spike.

Change History (1)

comment:1 Changed 12 years ago by jburgess@…

Resolution: fixed
Status: newclosed

I have updated the algorithm used to calculate the expiry in r8972. The normal expiry is now based on the next planet dump plus a random holdoff of 0 - 3 hours.

The expiry algorithm will need to be reworked again when we move to the diff import in the latest osm2pgsql code.

Note: See TracTickets for help on using tickets.