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. In the navigation pane, choose Add-ons. On the Add-on Marketplace tab page, click Install Add-on under rc-recycler.
  2. On the Install Add-on page, select the cluster and the add-on version, and click Next: Configuration.
  3. 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.

  4. When the configuration is complete, click Install.

    After the add-on is installed, click Go Back to Previous Page. On the Add-on Instance tab page, select the corresponding cluster to view the running instance. This indicates that the add-on has been installed on each node in the cluster.

Upgrading the Add-on

  1. Log in to the CCE console. In the navigation pane, choose Add-ons. On the Add-on Instance tab page, click Upgrade under rc-recycler.

    • If the Upgrade button is not available, the current add-on is already up-to-date and no upgrade is required.
    • During the upgrade, the rc-recycler add-on of the original version on cluster nodes will be discarded, and the add-on of the target version will be installed.

  2. On the Basic Information page, select the add-on version and click Next.
  3. Set the parameters by referring to the parameter description in Installing the Add-on and click Upgrade.

Uninstalling the Add-on

  1. Log in to the CCE console. In the navigation pane, choose Add-ons. On the Add-on Instance tab page, click Uninstall under rc-recycler.
  2. In the dialog box displayed, click Yes to uninstall the add-on.