nodetool toppartitions — 가장 활발한 파티션 샘플링

nodetool toppartitions — 가장 활발한 파티션 샘플링

이 명령은 지정한 시간 동안 가장 활발한(핫) 파티션을 샘플링해 출력해요. 특정 파티션에 읽기/쓰기가 몰리는 핫스팟(hotspot)을 찾아내는 데 매우 유용합니다. -k(상위 샘플 수), -i(백그라운드 주기 샘플링) 같은 옵션을 지원해요.

출처: nodetool toppartitions — 가장 활발한 파티션 샘플링

본문

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

NAME
        nodetool toppartitions - Sample and print the most active partitions

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>)] toppartitions [-a <samplers>]
                [(-i <intervalMillis> | --interval <intervalMillis>)] [-k <topCount>]
                [(-l | --list)] [-s <capacity>] [(-t | --stop)] [--] <keyspace> <cfname>
                <duration>

OPTIONS
        -a <samplers>
            Comma separated list of samplers to use (Default: all)

        -h <host>, --host <host>
            Node hostname or ip address

        -i <intervalMillis>, --interval <intervalMillis>
            Schedule a new job that samples every interval milliseconds
            (Default: disabled) in the background

        -k <topCount>
            Number of the top samples to list (Default: 10)

        -l, --list
            List the scheduled sampling jobs

        -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

        -s <capacity>
            Capacity of the sampler, higher for more accuracy (Default: 256)

        -t, --stop
            Stop the scheduled sampling job identified by <keyspace> and
            <cfname>. Jobs are stopped until the last schedules complete.

        -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> <cfname> <duration>
            The keyspace, column family name, and duration in milliseconds
            (Default: 10000)

더 알아보기 (Learn more)