<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello!</p>
<p>Please forgive my bad English, I live in France.</p>
<p>Summary: how to cache - with Varnish - Open Street Map PNG images
without overloading OSM tiles servers?</p>
<p>The question seems related to Varnish backends and
".max_connections" parameter.</p>
<p>A far as I know, if ".max_connections" is reached for a backend,
Varnish sends 503 http errors.</p>
<p>I understand the logic but would it be possible to queue these
incoming requests and wait until the selected backend is really
available?<br>
</p>
<pre>backend a_tile {
.host = "a.tile.openstreetmap.org";
.port = "80";
.max_connections = 2;
}</pre>
<p>If Varnish have, let's say 100 incoming requests in 1 second, how
can I handle this "spike" without overloading the backend?</p>
<p>All my google searches were "dead ends" so I think the question
is poorly formulated.</p>
<p>Note 1 : using [random|round_robin] directors could be a
temporary solution<br>
Note 2 : libvmod-dynamic is great but does not limit backend
simultaneous connexions</p>
<p>Many thanks for your help!<br>
</p>
<pre class="moz-signature" cols="72">--
tranxene50
<a class="moz-txt-link-abbreviated" href="mailto:tranxene50@openvz-diff-backups.fr">tranxene50@openvz-diff-backups.fr</a></pre>
</body>
</html>