KAFKA-12672: Added config for raft testing server (#10545)

Adding a property to the `raft/config/kraft.properties` for running the raft
test server in development.

For testing I ran `./bin/test-kraft-server-start.sh --config config/kraft.properties`
and validated the test server started running with a throughput test.

Reviewers: Ismael Juma <ismael@juma.me.uk>
This commit is contained in:
Bill Bejeck 2021-04-15 23:48:53 -04:00 committed by GitHub
parent fc405d792d
commit 637c44c976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ Create 3 separate KRaft quorum properties as the following:
node.id=1 node.id=1
listeners=PLAINTEXT://localhost:9092 listeners=PLAINTEXT://localhost:9092
controller.listener.names=PLAINTEXT
controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094 controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094
log.dirs=/tmp/kraft-logs-1 log.dirs=/tmp/kraft-logs-1
EOF EOF
@ -24,6 +25,7 @@ Create 3 separate KRaft quorum properties as the following:
node.id=2 node.id=2
listeners=PLAINTEXT://localhost:9093 listeners=PLAINTEXT://localhost:9093
controller.listener.names=PLAINTEXT
controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094 controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094
log.dirs=/tmp/kraft-logs-2 log.dirs=/tmp/kraft-logs-2
EOF EOF
@ -32,6 +34,7 @@ Create 3 separate KRaft quorum properties as the following:
node.id=3 node.id=3
listeners=PLAINTEXT://localhost:9094 listeners=PLAINTEXT://localhost:9094
controller.listener.names=PLAINTEXT
controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094 controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094
log.dirs=/tmp/kraft-logs-3 log.dirs=/tmp/kraft-logs-3
EOF EOF

View File

@ -15,5 +15,6 @@
node.id=0 node.id=0
listeners=PLAINTEXT://localhost:9092 listeners=PLAINTEXT://localhost:9092
controller.listener.names=PLAINTEXT
controller.quorum.voters=0@localhost:9092 controller.quorum.voters=0@localhost:9092
log.dirs=/tmp/kraft-logs log.dirs=/tmp/kraft-logs