-
-
Notifications
You must be signed in to change notification settings - Fork 212
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 #4620
Comments
This should be currently performed by Do you have any strong preference on retention/turnover parameters other than the 24 hour turnover (e.g. additional size-based turnover)? We should be able to set these in one place ( |
It'd be good to have a size-based turnover as well just in case something goes wrong and blows out the logs in a hurry. Ideally this would be set very high so it's only used as a safety net and logs are otherwise in 24 hours slices. |
In the future this can certainly be more DRY, but this gets the job done and we can move/consolidate/link the small duplicated per-package scripts at a later point. |
The DRY-ness issue is filed at medic/medic-os#10 and should be straightforward to do all at once. |
LGTM. Also +1 for filing the DRY-ness issue. |
Tested on
|
@ngaruko The important thing isn't the size of the logs but that the logs split when they get big/old enough. You should see more than a single log file once the limit is hit. |
Thanks @garethbowen. Do we know what that limit is for both |
@henokgetachew @browndav What's the expected rotation strategy? |
The rotation strategy is currently still The missing log rotation for Horticulturalist-managed services is fixed in git and in the Docker We're building a When it's pushed to ECR and tested, we'll comment here and update the instructions in medic-infrastructure so that everyone's able to pull the new image and launch it on Docker CE (locally) or Docker Machine (on AWS). |
We need to implement some sort of log rotation, compression, and/or archival for all logs on the medic-os Docker images. This needs to be done for all logs (api, sentinel, couchdb, etc) to ensure we don't run out of space.
This needs to be done with thought to maintain ease of use, for example, the current log must always have the same name and recent logs (~ last 24 hours) must be easy to access (not zipped or backed up off server).
NB: alpha.dev medic-api log is currently 174MB.
cc @browndav @henokgetachew
The text was updated successfully, but these errors were encountered: