[MapProxy] Tile Locks

Keith Moss Keith.Moss at landgate.wa.gov.au
Sun Feb 24 19:40:25 PST 2013


Hi Oliver,

I'll bear the separate lock directories idea in mind, thanks.

We've since reduced ourselves to a single server running MapProxy, but in the future I think we'll end up with several different instances anyway.

Cheers,

Keith

__________________________________
Keith Moss
Satellite Remote Sensing Services
Operations
Landgate
65 Brockway Road, FLOREAT WA 6014
PO Box 741 Wembley WA 6913
Ph. (08) 9387 0332 | Fx. (08) 9383 7142
keith.moss at landgate.wa.gov.au
http://www.landgate.wa.gov.au/

________________________________________
From: Oliver Tonnhofer [olt at omniscale.de]
Sent: Thursday, 21 February 2013 5:59 PM
To: Keith Moss
Cc: mapproxy at lists.osgeo.org
Subject: Re: [MapProxy] Tile Locks

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
This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate’s liability is limited to re-supplying affected attachments.


More information about the MapProxy mailing list