go-spatial / tegola

Tegola is a Mapbox Vector Tile server written in Go
http://tegola.io/
MIT License
1.28k stars 194 forks source link

Need for speed #737

Closed adriantabirta closed 3 years ago

adriantabirta commented 3 years ago
  1. Upgrade please to http2 for speed (30-40% faster response)
  2. Is there a way to cache hole country before start server in redis?
ARolek commented 3 years ago

@adriantabirta

  1. I believe Go's http package automatically supports HTTP2. The key is supplying an SSL cert in your tegola config. Take a look at: https://github.com/go-spatial/tegola/tree/v0.13.x/server#config-properties
  2. Yes, you can use the tegola cache seed command. The doc formatting looks a bit off, but here's an overview: https://tegola.io/documentation/cache-seeding-and-purging/. You will want to use the --bounds command to inform the seeder what area you want to seed.
adriantabirta commented 3 years ago

@ARolek Thanks.

adriantabirta commented 3 years ago

It runs but, for zoom <8 it loads very slow or never (tested localy). Is there any option to raster tiles?

ARolek commented 3 years ago

@adriantabirta I would need a lot more context. Usually when tiles are taking a long time to process there could be serverl culprets

It would be great to get some of this into the docs. ;-)

adriantabirta commented 3 years ago

@ARolek wow, a lot of thinks to know, I just use PostGIS and try to build a POC iOS app using MapBox iOS SDK, it runs but slow, zoom I use 0-20 for all. Also not all data is displayed (street numbers, green area, lakes...) Would be nice if you have 30 min to talk on a call (just to figure out what I am doing wrong and help me to optimize server PLEASE).

adriantabirta commented 3 years ago

@ARolek

ARolek commented 3 years ago

@adriantabirta what version of Postgres / PostGIS are you using? You would probably see some performance gains from using ST_AsMVT: https://github.com/go-spatial/tegola/tree/v0.13.x/mvtprovider/postgis

ARolek commented 3 years ago

@adriantabirta if your questions have been answered, please close this issue.

ARolek commented 3 years ago

@adriantabirta I'm closing this issue for now, but if you need additional help feel free to re-open it.