分类号学号M201176080 学校代码10487密级硕士学位论文企业级MySQL数据库在线监控系统的设计与实现学位申请人:董明明学科专业:软件工程指导教师:任宏萍副教授答辩日期:2014.5.9A Thesis Submitted in Partial Fulfillment of the Requirementsfor the Degree for the Master of EngineeringThe Design and Implementation of a MySQL Database Online Monitoring System for EnterpriseCandidate : Dong MingmingMajor : Software EngineeringSupervisor : Assoc. Prof. Ren HongpingHuazhong University of Science and TechnologyWuhan 430074, P. R. ChinaMay, 2014独创性声明本人声明所呈交的学位论文是我个人在导师指导下进行的研究工作及取得的研究成果。
尽我所知,除文中已经标明引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写过的研究成果。
对本文的研究做出贡献的个人和集体,均已在文中以明确方式标明。
本人完全意识到本声明的法律结果由本人承担。
学位论文作者签名:日期:年月日学位论文版权使用授权书本学位论文作者完全了解学校有关保留、使用学位论文的规定,即:学校有权保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。
本人授权华中科技大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。
保密□,在年解密后适用本授权书。
本论文属于不保密□。
(请在以上方框内打“√”)学位论文作者签名:指导教师签名:日期:年月日日期:年月日华中科技大学硕士学位论文摘要随着互联网向着信息化快速迈进,互联网的持续发展使人们越来越依赖于互联网,因此人们对于互联网的服务有了较高的要求,尤其是在互联网的稳定性、可靠性和安全性方面。
数据层是互联网服务的核心层,对互联网服务起着至关重要的作用。
目前在互联网主流应用的数据库是MySQL数据库,它被大多数公司所采用,并提供数据服务,如果数据库的运行状态出现问题或者是数据库的配置达到瓶颈,那么服务质量就很难保证了。
所以,在线监控MySQL数据库的运行状态,及时发现问题,为数据库的调整和优化提供支持,这对互联网的发展具有深远的意义。
监控系统是根据MySQL数据库自身的特点,并结合数据库的相关知识进行开发的。
系统的后台由Python语言开发,前端由PHP语言实现。
后台主要是采集MySQL 数据库运行状态的指标数据信息,前端的作用是将这些数据信息显示出来。
相关工作人员通过查看这些数据信息,可以了解数据库运行的状态,并及时发现数据库存在的问题,从而进行故障处理和优化,弥补其缺陷。
如何实时监控各个MySQL数据库运行的状态信息,如何对MySQL数据库进行及时调整和优化,如何确保MySQL 数据库监控系统的扩展性等这些都是主要的研究内容。
通过研究、分析和设计,实现了一个简单、实用、方便的MySQL数据库在线监控系统,可以有效的帮助相关工作人员对MySQL数据库进行调整和优化,确保数据库正常、高效地运转,有着较高的实用价值。
关键词:MySQL数据库在线监控Python语言指标数据华中科技大学硕士学位论文ABSTRACTWith the Internet moving towards information quickly, the sustainable development of the Internet makes people more and more dependent on the Internet, so people have higher requirements for the Internet service, especially in the aspects of stability, reliability and security of the Internet. Data layer is the core of Internet services, which plays a key role of the Internet. Currently, MySQL database is the popular in the Internet application, and it’s used by most companies to provide data services, if the database running status of the problems or the database configuration to the neck of the bottle, it is hard to guarantee the quality of service. So, it has profound significance on the development of the Internet to online monitoring the running state for the MySQL database, timely find problems and provide support for the adjustment and optimization of database.Monitoring system is developed based on the characteristics of the MySQL database itself, and with the relevant knowledge of database. The background is developed by Python language and the front desk is implemented using the PHP language. The background mainly collects the MySQL database running status indicators data information, while the front desk is used to display the data information. By looking at the data information, relevant staffs can understand database operation of the various state, and discover the problems existing in the database, so as to optimize and make up for the defects. How to real-time monitoring the MySQL database running status information, how to adjust and optimize the MySQL database, and how to ensure that the MySQL database extensibility of the monitoring system are the main research contents.Through research, analysis and design, a simple, practical, convenient MySQL database online monitoring system is implemented. It can be helpful for related staff to adjust and optimize the MySQL database to ensure the normal and efficient operation of the database, and it has great practical value.Key words:MySQL database Online monitoring Python Indicators data华中科技大学硕士学位论文目录摘要 (I)Abstract (II)1 绪论1.1 研究背景与意义 (1)1.2 国内外研究概况 (2)1.3 论文的主要研究内容 (4)2 关键技术与分析2.1 Python访问MySQL数据库技术 (6)2.2 PHP技术 (7)2.3 监控系统原理 (7)2.4 本章小结 (8)3 监控系统的分析与设计3.1 系统作业任务需求分析 (9)3.2 系统功能需求分析 (11)3.3 系统的非功能需求分析 (12)3.4 系统总体结构设计 (13)3.5 系统主要模块设计 (15)3.6 系统数据库设计 (21)3.7 本章小结 (25)4 监控系统的主要模块实现4.1 系统开发及运行环境 (26)4.2 采集系统运行状态的数据信息模块的实现 (26)华中科技大学硕士学位论文4.3 计算监控指标数据信息模块的实现 (31)4.4 计算注册监控指标数据信息模块的实现 (35)4.5 汇总监控指标数据信息及上传模块的实现 (36)4.6 本章小结 (37)5 监控系统的测试5.1 测试环境 (39)5.2 系统功能测试 (40)5.3 系统性能测试 (42)5.4 本章小结 (43)6 总结与展望6.1 全文总结 (44)6.2 展望 (45)致谢 (46)参考文献 (47)华中科技大学硕士学位论文1 绪论1.1 研究背景与意义随着互联网技术的不断发展,互联网已成为人们生活和工作中的重要一部分,与人们现在的生活息息相关。
互联网的普及和移动网络技术的不断完善,现在互联网在全球的用户已达几十亿了,对于这么一个庞大的用户群体来说,如何高效、快速的处理海量数据以及大量的用户访问问题,是各个互联网公司必须去面对的问题,同时也关系着互联网公司发展的命运。
复杂的网络环境中,互联网业务的需求会随之上升,在提升业务的稳定性和可靠性方面就会变得更加困难,同时在应用过程中产生的异常和故障会对互联网业务造成很大的影响,同时也会威胁互联网业务的发展[1,2]。