nodetool invalidaterolescache — 역할 캐시 무효화

nodetool invalidaterolescache — 역할 캐시 무효화

invalidaterolescache 명령은 역할(roles) 캐시를 무효화하는 nodetool 명령이에요. 변경된 역할 설정을 다시 반영하게 할 때 씁니다.

출처: nodetool invalidaterolescache

본문

이 명령은 노드의 역할 캐시를 무효화해요. 역할 목록을 지정하면 해당 역할만, 생략하면 모든 역할의 캐시를 무효화합니다.

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

NAME
        nodetool invalidaterolescache - Invalidate the roles cache
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>)] invalidaterolescache [--]
                [<role>...]
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
        -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
        [<role>...]
            List of roles to invalidate. By default, all roles

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

  • -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 에이전트 사용자 이름을 지정해요.
  • -- — 명령줄 옵션과 인자 목록을 구분할 때 써요.
  • [<role>...] — 무효화할 역할 목록이에요. 생략하면 모든 역할을 무효화해요.

더 알아보기