Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add target release version

...

With the upcoming release of 4.0, we have an opportunity to revisit the constraints and defaults for various Kafka configurations. Each of the proposed change to configuration(s) in this KIP has a specific motivation list next to it.

Public Interfaces

Note that the implementation of this KIP is split across major versions 4.0 and 5.0.


#Configuration name

Default Value

Diff in constraints

(only lists the modified constraints)

Target release version

1segment.ms / log.roll.ms

Unchanged:

7 days

Previous:
min = 1 ms

New:
min = 1 min.
5.0
2segment.bytes / log.segment.bytes

Unchanged:
1 GB

Previous:
min = 14 bytes

New:
min = 1 MB

4.0

3num.recovery.threads.per.data.dir

Previous: 1

New: 2

Unchanged4.0
4

segment.index.bytes / log.index.size.max.bytes

Unchanged:

10 MB

Previous:
min = 4 bytes

New:
min = 1 KB

5.0

5linger.ms

Previous: 0

New: 5

Unchanged

4.0

6max.compaction.lag.ms / log.cleaner.max.compaction.lag.ms

Unchanged:
9223372036854775807


Previous:
min = 1

New:
min = 60000 ms (60s)

5.0

7message.timestamp.after.max.ms / log.message.timestamp.after.max.ms

Previous:
9223372036854775807

New:
3600000 (1 hour)

Unchanged

4.0

9remote.log.manager.copier.thread.pool.sizePrevious: -1
New: 10
Current: (-1, 1, 2, ...)
New: (1, 2, ...)
4.0
10remote.log.manager.expiration.thread.pool.size 

Previous: -1
New: 10

Current: (-1, 1, 2, ...)
New: (1, 2, ...)

4.0

11remote.log.manager.thread.pool.size

Previous: 10
New: 2

Unchanged

4.0

Proposed Changes

Please refer to the table above for an overview of the proposed changes. The changes to defaults and new constraints will be applied for both, the broker level configs and corresponding topic level configs. Sometimes there is a slight difference in naming for the same property at broker level and topic level. As an example, log.cleaner.max.compaction.lag.ms  is the broker level config and max.compaction.lag.ms  is the corresponding topic level config.

...