log.remote.copy.lag.ms — 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 time-based check or log.remote.copy.lag.bytes 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 time-based check or log.remote.copy.lag.bytes is satisfied. When set to 0, uploads are immediately eligible regardless of lag checks. When set to a positive value (ms), the segment is time-eligible once elapsed time since its latest record reaches this value. When set to -1, this value is derived from effective local retention time (log.local.retention.ms). If that effective local retention time is unlimited (-1), this time-based check is not applied. A positive value should not exceed effective local retention time unless local retention is unlimited (-1).
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 4.4 | 0 |