[MapProxy] Tile Locks

Oliver Tonnhofer olt at omniscale.de
Thu Feb 21 01:59:21 PST 2013


Hi Keith,

On 06.02.2013, at 02:30, Keith Moss wrote:
> Yup, the servers are accessing the tiles via the UNC paths. What's the preferred method of storing the tiles in a setup where there are multiple MapProxy instances hitting the same cache?

One solution would be to configure each instance to use a separate lock directory (this would require a patch for MapProxy) and then configure the load balancer to use sticky sessions (requests from one client will go to the same server).
With this setup it is possible that you generate the same source image twice, but it handles the typical use case of the locks well (e.g. one client requests four tiles from the same meta-tile).

Another option would be to extend the MapProxy locking implementation to use external locking services (distributed lock manager). But this would require to run another server.


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.com
http://mapproxy.org | https://github.com/olt    | @oltonn









More information about the MapProxy mailing list