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

3116 - Adds a log configuration to docker containers to roll #1850

Merged
merged 3 commits into from
Apr 2, 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.

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.

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

  • Run and inspected against Dev Testnet

…ding the base image and matching current deployments. delete current image step added.
@anixon604 anixon604 marked this pull request as ready for review March 25, 2024 20:10
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 - think we definitely need to duplicate this change onto the .23 branch and ideally see a successful deploy with it from main before we merge.

az disk delete --resource-group Testnet --name MakeImageVM_OSDisk --yes
az network nic delete --resource-group Testnet --name MakeImageVM_NIC
az disk delete --resource-group Testnet --name MakeImageVM_OsDisk-<get uuid from azure> --yes --no-wait
az network nic delete --resource-group Testnet --name MakeImageVMVMNIC --no-wait
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor thing but did you mean to change that name? MakeImageVM_NIC

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it wasn't deleting and after investigating the resources on azure, saw the suffix was without the underscore. :)

@anixon604
Copy link
Contributor Author

LGTM - think we definitely need to duplicate this change onto the .23 branch and ideally see a successful deploy with it from main before we merge.

This branch is off based on the [v0.23] https://github.com/ten-protocol/go-ten/tree/anthony/v0.23-patch-log-rolling

@anixon604 anixon604 merged commit 3c0dbce into main Apr 2, 2024
2 checks passed
@anixon604 anixon604 deleted the anthony/3116-log-rolling branch April 2, 2024 16:17
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.

2 participants