question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`--concurrency` in `tilelive-copy` doesn't appear to have any affect

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Comments:26 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ianthetechiecommented, Aug 28, 2018

@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!

2reactions
mapsamcommented, Aug 28, 2018

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:

  • tilelive-mapnik allows the user to set via UV_THREADPOOL_SIZE in the environment, otherwise defaults to require('os').cpus().length
  • tilelive-bridge hard codes to cpus() * 2 and is not configurable it seems. Would gladly accept a PR that first tries process.env.UV_THREADPOOL_SIZE and 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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found