<div dir="ltr">For previous attempts to fix it, please look into
<a href="https://github.com/openstreetmap/chef/pull/97">https://github.com/openstreetmap/chef/pull/97</a> - in 2016 delay pools were mindlessly set to unusable limits if your ISP happens to have more than a couple of OpenStreetMap users, and not all the values were raised since then.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 16, 2019 at 8:33 AM Wolfram Schneider <<a href="mailto:wosch@freebsd.org">wosch@freebsd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 10 Apr 2019 at 08:56, Tom Hughes <<a href="mailto:tom@compton.nu" target="_blank">tom@compton.nu</a>> wrote:<br>
><br>
> On 09/04/2019 19:39, Wolfram Schneider wrote:<br>
> > On Mon, 25 Mar 2019 at 18:16, Wolfram Schneider <<a href="mailto:wosch@freebsd.org" target="_blank">wosch@freebsd.org</a>> wrote:<br>
> >><br>
> >> Hi,<br>
> >><br>
> >> I noticed that the standard OSM tile servers<br>
> >> (<a href="http://N.tile.openstreetmap.org" rel="noreferrer" target="_blank">N.tile.openstreetmap.org</a>) are currently slow.<br>
> >><br>
> >> On the site<br>
> >><br>
> >> <a href="https://mc.bbbike.org/mc/" rel="noreferrer" target="_blank">https://mc.bbbike.org/mc/</a><br>
> >><br>
> >> you will see that OSM is the slowest, and takes at least 5 seconds to<br>
> >> get all tiles. The other servers responses in less than a second.<br>
> >><br>
> >> Downloading a single tile is also always slow:<br>
> >><br>
> >> curl <a href="https://b.tile.openstreetmap.org/11/1100/671.png" rel="noreferrer" target="_blank">https://b.tile.openstreetmap.org/11/1100/671.png</a> >/dev/null<br>
> >> % Total % Received % Xferd Average Speed Time Time Time Current<br>
> >> Dload Upload Total Spent Left Speed<br>
> >> 100 41017 100 41017 0 0 7658 0 0:00:05 0:00:05 --:--:-- 7146<br>
> >><br>
> >> it seems that there is a delay of 5 seconds until the tile is fully<br>
> >> delivered, and the download rate is at 7Kbyte/s. I tried this from<br>
> >> different locations (Bay Area, NYC, Germany) - the result is always<br>
> >> the same.<br>
> ><br>
> > it was better in the last week, down to 2-3 seconds. But not it is<br>
> > slow as hell again and takes more than 6.5 seconds to fetch a single<br>
> > tile:<br>
> ><br>
> > time curl -sSf <a href="https://c.tile.openstreetmap.org/11/1100/671.png" rel="noreferrer" target="_blank">https://c.tile.openstreetmap.org/11/1100/671.png</a> >/dev/null<br>
> > real 0m6.587s<br>
> > user 0m0.017s<br>
> > sys 0m0.009s<br>
> ><br>
> > you can repeat the request and it is still slow (5+ seconds).<br>
> ><br>
> > who is in charge of the HTTPS setup for OSM?<br>
><br>
> Using curl like that will be slow beause you are being put<br>
> in a deliberate slow lane when not coming via the web site.<br>
<br>
I first noticed the slow tile servers while visiting the main web site<br>
<a href="https://www.openstreetmap.org" rel="noreferrer" target="_blank">https://www.openstreetmap.org</a> using a browser. It didn't matter which<br>
browser I used, Safari, Firefox, Google Chrome etc. This was more than<br>
4 weeks ago. Changing the user agent does not speedup anything. You<br>
can use an empty user agent, a random user agent ("foobar") or a real<br>
one, same results. If there is a slow lane, then apparently all user<br>
agent are effected.<br>
<br>
Google Chrome reports a page load time of 7 seconds for<br>
<a href="https://www.openstreetmap.org" rel="noreferrer" target="_blank">https://www.openstreetmap.org</a> which is notable slow and you don't want<br>
use in a presentation or show your mom. If you move the slippymap, it<br>
will takes another 5 seconds.<br>
<br>
In contrast, the OpenCycleMap <a href="https://www.opencyclemap.org" rel="noreferrer" target="_blank">https://www.opencyclemap.org</a> loads in<br>
less than a second (!). For me, both tile servers<br>
(<a href="https://a.tile.openstreetmap.org/" rel="noreferrer" target="_blank">https://a.tile.openstreetmap.org/</a> and<br>
<a href="https://a.tile.thunderforest.com/cycle" rel="noreferrer" target="_blank">https://a.tile.thunderforest.com/cycle</a>) are running at the same data<br>
center at <a href="http://hetzner.com" rel="noreferrer" target="_blank">hetzner.com</a> (ping time < 20ms). It is unlikely a provider<br>
issue.<br>
<br>
I run the tests from different locations (US West, US East, Germany,<br>
Finland) and different providers (Yahoo, Alibaba, Hetzner, Vodafone,<br>
Telefonica) - same results. Big providers may have network slowdowns,<br>
but they usually fix this in minutes or hours.<br>
<br>
My gut feeling is that something is wrong with the SSL setup at<br>
<a href="http://tile.openstreetmap.org" rel="noreferrer" target="_blank">tile.openstreetmap.org</a>. Feel free to contact me if you have any<br>
question.<br>
<br>
-Wolfram<br>
<br>
<br>
><br>
> Tom<br>
><br>
> > -Wolfram<br>
> ><br>
> ><br>
> >> PS: if I do not use HTTPS and instead plain old HTTP, it will take<br>
> >> only 0.3 - 0.6 seconds.<br>
> >><br>
> >> Any idea whats wrong with the HTTPS setup for the tile servers?<br>
> >><br>
> >> -Wolfram<br>
> >> --<br>
> >> Wolfram Schneider <wosch@FreeBSD.org> <a href="https://wolfram.schneider.org" rel="noreferrer" target="_blank">https://wolfram.schneider.org</a><br>
> >> Planet.osm extracts: <a href="https://extract.bbbike.org" rel="noreferrer" target="_blank">https://extract.bbbike.org</a><br>
> >> BBBike Map Compare: <a href="https://mc.bbbike.org/mc" rel="noreferrer" target="_blank">https://mc.bbbike.org/mc</a><br>
> --<br>
> Tom Hughes (<a href="mailto:tom@compton.nu" target="_blank">tom@compton.nu</a>)<br>
> <a href="http://compton.nu/" rel="noreferrer" target="_blank">http://compton.nu/</a><br>
-- <br>
Wolfram Schneider <wosch@FreeBSD.org> <a href="https://wolfram.schneider.org" rel="noreferrer" target="_blank">https://wolfram.schneider.org</a><br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div>Darafei Praliaskouski</div><div>Support me: <a href="http://patreon.com/komzpa" target="_blank">http://patreon.com/komzpa</a></div></div></div></div>