From 677e753c186c19944cf5406a058eb6211268dec9 Mon Sep 17 00:00:00 2001 From: Alexander Kalyuzhnyy Date: Thu, 11 Jun 2020 22:33:36 +0300 Subject: [PATCH] fix(relay): Increase Kafka message size limit to 50MB (#527) Based on my forum post https://forum.sentry.io/t/sentry-native-and-kafka-messagesizetoolarge-error/9948 In short I tried to send minidumps more than 1mb(in fact 2mb), and relay service failed to store event, with kafka error `MessageSizeTooLarge`. You can reproduce this if you recreate install this on local machine, create simple native project, and send minidump file more than 1mb via curl like suggested in docs or in web ui. And check the logs. I reason selected value of 50mb on https://github.com/getsentry/onpremise/blob/master/docker-compose.yml#L87, like you already hardcoded on kafka service. --- relay/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/relay/config.yml b/relay/config.yml index 8700336..da00363 100644 --- a/relay/config.yml +++ b/relay/config.yml @@ -9,4 +9,5 @@ processing: enabled: true kafka_config: - {name: "bootstrap.servers", value: "kafka:9092"} + - {name: "message.max.bytes", value: 50000000} #50MB or bust redis: redis://redis:6379