Updated on 2024-04-19 GMT+08:00

Drill Tasks

Creating a Drill Task

Create a drill task on COC.

Procedure - Creating a Drill Task

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resilience Center > Chaos Drill and click Drill Tasks.
  3. Click Create Task. Or you can accept a drill plan to access the page for creating a drill task by following the instructions in Drill Plan.

    Figure 1 Creating a drill task

  4. Enter the basic information about the drill task, including the drill task name and expected recovery duration (in minutes).

    Figure 2 Basic information of a drill task

  5. Select an attack task. By default, there is one attack task group. You can click Create Task Group to add a task group or click Create Attack Task to access the page for creating an attack task.

    Figure 3 Selecting an attack task

  6. Add an attack task. You can create an attack task or select an existing attack task. If you have not created an attack task before, you need to click Create Attack Task. However, if you have created attack tasks previously, you can select Select from Existing.
  7. Create an attack task. First, select an attack target, and then select an attack scenario. Different attack targets correspond to different attack scenarios. Enter the attack task name. The attack target sources include Elastic Cloud Server (ECS) or Cloud Container Engine (CCE), Cloud Database (RDS), and Distributed Cache Service (DCS). If you select ECS, you will need to select the corresponding server from the list below and click Next.

    Figure 4 Selecting ECS as the attack target source

  8. Select an attack scenario, set attack parameters, and click OK. The scenarios include Host Resource, Host Process, and Host Network.

    Figure 5 ECS attack scenarios

  9. (Optional) Configure drill monitoring task metrics that include Stable-Status Metrics and Monitoring Metrics. You can specify the host in the attack target and the name of the metric to be monitored. During the drill, you can view the real-time drill line chart of the corresponding metric.

    Figure 6 ECS attack scenario drill monitoring configuration

  10. If you select Cloud Container Engine (CCE) as the attack target source, you will need to select an application and pod (select a cluster, namespace, workload type, and workload in sequence). You can specify pods or the number of pods, and click Next.

    Figure 7 Selecting CCE as the attack target source and specifying a pod
    Figure 8 Selecting CCE as the attack target source and specifying the quantity

  11. Select a CCE attack scenario, set attack parameters, and click OK. The scenarios include Weapons Attacking POD Instances, Weapons Attacking POD Processes, and Weapons Attacking the POD Network.

    Figure 9 CCE attack scenarios

  12. If you select RDS as the attack source, select an RDS DB instance and click Next.

    Figure 10 Selecting RDS as the attack target source

  13. Select an RDS attack scenario, set attack parameters, and click OK.

    Figure 11 Cloud Database (RDS) attack scenarios

  14. If you select DCS as the attack source, select a DCS instance and click Next.

    Figure 12 DCS attack scenarios

  15. Select the DCS attack scenario, set required parameters, and click OK.

    Figure 13 DCS attack scenarios

  16. If you select Select from Existing, select the created attack task from the task list below and click OK.

    Figure 14 Selecting an existing attack task

  17. Click OK. The drill task is created.

    Figure 15 Clicking OK

Editing a Drill Task

You can edit a drill task. However, if a drill record has been generated for the drill task, the task cannot be edited.

Procedure - Editing a Drill Task

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resilience Center > Chaos Drill and click Drill Tasks.
  3. Choose More > Edit in the Operation column to modify the basic information about the drill task.

    Figure 16 Locate the target task, click Modify in the Operation column.

  4. You can add a task group, add an attack task, or delete an existing attack task. An existing attack task cannot be modified.
  5. Click OK.

    Figure 17 Modifying a drill task

Deleting a Drill Task

Delete a created drill task. A task that has generated drill records or has associated with drill plans cannot be deleted.

Procedure - Deleting a Drill Task

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resilience Center > Chaos Drill and click Drill Tasks.
  3. Locate the target drill task, choose More > Delete in the Operation column.

    Figure 18 Drill task list

  4. In the displayed dialog box, click OK.

    Figure 19 Deleting a drill task

Starting a Drill Task

Start a drill task.

Procedure - Starting a Drill Task

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resilience Center > Chaos Drill and click Drill Tasks.
  3. Locate the target drill task, click Start Drill in the Operation column.

    Figure 20 Starting a drill task

  4. Click Drill Record in the Operation column to view the attack progress, including probe installation, drill execution, and environment clearance. The system automatically executes the drill task. The execution time depends on the attack time of the weapon.

    Figure 21 Attack progress
    Figure 22 Attack completed

  5. During the drill task execution, you can click Terminate Drill to end the drill task, click Retry to retry the current step, or click Skip to skip the current step and go to the next step. If you have configured a drill monitoring task when creating the attack task, you can click Monitor to view the real-time monitoring data of the attack target.

    Figure 23 Drill monitoring data

  6. Click Details to go to the Attack Details tab page.

    Figure 24 Attack details

Viewing Drill Records

View the drill records of a drill task. A drill task that has not been drilled does not contain drill record.

Procedure - Viewing Drill Records

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resilience Center > Chaos Drill and click Drill Tasks.
  3. Locate the target drill task, click Drill Record in the Operation column.

    Figure 25 Drill task list

  4. The basic information about the drill task includes the drill task name, drill task ID, attack details, and failure mode. All drill records include the drill record ID, execution status, executor, drill start time, and drill end time.

    Figure 26 Drill Records

  5. Click View Progress to view the attack progress and attack details of the current drill task.

    Figure 27 Attack progress

  6. Click Generate Report to create or view a drill report. For details, see Drill Report.

    Figure 28 Viewing a drill report