Kafka Notification Settings — MinIO Object Storage for Linux (original) (raw)
If you define both an environment variable and the similar configuration setting, MinIO uses the environment variable value.
Some settings have only an environment variable or a configuration setting, but not both.
Settings
Enable
Required
Environment Variable
Specify on
to enable publishing bucket notifications to a Kafka service endpoint.
Defaults to off
.
Configuration Setting
The top-level configuration key for defining an Kafka service endpoint for use with MinIO bucket notifications.
Use mc admin config set to set or update an Kafka service endpoint. The brokers argument is required for each target. Specify additional optional arguments as a whitespace (" "
)-delimited list.
mc admin config set notify_kafka
brokers="https://kafka1.example.net:9200, https://kafka2.example.net:9200"
[ARGUMENT="VALUE"] ... \
Brokers
Required
Environment Variable
Configuration Setting
Specify a comma-separated list of Kafka broker addresses. For example:
"kafka1.example.com:2021,kafka2.example.com:2021"
Changed in version RELEASE.2023-05-27T05-56-19Z: MinIO checks the health of the specified URL (if it is resolvable and reachable) prior to adding the target. MinIO no longer blocks adding new notification targets if existing targets are offline.
Topic
Optional
Environment Variable
Configuration Setting
Specify the name of the Kafka topic to which MinIO publishes bucket events.
SASL
Optional
Environment Variable
Configuration Setting
Specify on
to enable SASL authentication.
SASL Username
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_SASL_USERNAME
Configuration Setting
Specify the username for performing SASL/PLAIN or SASL/SCRAM authentication to the Kafka broker(s).
SASL Password
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_SASL_PASSWORD
Configuration Setting
Specify the password for performing SASL/PLAIN or SASL/SCRAM authentication to the Kafka broker(s).
Changed in version RELEASE.2023-06-23T20-26-00Z: MinIO redacts this value when returned as part of mc admin config get.
SASL Mechanism
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_SASL_MECHANISM
Configuration Setting
Specify the SASL mechanism to use for authenticating to the Kafka broker(s). MinIO supports the following mechanisms:
PLAIN
(Default)SHA256
SHA512
TLS Client Auth
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_TLS_CLIENT_AUTH
Configuration Setting
Specify the client authentication type of the Kafka broker(s). The following table lists the supported values and their mappings
Value | Authentication Type |
---|---|
0 | NoClientCert |
1 | RequestClientCert |
2 | RequireAnyClientCert |
3 | VerifyClientCertIfGiven |
4 | RequireAndVerifyClientCert |
See ClientAuthType for more information on each client auth type.
TLS
Optional
Environment Variable
Configuration Setting
Specify on
to enable TLS connectivity to the Kafka broker(s).
TLS Skip Verify
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_TLS_SKIP_VERIFY
Configuration Setting
Enables or disables TLS verification of the NATS service endpoint TLS certificates.
- Specify
on
to disable TLS verification (Default). - Specify
off
to enable TLS verification.
Client TLS Cert
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_CLIENT_TLS_CERT
Configuration Setting
Specify the path to the client certificate to use for performing mTLS authentication to the Kafka broker(s).
Client TLS Key
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_CLIENT_TLS_KEY
Configuration Setting
Specify the path to the client private key to use for performing mTLS authentication to the Kafka broker(s).
Version
Optional
Environment Variable
Configuration Setting
Specify the version of the Kafka cluster to assume when performing operations against that cluster. See the sarama reference documentation for more information on this field’s behavior.
Batch Size
Optional
Environment Variable
Configuration Setting
Specify the integer value to use as the batch size for sending records to Kafka.
Changed in version RELEASE.2023-12-02T10-51-33Z: MinIO previously limited this value to 100
.
Queue Directory
Optional
Environment Variable
Configuration Setting
Specify the directory path to enable MinIO’s persistent event store for undelivered messages, such as /opt/minio/events
.
MinIO stores undelivered events in the specified store while the Kafka server/broker is offline and replays the stored events when connectivity resumes.
Queue Limit
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_QUEUE_LIMIT
Configuration Setting
Specify the maximum limit for undelivered messages. Defaults to 100000
.
Compression Codec
New in version MinIO: Server RELEASE.2023-12-09T18-17-51Z
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_PRODUCER_COMPRESSION_CODEC
Configuration Setting
notify_kafka compression_codec
Specify the compression codec to use when sending records to Kafka.
Supports the following values:
none
snappy
gzip
lz4
zstd
Compression Level
New in version MinIO: Server RELEASE.2023-12-09T18-17-51Z
Optional
Environment Variable
MINIO_NOTIFY_KAFKA_PRODUCER_COMPRESSION_LEVEL
Configuration Setting
notify_kafka compression_level
Controls the level of compression applied based on the configured compression codec.
Specify an integer value greater than or equal to 0
. The effect of the value depends on the selected codec.