Scaling K2K
Increase the number of instance handling one replication
To execute K2K, you must agree to the EULA and secure a free license.
Accept the EULA by setting license.acceptEula to true .
Effortlessly scale K2K by developing new applications with a standardized replication pipeline. This enhances your ability to manage increased workloads, elevate performance, and maximize throughput as partitions are seamlessly distributed across instances.
This tutorial assumes the following files exist (See Setting up for more details):
To ensure a clean start, execute this command to reset any prior configurations from earlier tutorials.
Creating topics and data
Run the following commands to create these topics: user-topic, transaction-topic, transfers-eu and transfers-us:
To insert test data, execute the following commands:
write some data to user-topic
docker-compose exec kafka-source \
./opt/kafka/bin/kafka-producer-perf-test.sh \
--topic user-topic \
--num-records 100 \
--record-size 20 \
--throughput -1 \
--producer-props bootstrap.servers=localhost:9092
#write some data to transaction-topic
docker-compose exec kafka-source \
./opt/kafka/bin/kafka-producer-perf-test.sh \
--topic transaction-topic \
--num-records 100 \
--record-size 20 \
--throughput -1 \
--producer-props bootstrap.servers=localhost:9092
#write some data to transfers-eu
docker-compose exec kafka-source \
./opt/kafka/bin/kafka-producer-perf-test.sh \
--topic transfer-eu \
--num-records 100 \
--record-size 20 \
--throughput -1 \
--producer-props bootstrap.servers=localhost:9092
#write some data to transfers-us
docker-compose exec kafka-source \
./opt/kafka/bin/kafka-producer-perf-test.sh \
--topic transfers-us \
--num-records 100 \
--record-size 20 \
--throughput -1 \
--producer-props bootstrap.servers=localhost:9092Last updated
Was this helpful?

