nodetool settraceprobability — 트레이스 확률 설정

nodetool settraceprobability — 트레이스 확률 설정

이 명령은 요청 중 트레이스를 수집할 확률(trace probability)을 설정해요. 낮은 확률로 임의 샘플링 트레이스를 남겨 전체 트래픽 성능에 미치는 영향을 최소화하면서, 필요할 때만 세션 쿼리의 실행 경로를 추적할 수 있게 해줍니다.

출처: nodetool settraceprobability — 트레이스 확률 설정

본문

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

NAME
        nodetool settraceprobability - Sets the probability for tracing any
        given request to value. 0 disables, 1 enables for all requests, 0 is the
        default

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>)] settraceprobability [--]
                <value>

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

        <value>
            Trace probability between 0 and 1 (ex: 0.2)

더 알아보기 (Learn more)