You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
Per #23, I think it'd be nice if all metrics followed a path that didn't get bottlenecked by worker_pool.
I didn't do any testing when I put the pool in -- we were just writing a bunch of other code that needed to be pooled to constrain output rate and it felt natural to write the same pattern.
My first thought is to drop the pool and just have a single gen_server sending all the UDP traffic. The reason to keep the pool is if the UDP send was a bottleneck. I'll try to do a little benchmarking of that this weekend if nobody beats me to it.
The text was updated successfully, but these errors were encountered:
I will not beat you to it, but I think it should be useful to understand why wpool was a bottleneck--was it because the pool became exhausted so requests got queued up waiting for the next available worker? Looks like it is hardcoded to 10 workers in the pool. Perhaps boosting that number is a simpler solution.
From what I've seen, the bottleneck really is with checking workers in & out constantly out of the pool. Not entirely sure wpool was designed for such lightweight work; here the "actual work" requires less processing than the wpool overhead.
@wk8 @JoshRagem
Per #23, I think it'd be nice if all metrics followed a path that didn't get bottlenecked by worker_pool.
I didn't do any testing when I put the pool in -- we were just writing a bunch of other code that needed to be pooled to constrain output rate and it felt natural to write the same pattern.
My first thought is to drop the pool and just have a single gen_server sending all the UDP traffic. The reason to keep the pool is if the UDP send was a bottleneck. I'll try to do a little benchmarking of that this weekend if nobody beats me to it.
The text was updated successfully, but these errors were encountered: