<div dir="ltr">On the other hand, I don't think a full tile server and OSM database is needed. We only really need to cover Belgium. If the same style is used as regular OSM, the region outside of Belgium could be passed on to the main OSM server. That should could down severaly on the required disk space for both DB and tiles and the bandwidth.<div><br></div><div>- Gyrbo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 August 2016 at 16:04, Glenn Plas <span dir="ltr"><<a href="mailto:glenn@byte-consult.be" target="_blank">glenn@byte-consult.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You'll need a beafy box to be able to cope with a few clients,  not only<br>
the DB size-on-disk is important, you'll want to cache those tiles as<br>
well. So you will need double of that atleast.<br>
<br>
The most important resources will be CPU and IO (and MEM).  Especially<br>
the rendering part will take CPU/IO, the import and database need memory.<br>
<br>
Importing the whole world means getting atleast 400Gigs in disks space,<br>
on SSD's.  You should also test providers as some really suck on IO.  to<br>
give you an idea, here are some basic benchmark all tested under some<br>
load and on production systems (real world) :<br>
<br>
Type(reads)                             Cached     Non-Cached<br>
<br>
Laptop (2*SSD, 8GB)           10171.68 MB/sec   897.67 MB/sec<br>
Linode (KVM) 4GB (now 8GB)     7881.80 MB/sec   552.31 MB/sec<br>
Linode (KVM hypervisor) 32GB   8458.77 MB/sec   539.90 MB/sec<br>
Rackspace VM (general purpose) 8638.16 MB/sec   298.06 MB/sec<br>
Real server hardware (SATA)    9567.98 MB/sec   258.36 MB/sec<br>
Private cloud(xen hypervisor) 10637.34 MB/sec   220.60 MB/sec<br>
Hetzner VM 32GB                1703.88 MB/sec   153.84 MB/sec<br>
Rackspace VM (8GB classic)     2556.96 MB/sec   100.62 MB/sec<br>
Rackspace standard block store 8105.07 MB/sec    42.89 MB/sec<br>
<br>
Hetzner for example, will not cut it with the 32GB server vs 8GB linode,<br>
the tiles render incredibly slow. To compensate you should add a cache<br>
layer. (I usually do this in nginx, it's the fastest for file serving).<br>
 A linode with 8GB (after free upgrade from 4GB) will cope with<br>
something like benelux sized data and will be about 5 times faster than<br>
Hetzner.<br>
<br>
If you use renderd, you can take advantage of getting more cores, then<br>
you do more rendering in parallel.<br>
<br>
It's a true maze.  Focus is IO + CPU, then get lots of memory, next in<br>
line: try to get SSD's, then finally, make sure you have enough disks space.<br>
<br>
The more memory, the more postgresql can run from memory. That speeds up<br>
things as well.<br>
<br>
I've set up a planet tile server once, and be prepared to import and<br>
index for weeks.  It's just huge.  And the tested machines with the<br>
specs are all too low for planet tile rendering.<br>
<br>
If you get cheap stuff, there is always a catch.  So let performance<br>
determine your price, don't let price determine performance.  Of course<br>
it depends on how deep your pockets are.<br>
<br>
Glenn<br>
<span class=""><br>
<br>
On 09-08-16 13:09, joost schouppe wrote:<br>
> Hi Jonathan,<br>
><br>
> That would be extremely cool. Do you have an idea of the costs involved<br>
> in setting this up for the area you mention and for the whole world?<br>
><br>
> I think if we can have a demo by SOTM, we might find someone to sponsor<br>
> it there.<br>
><br>
> Joost<br>
><br>
> 2016-08-09 12:39 GMT+02:00 Jonathan Beliën <<a href="mailto:jbe@geo6.be">jbe@geo6.be</a><br>
</span>> <mailto:<a href="mailto:jbe@geo6.be">jbe@geo6.be</a>>>:<br>
><br>
>     Hi everyone,____<br>
><br>
>     __ __<br>
><br>
>     Good point indeed.____<br>
><br>
>     __ __<br>
<span class="">><br>
>     It’s not very complicated to generate a custom rendering. For<br>
>     example, I did it for BeNeLux + France + Germany using imposm 3<br>
</span>>     (<a href="https://imposm.org/" rel="noreferrer" target="_blank">https://imposm.org/</a> ) and MapServer + MapProxy for rendering. ____<br>
><br>
>     __ __<br>
<span class="">><br>
>     My rendering use « default » names but I could have used NL name or<br>
</span>>     FR names as needed.____<br>
><br>
>     __ __<br>
<span class="">><br>
>     It works quite well and it’s not too complicated (even with a<br>
>     recurring update). The only problem is the disk space those<br>
>     « tiles » use on the server. It’s already quite big for the small<br>
>     area I cover (BeNeLux + north of France + west of Germany) ; I can’t<br>
</span>>     imagine the number of tiles if we want to cover the whole world.____<br>
><br>
>     __ __<br>
<span class="">><br>
>     I do not know how to organize that but we could have a « Belgium OSM<br>
>     rendering FR » and a « Belgium OSM rendering NL » created, hosted<br>
</span>>     and maintained by « OSM.be ».____<br>
><br>
>     __ __<br>
><br>
>     Jonathan Beliën____<br>
><br>
>     GEO-6____<br>
><br>
>     __ __<br>
><br>
>     *De :*joost schouppe [mailto:<a href="mailto:joost.schouppe@gmail.com">joost.schouppe@gmail.<wbr>com</a><br>
>     <mailto:<a href="mailto:joost.schouppe@gmail.com">joost.schouppe@gmail.<wbr>com</a>>]<br>
>     *Envoyé :* mardi 9 août 2016 11:38<br>
>     *À :* OpenStreetMap Belgium<br>
>     *Objet :* [OSM-talk-be] OSM in French and Dutch<br>
>     *Importance :* Haute____<br>
><br>
>     __ __<br>
><br>
>     Hi,____<br>
><br>
>     __ __<br>
<span class="">><br>
>     Someone asked on Twitter about a rendering of OSM in Dutch and<br>
>     French to avoid the clutter of bilingual names in the standard<br>
</span>>     rendering.____<br>
><br>
>     __ __<br>
><br>
>     <a href="https://twitter.com/iciBrussels/status/762743820358418432" rel="noreferrer" target="_blank">https://twitter.com/<wbr>iciBrussels/status/<wbr>762743820358418432</a><br>
>     <<a href="https://twitter.com/iciBrussels/status/762743820358418432" rel="noreferrer" target="_blank">https://twitter.com/<wbr>iciBrussels/status/<wbr>762743820358418432</a>>____<br>
><br>
>     __ __<br>
<span class="">><br>
>     The French render is easy, OSM France provides it. But how about a<br>
</span>>     Dutch rendering? Do you know of one?____<br>
><br>
>     __ __<br>
<span class="">><br>
>     It might be cool to create a little webmap on OSM.be with the three<br>
>     official languages. If you help me find a Dutch rendering, I can<br>
</span>>     make that (I've just learned the basics about leaflet).____<br>
><br>
>     __ __<br>
<span class="">><br>
>     It looks rather easy to make a style with mapbox, but you need to<br>
>     extract the data through Overpass for exotic languages like Dutch,<br>
>     so it would be a bit of a job to keep that up to date.<br>
</span>>     ____<br>
><br>
>     __ __<br>
><br>
>     -- ____<br>
><br>
>     Joost @____<br>
><br>
>     Openstreetmap<br>
>     <<a href="http://www.openstreetmap.org/user/joost%20schouppe/" rel="noreferrer" target="_blank">http://www.openstreetmap.org/<wbr>user/joost%20schouppe/</a>> | Twitter<br>
>     <<a href="https://twitter.com/joostjakob" rel="noreferrer" target="_blank">https://twitter.com/<wbr>joostjakob</a>> | LinkedIn<br>
>     <<a href="https://www.linkedin.com/pub/joost-schouppe/48/939/603" rel="noreferrer" target="_blank">https://www.linkedin.com/pub/<wbr>joost-schouppe/48/939/603</a>> | Meetup<br>
>     <<a href="http://www.meetup.com/OpenStreetMap-Belgium/members/97979802/" rel="noreferrer" target="_blank">http://www.meetup.com/<wbr>OpenStreetMap-Belgium/members/<wbr>97979802/</a>>____<br>
><br>
><br>
><br>
><br>
> --<br>
> Joost @<br>
> Openstreetmap<br>
> <<a href="http://www.openstreetmap.org/user/joost%20schouppe/" rel="noreferrer" target="_blank">http://www.openstreetmap.org/<wbr>user/joost%20schouppe/</a>> | Twitter<br>
> <<a href="https://twitter.com/joostjakob" rel="noreferrer" target="_blank">https://twitter.com/<wbr>joostjakob</a>> | LinkedIn<br>
> <<a href="https://www.linkedin.com/pub/joost-schouppe/48/939/603" rel="noreferrer" target="_blank">https://www.linkedin.com/pub/<wbr>joost-schouppe/48/939/603</a>> | Meetup<br>
> <<a href="http://www.meetup.com/OpenStreetMap-Belgium/members/97979802/" rel="noreferrer" target="_blank">http://www.meetup.com/<wbr>OpenStreetMap-Belgium/members/<wbr>97979802/</a>><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Talk-be mailing list<br>
> <a href="mailto:Talk-be@openstreetmap.org">Talk-be@openstreetmap.org</a><br>
> <a href="https://lists.openstreetmap.org/listinfo/talk-be" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk-be</a><br>
><br>
<br>
<br>
______________________________<wbr>_________________<br>
Talk-be mailing list<br>
<a href="mailto:Talk-be@openstreetmap.org">Talk-be@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-be" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk-be</a><br>
</blockquote></div><br></div>