nodetool recompress_sstables — 압축 설정 재적용

nodetool recompress_sstables — 압축 설정 재적용

recompress_sstables 명령은 현재 압축 설정과 다른 압축 구성을 가진 SSTable을 다시 쓰는 nodetool 명령이에요. 테이블의 압축 설정을 변경한 뒤 기존 SSTable에 반영할 때 씁니다.

출처: nodetool recompress_sstables

본문

이 명령은 요청한 테이블의 SSTable 중 현재 압축 설정과 다른 것을 다시 써서 새 설정을 적용해요. -j 옵션으로 동시에 업그레이드할 SSTable 수를 조절할 수 있어요.

원문의 사용법은 다음과 같습니다.

NAME
        nodetool recompress_sstables - Rewrite sstables (for the requested
        tables) that have compression configuration different from the current
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>)] recompress_sstables
                [(-j <jobs> | --jobs <jobs>)] [--] [<keyspace> <tables>...]
OPTIONS
        -h <host>, --host <host>
            Node hostname or ip address
        -j <jobs>, --jobs <jobs>
            Number of sstables to upgrade simultanously, set to 0 to use all
            available compaction threads
        -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
        [<keyspace> <tables>...]
            The keyspace followed by one or many tables

옵션과 인자를 하나씩 살펴볼게요.

  • -j <jobs>, --jobs <jobs> — 동시에 업그레이드할 SSTable 수예요. 0으로 설정하면 사용 가능한 모든 컴팩션 스레드를 사용해요.
  • -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> <tables>...] — 키스페이스와 하나 이상의 테이블 이름을 지정해요. 생략하면 모든 테이블을 대상으로 해요.

더 알아보기