Distributed Tasks
You can manage distributed tasks in the Ocient® System. These tasks are processes that run in the background of the system to keep it running smoothly and efficiently. These DDL commands create tasks to rebuild damaged or missing segment data and check data integrity. For information about managing these tasks, see Manage Distributed Tasks.
CREATE TASK
Launches a new task.
To create a rebuild or check disk task, you must be assigned the System Administrator role.
Syntax
Rebuilding Segment Task ( <rebuild_segment_task_definition> )
Performing a rebuild segment operation reconstructs data segments by using erasure-coded data in the same segment group. This task allows segments that are in DAMAGED or MISSING status to be restored to full performance.
For details about rebuild tasks, see the Guide to Rebuilding Segments. To create a rebuild segment task, you must have UPDATE privileges on the system.
Specifying locationType of SYSTEM means every segment in the system is rebuilt. Alternatively, you can specify individual clusters or nodes by name to rebuild their segments.
Rebuild Arguments ( <rebuild_args> )
Additional arguments for the rebuild task. These arguments must be in a valid JSON format. All fields are optional. You must specify all arguments in a single JSON object.
Checking Disk Task ( <check_disk_task_definition> )
A CHECK_DISK task verifies the segments on a node by computing checksums.
Check Disk Arguments (<check_disk_args>)
Arguments must be in a valid JSON format. All fields are optional. You must specify all arguments in a single JSON object.
Examples
Rebuild all segments on a system.
Rebuild all segments on a system for a specified table with the table identifier 529a2e9d-d06c-46cd-a93b-624d3bed1c08.
Rebuild segments on Foundation cluster my_lts_cluster1.
Rebuild segments on a Foundation Node my_node1.
Rebuild segments on a segment group with the identifier 53.
Rebuild only the segment in segment group 53 on a Foundation Node my_node.
Compute the checksum on all segments on storage node my_node1.
Compute a checksum on a sample of blocks for each segment on storage cluster my_lts_cluster1.
Compute a checksum on all nodes in the system and modify the state based on the result.
Compute a checksum for a segment with storage identifier 529a2e9d-d06c-46cd-a93b-624d3bed1c08 on the storage node my_node1.
Rebalance Task (<rebalance_task_definition>)
Rebalancing evenly distributes data across disks in the system. Run this task if data is not balanced properly across the system, such as after adding additional nodes or drives.
For details about rebalancing, see Expand and Rebalance System.
CANCEL TASK
Cancels a running task.
To cancel a task, you must be assigned the System Administrator role.
Syntax
Example
Cancel a task named my_task.

