diff --git a/CHANGELOG.md b/CHANGELOG.md index 026218e8..e58cd01f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - **[Breaking]** Drop Ruby `3.0` support according to the EOL schedule. - [Enhancement] Extract producers tracking `sync_threshold` into an internal config. - [Enhancement] Support complex Pro license loading strategies (Pro). +- [Enhancement] Change default `retention.ms` for the metrics topic to support Redpanda Cloud defaults (#450). - [Enhancement] Include subscription group id in the consumers error tracking metadata. - [Enhancement] Collect metadata details of low level client errors when error tracking. - [Enhancement] Collect metadata details of low level listener errors when error tracking. diff --git a/lib/karafka/web/management/actions/create_topics.rb b/lib/karafka/web/management/actions/create_topics.rb index 2a200920..2ffe4b48 100644 --- a/lib/karafka/web/management/actions/create_topics.rb +++ b/lib/karafka/web/management/actions/create_topics.rb @@ -81,7 +81,7 @@ def call(replication_factor) replication_factor, { 'cleanup.policy': 'compact', - 'retention.ms': 60 * 60 * 1_000, # 1h + 'retention.ms': 24 * 60 * 60 * 1_000, # 1 day 'segment.ms': 24 * 60 * 60 * 1_000, # 1 day 'segment.bytes': 104_857_600 # 100MB }