lab_code: demo_014
title_en: Pause and Resume DDL Execution (v7.5+)
title_zh: 暂停与恢复 DDL 执行 (v7.5+)
title_ja: DDL 実行の一時停止および再開 (v7.5+)
title_ko: DDL 실행의 일시 정지 및 재개 (v7.5+)
description_en: "In this practice, participants will learn how to use `ADMIN PAUSE DDL` to pause ongoing DDL executions and how to use `ADMIN RESUME DDL` to resume paused DDL executions. This feature helps reduce the impact of long-running DDL executions, such as adding indexes or modifying column attributes, on database performance. Additionally, it prevents interference between DDL executions and other maintenance tasks within the database. This feature is available from TiDB v7.5."
description_zh: "在本实验中，参与者将学习如何使用 ADMIN PAUSE DDL 来暂停正在执行的 DDL 操作和如何使用 ADMIN RESUME DDL 来恢复暂停的 DDL 操作。该功能可以避免例如添加索引、修改列属性等 DDL 操作长时间执行对于数据库性能的影响，同时也可以防止 DDL 任务与数据库其他维护工作之间的相互影响。该功能从 TiDB v7.5 开始可用。"
description_ja: "本演習では、受講者は `ADMIN PAUSE DDL` を使用して実行中の DDL 操作を一時停止する方法と、`ADMIN RESUME DDL` を使用して一時停止した DDL 操作を再開する方法を学びます。この機能は、インデックスの追加や列属性の変更などの DDL 操作が長時間実行されることによるデータベースのパフォーマンスへの影響を回避することができ、さらに DDL タスクとデータベースの他のメンテナンス作業との相互影響を防ぐことができます。この機能は、TiDB v7.5 から利用可能です。"
description_ko: "이 실습에서는 `ADMIN PAUSE DDL`을 사용하여 실행 중인 DDL 작업을 일시 중지하는 방법과 `ADMIN RESUME DDL`을 사용하여 일시 중지된 DDL 작업을 다시 시작하는 방법을 배웁니다. 이 기능은 인덱스 추가 또는 열 속성 수정과 같은 DDL 작업이 긴 시간 동안 실행되는 것을 방지하여 데이터베이스 성능에 미치는 영향을 줄입니다. 또한 DDL 작업과 데이터베이스의 다른 유지 관리 작업 간의 상호 작용을 방지합니다. 이 기능은 TiDB v7.5부터 사용할 수 있습니다."
splash_image_en: https://lab-static.pingcap.com/images/2025/7/28/2a5ea1252e8d3ff5f19acdcfdebc16429bfa13c9.png
splash_image_zh: https://lab-static.pingcap.com/images/2025/7/28/2a5ea1252e8d3ff5f19acdcfdebc16429bfa13c9.png
splash_image_ja: https://lab-static.pingcap.com/images/2025/7/28/2a5ea1252e8d3ff5f19acdcfdebc16429bfa13c9.png
splash_image_ko: https://lab-static.pingcap.com/images/2025/7/28/2a5ea1252e8d3ff5f19acdcfdebc16429bfa13c9.png
lab_level: Advanced
category_en:
  - Foundational Capability
  - Online DDL
category_zh:
  - 基础能力
  - Online DDL
category_ja:
  - 基礎能力
  - Online DDL
category_ko:
  - 기초 능력
  - Online DDL
authors:
  - Dong Fei (CEG)
delivery_type: Self-Paced
tidb_environments:
  - TiDB Self-Managed
tidb_versions:
  - 8.5.1
target_audience:
  - Architect
  - DBA
  - DevOps
regions:
  aws:
    - oregon
    - tokyo
    - singapore
    - frankfurt
credits: 5
credit_redeemable: true
employee_only: false
estimated_duration_minutes: 45

topology:
  - role: monitor
    node_count: 1
    web_ssh: true
    web_ssh_name: "TiUP Control Machine"
    ssh_user: ec2-user
  - role: pd
    node_count: 1
  - role: kv
    node_count: 3
  - role: db
    node_count: 2
  - role: tiflash
    node_count: 1
  - role: tiproxy
    node_count: 1

requirements:
  - type: "CloudStack"

bootstrap:
  - name: "prepare monitor"
    type: "ShellScript"
    target:
      - monitor1
    script: ./scripts/prepare-monitor.sh

features:
  enable_content_explain: false
