log.remote.copy.lag.bytes — Kafka Broker Configuration
Controls one of the two upload eligibility checks (time and size) for copying segments to remote storage. A non-active segment is upload-eligible when either this size-based check or log.remote.copy.lag.ms is satisfied
Description
Controls one of the two upload eligibility checks (time and size) for copying segments to remote storage. A non-active segment is upload-eligible when either this size-based check or log.remote.copy.lag.ms is satisfied. When set to 0, uploads are immediately eligible regardless of lag checks. When set to a positive value (bytes), the segment is size-eligible once bytes of newer local log data after that segment reaches this value. When set to -1, this value is derived from effective local retention size (log.local.retention.bytes). If that effective local retention size is unlimited (-1), this size-based check is not applied. A positive value should not exceed effective local retention size unless local retention is unlimited (-1).
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 4.4 | -1 |