Skip to content

wyoung163/redis-cluster-cli-tool

Repository files navigation

CLI Tool for Redis Cluster: redis_cli_tool

Redis Cluster를 구성 및 관리하기 위한 Command Line 도구

[도구 빌드 방법]

pyproject.toml이 위치한 경로에서 다음 명령어를 수행합니다.

pip install . 
export PATH="$HOME/.local/bin:$PATH"

[Redis 노드 설치 방법]

redis.conf가 위치한 경로에서 다음 명령어를 수행합니다. redis.conf의 requirepass 값을 변경해서 (default) 사용자의 비밀번호를 설정할 수 있습니다. 현재 default로 설정되는 비밀번호는 passwd12!@입니다

chmod +x install_redis_nodes.sh
./install_redis_nodes.sh {클러스터 IP 주소}

[Command 소개]

더 자세한 내용은 help 명령어를 활용하여 확인해 주세요. Usage: redis-cli_tool [OPTIONS] COMMAND

  1. 클러스터 생성
redis_cli_tool create [--replicas N] <ip:port ... ipN:portN>
  1. 노드 추가
redis_cli_tool add-node [--master-id 'node_id'] <new_ip:new_port> <existing_ip:existing_port>
  1. reshard
redis_cli_tool reshard [--from 'source_node_id'] [--to 'target_node_id'] [--slots N] [--pipeline N] <ip:port>
  1. 노드 삭제
redis_cli_tool del-node <ip:port> <node_id>
  1. 클러스터 및 노드 상태 확인
redis_cli_tool check <ip:port>
  1. 더미 데이터 생성
redis_cli_tool populate-test-data [--num-of-keys N] <ip:port>
  1. help
redis_cli_tool help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published