Skip to content
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

v0.23 release patch for rotating/trimming docker logs (#3116) #1853

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

anixon604
Copy link
Contributor

Why this change is needed

Containers (nodes) were crashing due to overflow of container logs (default is persisting internally to json-file) which had no rotation scheme.

This is a patch PR for inclusion to a v0.23.3 compared to #1850 which is against main.

What changes were made as part of this PR

Added some log options to the standard rolling behavior of 10m per log file -> creation of new file when exceeding -> maximum historic files of 3 -> delete oldest on next rotation.

This is a passive approach and won't affect relaying to datadog etc as it maintains the same default format on the log-type.

Please provide a high level list of the changes made

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

@anixon604 anixon604 self-assigned this Mar 27, 2024
@anixon604
Copy link
Contributor Author

@BedrockSquirrel same thing as the other, just against the release so it can be tagged to v0.23.3. This one we know doesn't have issues, but the PR against main can wait to be merged pending the other https://github.com/ten-protocol/ten-internal/issues/3156 - although unlikely there is any conflict.

Copy link
Collaborator

@BedrockSquirrel BedrockSquirrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anixon604 anixon604 merged commit b435845 into releases/v0.23 Mar 28, 2024
11 checks passed
@anixon604 anixon604 deleted the anthony/v0.23-patch-log-rolling branch March 28, 2024 11:10
@anixon604 anixon604 restored the anthony/v0.23-patch-log-rolling branch March 28, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants