cockroachdb / cockroachdb/cockroach
Allow users to configure CockroachDB log rotation based on log age and not only size
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Is your feature request related to a problem? Please describe.**
Currently CockroachDB only allows users to configure log rotation based on log size (`max-group-size`), which can be rather cumbersome and not useful when troubleshooting clusters with problems and these logs are rotated too soon because the logs are getting flooded with errors or some other reason. This can also be a burden when troubleshooting issues in the far past and the logs get rotated too often.
**Describe the solution you'd like**
Provide an option/alternative/choice for users to choose between size or age for log rotation (or both).
**Describe alternatives you've considered**
Increasing `max-group-size` is not ideal since one can't predict the size of logs to know for certain how many days worth of logs will be kept.
Jira issue: CRDB-39277
Contributor guide
Assessment
This issue has not been assessed yet.