2011-11-08 02:11:10 +08:00
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
2017-10-13 19:26:24 +08:00
# see org.apache.kafka.clients.producer.ProducerConfig for more details
2011-11-08 02:11:10 +08:00
############################# Producer Basics #############################
2013-07-11 23:06:43 +08:00
# list of brokers used for bootstrapping knowledge about the rest of the cluster
2012-09-25 00:08:44 +08:00
# format: host1:port1,host2:port2 ...
2016-01-05 22:22:28 +08:00
bootstrap.servers = localhost:9092
2018-10-10 08:13:33 +08:00
# specify the compression codec for all data generated: none, gzip, snappy, lz4, zstd
2016-01-05 22:22:28 +08:00
compression.type = none
2011-11-08 02:11:10 +08:00
2022-02-16 02:27:38 +08:00
# name of the partitioner class for partitioning records;
# The default uses "sticky" partitioning logic which spreads the load evenly between partitions, but improves throughput by attempting to fill the batches sent to each partition.
2011-11-08 02:11:10 +08:00
#partitioner.class=
2016-01-05 22:22:28 +08:00
# the maximum amount of time the client will wait for the response of a request
#request.timeout.ms=
2011-11-08 02:11:10 +08:00
2016-01-05 22:22:28 +08:00
# how long `KafkaProducer.send` and `KafkaProducer.partitionsFor` will block for
#max.block.ms=
2011-11-08 02:11:10 +08:00
2016-01-05 22:22:28 +08:00
# the producer will wait for up to the given delay to allow other records to be sent so that the sends can be batched together
#linger.ms=
2011-11-08 02:11:10 +08:00
2016-01-05 22:22:28 +08:00
# the maximum size of a request in bytes
#max.request.size=
2011-11-08 02:11:10 +08:00
2016-01-05 22:22:28 +08:00
# the default batch size in bytes when batching multiple records sent to a partition
#batch.size=
2011-11-08 02:11:10 +08:00
2016-01-05 22:22:28 +08:00
# the total bytes of memory the producer can use to buffer records waiting to be sent to the server
#buffer.memory=