lab_code: demo_012
title_en: Using TiDB as an Operational Data Layer
title_zh: 使用 TiDB 作为 ODS
title_ja: TiDB を運用データ レイヤーとして使用する
title_ko: TiDB를 운영 데이터 레이어로 사용
description_en:
  In this hands-on lab, you will set up a database replication task
  from a MySQL source to a TiDB destination. You will also conduct real-time analysis
  on TiDB as changes are applied to MySQL. Thus, TiDB balances the transactional and
  analytical workload demands as an Operational Data Layer with TiFlash/HTAP support.
description_zh:
  在这个实验中，您将设置一个从 MySQL 源到 TiDB 目的地的数据库复制任务。您还将在 MySQL 应用更改时对 TiDB 进行实时分析。因此，TiDB
  作为由 TiFlash/HTAP 支持的运营数据层平衡了事务和分析工作负载需求。
description_ja:
  このハンズオン演習では、MySQL ソースから TiDB 宛先へのデータベースレプリケーションタスクを設定します。また、MySQL
  に変更が適用されるときに TiDB でリアルタイム分析を実行します。これにより、TiDB は TiFlash/HTAP サポートを備えた運用データレイヤーとしてトランザクションと分析のワークロード要求をバランスします。
description_ko:
  이 실습에서는 MySQL 소스에서 TiDB 대상으로 데이터베이스 복제 작업을 설정합니다. MySQL에 변경 사항이 적용될
  때 TiDB에서 실시간 분석을 수행합니다. 따라서 TiDB는 TiFlash/HTAP 지원을 통해 트랜잭션 및 분석 워크로드 요구 사항을 조정합니다.
splash_image_en: https://lab-static.pingcap.com/quick-demo/demo_012_en.png
splash_image_zh: https://lab-static.pingcap.com/quick-demo/demo_012_en.png
splash_image_ja: https://lab-static.pingcap.com/quick-demo/demo_012_en.png
splash_image_ko: https://lab-static.pingcap.com/quick-demo/demo_012_en.png
lab_level: Intermediate
category_en:
  - Foundational Capability
  - HTAP
category_zh:
  - 基础能力
  - HTAP
category_ja:
  - 基礎能力
  - HTAP
category_ko:
  - 기초 능력
  - HTAP
authors:
  - Todd Bao (CEG)
  - Sean Bogaard (CEG)
  - Kyle Cao (NA)
  - Masaki Hayashi (JBG)
  - Sam Dillard (NA)
  - Matthew Penaroza (NA)
delivery_type: Self-Paced
tidb_environments:
  - TiDB Self-Managed
tidb_versions:
  - 8.1.1
  - 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: 60

requirements:
  - type: CloudStack

topology:
  - role: monitor
    node_count: 1
    ssh_user: ec2-user
    web_ssh: true
  - role: pd
    node_count: 1
  - role: kv
    node_count: 3
  - role: db
    node_count: 1
  - role: tiflash
    node_count: 1
  - role: mysql
    node_count: 1

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

features:
  enable_content_explain: false
