摘要: #!/bin/bashdatept-online-schema-change --alter "ADD INDEX idx_01(create_time)" D=database_name,t=table_name --charset utf8mb4 --nocheck-replication-fi 阅读全文
posted @ 2023-11-03 14:48 东哥加油!!! 阅读(12) 评论(0) 推荐(0) 编辑
摘要: more template.tmpl {{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}]{{ end }} {{ defin 阅读全文
posted @ 2023-11-03 13:45 东哥加油!!! 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 定时任务: 09 00 * * * /bin/bash /data/scripts/dbbak.sh >> /backup/backup_$(date +\%Y\%m\%d\%H\%M\%S).log 2>&1 dbbak.sh: #!/bin/bash# 设置备份相关参数BACKUP_DIR="/ 阅读全文
posted @ 2023-07-05 15:32 东哥加油!!! 阅读(21) 评论(0) 推荐(0) 编辑
摘要: pt_query_digest安装 mv pt-query-digest /usr/bin/ chmod +x /usr/bin/pt-query-digest yum -y install perl-Digest-MD5 yum -y install perl-DBI perl-DBD-MySQL 阅读全文
posted @ 2023-07-05 15:26 东哥加油!!! 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1、yum安装 yum install -y postgresql-server postgresql-contrib 2、初始化 postgresql-setup initdb 3、挂载数据盘 ln -s /data/pgsql /var/lib/pgsql chown -R postgres:p 阅读全文
posted @ 2023-05-30 09:34 东哥加油!!! 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1、现有集群架构 2、SSH互信连接 3、MHA noder安装 主服务器,从服务器,MHA manager都需要安装mha noder。 MHA Node 具有执行以下操作的脚本和依赖 perl 模块。 save_binary_logs:保存和复制 dead master 的二进制日志 apply 阅读全文
posted @ 2023-05-23 10:51 东哥加油!!! 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 岁月如歌,梦想如风,未来之路,浩瀚波澜。我无畏惧,心怀梦想,砥砺前行,扬帆远航。 2023年5月于丰华园 阅读全文
posted @ 2023-05-06 14:30 东哥加油!!! 阅读(29) 评论(0) 推荐(0) 编辑
摘要: rocketmq控制台部署1.软件下载rocketmq-externals-rocketmq-console-1.0.0.tar.gztar -xzvf rocketmq-externals-rocketmq-console-1.0.0.tar.gz修改配置文件src/main/resources/ 阅读全文
posted @ 2023-04-25 10:59 东哥加油!!! 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1、安装hybridnet helm repo add hybridnet https://alibaba.github.io/hybridnet/ helm repo update helm install hybridnet hybridnet/hybridnet -n kube-system  阅读全文
posted @ 2023-04-23 16:04 东哥加油!!! 阅读(50) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#1.参数个数if [ $# -lt 1 ]then echo NOT Enough Arguement!!! exit;fi #2.遍历所有机器for host in sh1 sh2 sh3do echo $host for file in $@ do #判断文件是否存在 i 阅读全文
posted @ 2023-04-19 13:45 东哥加油!!! 阅读(23) 评论(0) 推荐(0) 编辑