-
Notifications
You must be signed in to change notification settings - Fork 217
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
Implement log rotation in docker-compose file #1797
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How long does cardano-node take to emit 2000k of logs under this configuration?
You would want it to retain logs for at least a couple of days.
@rvl Good call, my assessment was based on my own config, so am now running the stack against |
max-size: "400k"
max-file: "20" |
The base for cardano-wallet_1 | [cardano-wallet.ntp-client:Info:14] [2020-06-29 01:41:17.78 UTC] query to ntp client invoked
cardano-wallet_1 | [cardano-wallet.ntp-client:Info:14] [2020-06-29 01:41:18.93 UTC] local clock is drifting by -27088μs
cardano-wallet_1 | [cardano-wallet.ntp-client:Info:14] [2020-06-29 01:46:18.96 UTC] query to ntp client invoked
cardano-wallet_1 | [cardano-wallet.ntp-client:Info:14] [2020-06-29 01:46:20.17 UTC] local clock is drifting by -20103μs Do you have a simulation that can provide some insight into the |
Can we just say that 500MB of logs is too much. Anything less than 500MB of logs is OK. This is 1/10th of the mainnet chain db size. So make it 10 rotations of 50MB each. And also there is a log compression flag which may help reduce impact of logs: https://docs.docker.com/config/containers/logging/json-file/#options |
dd005d1
to
20ed8b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine
See cardano-foundation/cardano-graphql#197 for context