09 2019 档案

摘要:-where 'id<3000' 设置操作条件 --limit 10000 每次取1000行数据给pt-archive处理 --txn-size 1000 设置1000行为一个事务提交一次 --progress 5000 每处理5000行输出一次处理信息 --statistics 结束的时候给出统计信息:开始的时间点,结束的时间点,查询的行数,归档的行数,删除的行数,以及各个阶段消耗的总的时间和比 阅读全文
posted @ 2019-09-30 21:12 monkeybron 阅读(220) 评论(0) 推荐(0)
摘要:[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, 阅读全文
posted @ 2019-09-24 14:10 monkeybron 阅读(710) 评论(0) 推荐(0)
摘要:[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 阅读全文
posted @ 2019-09-22 11:22 monkeybron 阅读(413) 评论(0) 推荐(0)
摘要:更新mysql8.17的脚本:2019-09-19 my.cnf 配置文件: 守护进程脚本: 阅读全文
posted @ 2019-09-20 00:00 monkeybron 阅读(188) 评论(0) 推荐(0)
摘要:# -*- 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 阅读全文
posted @ 2019-09-19 23:54 monkeybron 阅读(303) 评论(0) 推荐(0)