-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slowLogTailer: rotated slow logs not cleaned #1779
Comments
the log file is already rotated by tidb periodically. is it possible to configure tidb to discard or limit the total size of rotated log files? otherwise, we need to delete them ourselves. we can use |
Yes, I misphrase the problem. I've not found any configurations about cleaning rotated logs |
It seems we could use |
that's great! it's good practice to collect the slow logs to other places, e.g. elasticsearch. maybe we can limit the |
Yes, I think maybe we could set a reasonable default value for |
Bug Report
What version of TiDB Operator are you using?
v1.0.6
What's the status of the TiDB cluster pods?
What did you do?
Load data to tidb cluster.
What did you expect to see?
Load data succeed
What did you see instead?
Load data failed because TiDB Pods were evicted to reclaim ephemeral storage:
And it turns out the slow log consumed a lot of ephemeral storage, whereas the tailer does not rotate the slow log:
The text was updated successfully, but these errors were encountered: