09 2019 档案
摘要:-where 'id<3000' 设置操作条件 --limit 10000 每次取1000行数据给pt-archive处理 --txn-size 1000 设置1000行为一个事务提交一次 --progress 5000 每处理5000行输出一次处理信息 --statistics 结束的时候给出统计信息:开始的时间点,结束的时间点,查询的行数,归档的行数,删除的行数,以及各个阶段消耗的总的时间和比
阅读全文
摘要:[Unit] Description=logstash [Service] Type=simple User=logstash Group=logstash # Load env vars from /etc/default/ and /etc/sysconfig/ if they exist. # Prefixing the path with '-' makes it try to load,
阅读全文
摘要:[root@aliyun-hk-3th-test-db01 ~]# cat /usr/lib/systemd/system/predixy.service [Unit] Description=predixy Documentation=https://github.com/joyieldInc/predixy Wants=network-online.target After=network-o
阅读全文
摘要:更新mysql8.17的脚本:2019-09-19 my.cnf 配置文件: 守护进程脚本:
阅读全文
摘要:# -*- coding: UTF-8 -*- import redis r = redis.Redis(host='xxx', port=xx, decode_responses=True, password='xxx') with open('message_data.txt', encoding='UTF-8') as f: for line in f: r.lpush('your redi
阅读全文

浙公网安备 33010602011771号