|
|
|
|
|
by dzello
3763 days ago
|
|
Great post! Makes a lot of sense to move I/O to a thread pool, good thinking :) Now you can control max topology I/O+concurrency not just with Storm but also with thread pool size, yeah? Another question - do you monitor how long a bolt blocks each time waiting for a thread from the pool to be given to it? If the pool has available threads it's instant but if the pool is saturated (backed up on an I/O slowdown for example) it would be good to know? |
|
This also avoids the overhead of any sort of locking to wait for a thread to be free. Since the number of bolt executors will always be much less than the number of threads in the IO pool it doesn't add too much the concurrency overall. Hope that makes sense.