Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a0cf6a

Browse files
authored
Merge pull requestcodefresh-io#393 from codefresh-io/classic-build-retention
Update codefresh-on-prem.md
2 parents39e6646 +58cc1be commit7a0cf6a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎_docs/administration/codefresh-on-prem.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,23 @@ Depending on the customer’s Kubernetes version we can assist with PV resizing.
402402

403403
Codefresh installation supports automatic storage provisioning based on the standard Kubernetes dynamic provisioner Storage Classes and Persistent Volume Claims. All required installation volumes will be provisioned automatically using the default Storage Class or custom Storage Class that can be specified as a parameter in `config.yaml` under `storageClass:my-storage-class`.
404404

405+
### Retention policy for Codefresh builds
406+
You can define a retention policy to manage Codefresh builds. The retention settings are controlled through environment variables, all of which have default settings which you can retain or customize. The default policy is set to delete builds older than six months, including offline logs.
407+
408+
The retention mechanism is implemented as a Cron Job through the Codefresh. It removes data from collections such as:
409+
* workflowproccesses
410+
* workflowrequests
411+
* workflowrevisions
412+
413+
{: .table .table-bordered .table-hover}
414+
| Env Variable | Description | Default |
415+
|------------------------------- |-------------------------------------------------------------------------------- |---------------------- |
416+
|`RETENTION_POLICY_IS_ENABLED` | Determines if automatic build deletion through the Cron job is enabled. | `true` |
417+
|`RETENTION_POLICY_BUILDS_TO_DELETE`| The maximum number of builds to delete by a sinle Cron job. To avoid database issues, especially when there are large numbers of old builds, we recommend deleting them in small chunks. You can gradually increase the number after verifying that performance is not affected. | `50` |
418+
|`RETENTION_POLICY_DAYS` | The number of days for which to retain builds. Older builds are | `180` |
419+
|`RUNTIME_MONGO_URI` | Optional. The URI of the Mongo database from which to remove MongoDB logs (in addition to the builds). | |
420+
421+
405422

406423
### Managing Codefresh backups
407424

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp