Comments (3)
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.
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.
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)
- ERROR:root:mrf_insert tool cannot be found. - Exiting. HOT 1
- what's this picture? notr error but HOT 3
- Serving data in the geostationary projection HOT 8
- How can I use this repository? HOT 2
- update boto3 (onearth/docker/deps /requirements.txt) HOT 1
- Error in oe_generate_legend.py creating legend for xml with one value in final colormap entry
- Error in oe_generate_legend.py creating legend for xml with one value in final colormap entry HOT 2
- Ascii error with oe_generate_legend.py HOT 1
- Invert tick labels for display on dark background in oe_generate_legend.py HOT 2
- How could I get right tile (WGS 84 / Lat-lon / Geographic / EPSG:4326) by long, lat and zoom? HOT 12
- My WMS subdaily layer problem HOT 7
- [mrfgen] mrf_merge=True not applying nodata value
- oe_utils missing in mrfgen.py HOT 1
- mrfgen creates empty files HOT 3
- [oe_configure_layer] 'timeElements' is not defined
- WFS time filtering and map variable HOT 3
- [ Documentation ] vectorgen XML file : output_format HOT 1
- OE2 date / roadmap HOT 3
- Question: comparison to geoserver? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onearth.