(ws cobra to sentry) bound the queue size used to hold up cobra messages before they are sent to sentry. Default queue size is a 100 messages. Without such limit the program runs out of memory when a subscriber receive a lot of messages that cannot make it to sentry

This commit is contained in:
Benjamin Sergeant
2019-12-25 22:15:57 -08:00
parent d2acfd5d1f
commit 3a25a05d9c
5 changed files with 18 additions and 2 deletions

View File

@ -119,6 +119,7 @@ namespace ix
bool verbose,
bool strict,
int jobs,
size_t maxQueueSize,
const ix::SocketTLSOptions& tlsOptions);
int ws_cobra_metrics_to_redis(const std::string& appkey,