Steadybit logoReliability Hub
GitHubGitHub iconStart Free Trial
Steadybit logoReliability Hub

Reduce Message Batch Size

AttackAttack
Reduce the broker's message.max.bytes to reject messages exceeding the new size limit
Targets:
Kafka Topics
Install now

Reduce Message Batch Size

Reduce the broker's message.max.bytes to reject messages exceeding the new size limit
AttackAttack
Install now

Reduce Message Batch Size

AttackAttack
Reduce the broker's message.max.bytes to reject messages exceeding the new size limit
Install now

Reduce Message Batch Size

Reduce the broker's message.max.bytes to reject messages exceeding the new size limit
AttackAttack
Install now
Go back to list
The action "Reduce Message Batch Size" within the experiment editor.The action "Reduce Message Batch Size" within the experiment editor.

Introduction

Dynamically modifies the broker's message.max.bytes configuration to set a very low maximum message batch size. Messages exceeding this limit are rejected by the broker. The original value is automatically restored when the attack ends.

Use Cases

  • Set a very low max bytes per message to simulate message size rejections and test how producers handle RecordTooLargeException.
  • Verify that producer error handling and retry logic correctly deal with message size validation failures.

Parameters

ParameterDescriptionDefault
DurationHow long the configuration change stays in effect. The original message.max.bytes value is automatically restored when the duration expires.60s
Max bytes per messageThe maximum allowed size in bytes for a message batch. Messages larger than this value are rejected by the broker. Set to a very low value (e.g., 100) to force rejections. The original value is restored at the end of the attack.

More Kafka Topic Actions

See all
Check Partitions
Monitor topic partition changes (leader elections, replica and in-sync-replica changes, offline replicas) during an experiment
CheckCheck
Kafka Topics
Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
Message Queue
Kafka
AWS
Homepage
hub.steadybit.com/extension/com.steadybit.extension_kafka
License
MIT
MaintainerSteadybit
Install now
Steadybit logoReliability Hub
Start Free Trial
© 2026 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon