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

Adapt failed_jobs to run frequently #328

Conversation

kathap
Copy link
Contributor

@kathap kathap commented Jul 17, 2023

So far failed_jobs was running once per day. We want to let it run more often, therefore we need to add the necessary params.
Failed_jobs is changed to also cleanup failed entries from the delayed_jobs table that exceeds a defined maximum number of entries in order to prevent overload of the db. The job should run more often than once per day to ensure db is not overloaded.

Related to cloudfoundry/cloud_controller_ng#3346

  • I have viewed signed and have submitted the Contributor License Agreement

  • I have made this pull request to the develop branch

  • I have run CF Acceptance Tests on bosh lite

@kathap kathap force-pushed the adapt-failed-jobs-to-run-frequently branch from ee98ac3 to c2126dd Compare July 18, 2023 15:03
@kathap kathap force-pushed the adapt-failed-jobs-to-run-frequently branch from 96a5c65 to 6302724 Compare July 26, 2023 15:51
@@ -114,6 +114,10 @@ properties:
description: "The age at which completed tasks are pruned from the Cloud Controller database"
default: 31

cc.failed_jobs.max_number_of_failed_delayed_jobs:
description: "Maximum number of failed jobs that should stay in cloud controller database before being cleaned up"
default: 100000
Copy link
Member

Choose a reason for hiding this comment

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

That's a rather low default value, or?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no default value any more

@kathap kathap force-pushed the adapt-failed-jobs-to-run-frequently branch from f9e307d to 3a94697 Compare July 28, 2023 15:44
@johha
Copy link
Contributor

johha commented Jul 31, 2023

Closed in favor of #332

@johha johha closed this Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants