nodetool info — 노드 정보 조회
nodetool info — 노드 정보 조회
info 명령은 노드의 정보(가동 시간, 로드 등)를 조회하는 nodetool 명령이에요. 노드 상태를 빠르게 파악할 때 가장 자주 쓰는 명령 중 하나예요.
출처: nodetool info
본문
이 명령은 대상 노드의 가동 시간, 로드, 힙 사용량, GC 상태 등 핵심 정보를 출력해요. -T 옵션으로 모든 토큰을, -O 옵션으로 잘못된 토큰에 대한 키스페이스별 작업 수를 확인할 수 있어요.
원문의 사용법은 다음과 같습니다.
NAME
nodetool info - Print node information (uptime, load, ...)
SYNOPSIS
nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
[(-pp | --print-port)] [(-pw <password> | --password <password>)]
[(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
[(-u <username> | --username <username>)] info
[(-O | --out-of-range-ops)] [(-T | --tokens)]
OPTIONS
-h <host>, --host <host>
Node hostname or ip address
-O, --out-of-range-ops
Display per-keyspace counts of operations for invalid tokens
-p <port>, --port <port>
Remote jmx agent port number
-pp, --print-port
Operate in 4.0 mode with hosts disambiguated by port number
-pw <password>, --password <password>
Remote jmx agent password
-pwf <passwordFilePath>, --password-file <passwordFilePath>
Path to the JMX password file
-T, --tokens
Display all tokens
-u <username>, --username <username>
Remote jmx agent username
옵션을 하나씩 살펴볼게요.
-O, --out-of-range-ops— 잘못된 토큰에 대한 키스페이스별 작업 수를 표시해요.-T, --tokens— 모든 토큰을 표시해요.-h <host>, --host <host>— 대상 노드의 호스트명 또는 IP 주소를 지정해요.-p <port>, --port <port>— 원격 JMX 에이전트 포트 번호를 지정해요.-pp, --print-port— 호스트를 포트 번호로 구분하는 4.0 모드로 동작해요.-pw <password>, --password <password>— 원격 JMX 에이전트 비밀번호를 지정해요.-pwf <passwordFilePath>, --password-file <passwordFilePath>— JMX 비밀번호 파일의 경로를 지정해요.-u <username>, --username <username>— 원격 JMX 에이전트 사용자 이름을 지정해요.
더 알아보기
- nodetool status — 클러스터 상태 확인
- nodetool tpstats — 스레드 풀 사용량 통계