NationalSecurityAgency / timely

Accumulo backed time series database
https://code.nsa.gov/timely/
Apache License 2.0
380 stars 108 forks source link

Use object pools in WriteNSQPlugin and WriteTimelyPlugin to support multithreaded use #156

Closed billoley closed 7 years ago

billoley commented 7 years ago

When collectd is configured with WriteThreads > 1, the same WriteNSQPlugin object gets used in multiple threads. Because of the design of WriteNSQPlugin, the write method is synchronized negating the benefit of the additional threads.