Closed dmitrykinakh closed 3 years ago
Multi-threading and nodes are two different things. You need nodes for for producing tiles on multiple machines. So if you have 3 machines, you start t-rex on these nodes with --nodes 3 --nodeno 0
, --nodes 3 --nodeno 1
and --nodes 3 --nodeno 2
. Each machine produces 1/3 of the tiles.
Before 0.13.0, using multiple nodes on a single machine was a trick to parallelize tile production. But since 0.13.0 t-rex automatically uses one thread per core.
Thanks a lot @pka. I checked https://t-rex.tileserver.ch/doc/generate/ for information on multithreading and also fell for the "--nodes" option. Adding this information to the help / reference might be helpful :)
Hi there,
I want to write about a possible issue with generating tiles using several nodes. Please take a look at commands I'm executing and stats (count of files I'm receiving each time).
According to https://t-rex.tileserver.ch/doc/generate/#cache-generation I've tried to generate a single zoom level (14) for my project using 12 threads. For that you can I've used the command you see below.
As a result, I've got 98 objects, 2.3 MB.
After that, I've tried more threads - 40
As a result, I've got 34 objects, 919.1 KB.![image](https://user-images.githubusercontent.com/8025637/122022528-58ff9000-cdcf-11eb-86dc-933f2afa6ca2.png)
Above is an example of generating tiles with 4 nodes.
I was confused as noticed my tiles are incomplete and contain holes if I use multiple nodes for a generation.
So, I've decided to do one more attempt and generate that zoom level one more time but without specifying --nodeno and --nodes parameters.
As a result, I've got 728 objects, 28.9 MB and there were no holes for the area I was generating.![image](https://user-images.githubusercontent.com/8025637/122024659-4ede9100-cdd1-11eb-8a92-093a414957bb.png)
So, could you please let me know if that Trex has an issue or I'm executing multi-threading in the wrong way?