This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Cull CI log groups periodically #2319
Labels
enabler story
Enable to team to improve
Comments
We should ideally have tests for what goes into the logs (and we do for a bunch of things), so the logs in the CI instances shouldn't really provide any new info we couldn't gather from the CI output. So I'd be in favour of tearing these down after the tests. |
I agree. And if there was any artifacts we need after CI, should be kept as Github artifacts which can then be configured to be deleted after some set period. |
billgeo
moved this from 📋 Backlog
to 🏗 Doing / Implementing
in Data Infrastructure Squad
Nov 24, 2022
Jimlinz
moved this from 🏗 Doing / Implementing
to 👀 Reviewing
in Data Infrastructure Squad
Nov 24, 2022
Merged: #2338 |
Jimlinz
moved this from 👀 Reviewing
to 🏗 Doing / Implementing
in Data Infrastructure Squad
Nov 24, 2022
This has been done. And all old log groups will eventually be removed. |
Repository owner
moved this from 🏗 Doing / Implementing
to 👀 Reviewing
in Data Infrastructure Squad
Nov 29, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Our CI has seed prefixes. This is useful in many ways, especially for troubleshooting, as well as setting up the stage for running pytest tests in parallel. However, one downside is that it creates a handful of new log groups for each seed / CI run (one for each lambda per CI run). This adds up very quickly.
While there is an option to set individual log entry to expire, there isn't an option to delete the log group itself within the geostore stack. AFAIK log group
RemovalPolicy.DESTROY
isn't an option (see https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_lambda_python_alpha/PythonFunction.html).This isn't a problem in production, but it is an issue in CI, where CloudWatch logs are pretty much unusable past 10,000 groups.
We should look at various options to keep the number of log groups in check in CI. This would not only keep things tidy, keep costs down (less logs), but also allows us to actually view and search the logs when troubleshooting.
Options:
Please feel free to add your thoughts and suggestions below
The text was updated successfully, but these errors were encountered: