github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/kafka/configs/kafka-server.prop.tpl (about)

     1  # broker config. generate according to https://github.com/apache/kafka/blob/3.3.2/core/src/main/scala/kafka/server/KafkaConfig.scala#L1095
     2  
     3  # Default Topic Configuration
     4  log.segment.bytes=1073741824
     5  # log.roll.ms=
     6  log.roll.hours=168
     7  log.index.size.max.bytes=10485760
     8  log.flush.interval.ms=1000
     9  log.flush.interval.messages=10000
    10  # log.roll.jitter.ms=
    11  log.roll.jitter.hours=0
    12  # log.retention.ms=
    13  # log.retention.minutes=
    14  log.retention.hours=168
    15  log.retention.bytes=-1
    16  log.retention.check.interval.ms=300000
    17  log.cleanup.policy=delete
    18  log.cleaner.min.cleanable.ratio=0.5
    19  log.cleaner.delete.retention.ms=86400000
    20  log.cleaner.min.compaction.lag.ms=0
    21  log.cleaner.max.compaction.lag.ms=9223372036854775807
    22  log.index.interval.bytes=4096
    23  log.segment.delete.delay.ms=60000
    24  log.preallocate=false
    25  min.insync.replicas=1
    26  compression.type=producer
    27  unclean.leader.election.enable=false
    28  
    29  # Log Cleaner Configs
    30  log.cleaner.threads=1
    31  log.cleaner.io.max.bytes.per.second=1.7976931348623157E308
    32  log.cleaner.dedupe.buffer.size=134217728
    33  log.cleaner.io.buffer.size=524288
    34  log.cleaner.io.buffer.load.factor=0.9
    35  log.cleaner.backoff.ms=15000
    36  
    37  log.cleaner.enable=true
    38  log.flush.offset.checkpoint.interval.ms=60000
    39  log.flush.start.offset.checkpoint.interval.ms=60000
    40  log.flush.scheduler.interval.ms=9223372036854775807
    41  
    42  # Thread Configs
    43  num.network.threads=3
    44  num.io.threads=8
    45  num.replica.fetchers=1
    46  num.recovery.threads.per.data.dir=1
    47  background.threads=10
    48  
    49  # Connection Quota Configs
    50  max.connections.per.ip=2147483647
    51  # max.connections.per.ip.overrides=
    52  
    53  # according to the content of server.properties, changes were made based on the source code
    54  offsets.topic.replication.factor=1
    55  transaction.state.log.replication.factor=1
    56  transaction.state.log.min.isr=1
    57  delete.topic.enable=false
    58  
    59  auto.create.topics.enable=true
    60  
    61  # Controller
    62  controller.quorum.election.timeout.ms=1000
    63  controller.quorum.fetch.timeout.ms=2000
    64  controller.quorum.election.backoff.max.ms=1000
    65  controller.quorum.append.linger.ms=25
    66  controller.quorum.request.timeout.ms=2000
    67  controller.quorum.retry.backoff.ms=20
    68  
    69  message.max.bytes=1048588
    70  # num.replica.alter.log.dirs.threads=
    71  queued.max.requests=500
    72  queued.max.request.bytes=-1
    73  request.timeout.ms=30000
    74  socket.connection.setup.timeout.ms=10000
    75  socket.connection.setup.timeout.max.ms=30000
    76  metadata.log.max.record.bytes.between.snapshots=20971520
    77  broker.heartbeat.interval.ms=2000
    78  broker.session.timeout.ms=9000
    79  sasl.mechanism.controller.protocol=GSSAPI
    80  metadata.log.segment.bytes=1073741824
    81  # metadata.log.segment.min.bytes=8388608
    82  metadata.log.segment.ms=604800000
    83  metadata.max.retention.bytes=104857600
    84  metadata.max.retention.ms=604800000
    85  metadata.max.idle.interval.ms=500
    86  # authorizer.class.name=
    87  # early.start.listeners=
    88  # control.plane.listener.name=
    89  socket.send.buffer.bytes=102400
    90  socket.receive.buffer.bytes=102400
    91  socket.request.max.bytes=104857600
    92  socket.listen.backlog.size=50
    93  max.connections=2147483647
    94  max.connection.creation.rate=2147483647
    95  connections.max.idle.ms=600000
    96  connection.failed.authentication.delay.ms=100
    97  # broker.rack=
    98  num.partitions=1
    99  
   100  log.message.format.version=3.0-IV1
   101  log.message.timestamp.type=CreateTime
   102  log.message.timestamp.difference.max.ms=9223372036854775807
   103  # create.topic.policy.class.name=
   104  # alter.config.policy.class.name=
   105  log.message.downconversion.enable=true
   106  controller.socket.timeout.ms=30000
   107  default.replication.factor=1
   108  replica.lag.time.max.ms=30000
   109  replica.socket.timeout.ms=30000
   110  replica.socket.receive.buffer.bytes=65536
   111  replica.fetch.max.bytes=1048576
   112  replica.fetch.wait.max.ms=500
   113  replica.fetch.backoff.ms=1000
   114  replica.fetch.min.bytes=1
   115  replica.fetch.response.max.bytes=10485760
   116  replica.high.watermark.checkpoint.interval.ms=5000
   117  fetch.purgatory.purge.interval.requests=1000
   118  producer.purgatory.purge.interval.requests=1000
   119  delete.records.purgatory.purge.interval.requests=1
   120  auto.leader.rebalance.enable=true
   121  leader.imbalance.per.broker.percentage=10
   122  leader.imbalance.check.interval.seconds=300
   123  security.inter.broker.protocol=PLAINTEXT
   124  # replica.selector.class=
   125  controlled.shutdown.max.retries=3
   126  controlled.shutdown.retry.backoff.ms=5000
   127  controlled.shutdown.enable=true
   128  group.min.session.timeout.ms=6000
   129  group.max.session.timeout.ms=1800000
   130  group.initial.rebalance.delay.ms=3000
   131  group.max.size=2147483647
   132  offset.metadata.max.bytes=4096
   133  offsets.load.buffer.size=5242880
   134  offsets.topic.num.partitions=50
   135  offsets.topic.segment.bytes=104857600
   136  offsets.topic.compression.codec=0
   137  offsets.retention.minutes=10080
   138  offsets.retention.check.interval.ms=600000
   139  offsets.commit.timeout.ms=5000
   140  offsets.commit.required.acks=-1
   141  transactional.id.expiration.ms=604800000
   142  transaction.max.timeout.ms=900000
   143  transaction.state.log.load.buffer.size=5242880
   144  transaction.state.log.num.partitions=50
   145  transaction.state.log.segment.bytes=104857600
   146  transaction.abort.timed.out.transaction.cleanup.interval.ms=10000
   147  transaction.remove.expired.transaction.cleanup.interval.ms=3600000
   148  max.incremental.fetch.session.cache.slots=1000
   149  fetch.max.bytes=57671680
   150  metrics.num.samples=2
   151  metrics.sample.window.ms=30000
   152  # metric.reporters=
   153  metrics.recording.level=INFO
   154  # kafka.metrics.reporters=
   155  kafka.metrics.polling.interval.secs=10
   156  quota.window.num=11
   157  replication.quota.window.num=11
   158  alter.log.dirs.replication.quota.window.num=11
   159  controller.quota.window.num=11
   160  quota.window.size.seconds=1
   161  replication.quota.window.size.seconds=1
   162  alter.log.dirs.replication.quota.window.size.seconds=1
   163  controller.quota.window.size.seconds=1
   164  # client.quota.callback.class=
   165  connections.max.reauth.ms=0
   166  
   167  sasl.server.max.receive.size=524288
   168  security.providers=
   169  #principal.builder.class=class org.apache.kafka.common.security.authenticator.DefaultKafkaPrincipalBuilder
   170  ssl.protocol=TLSv1.2
   171  # ssl.provider=
   172  ssl.enabled.protocols=TLSv1.2
   173  ssl.keymanager.algorithm=SunX509
   174  ssl.trustmanager.algorithm=PKIX
   175  # ssl.endpoint.identification.algorithm=https
   176  ssl.endpoint.identification.algorithm=
   177  # ssl.secure.random.implementation=
   178  ssl.client.auth=none
   179  # ssl.cipher.suites=
   180  ssl.principal.mapping.rules=DEFAULT
   181  # ssl.engine.factory.class=
   182  sasl.mechanism.inter.broker.protocol=GSSAPI
   183  # sasl.jaas.config=
   184  sasl.enabled.mechanisms=GSSAPI
   185  # sasl.server.callback.handler.class=
   186  # sasl.client.callback.handler.class=
   187  # sasl.login.class=
   188  # sasl.login.callback.handler.class=
   189  # sasl.kerberos.service.name=
   190  sasl.kerberos.kinit.cmd=/usr/bin/kinit
   191  sasl.kerberos.ticket.renew.window.factor=0.8
   192  sasl.kerberos.ticket.renew.jitter=0.05
   193  sasl.kerberos.min.time.before.relogin=60000
   194  sasl.kerberos.principal.to.local.rules=DEFAULT
   195  sasl.login.refresh.window.factor=0.8
   196  sasl.login.refresh.window.jitter=0.05
   197  sasl.login.refresh.min.period.seconds=60
   198  sasl.login.refresh.buffer.seconds=300
   199  # sasl.login.connect.timeout.ms=
   200  # sasl.login.read.timeout.ms=
   201  sasl.login.retry.backoff.max.ms=10000
   202  sasl.login.retry.backoff.ms=100
   203  sasl.oauthbearer.scope.claim.name=scope
   204  sasl.oauthbearer.sub.claim.name=sub
   205  # sasl.oauthbearer.token.endpoint.url=
   206  # sasl.oauthbearer.jwks.endpoint.url=
   207  sasl.oauthbearer.jwks.endpoint.refresh.ms=3600000
   208  sasl.oauthbearer.jwks.endpoint.retry.backoff.ms=100
   209  sasl.oauthbearer.jwks.endpoint.retry.backoff.max.ms=10000
   210  sasl.oauthbearer.clock.skew.seconds=30
   211  # sasl.oauthbearer.expected.audience=
   212  # sasl.oauthbearer.expected.issuer=
   213  # delegation.token.master.key=  ## Deprecated
   214  
   215  # delegation.token.secret.key=
   216  delegation.token.max.lifetime.ms=604800000
   217  delegation.token.expiry.time.ms=86400000
   218  delegation.token.expiry.check.interval.ms=3600000
   219  # password.encoder.secret=
   220  # password.encoder.old.secret=
   221  # password.encoder.keyfactory.algorithm=
   222  password.encoder.cipher.algorithm=AES/CBC/PKCS5Padding
   223  password.encoder.key.length=128
   224  password.encoder.iterations=4096
   225  
   226  # SSL Keystore of an Existing Listener
   227  ssl.keystore.type=JKS
   228  # ssl.keystore.location=
   229  # ssl.keystore.password=
   230  # ssl.key.password=
   231  # ssl.keystore.key=
   232  # ssl.keystore.certificate.chain=
   233  
   234  # SSL Truststore of an Existing Listener
   235  ssl.truststore.type=JKS
   236  # ssl.truststore.location=
   237  # ssl.truststore.password=
   238  # ssl.truststore.certificates=
   239  
   240  # override by image env
   241  # process.roles=
   242  # controller.listener.names=
   243  # inter.broker.listener.name=
   244  # listeners=PLAINTEXT://:9092
   245  # listener.security.protocol.map=PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
   246  # advertised.listeners=
   247  # initial.broker.registration.timeout.ms=60000
   248  # node.id=-1
   249  # metadata.log.dir=
   250  # log.dirs=
   251  # log.dir=/tmp/kafka-logs
   252  
   253  # acl
   254  allow.everyone.if.no.acl.found=true
   255  
   256  # deprecated with kraft version
   257  # inter.broker.protocol.version=3.4-IV0
   258  # broker.id.generation.enable=true
   259  # reserved.broker.max.id=1000
   260  # broker.id=-1
   261  # zookeeper.connect=
   262  # zookeeper.session.timeout.ms=18000
   263  # zookeeper.connection.timeout.ms=
   264  # zookeeper.set.acl=false
   265  # zookeeper.max.in.flight.requests=10
   266  # zookeeper.ssl.client.enable=false
   267  # zookeeper.clientCnxnSocket=
   268  # zookeeper.ssl.keystore.location=
   269  # zookeeper.ssl.keystore.password=
   270  # zookeeper.ssl.keystore.type=
   271  # zookeeper.ssl.truststore.location=
   272  # zookeeper.ssl.truststore.password=
   273  # zookeeper.ssl.truststore.type=
   274  # zookeeper.ssl.protocol=TLSv1.2
   275  # zookeeper.ssl.enabled.protocols=
   276  # zookeeper.ssl.cipher.suites=
   277  # zookeeper.ssl.endpoint.identification.algorithm=HTTPS
   278  # zookeeper.ssl.crl.enable=false
   279  # zookeeper.ssl.ocsp.enable=false
   280  
   281  # end (DON'T REMOVE THIS LINE)