API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationReferenceGlossary
    ACOS 6.3.0
  • Arcfra Cloud Operating System>
  • CLI command>
  • Managing cluster internal I/Os>
  • Managing data demotion and demotion policies

Managing data demotion

In a cluster with tiered deployment, data is automatically distributed across tiers based on access frequency. Frequently accessed data resides in the faster performance tier, while infrequently accessed data is demoted to the slower capacity tier. The commands described in this section are used to manage data demotion in the cluster.

Precaution

The commands in this section are intended only for troubleshooting and for viewing the internal state of the cluster. Do not use these commands to change the cluster's default behavior unless you fully understand their impact.

Enabling data demotion

Procedure

Run the following command on any node in the cluster to enable data demotion:

zbs-meta drain enable

Output example

Enabled

Disabling data demotion

Procedure

Run the following command on any node in the cluster to disable data demotion:

zbs-meta drain disable

Output example

Disabled

Configuring data demotion parameters

Procedure

Run the following command on any node in the cluster to configure data demotion parameters:

zbs-meta drain update [--cmd_timeout_ms <CMD_TIMEOUT_MS>] [--generate_cmds_per_round_limit <GENERATE_CMDS_PER_ROUND_LIMIT>] [--distribute_cmds_per_chunk_limit <DISTRIBUTE_CMDS_PER_CHUNK_LIMIT>]

ParameterDescription
--cmd_timeout_ms <CMD_TIMEOUT_MS>Optional. Specifies the timeout for a demotion command in milliseconds. Default: 600000. Valid range: 60000–720000.
--generate_cmds_per_round_limit <GENERATE_CMDS_PER_ROUND_LIMIT>Optional. Specifies the maximum number of demotion commands generated per round. Default: 1024. Valid range: 2–4096.
--distribute_cmds_per_chunk_limit <DISTRIBUTE_CMDS_PER_CHUNK_LIMIT>Optional. Specifies the maximum number of demotion commands generated per chunk for the cluster. Default: 128. Valid range: 2–4096.

Output note

If the command succeeds, no output is displayed.

Querying data demotion parameters

Procedure

Run the following command on any node in the cluster to query the current data demotion parameters:

zbs-meta drain show

Output example

Cluster enable drain: 1
Allow drain: 0
Scan interval: 180s
Generate cmds interval: 30s
Drain no lease timeout: 600s
Drain cmd timeout: 600s
Max number of drain cmds generated per round: 1024
Max number of drain cmds distributed per chunk: 128

Output note

ParameterDescription
Cluster enable drainWhether data demotion is enabled for the cluster. 1 = Enabled, 0 = Disabled.
Allow drainWhether data demotion is allowed by the demotion policy. 1 = Enabled, 0 = Disabled.
Scan intervalThe scan interval for the cluster.
Generate cmds intervalThe interval for generating demotion commands.
Drain no lease timeoutIf an extent remains without a lease longer than this value, a demotion command is issued.
Drain cmd timeoutThe timeout for demotion commands.
Max number of drain cmds generated per roundThe maximum number of demotion commands generated per round for the cluster.
Max number of drain cmds distributed per chunkThe maximum number of demotion commands generated per chunk for the cluster.

Viewing extents currently under demotion

Procedure

Run the following command on any node in the cluster to view extents currently under demotion:

zbs-meta drain list

Output example

No drain command is running.