50ms just isn't enough. A slightly higher latency link combined with a
handful of storage I/Os can easily use up 50ms.
If each event has approximately 4kB memory footprint, then a 250ms timeout
keeps the memory requirement relatively low (50MB on average / 200MB max at
50k events/sec) but still allows a decent amount of time for the HTTP POST
to get sent to and processed by a server in the same datacenter.
#include "event-exporter.h"
#include "http-client.h"
-#define EXPORT_HTTP_TIMEOUT 50 /* msec */
+#define EXPORT_HTTP_TIMEOUT 250 /* msec */
/* the http client used to export all events with exporter=http-post */
static struct http_client *exporter_http_client;