Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions backup-and-restore-using-dumpling-lightning.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

少量のデータ(例えば、50 GiB未満)をバックアップする必要があり、高速なバックアップ速度を必要としない場合は、 [Dumpling](/dumpling-overview.md)を使用してTiDBデータベースからデータをエクスポートし、その後[TiDB Lightning](/tidb-lightning/tidb-lightning-overview.md)を使用して別のTiDBデータベースにデータを復元することができます。

大規模なデータベースをバックアップする必要がある場合は、 [BR](/br/backup-and-restore-overview.md)使用することをお勧めします。DumplingDumpling大規模なデータベースをエクスポートできますが、 BRの方が適しています。
大規模なデータベースをバックアップする必要がある場合は、 [BR](/br/backup-and-restore-overview.md)を使用することをお勧めします。Dumplingは大規模なデータベースもエクスポートできますが、 BRの方が適しています。

Check failure on line 12 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 12, "column": 84}}}, "severity": "ERROR"}

## 要件 {#requirements}

Expand All @@ -31,7 +31,7 @@

## リソース要件 {#resource-requirements}

**オペレーティングシステム**: このドキュメントの例では、新規の CentOS 7 インスタンスを使用しています。仮想マシンは、ローカル ホストまたはクラウドにデプロイできます。TiDB TiDB Lightning はデフォルトで必要なだけの CPU リソースを消費するため、専用サーバーにデプロイすることをお勧めします。それが不可能な場合は、他の TiDB コンポーネント (たとえば`tikv-server` ) と一緒に単一のサーバーにデプロイし、 `region-concurrency`を構成して、 TiDB Lightningの CPU 使用率を制限できます。通常、論理 CPU の 75% にサイズを設定できます。
**オペレーティングシステム**: このドキュメントの例では、新規の CentOS 7 インスタンスを使用しています。仮想マシンは、ローカル ホストまたはクラウドにデプロイできます。TiDB Lightning はデフォルトで必要なだけの CPU リソースを消費するため、専用サーバーにデプロイすることをお勧めします。それが不可能な場合は、他の TiDB コンポーネント (たとえば`tikv-server` ) と一緒に単一のサーバーにデプロイし、 `region-concurrency`を構成して、 TiDB Lightningの CPU 使用率を制限できます。通常、論理 CPU の 75% にサイズを設定できます。

Check failure on line 34 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 34, "column": 59}}}, "severity": "ERROR"}

**メモリとCPU** : TiDB Lightningは多くのリソースを消費するため、64 GiB以上のメモリと32以上のCPUコアを割り当てることを推奨します。最高のパフォーマンスを得るには、CPUコアとメモリ(GiB)の比率が1:2以上であることを確認してください。

Expand All @@ -41,10 +41,10 @@

バックアップタスクのデータをローカルディスクに保存する必要がある場合は、以下の制限事項に注意してください。

- Dumplingには、データ ソース全体を保存できる (またはエクスポートされるすべてのアップストリーム テーブルを保存できる) ディスク容量が必要です。必要なスペースを計算するには、 [下流のstorageスペース要件](/tidb-lightning/tidb-lightning-requirements.md#storage-space-of-the-target-database)を参照してください。
- インポート処理中、 TiDB Lightningはソート済みのキーと値のペアを保存するための一時的な領域を必要とします。ディスク容量は、データソースから取得した最大の単一テーブルを格納できるだけの十分な量が必要です
- Dumplingには、データソース全体を保存できる(またはエクスポートされるすべての上流テーブルを保存できる)ディスク容量が必要です。必要なスペースを計算するには、 [ターゲットデータベースのストレージ要件](/tidb-lightning/tidb-lightning-requirements.md#storage-space-of-the-target-database)を参照してください。

Check failure on line 44 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 44, "column": 71}}}, "severity": "ERROR"}
- インポート処理中、 TiDB Lightningはソート済みのキーと値のペアを保存するための一時的な領域を必要とします。ディスク容量は、データソースの最大の単一テーブルを格納できるのに十分な量が必要です

Check failure on line 45 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 45, "column": 64}}}, "severity": "ERROR"}

**注**: DumplingによってMySQLからエクスポートされる正確なデータ量を計算することは困難ですが、次のSQLステートメントを使用して`DATA_LENGTH`テーブルの`information_schema.tables`フィールドを要約することで、データ量を推定できます。
**注記:** DumplingによってMySQLからエクスポートされる正確なデータ量を計算することは困難ですが、次のSQLステートメントを使用して`information_schema.tables`テーブルの`DATA_LENGTH`フィールドを要約することで、データ量を推定できます。

Check failure on line 47 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 47, "column": 145}}}, "severity": "ERROR"}

Check failure on line 47 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (:) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (:) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 47, "column": 5}}}, "severity": "ERROR"}

```sql
-- Calculate the size of all schemas
Expand Down Expand Up @@ -77,10 +77,10 @@

### ターゲットとなるTiKVクラスターのディスク容量 {#disk-space-for-the-target-tikv-cluster}

対象の TiKV クラスターには、インポートされたデータを保存するのに十分なディスク容量が必要です。[標準ハードウェア要件](/hardware-and-software-requirements.md)に加えて、対象の TiKV クラスターのstorage容量は**、データソースのサイズ × <a href="/faq/manage-cluster-faq.md#is-the-number-of-replicas-in-each-region-configurable-if-yes-how-to-configure-it">レプリカ数</a>× 2**よりも大きくなければなりません。たとえば、クラスターがデフォルトで 3 つのレプリカを使用する場合、対象の TiKV クラスターは、データソースのサイズの 6 倍よりも大きなstorage容量が必要です。この式に x 2 が含まれている理由は次のとおりです。
ターゲットの TiKV クラスターには、インポートされたデータを保存するのに十分なディスク容量が必要です。[標準ハードウェア要件](/hardware-and-software-requirements.md)に加えて、ターゲットの TiKV クラスターのストレージ容量は**、データソースのサイズ × <a href="/faq/manage-cluster-faq.md#is-the-number-of-replicas-in-each-region-configurable-if-yes-how-to-configure-it">レプリカ数</a>× 2**よりも大きくなければなりません。たとえば、クラスターがデフォルトで 3 つのレプリカを使用する場合、ターゲットの TiKV クラスターは、データソースのサイズの 6 倍よりも大きなストレージ容量が必要です。この式に x 2 が含まれている理由は次のとおりです。

Check failure on line 80 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 80, "column": 53}}}, "severity": "ERROR"}

- インデックス作成には余分なスペースが必要になる場合があります
- RocksDBには空間増幅効果がある
- インデックスには余分な容量が必要になる場合があります

Check failure on line 82 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 82, "column": 31}}}, "severity": "ERROR"}
- RocksDBには空間増幅がある

Check failure on line 83 in backup-and-restore-using-dumpling-lightning.md

View workflow job for this annotation

GitHub Actions / vale

[vale] reported by reviewdog 🐶 [PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text. Raw Output: {"message": "[PingCAP.ZhPunctuation] Don't use Chinese punctuation (。) in English text.", "location": {"path": "backup-and-restore-using-dumpling-lightning.md", "range": {"start": {"line": 83, "column": 21}}}, "severity": "ERROR"}

## Dumplingを使用してフルデータをバックアップします {#use-dumpling-to-back-up-full-data}

Expand All @@ -94,11 +94,11 @@

Dumplingのその他の構成については、 [Dumplingのオプション一覧](/dumpling-overview.md#option-list-of-dumpling)参照してください。

2. エクスポートが完了すると、ディレクトリ`s3://my-bucket/sql-backup`でバックアップファイルを表示できます
2. エクスポートが完了すると、ディレクトリ`s3://my-bucket/sql-backup`でバックアップファイルを確認できます

## TiDB Lightningを使用して完全なデータを復元します。 {#use-tidb-lightning-to-restore-full-data}

1. `tidb-lightning.toml`ファイルを編集して、 Dumplingを使用して`s3://my-bucket/sql-backup`からターゲットの TiDB クラスタにバックアップされた完全なデータをインポートします
1. `tidb-lightning.toml`ファイルを編集して、Dumplingを使用して`s3://my-bucket/sql-backup`にバックアップされた完全なデータを、ターゲットのTiDBクラスターにインポートします

```toml
[lightning]
Expand Down Expand Up @@ -127,7 +127,7 @@
pd-addr = "${ip}:${port}" # The address of the PD cluster, e.g.: 172.16.31.3:2379. TiDB Lightning obtains some information from PD. When backend = "local", you must specify status-port and pd-addr correctly. Otherwise, the import will be abnormal.
```

TiDB Lightning構成の詳細については、 [TiDB Lightning のコンフィグレーション](/tidb-lightning/tidb-lightning-configuration.md)を参照してください。
TiDB Lightning構成の詳細については、 [TiDB Lightningの構成](/tidb-lightning/tidb-lightning-configuration.md)を参照してください。

2. `tidb-lightning`を実行してインポートを開始します。コマンドラインでプログラムを直接起動すると、 `SIGHUP`シグナルを受信した後にプロセスが予期せず終了する可能性があります。この場合、 `nohup`または`screen`ツールを使用してプログラムを実行することをお勧めします。例:

Expand All @@ -139,9 +139,9 @@
nohup tiup tidb-lightning -config tidb-lightning.toml > nohup.out 2>&1 &
```

3. インポートが開始されたら、ログ内のキーワード`progress` `grep`することで、インポートの進行状況を確認できます。進行状況は、デフォルトでは 5 分ごとに更新されます。
3. インポートが開始されたら、ログ内のキーワード`progress``grep`することで、インポートの進行状況を確認できます。進行状況は、デフォルトでは 5 分ごとに更新されます。

4. TiDB Lightning はインポートが完了すると自動的に終了します。最後の行に`tidb-lightning.log``the whole procedure completed`が含まれているかどうかを確認してください。含まれている場合はインポートが成功しています。含まれていない場合は、インポート中にエラーが発生しました。エラーメッセージの指示に従ってエラーに対処してください。
4. TiDB Lightning はインポートが完了すると自動的に終了します。`tidb-lightning.log`の最後の行に`the whole procedure completed`が含まれているかどうかを確認してください。含まれている場合はインポートが成功しています。含まれていない場合は、インポート中にエラーが発生しました。エラーメッセージの指示に従ってエラーに対処してください。

> **注記:**
>
Expand Down
20 changes: 10 additions & 10 deletions basic-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ summary: TiDBの機能概要について学びましょう。

| インデックスと制約 | 8.5 | 8.1 | 7.5 | 7.1 | 6.5 | 6.1 | 5.4 |
| ------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| [発現インデックス](/sql-statements/sql-statement-create-index.md#expression-index)[^2] | Y | Y | Y | Y | Y | E | E |
| [式インデックス](/sql-statements/sql-statement-create-index.md#expression-index)[^2] | Y | Y | Y | Y | Y | E | E |
| [カラム型storage(TiFlash)](/tiflash/tiflash-overview.md) | Y | Y | Y | Y | Y | Y | Y |
| [FastScanを使用してOLAPシナリオにおけるクエリを高速化する](/tiflash/use-fastscan.md) | Y | Y | Y | Y | E | N | N |
| [RocksDBエンジン](/storage-engine/rocksdb-overview.md) | Y | Y | Y | Y | Y | Y | Y |
Expand Down Expand Up @@ -120,9 +120,9 @@ summary: TiDBの機能概要について学びましょう。
| [過去の実行計画に従ってバインディングを作成する](/sql-plan-management.md#create-a-binding-according-to-a-historical-execution-plan) | Y | Y | Y | Y | E | N | N |
| [コプロセッサーキャッシュ](/coprocessor-cache.md) | Y | Y | Y | Y | Y | Y | Y |
| [ステイル読み取り](/stale-read.md) | Y | Y | Y | Y | Y | Y | Y |
| [Followerが読む](/follower-read.md) | Y | Y | Y | Y | Y | Y | Y |
| [フォロワーリード](/follower-read.md) | Y | Y | Y | Y | Y | Y | Y |
| [過去のデータ(tidb_snapshot)を読み込む](/read-historical-data.md) | Y | Y | Y | Y | Y | Y | Y |
| [オプティマイザのヒント](/optimizer-hints.md) | Y | Y | Y | Y | Y | Y | Y |
| [オプティマイザヒント](/optimizer-hints.md) | Y | Y | Y | Y | Y | Y | Y |
| [MPP実行エンジン](/explain-mpp.md) | Y | Y | Y | Y | Y | Y | Y |
| [MPP実行エンジン - 圧縮交換](/explain-mpp.md#mpp-version-and-exchange-data-compression) | Y | Y | Y | Y | N | N | N |
| [TiFlashパイプラインモデル](/tiflash/tiflash-pipeline-model.md) | Y | Y | Y | N | N | N | N |
Expand All @@ -142,7 +142,7 @@ summary: TiDBの機能概要について学びましょう。
| ------------------------------------------------------------------------------------------------------------------------ | :-: | :-: | :-: | :-: | :---: | :-: | :-: |
| 基本`CREATE` 、 `DROP` 、 `ALTER` 、 `RENAME` 、 `TRUNCATE` | Y | Y | Y | Y | Y | Y | Y |
| [生成された列](/generated-columns.md) | Y | Y | Y | Y | E | E | E |
| [閲覧数](/views.md) | Y | Y | Y | Y | Y | Y | Y |
| [ビュー](/views.md) | Y | Y | Y | Y | Y | Y | Y |
| [シーケンス](/sql-statements/sql-statement-create-sequence.md) | Y | Y | Y | Y | Y | Y | Y |
| [自動インクリメント](/auto-increment.md) | Y | Y | Y | Y | Y[^4] | Y | Y |
| [自動ランダム](/auto-random.md) | Y | Y | Y | Y | Y | Y | Y |
Expand All @@ -161,17 +161,17 @@ summary: TiDBの機能概要について学びましょう。

</StickyHeaderTable>

## 取引 {#transactions}
## トランザクション {#transactions}

<StickyHeaderTable>

| 取引 | 8.5 | 8.1 | 7.5 | 7.1 | 6.5 | 6.1 | 5.4 |
| トランザクション | 8.5 | 8.1 | 7.5 | 7.1 | 6.5 | 6.1 | 5.4 |
| ---------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| [非同期コミット](/system-variables.md#tidb_enable_async_commit-new-in-v50) | Y | Y | Y | Y | Y | Y | Y |
| [1個](/system-variables.md#tidb_enable_1pc-new-in-v50) | Y | Y | Y | Y | Y | Y | Y |
| [1PC](/system-variables.md#tidb_enable_1pc-new-in-v50) | Y | Y | Y | Y | Y | Y | Y |
| [大規模トランザクション(1 TiB)](/transaction-overview.md#transaction-size-limit) | Y | Y | Y | Y | Y | Y | Y |
| [悲観的な取引](/pessimistic-transaction.md) | Y | Y | Y | Y | Y | Y | Y |
| [楽観的な取引](/optimistic-transaction.md) | Y | Y | Y | Y | Y | Y | Y |
| [悲観的トランザクション](/pessimistic-transaction.md) | Y | Y | Y | Y | Y | Y | Y |
| [楽観的トランザクション](/optimistic-transaction.md) | Y | Y | Y | Y | Y | Y | Y |
| [反復読み取り分離(スナップショット分離)](/transaction-isolation-levels.md) | Y | Y | Y | Y | Y | Y | Y |
| [リードコミット隔離](/transaction-isolation-levels.md) | Y | Y | Y | Y | Y | Y | Y |
| [長時間実行されているアイドル状態のトランザクションを自動的に終了する](/system-variables.md#tidb_idle_transaction_timeout-new-in-v760) | Y | Y | N | N | N | N | N |
Expand Down Expand Up @@ -242,7 +242,7 @@ summary: TiDBの機能概要について学びましょう。
| [パスワード管理](/password-management.md) | Y | Y | Y | Y | Y | N | N |
| [MySQL互換の`GRANT`システム](/privilege-management.md) | Y | Y | Y | Y | Y | Y | Y |
| [動的権限](/privilege-management.md#dynamic-privileges) | Y | Y | Y | Y | Y | Y | Y |
| [Security強化モード](/system-variables.md#tidb_enable_enhanced_security) | Y | Y | Y | Y | Y | Y | Y |
| [セキュリティ強化モード](/system-variables.md#tidb_enable_enhanced_security) | Y | Y | Y | Y | Y | Y | Y |
| [編集済みログファイル](/log-redaction.md) | Y | Y | Y | Y | Y | Y | Y |

</StickyHeaderTable>
Expand Down
Loading
Loading