Skip to content

Commit bf1f5c0

Browse files
committed
Refresh demo
1. Start using disk cache with prefetching. 2. Change to the standard 4 MiB chunk size. 3. Change demo topic sizes a little.
1 parent 47928ab commit bf1f5c0

File tree

6 files changed

+28
-18
lines changed

6 files changed

+28
-18
lines changed

demo/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ bootstrap_server_host=localhost:9092
2222
topic=topic1
2323
partitions=1
2424
replication_factor=1
25-
segment=1000000 # 1MB
26-
retention_bytes=20000000 # 20MB
27-
local_retention_bytes=5000000 # 5MB
25+
segment=1048576 # 1 MiB
26+
retention_bytes=104857600 # 100 MiB
27+
local_retention_bytes=1
2828
retention_ms=360000000 # 100 hours
2929
local_retention_ms=1000 # 1 second
3030

demo/compose-azure-blob-azurite.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ services:
5959
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_PATH: "/tiered-storage-for-apache-kafka/core/*:/tiered-storage-for-apache-kafka/azure/*"
6060
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_NAME: "io.aiven.kafka.tieredstorage.RemoteStorageManager"
6161
KAFKA_REMOTE_LOG_STORAGE_MANAGER_IMPL_PREFIX: "rsm.config."
62-
KAFKA_RSM_CONFIG_CHUNK_SIZE: 5242880 # 5MiB
63-
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.InMemoryChunkCache"
64-
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: -1
62+
KAFKA_RSM_CONFIG_CHUNK_SIZE: 4194304 # 4 MiB
63+
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.DiskBasedChunkCache"
64+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
65+
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
66+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
6567
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
6668
# Storage backend
6769
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"

demo/compose-gcs-fake-gcs-server.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ services:
5959
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_PATH: "/tiered-storage-for-apache-kafka/core/*:/tiered-storage-for-apache-kafka/gcs/*"
6060
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_NAME: "io.aiven.kafka.tieredstorage.RemoteStorageManager"
6161
KAFKA_REMOTE_LOG_STORAGE_MANAGER_IMPL_PREFIX: "rsm.config."
62-
KAFKA_RSM_CONFIG_CHUNK_SIZE: 5242880 # 5MiB
63-
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.InMemoryChunkCache"
64-
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: -1
62+
KAFKA_RSM_CONFIG_CHUNK_SIZE: 4194304 # 4 MiB
63+
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.DiskBasedChunkCache"
64+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
65+
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
66+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
6567
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
6668
# Storage backend
6769
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"

demo/compose-local-fs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ services:
5858
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_PATH: "/tiered-storage-for-apache-kafka/core/*"
5959
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_NAME: "io.aiven.kafka.tieredstorage.RemoteStorageManager"
6060
KAFKA_REMOTE_LOG_STORAGE_MANAGER_IMPL_PREFIX: "rsm.config."
61-
KAFKA_RSM_CONFIG_CHUNK_SIZE: 5242880 # 5MiB
62-
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.InMemoryChunkCache"
63-
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: -1
61+
KAFKA_RSM_CONFIG_CHUNK_SIZE: 4194304 # 4 MiB
62+
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.DiskBasedChunkCache"
63+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
64+
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
65+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
6466
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
6567
# Storage backend
6668
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"

demo/compose-s3-aws.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ services:
5858
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_PATH: "/tiered-storage-for-apache-kafka/core/*:/tiered-storage-for-apache-kafka/s3/*"
5959
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_NAME: "io.aiven.kafka.tieredstorage.RemoteStorageManager"
6060
KAFKA_REMOTE_LOG_STORAGE_MANAGER_IMPL_PREFIX: "rsm.config."
61-
KAFKA_RSM_CONFIG_CHUNK_SIZE: 5242880 # 5MiB
62-
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.InMemoryChunkCache"
63-
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: -1
61+
KAFKA_RSM_CONFIG_CHUNK_SIZE: 4194304 # 4 MiB
62+
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.DiskBasedChunkCache"
63+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
64+
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
65+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
6466
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
6567
# Storage backend
6668
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"

demo/compose-s3-minio.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ services:
5959
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_PATH: "/tiered-storage-for-apache-kafka/core/*:/tiered-storage-for-apache-kafka/s3/*"
6060
KAFKA_REMOTE_LOG_STORAGE_MANAGER_CLASS_NAME: "io.aiven.kafka.tieredstorage.RemoteStorageManager"
6161
KAFKA_REMOTE_LOG_STORAGE_MANAGER_IMPL_PREFIX: "rsm.config."
62-
KAFKA_RSM_CONFIG_CHUNK_SIZE: 5242880 # 5MiB
63-
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.InMemoryChunkCache"
64-
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: -1
62+
KAFKA_RSM_CONFIG_CHUNK_SIZE: 4194304 # 4 MiB
63+
KAFKA_RSM_CONFIG_CHUNK_CACHE_CLASS: "io.aiven.kafka.tieredstorage.chunkmanager.cache.DiskBasedChunkCache"
64+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PATH: /home/appuser/kafka-tiered-storage-cache
65+
KAFKA_RSM_CONFIG_CHUNK_CACHE_SIZE: 1073741824 # 1 GiB
66+
KAFKA_RSM_CONFIG_CHUNK_CACHE_PREFETCH_MAX_SIZE: 16777216 # 16 MiB
6567
KAFKA_RSM_CONFIG_CUSTOM_METADATA_FIELDS_INCLUDE: "REMOTE_SIZE"
6668
# Storage backend
6769
KAFKA_RSM_CONFIG_KEY_PREFIX: "tiered-storage-demo/"

0 commit comments

Comments
 (0)