Skip to content

chore: enable limit total number of log files #17635

@bohutang

Description

@bohutang

Summary

Problem
When using hourly log rotation, the system would count each date separately. For example:

  • databend-query-default.2025-03-18-10.log
  • databend-query-default.2025-03-18-11.log
  • databend-query-default.2025-03-19-09.log
  • databend-query-default.2025-03-19-10.log

These were treated as different groups, allowing up to 48 files for EACH date. This caused excessive accumulation - in one case, we found 458 log files when the limit was supposed to be 48.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions