前几天收到budgetvm发来的邮件,提示服务器磁盘io滥用。我修改了相关程序的设置,然后用iostat命令持续跟踪。现在是每天定时一封报警邮件,平时io使用都不大,确定应该是备份脚本的关系。
thank you for contacting us. this is an automated response confirming the receipt of your ticket. our team will get back to you as soon as possible. when replying, please make sure that the ticket id is kept in the subject so that we can track your replies.ticket id: mpe-382-35294subject: forwarded incident notification - i/o disk abuse - 731.49 - dc03r02ds36.scalabledns.com? - 1.2.3.4department: abuse dept.type: issuestatus: closedpriority: normal备份脚本包含web程序、mysql数据库和其他一些配置文件。备份时没有使用任何控制措施,直接用tar打包。咨询他家的客服,被告知可以使用pv命令来限制磁盘的最大传输速率。
pv安装centos或者redhat系统,可以添加yum源安装。
打开/etc/yum.conf,添加如下内容到文件中。
[ivarch]name=rpms from ivarch.combaseurl=http://www.ivarch.com/programs/rpms/$basearch/enabled=1gpgcheck=1导入公共密钥。
rpm --import http://www.ivarch.com/personal/public-key.txt导入成功后使用yum install pv安装。
官网地址:http://www.ivarch.com/programs/pv.shtml
也可以通过下载源码编译安装。
pv使用这里我以限制文件的写入速率在每秒2m以内为例。
这个是修改之前的命令:
tar zcf blog.nbhao.org.tar.gz wwwroot这个是修改后使用pv的命令:
tar zcf - wwwroot |pv -l 2m >/home/blog.nbhao.org.tar.gz
当然pv还有很多种用法,具体参考man手册。
怎么申请域名?域名的作用有哪些?怎么将ip地址设置为自动获取?把ip地址改为自动获取的方法现在打不开-云服务器问题pdf怎么删除不要的页 pdf空白页删除方法品牌网站建设如何开展才可以事半功倍2021年,与“Meta”相关的域名,有哪些交易?怎么拦截电脑右下角弹出的QQ新闻|电脑中阻止右下角QQ新闻弹窗的方法嘉兴网站建设公司总结网站建设步骤