原创 pmm 一些問題記錄

安裝 yum -y  install docker  systemctl start docker  docker pull percona/pmm-server:1  docker create    -v /opt/prometheus

原创 Percona Toolkit工具集之pt-archiver實現數據結轉

#!/bin/bash date1=`date --date "183 days ago" +"%Y-%m-%d"` date2=`date -d "$date1 -2 day" +"%Y-%m-%d"` user=dts passwd

原创 MySQL 多源數據合併到一個db的兩種方式(mysqldump 和xtrabackup )

server-id = 330 log-bin = mysql-bin            binlog_format=row   grant replication slave on *.* to repl identified 

原创 MySQL子分區一例

這是現實中的一個例子,但是我不推薦使用MySQL分區用於生產CREATE TABLE `t_log` (   `ID` int(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵ID',   `VERSON` i

原创 Centos 7 安裝RocksDB完整過程

[root@es1 ~]# yum -y install lrssz git gcc gcc-c++ lz4-devel 已加載插件:fastestmirror Determining fastest mirrors epel/x86_64

原创 filebeat nginx 日誌處理配置

1、7.4.0 啓用模塊  ./filebeat modules list   ./filebeat modules  enable nginx   ./filebeat modules list2、修改 modules.d/nginx.y

原创 open-falcon 安裝重要步驟整理

1、安裝工具yum install git telnet net-tools tree nmap sysstat lrzsz dos2unix tcpdump ntpdate wget -y2、系統配置 #時間配置  ntpdate ntp

原创 open-falcon 郵件告警配置

1、下載二進制安裝包cd /home/work/go/src/github.com/open-falcon  wget https://dl.cactifans.com/open-falcon/falcon-mail-provider.ta

原创 阿里雲MariaDB yum源配置

1、阿里雲yum源配置[root@es1 yum.repos.d]# cat mariadb.repo  [mariadb] name = MariaDB baseurl = https://mirrors.aliyun.com/maria

原创 ansible 構建 MariaDB Galera Cluster 分佈式數據庫集羣

1、環境,本文只是介紹mxc 的配置,其他配置(全部配置)我會發下載連接 https://down.51cto.com/data/2467920192.168.56.21   ansible 192.168.56.20   es1 192.

原创 ansible-playbook批量增加用戶,批量修改用戶密碼,批量刪除用戶

1、批量增加用戶:ansible-playbook adduser.yml [root@mgr ~]# cat adduser.yml  --- - hosts: all   remote_user: root   tasks:     -

原创 pssh 使用記錄

1、pssh 安裝yum -y install epel-release yum -y install pssh 安裝完畢後有一下命令: pssh       ssh執行命令 pscp.pssh  copy到遠程 pslurp     p

原创 MariaDB10.2.26 +xtrabackup 備份恢復測試過程

1、測試過程[root@rec lib]# mysql Welcome to the MariaDB monitor.  Commands end with ; or \g. Your MariaDB connection id is 11

原创 MariaDB 10.2.26 xtrabackup 重要步驟記錄

1、創建測試用例庫表 Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 11Server version: 10

原创 MySQL 8.0.17 clone plugin 本地遠程備份,並搭建主從測試過程

本篇爲測試過程,總結文章將請看下一個篇,具體過程如下:[root@es2 ~]# yum -y install mysql-community-* 已加載插件:fastestmirror 正在檢查 mysql-community-clien