Giter Club home page Giter Club logo

Comments (3)

jtroberts avatar jtroberts commented on July 29, 2024

We include support for serving tiles from S3 in OnEarth 2.0 via mod_mrf. It is still a work in progress. We found the performance with serving tiles from S3 to not be as good as a traditional file system, but we're looking at ways to improve. Any suggestions are welcome.

from onearth.

lucianpls avatar lucianpls commented on July 29, 2024

Take a look at https://github.com/lucianpls/mod_mrf, which depends on https://github.com/lucianpls/mod_receive. You will also need to configure mod_proxy as a reverse proxy for the S3 or swift storage.
That configuration will allow serving tiles directly from an MRF stored in the object store, WMTS compatible. For performance reasons, the MRF index file should still be local.
In this configuration it does one S3 request per tile request, so the latency and costs are predictable.

As you note, it will be quite a bit slower, at least from S3. The server then becomes a reverse proxy that translates the tile requests into range requests, hiding the storage mechanism. Scaling depends on what you mean by it:

  • Latency of serving tiles from fast direct storage is a couple ms when the server is busy and the OS disk cache is warm. With S3, the latency average is 60-70 ms, maybe a bit less when the server is busy.
  • As a result, a single server using local storage can sustain 2 to 4 times more requests than a S3 based EC2 machine. We are talking 50K req/sec compared with about 10K, either way unlikely to be seen in the real world.
  • Of course, load-balanced EC2 machines could be added, to improve the throughput. And add CloudFront or any other CDN caching, in front of the tile server, to improve latency.

Overall, it is hard if not impossible to beat the performance of a server with local storage. The only thing better with S3 is the available storage space.

from onearth.

PacoDu avatar PacoDu commented on July 29, 2024

I was speeking of scaling in terms of storage, this could be useful for archive of oldest tiles and serve the latest ones from a local storage. Thanks I'll take a look at mod_mrf and mod_receive !

from onearth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.