Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/opl/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ def add_kafka_opts(parser):
help="Max size of the batch before sending (also use env variable KAFKA_BATCH_SIZE)",
)
parser.add_argument(
"--kafka-buffer-memory",
"--kafka-max-request-size",
type=int,
default=int(os.getenv("KAFKA_BUFFER_MEMORY", 33554432)),
help="Memory the producer can use at max for batching (also use env variable KAFKA_BUFFER_MEMORY)",
default=int(os.getenv("KAFKA_MAX_REQUEST_SIZE", 1048576)),
help="Maximum size of a requests in bytes, effectively a cap on the maximum record size (also use env variable KAFKA_MAX_REQUEST_SIZE)",
)
parser.add_argument(
"--kafka-retries",
Expand Down
2 changes: 1 addition & 1 deletion extras/opl/kafka_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_producer(args, status_data=None):
"linger_ms": getattr(args, "kafka_linger_ms", 0),
"compression_type": getattr(args, "kafka_compression_type", None),
"batch_size": getattr(args, "kafka_batch_size", 16384),
"buffer_memory": getattr(args, "kafka_buffer_memory", 33554432),
"max_request_size": getattr(args, "kafka_max_request_size", 1048576),
"retries": getattr(args, "kafka_retries", 0),
}

Expand Down
Loading