Closed niemyjski closed 8 years ago
I was able to track this down. It has to do with the udpclient. Basically it's really unreliable and the underlying socket will fail (timeouts, errors etc). I was able to take code that used the udp client and increase the performance from ~20k requests/s to over 90k requests/s (https://github.com/exceptionless/Foundatio/blob/master/src/Foundatio/Metrics/StatsDMetricsClient.cs). I'll try bringing these changes into the library and add some tests.
I'm closing this for now, it wasn't resolved but I've yet to figure out how this randomly happens other than to catch and retry.
I've been getting the following issue and trying to track it down. I'm not sure 100% what's causing it but I think that maybethe client doesn't handle when the statsd server goes down?