Aiven Kafka REST supports configuring some settings.
kafka_rest_config.producer_acks (possible values: 'all', '-1', '0' or '1', default '1')
- The number of acknowledgments the producer requires the leader to have received before considering a request complete. If set to 'all' or '-1', the leader will wait for the full set of in-sync replicas to acknowledge the record.
kafka_rest_config.producer_linger_ms (integer, default 0)
- Wait for up to the given delay to allow batching records together
kafka_rest_config.consumer_request_max_bytes (integer, default 67108864)
- Maximum number of bytes in unencoded message records returned in a single request
To change these, install Aiven Client (https://github.com/aiven/aiven-client) and use the following syntax.
avn service update mykafka -c kafka_rest_config.producer_acks=1
Note that Kafka REST is restarted when the new configuration is taken into use. Kafka REST maintains the state of the consumer in memory and that is lost when the process restarts, so active consumers need to be re-created.