摘要:
sentinel monitor mymaster2 192.168.100.5 28001 2sentinel set mymaster2 client-reconfig-script /etc/redis/reconfig.shsentinel flushconfig role命令查看senti 阅读全文
摘要:
# -*- coding:utf-8 -*- # import os import time import sys def del_expire_file(file_path,expire_day): if not os.path.isdir(file_path): print("{} is not 阅读全文
摘要:
import configparser config = configparser.ConfigParser(allow_no_value=True) config.read("test.ini") ''' test.ini [db] host = 127.0.0.1 port = 8888 use 阅读全文
摘要:
# -*- coding:utf-8 -*- # import requests import time ''' 采样范围太大就会提示 {"status":"error","errorType":"execution", "error":"query processing would load to 阅读全文
摘要:
新增功能: 1、特殊环境下部署,添加针对少于3台(0台,1台,2台)机器的时候的提示,规划和部署。 2、添加集群初始端口和集群规模的默认值。 #!/bin/bash #集群初始端口,递增1 port=${2:-'6379'} #集群的master个数 cluster_size=${3:-'3'} i 阅读全文
摘要:
在MySQL innobackupex全备期间,磁盘io基本被打满,设置过 --throttle效果不明显, --throttle=# This option specifies a number of I/O operations (pairs of read+write) per second. 阅读全文
摘要:
导出 consul kv export -http-addr=ip:8500 -token="xxxx-xxxx-xxxx-xxxx-xxxxxx" > consul-kv.json 导入consul kv import -http-addr=ip:8500 -token="xxxx-xxxx-xx 阅读全文
摘要:
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-0.htmlMySQL8.0.0The current maximum auto-increment counter value is now written to the redo l 阅读全文
摘要:
#!/bin/bash #################################################################################################### #传参列表 #sh 100.sh 192.168.1.1 mysql my 阅读全文
摘要:
1、prometheus 1.1 prometheus安装 1.2 prometheus配置 col_name col_age col_add col_page 2、grafana 2.1 grafana 安装 2.2 grafana 配置 3、alertmanager 1 alertmanager 阅读全文