SlideShare una empresa de Scribd logo
1 de 13
Descargar para leer sin conexión
Distributed
   bulk rendering
on the Amazon cloud

           Dr. Raphael Volz
  nogago GmbH, Gilching, Germany
State of the map, Girona, July 9, 2010
Another 6 years into the project, the
      planet will have 5 TB (compressed).
                                           Hypothesis




        July 2010
         10 GB

                                                        July 2016
                                                          5 TB


Distributed bulk rendering on the Amazon cloud
OSM is power law distributed with
     top 10% covering only 1 ‰ of planet
                                          Observation

                                                                              Top 100 6°x6° areas




                                                 Size (Bytes GZ-compressed)
                                                                                 # 1 / 1 GB
                                                                               West 6 South 48


                                                                                     # 2 / 0,6 GB
                                                                                   West -84 South 30




                                                                                  6x6 splits by size

Distributed bulk rendering on the Amazon cloud
Lower barriers of entry and increase the
            number of eyes !
                             How to achieve the 5 TB planet




Distributed bulk rendering on the Amazon cloud
Ride the smartphone wave !
                                                Smartphones in use (in Mio.)




Source: Nogago analysis of Juniper Research, Gartner Spring 2009 forecasts
Note: Assumption: Devices sold are in use for two years

Distributed bulk rendering on the Amazon cloud
For example nogago outdoor is a smartphone app
    that accompanies your outdoor activities




          Plan                                                 Share
        activities                                          experiences
                                    • View maps and
• Download                            guides anytime     • View tracks
  Maps                                and offline        • View photos
• Choose from                       • Record and           (geo-referenced)
  400.000 tracks                      follow Tracks      • Share with
• Plan new                                                 family, friends
  tracks                                    Enjoy the
                                                           or the world !
                                            Outdoors !
 Distributed bulk rendering on the Amazon cloud
Our customers will download offline maps
          for regions of choice

                                                 Raster map
                                                   POI DB
                                                  Ways DB




                                                   Max.
                                                 200 MB
                                                 per 1°x1°




Distributed bulk rendering on the Amazon cloud
Generating offline maps takes
                        significant time and space
                                 Using the OSM map rendering tool chain…


                    Get
                                                                    Load into                      Render
XML                planet                                                                                           PNG
                                                                    Database                        Maps
                  osm.bz2

                      wget                                          osm2pgsql                      mapnik

                                                    … takes space and time …
         Zoom Level 15                                            1 Billion                   5             621
        (1:14000 @eq.)                                              Tiles                    TB             Days
         Zoom Level 18                                          68 Billion                   350             109
         (1:1700 @eq.)                                            Tiles                      TB             Years
  Assumptions: 16 KB per Tile on average, 20 Tiles per Second to render on modern hardware

  Distributed bulk rendering on the Amazon cloud
Basic approach to parallelization using
               Amazon cloud
  Render
  Image                                                    Nogago.com
Ubuntu 10.04               Start     Msg.                               Msg.     Shut off
  Apache                Instance     started                         finished    instance

Postgres 8.4               User                                                             Amazon EC2
 osm2pgsql                 Data

  osmosis
  mapnik                                       Render Image
TimKay‘s aws                         Get
                                    planet
                                               Load into    Render       Store
                                               Database      Maps

mapnik-OSM                         osm.bz2
                                                                         on S3
Nogago tools
                                                                                              Amazon EC2
                                                                                              runs images
  Rarely
 Changing
                                                                                              Amazon S3
 Content
                                                                                              stores files
 Total: 3 GB                                               Amazon S3
 Note: UD = User Data, thanks to Eric Hammond (http://ec2-run-user-data.notlong.com)
 Distributed bulk rendering on the Amazon cloud
To make things fit consider corner cases

                                                                     Example:
                                                                       1 x1
                                                                  to be rendered
                                                                 at zoom level 10

                                                                 1,352 x 1,352
                                                                  to be loaded
                                                                 into database

                                                                 190% overhead
                                                                 at zoom level 10



Data to load into Postgres                 Area to be rendered
(depends on zoom levels)                       by mapnik

  Distributed bulk rendering on the Amazon cloud
Optimization: Do not always get planet
       Prepare chunks periodically
• Two step approach, first:
    – Download planet, periodically                 1 Day
                                                 to process
    – Split into chunks                           and copy
                                                    on S3
    – Store chunks on EC2
• Then, many rendering images
    – Get appropriate chunk from S3                Max.
    – Load (parts of) chunk into Postgres         3 hours
                                                    per
    – Render from Postgres                         1 x1




Distributed bulk rendering on the Amazon cloud
What have we learned ?

                         Rendering the world on
                              zoom level 15

                 in 28 hours instead of 621 days
                        ( 2 ‰ of the time)

                   By distributing bulk rendering
                        on the Amazon cloud

Distributed bulk rendering on the Amazon cloud
EU FP7                               Thank
 project partner                            you !
   sought for
mapping-related
project proposal




Distributed bulk rendering on the Amazon
                   cloud

Más contenido relacionado

La actualidad más candente

Cry Engine2 Features
Cry Engine2 FeaturesCry Engine2 Features
Cry Engine2 Features
guestf5fdc7
 
ILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yano
ILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yanoILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yano
ILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yano
ILOAHawaii
 

La actualidad más candente (8)

Cry Engine2 Features
Cry Engine2 FeaturesCry Engine2 Features
Cry Engine2 Features
 
Voxel based global-illumination
Voxel based global-illuminationVoxel based global-illumination
Voxel based global-illumination
 
2016 asprs track: overview and user perspective of usgs 3 dep lidar by john ...
2016 asprs track:  overview and user perspective of usgs 3 dep lidar by john ...2016 asprs track:  overview and user perspective of usgs 3 dep lidar by john ...
2016 asprs track: overview and user perspective of usgs 3 dep lidar by john ...
 
Lighting the City of Glass
Lighting the City of GlassLighting the City of Glass
Lighting the City of Glass
 
ILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yano
ILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yanoILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yano
ILOA Galaxy Forum Europe 2013 - solar system exploration - hajime yano
 
Canteeen
CanteeenCanteeen
Canteeen
 
Taking Killzone Shadow Fall Image Quality Into The Next Generation
Taking Killzone Shadow Fall Image Quality Into The Next GenerationTaking Killzone Shadow Fall Image Quality Into The Next Generation
Taking Killzone Shadow Fall Image Quality Into The Next Generation
 
Rendering Techniques in Rise of the Tomb Raider
Rendering Techniques in Rise of the Tomb RaiderRendering Techniques in Rise of the Tomb Raider
Rendering Techniques in Rise of the Tomb Raider
 

Más de loffenauer (6)

Mobile Reiseführer für Ihre Destination(en) - Vorteile und Möglichkeiten Mobi...
Mobile Reiseführer für Ihre Destination(en) - Vorteile und Möglichkeiten Mobi...Mobile Reiseführer für Ihre Destination(en) - Vorteile und Möglichkeiten Mobi...
Mobile Reiseführer für Ihre Destination(en) - Vorteile und Möglichkeiten Mobi...
 
Office 2.0
Office 2.0Office 2.0
Office 2.0
 
innoraise - know who knows
innoraise - know who knowsinnoraise - know who knows
innoraise - know who knows
 
Aktuelle Trends und Technologien für Soziale Netzwerke in Unternehmen
Aktuelle Trends und Technologien für Soziale Netzwerke in UnternehmenAktuelle Trends und Technologien für Soziale Netzwerke in Unternehmen
Aktuelle Trends und Technologien für Soziale Netzwerke in Unternehmen
 
Change Paths In Reasoning !
Change Paths In Reasoning !Change Paths In Reasoning !
Change Paths In Reasoning !
 
2007 09 10 Fzi Training Groovy Grails V Ws
2007 09 10 Fzi Training Groovy Grails V Ws2007 09 10 Fzi Training Groovy Grails V Ws
2007 09 10 Fzi Training Groovy Grails V Ws
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

nogago distributed bulk rendering

  • 1. Distributed bulk rendering on the Amazon cloud Dr. Raphael Volz nogago GmbH, Gilching, Germany State of the map, Girona, July 9, 2010
  • 2. Another 6 years into the project, the planet will have 5 TB (compressed). Hypothesis July 2010 10 GB July 2016 5 TB Distributed bulk rendering on the Amazon cloud
  • 3. OSM is power law distributed with top 10% covering only 1 ‰ of planet Observation Top 100 6°x6° areas Size (Bytes GZ-compressed) # 1 / 1 GB West 6 South 48 # 2 / 0,6 GB West -84 South 30 6x6 splits by size Distributed bulk rendering on the Amazon cloud
  • 4. Lower barriers of entry and increase the number of eyes ! How to achieve the 5 TB planet Distributed bulk rendering on the Amazon cloud
  • 5. Ride the smartphone wave ! Smartphones in use (in Mio.) Source: Nogago analysis of Juniper Research, Gartner Spring 2009 forecasts Note: Assumption: Devices sold are in use for two years Distributed bulk rendering on the Amazon cloud
  • 6. For example nogago outdoor is a smartphone app that accompanies your outdoor activities Plan Share activities experiences • View maps and • Download guides anytime • View tracks Maps and offline • View photos • Choose from • Record and (geo-referenced) 400.000 tracks follow Tracks • Share with • Plan new family, friends tracks Enjoy the or the world ! Outdoors ! Distributed bulk rendering on the Amazon cloud
  • 7. Our customers will download offline maps for regions of choice Raster map POI DB Ways DB Max. 200 MB per 1°x1° Distributed bulk rendering on the Amazon cloud
  • 8. Generating offline maps takes significant time and space Using the OSM map rendering tool chain… Get Load into Render XML planet PNG Database Maps osm.bz2 wget osm2pgsql mapnik … takes space and time … Zoom Level 15 1 Billion 5 621 (1:14000 @eq.) Tiles TB Days Zoom Level 18 68 Billion 350 109 (1:1700 @eq.) Tiles TB Years Assumptions: 16 KB per Tile on average, 20 Tiles per Second to render on modern hardware Distributed bulk rendering on the Amazon cloud
  • 9. Basic approach to parallelization using Amazon cloud Render Image Nogago.com Ubuntu 10.04 Start Msg. Msg. Shut off Apache Instance started finished instance Postgres 8.4 User Amazon EC2 osm2pgsql Data osmosis mapnik Render Image TimKay‘s aws Get planet Load into Render Store Database Maps mapnik-OSM osm.bz2 on S3 Nogago tools Amazon EC2 runs images Rarely Changing Amazon S3 Content stores files Total: 3 GB Amazon S3 Note: UD = User Data, thanks to Eric Hammond (http://ec2-run-user-data.notlong.com) Distributed bulk rendering on the Amazon cloud
  • 10. To make things fit consider corner cases Example: 1 x1 to be rendered at zoom level 10 1,352 x 1,352 to be loaded into database 190% overhead at zoom level 10 Data to load into Postgres Area to be rendered (depends on zoom levels) by mapnik Distributed bulk rendering on the Amazon cloud
  • 11. Optimization: Do not always get planet Prepare chunks periodically • Two step approach, first: – Download planet, periodically 1 Day to process – Split into chunks and copy on S3 – Store chunks on EC2 • Then, many rendering images – Get appropriate chunk from S3 Max. – Load (parts of) chunk into Postgres 3 hours per – Render from Postgres 1 x1 Distributed bulk rendering on the Amazon cloud
  • 12. What have we learned ? Rendering the world on zoom level 15 in 28 hours instead of 621 days ( 2 ‰ of the time) By distributing bulk rendering on the Amazon cloud Distributed bulk rendering on the Amazon cloud
  • 13. EU FP7 Thank project partner you ! sought for mapping-related project proposal Distributed bulk rendering on the Amazon cloud