Redis Cluster를 구성 및 관리하기 위한 Command Line 도구
pyproject.toml이 위치한 경로에서 다음 명령어를 수행합니다.
pip install .
export PATH="$HOME/.local/bin:$PATH"redis.conf가 위치한 경로에서 다음 명령어를 수행합니다.
redis.conf의 requirepass 값을 변경해서 (default) 사용자의 비밀번호를 설정할 수 있습니다.
현재 default로 설정되는 비밀번호는 passwd12!@입니다
chmod +x install_redis_nodes.sh
./install_redis_nodes.sh {클러스터 IP 주소}더 자세한 내용은 help 명령어를 활용하여 확인해 주세요. Usage: redis-cli_tool [OPTIONS] COMMAND
- 클러스터 생성
redis_cli_tool create [--replicas N] <ip:port ... ipN:portN>- 노드 추가
redis_cli_tool add-node [--master-id 'node_id'] <new_ip:new_port> <existing_ip:existing_port>- reshard
redis_cli_tool reshard [--from 'source_node_id'] [--to 'target_node_id'] [--slots N] [--pipeline N] <ip:port>- 노드 삭제
redis_cli_tool del-node <ip:port> <node_id>- 클러스터 및 노드 상태 확인
redis_cli_tool check <ip:port>- 더미 데이터 생성
redis_cli_tool populate-test-data [--num-of-keys N] <ip:port>- help
redis_cli_tool help