[Tilesathome] Memcached?

Robin Harmsen robin at rharmsen.nl
Thu Jul 17 18:09:08 BST 2008


Would be nice if offloading (perhaps by means of squid proxys) would be possible. We could make a proxy packege for people to install which they can use to help reduce/spread load.

Greetings,

Robin Harmsen

-----Oorspronkelijk bericht-----
Van: tilesathome-bounces at openstreetmap.org [mailto:tilesathome-bounces at openstreetmap.org] Namens Grant Slater
Verzonden: donderdag 17 juli 2008 15:47
Aan: Ian Dees
CC: TilesAtHome
Onderwerp: Re: [Tilesathome] Memcached?

Ian Dees wrote:
> Spaetz, do you have enough access rights to the tah.osm.org 
> <http://tah.osm.org> server to install memcached? I'm thinking we 
> should cache the tile images just before we send them to the user, and 
> then check the cache when we get a tile request. Even with a 25 or 
> 30MB cache, I imagine we could cache in memory some of the 
> most-visited areas. When a tileset uploads, we could make sure and 
> invalidate the cache enty for it (if it exists).
>
> I could spend some time working on this if you have rights to install 
> memcached and the python bindings.

Serving tiles is unlikely to an expensive process. OS will cache 
filesystem reads regardless.

It would be better to optimise HTTP headers to improve caching (and 
hence offloading the server) and also support Conditional "304 Not 
Modified" HTTP Requests.

See how JonB solved this for the OSM Mapnik layer:
http://trac.openstreetmap.org/ticket/1022
http://trac.openstreetmap.org/ticket/1023
http://trac.openstreetmap.org/ticket/1024
http://trac.openstreetmap.org/ticket/1040


/ Grant


_______________________________________________
Tilesathome mailing list
Tilesathome at openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome





More information about the Tilesathome mailing list