We are deploying an page HTML change enrichment Flink app, which will wiki page html to Kafka.
HTML can be larger than raw revision content. We just encountered an error for a message that was just over 10MB that caused the development HTML enrichment Flink app to fail.
We previously increased the max message size to 10MB in T344688: Increase Max Message Size in Kafka Jumbo .
T419495: Analyze size distribution of wiki page html is about estimating an actual max html size from existing page content. This work should be completed soon, but preliminary discussions with the Research and Content-Transform teams indicates that 20MB will probably be a good max setting.
Very very few HTML sizes are this large. p99 is about 1KB, and IIRC p99.9 is 2MB. However some are large, and we'd like to accommodate those where we can.
As noted in {T344688#9116488} we need to increase broker max.message.bytes and replica.fetch.max.bytes