nodetool profileload — 활동 프로파일링
nodetool profileload — 활동 프로파일링
profileload 명령은 일정 기간 동안 활동을 낮은 오버헤드로 프로파일링하는 nodetool 명령이에요. 특정 키스페이스/테이블에서 어떤 키가 가장 활발한지 샘플링할 때 씁니다.
본문
이 명령은 지정한 기간(밀리초) 동안 키스페이스/테이블의 활동을 프로파일링해요. -a로 사용할 샘플러를, -k로 상위 샘플 수를, -s로 샘플러 용량을 조정할 수 있어요.
원문의 사용법은 다음과 같습니다.
NAME
nodetool profileload - Low footprint profiling of activity for a period
of time
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>)] profileload [-a <samplers>]
[-k <topCount>] [-s <capacity>] [--] <keyspace> <cfname> <duration>
OPTIONS
-a <samplers>
Comma separated list of samplers to use (Default: all)
-h <host>, --host <host>
Node hostname or ip address
-k <topCount>
Number of the top samples to list (Default: 10)
-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)
-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
옵션과 인자를 하나씩 살펴볼게요.
-a <samplers>— 사용할 샘플러의 콤마 구분 목록이에요. 기본값은all이에요.-k <topCount>— 나열할 상위 샘플 수예요. 기본값은10이에요.-s <capacity>— 샘플러 용량이에요. 값이 클수록 정확도가 높아져요. 기본값은256이에요.-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> <cfname> <duration>— 프로파일링할 키스페이스, 컬럼 패밀리 이름, 그리고 밀리초 단위의 지속 시간을 지정해요.
더 알아보기
- nodetool toppartitions — 가장 활발한 파티션 샘플링/출력
- nodetool tablehistograms — 테이블 통계 히스토그램