cockroachdb / cockroachdb/cockroach

Allow users to configure CockroachDB log rotation based on log age and not only size

Open
#125,149 0 comments 0 reactions 0 assignees View on GitHub
A-cluster-observability C-enhancement O-support P-3 T-observability
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.