ストアのバックアップ
この項では、使用例について説明します。
この例では、容量3およびレプリケーション・ファクタ2の2つのストレージ・ノードにデプロイされたセキュアなKVStoreについて考えてみます。ストレージ・ノードは、ホストphoenix581601のポート8000および7000にあります。これらのストレージ・ノードをストレージ・ノード1 (sn1)およびストレージ・ノード2 (sn2)と呼ぶことにします。
このストアのトポロジは、runadminユーティリティを使用してpingすることで確認できます。これは、ストアの名前、レプリケーション・マスターおよびストアの実行ステータスを識別するのに役立ちます。
kv->ping出力:
Pinging components of store mystore based upon topology sequence #112
100 partitions and 2 storage nodes
Time: 2025-05-14 07:21:38 UTC Version: 25.1.1
Shard Status: healthy: 3 writable-degraded: 0 read-only: 0 offline: 0 total: 3
Admin Status: healthy
Zone [name=Cloud id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] RN Status: online: 6 read-only: 0 offline: 0 maxDelayMillis: 0 maxCatchupTimeSecs: 0
Storage Node [sn1] on phoenix581601: 8000 Zone: [name=Cloud id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 25.1.1 2025-01-09 18:45:42 UTC Build id: f6749f469c66 Edition: Enterprise isMasterBalanced: true serviceStartTime: 2025-05-14 06:04:25 UTC
Admin [admin1] Status: RUNNING,MASTER serviceStartTime: 2025-05-14 06:04:52 UTC stateChangeTime: 2025-05-14 06:04:51 UTC availableStorageSize: 2 GB
Rep Node [rg1-rn1] Status: RUNNING,REPLICA sequenceNumber: 1,156 haPort: 8011 availableStorageSize: 323 GB storageType: HD serviceStartTime: 2025-05-14 06:44:04 UTC stateChangeTime: 2025-05-14 06:44:46 UTC delayMillis: 0 catchupTimeSecs: 0
Rep Node [rg2-rn1] Status: RUNNING,MASTER sequenceNumber: 1,456 haPort: 8012 availableStorageSize: 323 GB storageType: HD serviceStartTime: 2025-05-14 06:44:34 UTC stateChangeTime: 2025-05-14 06:44:37 UTC
Rep Node [rg3-rn1] Status: RUNNING,MASTER sequenceNumber: 1,392 haPort: 8013 availableStorageSize: 323 GB storageType: HD serviceStartTime: 2025-05-14 06:45:05 UTC stateChangeTime: 2025-05-14 06:45:08 UTC
Storage Node [sn2] on phoenix581601: 7000 Zone: [name=Cloud id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 25.1.1 2025-01-09 18:45:42 UTC Build id: f6749f469c66 Edition: Enterprise isMasterBalanced: true serviceStartTime: 2025-05-14 06:28:18 UTC
Admin [admin2] Status: RUNNING,REPLICA serviceStartTime: 2025-05-14 06:33:02 UTC stateChangeTime: 2025-05-14 06:33:02 UTC availableStorageSize: 2 GB
Rep Node [rg1-rn2] Status: RUNNING,MASTER sequenceNumber: 1,156 haPort: 7011 availableStorageSize: 323 GB storageType: HD serviceStartTime: 2025-05-14 06:44:17 UTC stateChangeTime: 2025-05-14 06:44:45 UTC
Rep Node [rg2-rn2] Status: RUNNING,REPLICA sequenceNumber: 1,456 haPort: 7012 availableStorageSize: 323 GB storageType: HD serviceStartTime: 2025-05-14 06:44:49 UTC stateChangeTime: 2025-05-14 06:44:53 UTC delayMillis: 0 catchupTimeSecs: 0
Rep Node [rg3-rn2] Status: RUNNING,REPLICA sequenceNumber: 1,392 haPort: 7013 availableStorageSize: 323 GB storageType: HD serviceStartTime: 2025-05-14 06:45:17 UTC stateChangeTime: 2025-05-14 06:45:23 UTC delayMillis: 0 catchupTimeSecs: 0
ストアの名前がmystoreで、3つのシャードがあることがわかります。レプリケーション・マスターは、rg1-rn2、rg2-rn1およびrg3-rn1です。ストアはRunning状態です。