nodetool ring — 토큰 링 정보 조회

nodetool ring — 토큰 링 정보 조회

ring 명령은 토큰 링(token ring)에 대한 정보를 출력하는 nodetool 명령이에요. 클러스터의 노드, 토큰, 상태, 로드를 한눈에 확인할 때 씁니다.

출처: nodetool ring

본문

이 명령은 토큰 링의 노드 목록, 각 노드의 토큰, 상태, 로드, 소유권 정보를 출력해요. -r 옵션으로 IP 대신 도메인 이름을, 키스페이스를 지정하면 토폴로지 인식을 반영한 정확한 소유권 정보를 볼 수 있어요.

원문의 사용법은 다음과 같습니다.

NAME
        nodetool ring - Print information about the token ring
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>)] ring [(-r | --resolve-ip)]
                [--] [<keyspace>]
OPTIONS
        -h <host>, --host <host>
            Node hostname or ip address
        -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
        -r, --resolve-ip
            Show node domain names instead of IPs
        -u <username>, --username <username>
            Remote jmx agent username
        --
            This option can be used to separate command-line options from the
            list of argument, (useful when arguments might be mistaken for
            command-line options
        <keyspace>
            Specify a keyspace for accurate ownership information (topology
            awareness)

옵션과 인자를 하나씩 살펴볼게요.

  • -r, --resolve-ip — IP 대신 노드 도메인 이름을 보여 줍니다.
  • -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 에이전트 사용자 이름을 지정해요.
  • -- — 명령줄 옵션과 인자 목록을 구분할 때 써요.
  • <keyspace> — 정확한 소유권 정보(토폴로지 인식)를 얻기 위한 키스페이스를 지정해요.

더 알아보기