-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Challenges and questions from @stevo01 #26
Comments
My answers:
I've found out that turning off autovacuum in PostgreSQL speeds up import process by ~13% and switching to PostgreSQL 11 instead od 10 speeds up by another ~3%. Turning off autovacuum is quite simple, see this commit: pot-gov-pl@662ce85 (removing 4 lines of Switching to PostgreSQL 11 is here: pot-gov-pl@110a540 (alas, it does not include edits in Makefile). There may be other ways, but I did not focus on finding them.
I haven't figured it out yet. This is a topic that I will have to deal with, because I have to update the server in the organization for which I work.
Docker is the solution.
You can monitor the consumption of resources by the container and check the logs. I use Portainer for container management and I can easily do some monitoring and log reading there. I think there are probably other container management applications that can manage it even better. Actually, the reason for some of my changes in the container prepared by @Overv , was just that while monitoring the server I saw that something works very badly when network traffic increases for a short time (eg. 2000 users in the same time for 5 minutes). 8+ threads got allocated and there was a constant 100% load on all cores even after traffic decreased.
I have been maintaining the tile server for at least half a year. However, I was interested only in the area of my country, I did not undertake to serve a larger area.
Of course! Let's use the GitHub public space for this, so that others can use it and join our efforts. |
Thanks for feedback! Some month ago I followed the instructions from switch2osm and was able to setup a tile server in a virtual machine for test purposes). I tested the docker container from Overv yesterday and it worked like “plug and play” and saves a lot of time. In the future I would like to use the solution for "whole planet" and I think the container is a good base to start. note: I added some benchmark test results from osm imports on my machine und instructions for the usage of the container which could be useful for other users. |
just for information: logfile import europa latest
|
The text was updated successfully, but these errors were encountered: