nodetool setcachekeystosave — 캐시가 저장하는 키 개수 설정

nodetool setcachekeystosave — 캐시가 저장하는 키 개수 설정

이 명령은 각 캐시가 저장하는 키의 개수를 설정해요. 캐시 구조의 힌트 개수로, 노드 재시작 후 캐시를 미리 채우는 데 활용됩니다. 카키, 키 캐시와 행 캐시를 함께 조정할 수 있답니다.

출처: nodetool setcachekeystosave — 캐시가 저장하는 키 개수 설정

본문

실제 사용 구문은 아래와 같아요. 옵션 설명은 명령의 도움말(usage)을 그대로 옮긴 것이니, 실행 환경에 맞춰 필요한 옵션만 골라 사용하면 됩니다.

NAME
        nodetool setcachekeystosave - Set number of keys saved by each cache for
        faster post-restart warmup. 0 to disable

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>)] setcachekeystosave [--]
                <key-cache-keys-to-save> <row-cache-keys-to-save>
                <counter-cache-keys-to-save>

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

        <key-cache-keys-to-save> <row-cache-keys-to-save>
        <counter-cache-keys-to-save>
            The number of keys saved by each cache. 0 to disable

더 알아보기 (Learn more)