forked from confluentinc/demo-scene
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated tiered storage demo for cp6 compatablity
updated Tiered Storage demo with new docs and docker-compose file for compatabiltiy with CP6.0
- Loading branch information
1 parent
0e46f05
commit 0495956
Showing
7 changed files
with
109 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Key Benefits | ||
|
||
Faster Rebalancing | ||
|
||
Cheaper to run | ||
|
||
More easily meet regulator requirements | ||
|
||
Easier ML training and deployment | ||
|
||
|
||
|
||
# Key Questions | ||
|
||
|
||
Will infinite retention be made in Confluent Cloud? | ||
|
||
With Tiered Storage, can the cluster use less nodes? | ||
|
||
# Links | ||
|
||
go/internal-demos | ||
|
||
go/artifacts | ||
|
||
go/tiered-storage-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,63 @@ | ||
version: '3' | ||
version: "3" | ||
|
||
services: | ||
zookeeper: | ||
image: confluentinc/cp-zookeeper:5.4.0 | ||
image: confluentinc/cp-zookeeper:latest | ||
hostname: zookeeper | ||
container_name: zookeeper | ||
networks: | ||
- n1 | ||
ports: | ||
- "2181:2181" | ||
environment: | ||
ZOOKEEPER_SERVER_ID: 1 | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
ZOOKEEPER_SERVERS: zookeeper:2888:3888 | ||
ZOOKEEPER_SERVER_ID: 1 | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
ZOOKEEPER_SERVERS: zookeeper:2888:3888 | ||
|
||
broker: | ||
image: confluentinc/cp-server:5.4.0 | ||
image: confluentinc/cp-server:latest | ||
hostname: broker | ||
container_name: broker | ||
networks: | ||
- n1 | ||
ports: | ||
- "9091:9091" | ||
- "8091:8091" | ||
volumes: | ||
- ./config:/etc/kafka/demo | ||
environment: | ||
KAFKA_BROKER_ID: 1 | ||
KAFKA_CONFLUENT_TIER_FEATURE: 'true' | ||
KAFKA_CONFLUENT_TIER_ENABLE: 'true' | ||
KAFKA_CONFLUENT_TIER_FEATURE: "true" | ||
KAFKA_CONFLUENT_TIER_ENABLE: "true" | ||
KAFKA_CONFLUENT_TIER_BACKEND: S3 | ||
KAFKA_CONFLUENT_TIER_S3_BUCKET: ${BUCKET_NAME} | ||
KAFKA_CONFLUENT_TIER_S3_REGION: ${REGION} | ||
KAFKA_CONFLUENT_TIER_S3_AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} | ||
KAFKA_CONFLUENT_TIER_S3_AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} | ||
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} | ||
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} | ||
KAFKA_CONFLUENT_TIER_LOCAL_HOTSET_MS: 60000 # hotset of 1 minute | ||
KAFKA_CONFLUENT_TIER_TOPIC_DELETE_CHECK_INTERVAL_MS: 300000 # check every 5 min for topic deletion | ||
KAFKA_CONFLUENT_TIER_METADATA_REPLICATION_FACTOR: 1 # only one broker, so replication factor is one | ||
KAFKA_CONFLUENT_TIER_TOPIC_DELETE_CHECK_INTERVAL: 300000 # check every 5 min for topic deletion | ||
KAFKA_CONFLUENT_TIER_METADATA_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL | ||
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://broker:19091,LISTENER_DOCKER_EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:9091 | ||
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181' | ||
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter | ||
KAFKA_CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: localhost:9091 | ||
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_LOG_SEGMENT_BYTES: 104857600 # 100 MB log segments | ||
KAFKA_LOG_RETENTION_MS: 600000 # 10 minute retention | ||
KAFKA_JMX_PORT: 8091 | ||
depends_on: | ||
- zookeeper | ||
|
||
networks: | ||
n1: | ||
control-center: | ||
image: confluentinc/cp-enterprise-control-center:latest | ||
hostname: control-center | ||
container_name: control-center | ||
depends_on: | ||
- zookeeper | ||
- broker | ||
ports: | ||
- "9021:9021" | ||
environment: | ||
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'broker:19091' | ||
CONTROL_CENTER_ZOOKEEPER_CONNECT: 'zookeeper:2181' | ||
CONTROL_CENTER_REPLICATION_FACTOR: 1 | ||
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS: 1 | ||
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1 | ||
CONFLUENT_METRICS_TOPIC_REPLICATION: 1 | ||
CONTROL_CENTER_CONFLUENT_CONTROL_CENTER_INTERNAL_TOPICS_REPLICATION: 1 | ||
PORT: 9021 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /bin/bash | ||
|
||
echo -e "\n\n==> Creating a demo topic \n" | ||
|
||
docker exec broker kafka-topics \ | ||
--bootstrap-server localhost:9092 \ | ||
--create \ | ||
--topic demo-topic \ | ||
--partitions 1 | ||
|
||
echo -e "\n\n==> Producing to demo-topic \n" | ||
|
||
docker exec broker kafka-producer-perf-test --topic demo-topic \ | ||
--num-records 5000000 \ | ||
--record-size 5000 \ | ||
--throughput -1 \ | ||
--producer-props \ | ||
acks=all \ | ||
bootstrap.servers=localhost:9092 \ | ||
batch.size=8196 |