nodetool setdefaultrf — 기본 키스페이스 복제 계수 설정
nodetool setdefaultrf — 기본 키스페이스 복제 계수 설정
이 명령은 키스페이스 생성 시 명시적으로 복제 계수를 지정하지 않았을 때 적용되는 기본 복제 계수(default replication factor)를 설정해요. NetworkTopologyStrategy의 자동 확장(auto-expansion) 기반으로 동작하며, 이 값은 노드마다 유지되고 재시작 시 기본값(1)으로 되돌아간답니다.
본문
실제 사용 구문은 아래와 같아요. 옵션 설명은 명령의 도움말(usage)을 그대로 옮긴 것이니, 실행 환경에 맞춰 필요한 옵션만 골라 사용하면 됩니다.
NAME
nodetool setdefaultrf - Sets default keyspace replication factor.
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>)] setdefaultrf [--] <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>
Default replication factor