nodetool stop — 컴팩션 중지

nodetool stop — 컴팩션 중지

이 명령은 현재 진행 중인 컴팩션을 중지해요. 특정 컴팩션 타입을 지정해 멈출 수 있으며, 컴팩션이 지나치게 오래 걸리거나 리소스를 과도하게 점유할 때 운영자가 개입해 중단할 때 사용합니다.

출처: nodetool stop — 컴팩션 중지

본문

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

NAME
        nodetool stop - Stop compaction

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>)] stop
                [(-id <compactionId> | --compaction-id <compactionId>)] [--] <compaction
                type>

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

        -id <compactionId>, --compaction-id <compactionId>
            Use -id to stop a compaction by the specified id. Ids can be found
            in the transaction log files whose name starts with compaction_,
            located in the table transactions folder.

        -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

        <compaction type>
            Supported types are COMPACTION, VALIDATION, CLEANUP, SCRUB,
            UPGRADE_SSTABLES, INDEX_BUILD, TOMBSTONE_COMPACTION, ANTICOMPACTION,
            VERIFY, VIEW_BUILD, INDEX_SUMMARY, RELOCATE, GARBAGE_COLLECT

더 알아보기 (Learn more)