Allow high volume of pings in the modular input
I'm thinking I should migrate the threading functions into the base class.
What I could move:
- Thread limiting check
- Threads list
- Thread limit var
- Thread cleanup function
- App config getter system
input_template = '''
hosts = 192.168.0.%s
interval = 30s
runs = 1
inputs = ''
for i in range(1, 201):
inputs += input_template % (i, i)
f = file('/Users/lmurphey/Desktop/inputs.conf', 'w')
- The current design multi-threads the inputs but not the hosts within a single input
- I see lots of logs noting that the thread limit was reached. This happens because the input goes over each input and tries to check the thread limit again.
According to #2135, I need to support about 8 inputs per second.
- Status changed from New to Closed
- % Done changed from 0 to 100
This input was able to handle a thread limit of 200 and was able to keep up with 200 inputs that were set to run every 30 seconds. The memory use is around 37 MB and I am seeing around 900 results per minute (15 per second).
Also available in: Atom