setting of Kafka

  • Number of Partitions >= Number of Instance
  • Transmission Warranty - Adjust to suit the Client's requirements
    • At Most Once Retransmission X, Duplicate deletion X
    • At Least Once: Retransmission O, Duplicate deletion X
    • Exactly Once: Retransmission O, Duplicate deletion O
    • Offset Commit: Adjust to suit the Client's requirements
      • Auto Offset Commit
      • Manual Offset Commit
      • commitSync
      • commitAsync
    • Offset is managed by Consumer Group
      • one message can be consumed to the same value in another Consumer group, but only once within the same Consumer Group.
    • Producer processing method
      • Synchronous
      • Asynchronous
    • server.properties
      • unclean.leader.election.enable
        • True: Expelled from the ISR, but automatically becomes the leader when it comes to life first.
        • False: Waiting for the last leader to come to alive
      • Enable connectivity only from internal clients
        • listeners = PLAINTEXT://{private IP}:9092
        • advertised.listeners= PLAINTEXT://{private IP}:9092
      • Enable connectivity only from external clients
        • listeners=PLAINTEXT://0.0.0.0:9092
        • advertised.listeners= PLAINTEXT://{public IP}:9092
        • need to change bootstrap server address for consumer.properties and producer.properties

Comments

Popular posts from this blog

[Kubernetes] Node Overcommitted

[AWS] What is the Cloud Formation?

How to Install jenkins using Helm chart on instance