redis内存相关操作 # 查看redis内存相关信息 > info memory #查看bgsave等持久化进程状态 >info Persistence # 查看redis实例最大内存限制 >config get maxmemory # 设置redis实例最大内存限制1gb >config set maxmemory 1073741824 red…
redis集群宿主机故障forget故障节点 cat ./redis_cluster_forget_node.sh #echo "usage: host port" nodes_addrs=$(redis-cli -h $1 -p $2 -a password cluster nodes|grep -v handshake| awk '{print…
RedisShake使用案例 下载shake工具 mkdir /data/reidsshake -p cd /data/reidsshake wget https://github.com/tair-opensource/RedisShake/releases/download/v3.1.11/redis-shake-linux-amd64.tar…
# coding: utf-8 import json import requests import logging import os,subprocess #################public_sentinel_idc_a############# # '10.0.0.1'','10.0.0.2,'10.0.0.3' ########…