`--concurrency` in `tilelive-copy` doesn't appear to have any affect
See original GitHub issueIt appears (to me) that the --concurrency argument to tilelive-copy doesn’t have any affect. No matter what value I put in top shows that 4 node processes are running, regardless if I’m using a machine with 4 CPU cores (my desktop) or a server with 8. Regardless of the --concurrency value, I get approximately the same throughput when doing a copy. Changing --concurrency to ten times it’s old value doesn’t appear to increase (or decrease) the throughput.
Is there something I’m missing to get increased concurrency?
Issue Analytics
- State:
- Created 7 years ago
- Comments:26 (5 by maintainers)
Top Results From Across the Web
192 days to build Europe tiles - openmaptiles - Stack Overflow
This is one of my scripts, I'm merging it all to tmp and checking if there is still a tilelive-copy in progress on...
Read more >mapbox - Errors encountered executing: tessera tmstyle
Tessera (a Tilelive implementation) is supposed to serve .tm2 files ... .tm2 the export completes without error but items are not present.
Read more >BURBANK POLICE DEPARTMENT - ACLU
Officers shall not take any police action that restricts the freedom ofany individual based solely on an ALPR alert, unless validated.
Read more >Ubuntu Manpage: tilelive-copy - copy between tile stores
Copy tiles from a source tile store URI to a destination tile store URI. OPTIONS. • --job, -j Job file (will be resumed...
Read more >rewriting logic, action calculi and tile logic - CiteSeerX
tion of its concurrent behaviour proposed in [54]. Afterwards, we present an encoding of the untyped -calculus [3] into rewriting logic; it is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mapsam thanks so much for going out of your way to look into this. I’ll give this a shot this AM (Korean time) and report back!
Thanks for the info- it’s helpful to know which tilelive plugins you’re using since this module only connects the interfaces. Upon quick glance it looks like this could be fixed in the tilelive-bridge & tilelive-mapnik modules, which both use mapnik-pool (which sets threadpool size based on number of cpus here). Each module sets the size differently:
UV_THREADPOOL_SIZEin the environment, otherwise defaults torequire('os').cpus().lengthcpus() * 2and is not configurable it seems. Would gladly accept a PR that first triesprocess.env.UV_THREADPOOL_SIZEand backs up to making a best guess.My suggestion would be to test changing that number in whichever way makes sense for you to see if that helps speed things up for you. @ianthetechie Glad to hear you’re working on something better, feel free to share your work or backport fixes in the tilelive modules!