-
Notifications
You must be signed in to change notification settings - Fork 658
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
(Deployment-Wise) Retention Period for Scheduled Task Cleanup #2520
Conversation
e905dcd
to
35c5cf3
Compare
Still under testing |
3c68779
to
93236e5
Compare
Testing done on dev landscape |
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.
Tests improvements.
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.
Can you add tests for when deployment doesnt exist?
Done |
@@ -1,20 +1,23 @@ | |||
require 'spec_helper' | |||
require 'fakefs/spec_helpers' | |||
require 'bosh/director/api/task_remover' | |||
require 'pry-byebug' |
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.
Could you remove this line
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.
Sorted
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.
LGTM
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.
LGTM
What is this change about?
Currently the debug logs of bosh tasks are cleaned up by ScheduledTasksCleanup module. We can configure the crontab schedule and max_tasks for the job. But the max_tasks is dependent on the platform size and hard to determine.
Describe the solution you'd like
During administration we think that it makes more sense that we have another config parameter retention_period for the job. The scheduled job will always delete the logs if the task is out dated.
Please provide contextual information.
Issue #2508
What tests have you run against this PR?
Unittests in bosh/src/bosh-director
Tested on a dev landscape
How should this change be described in bosh release notes?
Implement the (Deployment-Wise) Retention Period for Scheduled Task Cleanup
Does this PR introduce a breaking change?
No
Tag your pair, your PM, and/or team!
@fearoffish