Skip to content

Commit

Permalink
Merge pull request #558 from funky-eyes/0606
Browse files Browse the repository at this point in the history
docs: Increase cache.retention.ms configuration example
  • Loading branch information
jeqo committed Jul 5, 2024
2 parents e784b9b + 3f99fc0 commit 41975ac
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ rsm.config.fetch.chunk.cache.path=/cache/root/directory
rsm.config.fetch.chunk.cache.size=17179869184
# Prefetching size, 16 MiB here:
rsm.config.fetch.chunk.cache.prefetch.max.size=16777216
# Cache retention time ms, where -1 represents infinite retention
rsm.config.fetch.chunk.cache.retention.ms=600000
```

You may want to tweak `remote.log.manager.task.interval.ms` and `log.retention.check.interval.ms` to see the tiered storage effects faster. However, you probably don't need to change this in production setups.
Expand Down
1 change: 1 addition & 0 deletions demo/compose-azure-blob-azurite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ services:
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_RETENTION_MS: 600000 # 600000 ms
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
# Storage backend
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"
Expand Down
1 change: 1 addition & 0 deletions demo/compose-gcs-fake-gcs-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ services:
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_RETENTION_MS: 600000 # 600000 ms
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
# Storage backend
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"
Expand Down
1 change: 1 addition & 0 deletions demo/compose-local-fs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ services:
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_RETENTION_MS: 600000 # 600000 ms
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
# Storage backend
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"
Expand Down
1 change: 1 addition & 0 deletions demo/compose-s3-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ services:
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_RETENTION_MS: 600000 # 600000 ms
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
# Storage backend
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"
Expand Down
1 change: 1 addition & 0 deletions demo/compose-s3-minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ services:
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
KAFKA_RSM_CONFIG_FETCH_CHUNK_CACHE_RETENTION_MS: 600000 # 600000 ms
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
# Storage backend
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"
Expand Down

0 comments on commit 41975ac

Please sign in to comment.