kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/raft/README.md

Path
kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/raft/README.md
Status
scanned
Type
file
Name
README.md
Extension
.md
Programming language

      
    
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
2145 (2.1 KB)
MD5
5eb6a3310b5f3b7f0ee1d84721f7cefd
SHA1
39a2859d3b2728dedc4444a0764f096bac666be7
SHA256
06fa79abe92e81a4275c47c297d10d800d99beb61c8fa08b0384bab17b3c78b5
SHA512

      
    
SHA1_git
d0770044725860d2fac6ea174e2ecd5a8fce8b40
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
README.md | 2.1 KB |

KRaft (Kafka Raft) ================== KRaft (Kafka Raft) is a protocol based on the [Raft Consensus Protocol](https://www.usenix.org/system/files/conference/atc14/atc14-paper-ongaro.pdf) tailored for Apache Kafka. This is used by Apache Kafka in the KRaft (Kafka Raft Metadata) mode. We also have a standalone test server which can be used for performance testing. We describe the details to set this up below. ### Run Single Quorum ### bin/test-kraft-server-start.sh --config config/kraft.properties --replica-directory-id b8tRS7h4TJ2Vt43Dp85v2A ### Run Multi Node Quorum ### Create 3 separate KRaft quorum properties as the following: `cat << EOF >> config/kraft-quorum-1.properties` node.id=1 listeners=PLAINTEXT://localhost:9092 controller.listener.names=PLAINTEXT controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094 log.dirs=/tmp/kraft-logs-1 EOF `cat << EOF >> config/kraft-quorum-2.properties` node.id=2 listeners=PLAINTEXT://localhost:9093 controller.listener.names=PLAINTEXT controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094 log.dirs=/tmp/kraft-logs-2 EOF `cat << EOF >> config/kraft-quorum-3.properties` node.id=3 listeners=PLAINTEXT://localhost:9094 controller.listener.names=PLAINTEXT controller.quorum.voters=1@localhost:9092,2@localhost:9093,3@localhost:9094 log.dirs=/tmp/kraft-logs-3 EOF Open up 3 separate terminals, and run individual commands: bin/test-kraft-server-start.sh --config config/kraft-quorum-1.properties --replica-directory-id b8tRS7h4TJ2Vt43Dp85v2A bin/test-kraft-server-start.sh --config config/kraft-quorum-2.properties --replica-directory-id Nkij_D9XRiYKNb41SiJo7Q bin/test-kraft-server-start.sh --config config/kraft-quorum-3.properties --replica-directory-id 4-e97nI7eHPYKfEDtW8rtQ Once a leader is elected, it will begin writing to an internal `__raft_performance_test` topic with a steady workload of random data. You can control the workload using the `--throughput` and `--record-size` arguments passed to `test-kraft-server-start.sh`.
URL Start line End line
https://www.usenix.org/system/files/conference/atc14/atc14-paper-ongaro.pdf 3 3