segment.bytes

The topic property that sets the maximum size of one log segment file before the broker closes it and starts a new one.

In more detail

Kafka's default is one gibibyte. The compaction lesson sets it very small so segments close quickly and the cleaner has something to work on.

Example

-c segment.bytes=10000

Related terms

Taught in

References

Certification courses