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

(Deployment-Wise) Retention Period for Scheduled Task Cleanup #2520

Merged
merged 7 commits into from
May 28, 2024

Conversation

Malsourie
Copy link
Contributor

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

@Malsourie Malsourie requested a review from a-hassanin May 16, 2024 14:29
@rkoster rkoster requested review from a team and lnguyen and removed request for a team May 16, 2024 14:49
jobs/director/spec Outdated Show resolved Hide resolved
@Malsourie
Copy link
Contributor Author

Still under testing

@Malsourie
Copy link
Contributor Author

Testing done on dev landscape

Copy link
Contributor

@a-hassanin a-hassanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests improvements.

Copy link
Member

@lnguyen lnguyen left a 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?

@Malsourie
Copy link
Contributor Author

Can you add tests for when deployment doesnt exist?

Done

@beyhan beyhan requested a review from rkoster May 23, 2024 14:40
@@ -1,20 +1,23 @@
require 'spec_helper'
require 'fakefs/spec_helpers'
require 'bosh/director/api/task_remover'
require 'pry-byebug'
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted

Copy link
Member

@lnguyen lnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@a-hassanin a-hassanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ystros ystros merged commit 8bd5f70 into cloudfoundry:main May 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

6 participants