监控:Prometheus监控locust,grafana实时展示报告(通过boomer实现的负载生成器)
摘要:时间:2020/12/31 本文是对文章https://www.cnblogs.com/jinziguang/p/13610209.html的补充:将locust生成的数据通过prometheus收集,再通过grafana展示出来 环境: windows:运行locust的master机和slave
阅读全文
go:设置go mod
摘要:设置go mod:go mod init filename.go 转载自:https://www.cnblogs.com/bbllw/p/12377155.html
阅读全文
locust报错:RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 72 from C header, got 76 from PyObject
摘要:locust -f xx.py报错: /usr/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility
阅读全文
pgsql:获取表的列名
摘要:psql查询某个表的列名: select column_name from information_schema.columns where table_name='xx' and table_schema=''public;
阅读全文
shell:定时任务crontab
摘要:查看当前定时任务:cat /etc/crontab和crontab -l 添加定时任务:crontab -e,进入编辑模式,格式如"* * * * * sh /path/xx.sh",退出i模式后shift+zz退出保存即可、使用crontab -l查看
阅读全文
shell:采集进程的cpu和内存利用率_随手记1
摘要:1.获取时间: DATE=`date +%Y_%m_%d` echo 变量名) 2.读取键盘输入: echo "请输入:" read input echo $i
阅读全文
临时记录
摘要:性能测试博客:https://defonds.blog.csdn.net/article/list/5
阅读全文