YugabyteDB
TMA-YUGABYTEDB-1.3
Ensure Data Cluster Initialized Successfully
높음레벨 1자동yugabytedb
설명
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.
점검 방법
감사 방식: 셸 명령
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- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
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/
속성
- 운영 체제
- 모두
- 태그
- yugabytedbavailability
- 참고 자료
- CIS YugabyteDB Benchmark v2.0.0 - 1.3 Ensure Data Cluster Initialized Successfully
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target yugabytedb