redis.persistence.aof_last_rewrite_time_sec
Duration of last AOF rewriteDimensions:None
Summary
Duration in seconds of the most recent AOF rewrite operation. AOF rewrites compact the append-only file by replaying operations to generate a minimal snapshot. Long rewrite times (>60s) indicate large datasets, slow disk I/O, or CPU constraints. Extended rewrites can impact performance as Redis maintains both old and new AOF files during the operation, and can trigger latency spikes mentioned in the AOF persistence latency insight.
Interface Metrics (3)
Native
Duration of the last AOF rewrite operationDimensions:None
Sources
Related Insights (1)
AOF Persistence Latency from Synchronous Disk Writeswarning
When AOF persistence is enabled with appendfsync always or everysec, slow disk I/O can cause write latency spikes. redis.persistence.aof_last_rewrite_time_sec increasing significantly indicates AOF file growth without rewrite, amplifying disk I/O overhead.
▸