rc-recycler

Introduction

rc-recycler periodically deletes unnecessary resources from clusters to ensure optimal cluster performance. You can adjust the recycling policy when creating or running rc-recycler.

Notes and Constraints

  • This add-on can be installed only in CCE clusters of v1.9 and v1.11.
  • Currently, the following features are available: parallel recycling of jobs, log dumping, statistical analysis of recycling, and incremental list caching. Only jobs in the default namespace can be cleared.

Installing the Add-on

  1. Log in to the CCE console and access the cluster details page. Choose Add-ons in the navigation pane, locate rc-recycler on the right, and click Install.
  2. Set add-on installation parameters listed in Table 1.

    Table 1 Add-on installation parameters

    Parameter

    Description

    Scanning Interval (s)

    Interval for scanning resources. Unit: second.

    Retention Period upon Completion (min)

    Period for retaining job resources in the cluster after a job is completed. Unit: minute.

    • -1: Permanently retain resources of a completed job.
    • 0: Recycle resources immediately after a job is completed.

    Retention Period upon Failure (min)

    Period for retaining job resources in the cluster after a job fails. Unit: minute.

    • -1: Permanently retain resources of a failed job.
    • 0: Recycle resources immediately after a job fails.

  3. Click Install.