Comments (6)
8 minutes is unexpectedly high. Usually, the slowest part is the database query. I'd recommend logging slow queries in postgresql to see if anything comes up. If that is indeed the slow part, run an explain analyze on it; maybe it's missing an index.
from vector-datasource.
Ok cool, I'll try to gather some log data & figure out what's taking so long. I am running this on a pretty fast machine with around 24 cores. What sort of time should I expect for rendering a single tile?
from vector-datasource.
The slowest tiles should be on the order of seconds. When I run your curl example, it kicks back right away for me.
curl -s http://localhost:8080/buildings/16/19293/24641.mvt > /dev/null 0.01s user 0.00s system 4% cpu 0.183 total
Btw, I do have data in that tile, but I've loaded a nyc extract.
from vector-datasource.
Awesome, I'd like to get there!
from vector-datasource.
Okay, so it turns out it was a connection issue. I threw in a bunch of prints & found it was hanging on a connect call for this query: https://github.com/mapzen/TileStache/blob/integration-1/TileStache/Goodies/VecTiles/server.py#208-209.
So then diggin in a little, I found this: host – database host address (defaults to UNIX socket if not provided)
- from psycopg2.connect documentation.
mapzen/vector-datasource/tilestache.cfg sets the host
to localhost
on all the dbinfo sections & causes super slow connections somehow, atleast with my current postgresql config. Not sure. But after removing the host & port entries in my config, it's lightning fast.
time curl http://localhost:5000/buildings/16/0/6.mvt
real 0m0.269s
from vector-datasource.
Glad that you were able to resolve it. Thanks for the update.
from vector-datasource.
Related Issues (20)
- Consider applying grid thinning to more places zooms
- Remove road properties at zoom 14 and 15 HOT 1
- Excessive road names at zoom 15 HOT 1
- Landuse layer min_zooms too detailed and prevents merging
- Geometry shifts substantially between NE and OSM in boundaries layer
- French regions and province boundary lines show too early HOT 1
- Upgrade to NE v5.1.0 HOT 1
- Add top-level-countries DBF from Natural Earth HOT 5
- Add kind_detail for country places HOT 2
- Always x-check country labels against Natural Earth HOT 2
- Add TLC POV from Natural Earth HOT 1
- Export label x and y values from TLC and ISO country tables HOT 1
- Switch to NE for country labels
- High zoom kind=unrecognized country label bug HOT 1
- Road simplification
- For buildings, add root_id = id HOT 1
- Python 3 support
- Rename `disputed_relation_overpass_query.txt` to `disputed_relation_overpass_query.overpassql` HOT 6
- Add to Taginfo Projects
- Problem with min_zoom in Earth layer in v1.9.0 HOT 9
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 vector-datasource.