Brain dump: OSM exports into the future #313
Replies: 1 comment 1 reply
|
Hey @spwoodcock, Wanted to post an update on my understanding of the plan here, partly to make sure I actually have it right. Today, raw-data-api answers every export request, small or large, out of its own PostGIS database, kept in sync with OSM every 2 minutes via osm2pgsql. That's the expensive part this whole plan is trying to get away from: running a full, always-on copy of planet-scale OSM data just in case someone asks for a small export. The plan splits exports into two genuinely different problems instead of one problem at two sizes: For small, everyday requests, hand them off to PostPass instead. It's a separate, free, public service Geofabrik already runs and maintains, and it already answers exactly this kind of query over plain HTTP. No giant database needed on our side at all. For country-scale requests, that's too much to put on a shared public service like PostPass without hurting everyone else using it, so that stays on infrastructure HOT controls directly: read the full planet.pbf file with oex and DuckDB, run as jobs on the Kubernetes cluster through Windmill. On Step 1 specifically: #304 and #305 build the actual PostPass query-building package. As of this week they're merged locally with the full test suite passing (42/42), and testing PostPass end to end (not just the unit tests) turned up a real bug: wrap_postpass_geojson strips the geom column PostPass needs to auto-detect the geometry, so every wrapped query comes back with a 400. Ken and I have been working through it on #305, he's reproducing it on his end now with the exact requests I sent him. There's also a design question still open once that package is solid: should it stay a standalone package installed wherever it's needed, or fold into osm-rawdata as one of several interchangeable export backends per issue #50. Pulling in psycopg for something that only ever needs PostPass's pure HTTP path seems like real unnecessary weight, so modularity looks like the better direction to me, but I know that's not settled. Let me know if I've still got anything backwards. Best regards, |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@dulcetberg plans to do some volunteering, to assist with our OSM Export pipelines.
The following is a rough brain dump of info.
Context
Plan
Step 1: General Exports via PostPass
Step 2: Export Tool Revamp
Step 3: Country Exports
oexexport, as described in the linked issue above.Step 4: Tasking Manager Data Exports
All reactions