I am building a tile server that will be serving map tiles in Ontario, Canada only. The PBF file is about 680MB.

I will be using DigitalOcean's droplets to host my tiles. I have 2 options:

$40 Standard Droplet

  • 4 CPUs
  • 8GB RAM

$40 Optimized Droplet

  • 2 Dedicated CPUs
  • 4GB RAM

For serving map tiles in Ontario alone, should I go for more RAM, or superior processing power?

asked 23 Feb, 20:53

valachio's gravatar image

valachio
413712
accept rate: 0%

edited 23 Feb, 20:54


It's a bit of a "how long is a piece of string" question, because you don't say what sort of tiles you're hosting (e.g. vector or raster) and what map style, whether you're trying to keep it up to date, and how much traffic you expect.

To give an example, this server has a 1.1Gb .pbf loaded into it, has a probably more detailed (raster) map style than OSM Carto, and fitted nicely into a 4GB RAM, 2CPU, 100Gb SSD server before I upgraded. It doesn't get much traffic, which may be relevant. If you're rendering raster tiles using OSM's standard style I'd expect you'd fit into that spec (probably into the 80GB SSD that comes with your "standard" droplet) - choose fast disk over fast CPU. $40 per month seems a bit on the high side compared to European providers, though - something like €9 should cover what you want.

permanent link

answered 23 Feb, 21:23

SomeoneElse's gravatar image

SomeoneElse ♦
32.0k63327747
accept rate: 15%

Sorry about the lack of details. I'm not experienced with operating map servers (I had no idea the difference between raster and vector tiles until you mentioned it).

My goal is to replicate the performance of Google Maps (as I am switching over from using Google Maps API). So I will be using raster tiles along with satellite tiles (users will be able to switch between map & satellite view).

Our site's current traffic is about 5,000 users per day, and about 8,000 sessions per day.

I plan to create custom styling as I am not a big fan of OSM's default style.

I have no issues paying a bit more every month as this map server is supported by a business.

The server you linked is quite nice. It is basically what I'm looking for, except I just want the area of Ontario, Canada (about half the size of yours).

(23 Feb, 21:39) valachio

By the way. Was there a particular tutorial you used to build your map server? I am using this one - https://switch2osm.org/manually-building-a-tile-server-16-04-2-lts/

(23 Feb, 21:40) valachio
4

Be aware that OSM does not have satellite imagery. You will either have to use tiles from a different server, or host them yourself; hosting high-resolution satellite imagery will likely use several 100 GB for Ontario.

(23 Feb, 21:47) Frederik Ramm ♦
2

Pretty similar - I'm following this, although obviously ignoring the virtualbox stuff as you don't need to worry about that with a cloud server.

(23 Feb, 21:51) SomeoneElse ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×224
×154

question asked: 23 Feb, 20:53

question was seen: 355 times

last updated: 23 Feb, 21:51

powered by OSQA