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

Reduce suibase-daemon.log size #89

Open
mario4tier opened this issue Dec 28, 2023 · 1 comment
Open

Reduce suibase-daemon.log size #89

mario4tier opened this issue Dec 28, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mario4tier
Copy link
Member

Goal: Periodically purge a suibase log file to avoid large disk usage.

( ~/suibase/workdirs/common/logs/suibase-daemon.log )

Problem Statement

There is currently a bug with Mysten Labs devnet preventing websocket subscriptions to work. This cause an error to be log periodically (for every attempt done every 30 seconds).

suibase-daemon.log is now ~400MBytes after running for ~two weeks with these error logs.

@mario4tier mario4tier added the enhancement New feature or request label Dec 28, 2023
@mario4tier mario4tier added the good first issue Good for newcomers label Jan 7, 2024
@mario4tier
Copy link
Member Author

Should be implemented with simply integrating this:
https://docs.rs/file-rotate/latest/file_rotate/

I like the following:

  • Log name can use timestamp as extension.
  • More "portable" because fully integrated in the binary, so no dependency on host setup (e.g. logrotate).
  • First auto-compression, and then auto-pruning for older logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant