retention.bytes

The topic property that caps how many bytes each partition may keep before the oldest segments are deleted.

In more detail

The limit applies per partition, not to the whole topic. The default of -1 means no size limit, so only time-based retention applies.

Example

rpk topic alter-config events -s retention.bytes=1000000

Related terms

Taught in

References

Certification courses