flush — 테이블 플러시
flush — 테이블 플러시
nodetool flush 명령은 하나 이상의 테이블을 플러시하는 명령이에요. 메모리(멤테이블)의 데이터를 SSTable로 내려 써요.
출처: nodetool flush
본문
flush는 멤테이블(memtable)에 쌓여 있는 데이터를 강제로 SSTable로 플러시하는 명령이에요. 스냅샷 전에 데이터를 디스크로 밀어 넣고 싶을 때나, 메모리 부담을 줄이고 싶을 때 써요. 인자를 생략하면 모든 테이블을 플러시하고, 키스페이스 뒤에 테이블을 지정하면 해당 테이블만 플러시해요. 아래는 완전한 사용법이에요.
NAME
nodetool flush - Flush one or more tables
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>)] flush [--] [<keyspace>
<tables>...]
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
[<keyspace> <tables>...]
The keyspace followed by one or many tables
더 알아보기 (Learn more)
- nodetool drain — 노드 배수(쓰기 중단 + 전체 플러시)
- nodetool snapshot — 스냅샷 생성