Page MenuHomePhabricator

Increase Max Message Size in Kafka Jumbo to 20MB
Closed, ResolvedPublic

Description

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

Event Timeline

Change #1254205 had a related patch set uploaded (by Ottomata; author: Ottomata):

[operations/puppet@production] Increase the kafka-jumbo maximum message size to 20MB

https://gerrit.wikimedia.org/r/1254205

Change #1254210 had a related patch set uploaded (by Ottomata; author: Ottomata):

[operations/deployment-charts@master] eventstreams-internal - increase kafka max message size

https://gerrit.wikimedia.org/r/1254210

Ottomata claimed this task.

Change #1254210 merged by jenkins-bot:

[operations/deployment-charts@master] eventstreams-internal - increase kafka max message size

https://gerrit.wikimedia.org/r/1254210