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

validator: Add support for log rotation, sending SIGUSR1 will cause the log file to be re-opened #9713

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

mvines
Copy link
Member

@mvines mvines commented Apr 24, 2020

Firehosing /var/log/syslog with validator logs isn't great, and neither is filling up the disk with a single log file. We really need proper log rotation. The existing logrotate daemon fits the bill perfectly, but deploying a logrotate solution requires cooperation from solana-validator to re-open its log file when signaled.

@codecov
Copy link

codecov bot commented Apr 24, 2020

Codecov Report

Merging #9713 into master will decrease coverage by 0.1%.
The diff coverage is 90.1%.

@@           Coverage Diff            @@
##           master   #9713     +/-   ##
========================================
- Coverage    80.5%   80.4%   -0.2%     
========================================
  Files         279     279             
  Lines       63939   63939             
========================================
- Hits        51514   51441     -73     
- Misses      12425   12498     +73     

@mvines mvines merged commit 50f1ec0 into solana-labs:master Apr 24, 2020
mergify bot pushed a commit that referenced this pull request Apr 24, 2020
mergify bot pushed a commit that referenced this pull request Apr 24, 2020
… to be re-opened (#9713)

(cherry picked from commit 50f1ec0)

# Conflicts:
#	validator/src/main.rs
mvines added a commit that referenced this pull request Apr 24, 2020
… to be re-opened (#9713) (#9715)

(cherry picked from commit 50f1ec0)

Co-authored-by: Michael Vines <[email protected]>
solana-grimes pushed a commit that referenced this pull request Apr 24, 2020
@ryoqun ryoqun mentioned this pull request Apr 25, 2020
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.

1 participant