This change fixes how we send stats to the pulse server. This is done by
not serially sending stats on the same task that we extract events from.
The reason for this is that if the event buffer (stats_sender) gets full
it will block namespace create requests.
With this change, we now submit stats http requests off the main stats
task and restrict the stats sending to 128 concurrent requests. This
will allow us to accept more create namespace requests and efficiently
send stats.
This change fixes how we send stats to the pulse server. This is done by not serially sending stats on the same task that we extract events from. The reason for this is that if the event buffer (stats_sender) gets full it will block namespace create requests.
With this change, we now submit stats http requests off the main stats task and restrict the stats sending to 128 concurrent requests. This will allow us to accept more create namespace requests and efficiently send stats.