YugabyteDB
TMA-YUGABYTEDB-1.3
Ensure Data Cluster Initialized Successfully
Mô tả
First-time installs of YugabyteDB require the instantiation of the database cluster. A database cluster is a collection of databases that are managed by a single server instance. Runs yb-admin -master_addresses ${YB_MASTERS:-127.0.0.1:7100} list_all_masters and list_all_tablet_servers; passes when at least one master and one tablet server are listed and all are ALIVE.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
m=${YB_MASTERS:-127.0.0.1:7100}; ms=$(yb-admin -master_addresses "$m" list_all_masters 2>/dev/null) || exit 1; ts=$(yb-admin -master_addresses "$m" list_all_tablet_servers 2>/dev/null) || exit 1; a=$(printf '%s\n' "$ms" | awk 'NR > 1 && NF {n++; if ($0 !~ /ALIVE/) b++} END {print (n > 0 && b == 0) ? "ok" : "bad"}'); t=$(printf '%s\n' "$ts" | awk 'NR > 1 && NF {n++; if ($0 !~ /ALIVE/) b++} END {print (n > 0 && b == 0) ? "ok" : "bad"}'); [ "$a$t" = okok ] && echo compliant || echo noncompliant- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Investigate the masters/tablet servers that are not ALIVE (logs under <fs_data_dirs>/yb-data/*/logs) and follow the YugabyteDB troubleshooting guide: https://docs.yugabyte.com/preview/troubleshoot/
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- yugabytedbavailability
- Tham chiếu
- CIS YugabyteDB Benchmark v2.0.0 - 1.3 Ensure Data Cluster Initialized Successfully
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
tmaegis scan --target yugabytedb