You can manage distributed tasks in the System. These tasks are processes that execute in the background to keep the system running smoothly and efficiently. These DDL commands create tasks to rebuild damaged or missing segment data and check data integrity. For information on managing tasks, see Manage Distributed Tasks.Documentation Index
Fetch the complete documentation index at: https://docs.ocient.com/llms.txt
Use this file to discover all available pages before exploring further.
CREATE TASK
Launches a new task. Privileges To create any task, you must have the System Administrator role, which has theUPDATE privileges on the system.
Syntax
SQL
TYPE:
- rebuild — Reconstruct data segments by using erasure-coded data in the same segment group.
- check_disk — Verify segments on a node by computing checksums.
- rebalance — Distribute data evenly across disks in the system.
LOCATION keyword to execute the task. Supported values include:
SYSTEM— Targets all segments in the system. If you do not specify theLOCATIONkeyword,SYSTEMis the default value.CLUSTER— Targets a specific cluster.NODE— Targets a specific node.
| Parameter | Data Type | Description |
|---|---|---|
task_name | String | Optional. The identifier for the task. |
TYPE | String | Required. Specifies the type of the distributed task to create. Supported tasks are: rebuild — Rebuild taskcheck_disk — Check disk taskrebalance — Rebalance taskTask names are case sensitive. |
node_name | String | This argument is required only if your task targets a node with the LOCATION NODE keywords.The name of a specific node for the task to target. |
cluster_name | String | This argument is required only if your task targets a cluster with the LOCATION CLUSTER keywords.The name of a specific cluster for the task to target. |
task_option_map | Key-value pairs | Optional. A comma-separated list of task-specific options in key-value pair format key = value. |
rebuild Task
Performing a rebuild segment operation reconstructs data segments by using erasure-coded data in the same segment group. This task allows the system to restore segments that are in the damaged DAMAGED or missing MISSING status to full performance. For details on rebuild tasks, see Guide to Rebuilding Segments.
The
rebuild task supports only the SYSTEM and CLUSTER locations. If you attempt the rebuild task on the node, the system returns an error.To rebuild a single node, use the cluster location with the LOCATION CLUSTER keywords. Include the name of the node you want to rebuild as one of the key-value options.rebuild Options (task_option_map)
The rebuild task supports these options. You must specify these options as a comma-separated list of key-value pairs.
| Option Key | Value Type | Description |
|---|---|---|
node | String | Limits the rebuild operation to only segments on the specified node. |
segment_groups | List | Limits the rebuild operation to the specified segment group identifiers. Specify this option as a bracketed list, e.g., [ id1, id2, ... ]. |
table_id | String | Limits the rebuild to segment groups belonging to a specific table identifier. |
SQL
529a2e9d-d06c-46cd-a93b-624d3bed1c08.
SQL
my_lts_cluster1.
SQL
my_node1 in the Foundation Cluster my_lts_cluster1.
SQL
53 in the Foundation Cluster my_lts_cluster1.
SQL
my_rebuild_task in the Foundation Cluster my_lts_cluster1.
SQL
check_disk Task
The check_disk task verifies the integrity of data segments on storage nodes by computing checksums. The task compares stored checksums with recomputed ones to detect disk corruption.
check_disk Options (task_option_map)
The check_disk task supports these options. You must specify these options as a comma-separated list of key-value pairs.
| Option Key | Value Type | Description |
|---|---|---|
fix | Boolean | If you set this option value to true, the task modifies the storage cluster state based on the checksum result. For example, if the task finds a segment that fails the checksum, the task sets its segment state to DAMAGED.Otherwise, the task reports any segments that fail the checksum, but it does not alter segment states. The default value is false. |
sample | Boolean | If you set this option value to true, the task checks only a sample of data in each segment.The default value is false. |
only_unhealthy | Boolean | If you set this option value to true, the task checks only segments that are not in the INTACT state.The default value is false. |
storage_ids | List | This option limits the check_disk task to only a specific list of storage identifiers. Specify these storage identifiers as a bracketed list, e.g., [ 'id1', 'id2', ... ]. |
my_node1.
SQL
my_lts_cluster1 using the sample = true key-value pair.
SQL
529a2e9d-d06c-46cd-a93b-624d3bed1c08 on the storage node my_node1.
SQL
rebalance Task
Rebalancing evenly distributes data across disks in the system. Execute this task if data is not properly balanced across the system, such as after adding nodes or drives.
For details on performing a rebalance task, see Expand and Rebalance System.
The
rebalance task supports only SYSTEM and CLUSTER locations. If you attempt the rebalance task on a node, the system returns an error.SQL
CANCEL TASK
Cancels a running task. Privileges To cancel a task, you must be assigned the System Administrator role. SyntaxSQL
| Parameter | Data Type | Description |
|---|---|---|
task_name | string | The name specified on task creation. This applies only if an optional name was created for the task. |
task_id | string | The unique identifier for the task in the system tables. For rebuild tasks, you can find the unique identifier in the sys.result_cache table. For check disk tasks, you can find the unique identifier in the sys.subtasks table. |
my_task.
SQL

