CN110873613A - A method and device for processing abnormality of computer room based on temperature monitoring - Google Patents
A method and device for processing abnormality of computer room based on temperature monitoring Download PDFInfo
- Publication number
- CN110873613A CN110873613A CN201811026549.2A CN201811026549A CN110873613A CN 110873613 A CN110873613 A CN 110873613A CN 201811026549 A CN201811026549 A CN 201811026549A CN 110873613 A CN110873613 A CN 110873613A
- Authority
- CN
- China
- Prior art keywords
- server
- temperature
- computer room
- cpu
- abnormal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01K—MEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
- G01K13/00—Thermometers specially adapted for specific purposes
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明提供了一种基于温度监测的机房异常的处理方法和装置。该方法包括:获取机房内各服务器的与温度相关的CPU指标和所述机房内的环境温度;判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定所述机房运行正常;若否,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器;若存在运行异常的服务器,则对所述运行异常的服务器进行异常处理;若不存在运行异常的服务器,则确定所述机房运行异常,并对所述机房进行异常处理。本发明通过直接根据机房和服务器的温度信息对机房和服务器的异常情况进行排查和处理,减少了响应时间,从而降低损失,同时减少了人工干预,从而降低人力成本。
The present invention provides a method and device for processing abnormality in a computer room based on temperature monitoring. The method includes: acquiring temperature-related CPU indicators of each server in a computer room and an ambient temperature in the computer room; judging whether the acquired ambient temperature of the computer room is within a first preset temperature range, and if so, determining that the computer room is running Normal; if not, according to the obtained temperature-related CPU indicators of each server, determine whether there is an abnormally running server; if there is an abnormally running server, perform abnormal processing on the abnormally running server; if not If the server is running abnormally, it is determined that the computer room is running abnormally, and the abnormality processing is performed on the computer room. By directly checking and processing the abnormal conditions of the computer room and the server according to the temperature information of the computer room and the server, the invention reduces the response time, thereby reducing the loss, and simultaneously reducing the manual intervention, thereby reducing the labor cost.
Description
技术领域technical field
本发明涉及计算机网络技术领域,特别是一种基于温度监测的机房异常的处理方法、基于温度监测的机房异常的处理装置、计算机存储介质以及计算设备。The invention relates to the technical field of computer networks, in particular to a method for processing abnormality of a computer room based on temperature monitoring, a device for processing abnormality of a computer room based on temperature monitoring, a computer storage medium and a computing device.
背景技术Background technique
随着计算机信息系统的发展,作为网络设备、主机服务器等核心设备存放地的计算机机房日益显现出重要性。机房通常指的是电信、网通、移动、双线、电力以及政府或者企业等用来存放服务器、为用户以及员工提供IT服务的地方。大型机房,如IDC(InternetData Center,互联网数据中心)机房中通常放置有上千个机柜,甚至更多,机柜里放置各种服务器和小型机等。为了保障机房设备正常运行,需要对机房进行维护运营,以确保机房在突发事故导致硬件设备故障,影响机房正常运作情况下,可及时得到设备供应商或机房服务维护人员的产品维修和技术支持,并快速解决故障。With the development of the computer information system, the computer room as the storage place of the core equipment such as the network equipment and the host server is becoming more and more important. The computer room usually refers to the place where telecommunications, Netcom, mobile, dual-line, electricity, and government or enterprises are used to store servers and provide IT services for users and employees. In a large computer room, such as an IDC (Internet Data Center, Internet Data Center) computer room, there are usually thousands of cabinets or even more, and various servers and minicomputers are placed in the cabinets. In order to ensure the normal operation of the equipment in the equipment room, it is necessary to maintain and operate the equipment room to ensure that the equipment room can receive product maintenance and technical support from equipment suppliers or equipment room service and maintenance personnel in a timely manner when hardware equipment failures are caused by unexpected accidents and affect the normal operation of the equipment room. , and troubleshoot quickly.
在现有技术中,运营商通常只在机房内的不同区域设置温度计进行机房温度的监测,当监测到某区域的温度不正常时,通知该区域的所有者,该区域的服务器可能出现宕机问题。然后,该区域的所有者再通知运维工程师,由运维工程师至现场进行人工检查,排查故障,再对应进行故障处理。进一步地,在排查故障时,例如对服务器进行故障排查时,常规方式是先登录服务器,如果无法登录,则检查网络是否正常,如果网络正常但仍然无法登录,则继续查看CPU指标、操作日志等。现有的故障应对方式导致响应时间过长,无法快速应对突发情况。另外,人工故障排查步骤繁琐,增加了人力成本。In the prior art, operators usually only set thermometers in different areas of the computer room to monitor the temperature of the computer room. When the temperature in a certain area is abnormal, the owner of the area is notified that the server in this area may be down. question. Then, the owner of the area notifies the operation and maintenance engineer, and the operation and maintenance engineer will go to the site to conduct manual inspection, troubleshoot the fault, and then deal with the fault accordingly. Further, when troubleshooting, for example, when troubleshooting a server, the conventional method is to log in to the server first. If you cannot log in, check whether the network is normal. If the network is normal but you still cannot log in, continue to check the CPU metrics, operation logs, etc. . The existing fault response methods lead to too long response time and cannot quickly respond to emergencies. In addition, manual troubleshooting steps are cumbersome, increasing labor costs.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的基于温度监测的机房异常的处理方法、基于温度监测的机房异常的处理装置、计算机存储介质以及计算设备。In view of the above problems, the present invention is proposed in order to provide a temperature monitoring-based computer room abnormality processing method, a temperature monitoring-based computer room abnormality processing device, a computer storage medium, and a computing device that overcome the above problems or at least partially solve the above problems.
根据本发明实施例的一方面,提供了一种基于温度监测的机房异常的处理方法,包括:According to an aspect of the embodiments of the present invention, a method for processing an abnormality of a computer room based on temperature monitoring is provided, including:
获取机房内各服务器的与温度相关的CPU指标和所述机房内的环境温度;Obtain the temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room;
判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定所述机房运行正常;Determine whether the obtained ambient temperature of the computer room is within the first preset temperature range, and if so, determine that the computer room is operating normally;
若否,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器;If not, according to the obtained temperature-related CPU indicators of each server, determine whether there is an abnormally running server;
若存在运行异常的服务器,则对所述运行异常的服务器进行异常处理;If there is a server running abnormally, perform abnormal processing on the server running abnormally;
若不存在运行异常的服务器,则确定所述机房运行异常,并对所述机房进行异常处理。If there is no server running abnormally, it is determined that the computer room is running abnormally, and the abnormality processing is performed on the computer room.
可选地,所述各服务器的与温度相关的CPU指标包括各服务器的CPU温度;Optionally, the temperature-related CPU indicators of each server include the CPU temperature of each server;
根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器,包括:According to the obtained temperature-related CPU indicators of each server, determine whether there are abnormal servers, including:
判断所获取的各服务器的CPU温度是否在第二预设温度范围内;Determine whether the obtained CPU temperature of each server is within the second preset temperature range;
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常;If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally;
若所获取的各服务器的CPU温度均在所述第二预设温度范围内,则确定不存在运行异常的服务器。If the obtained CPU temperature of each server is within the second preset temperature range, it is determined that there is no abnormally running server.
可选地,所述各服务器的与温度相关的CPU指标还包括各服务器的CPU空闲时间百分比;Optionally, the temperature-related CPU indicators of each server further include the CPU idle time percentage of each server;
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常,包括:If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally, including:
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则判断其CPU温度不在所述第二预设温度范围内的服务器的CPU空闲时间百分比是否高于预设阈值;If the obtained CPU temperature of a certain server is not within the second preset temperature range, determine whether the CPU idle time percentage of the server whose CPU temperature is not within the second preset temperature range is higher than a preset threshold;
若是,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常。If so, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally.
可选地,所述第一预设温度范围是人为设定的温度范围、或根据机房环境温度的历史数据进行计算得到的温度范围;Optionally, the first preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the ambient temperature of the computer room;
所述第二预设温度范围是人为设定的温度范围、或根据服务器的CPU温度的历史数据进行计算得到的温度范围。The second preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the CPU temperature of the server.
可选地,所述方法还包括:Optionally, the method further includes:
保存所获取的机房内的环境温度作为机房环境温度的历史数据;Save the obtained ambient temperature in the computer room as the historical data of the ambient temperature in the computer room;
根据所保存的机房环境温度的历史数据绘制机房环境温度历史变化曲线,并记录与所述机房环境温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;Draw a historical change curve of the environmental temperature of the computer room according to the stored historical data of the environmental temperature of the computer room, and record the abnormal event corresponding to the abnormal change segment in the historical change curve of the environmental temperature of the computer room and the characteristic attribute of the abnormal event;
此时,at this time,
对所述机房进行异常处理,包括:Exception handling is performed on the computer room, including:
对比当前所获取的机房环境温度的变化趋势是否与所述机房环境温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the ambient temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述机房进行异常处理。If yes, then according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the computer room.
可选地,所述方法还包括:Optionally, the method further includes:
保存所获取的各服务器的CPU温度作为各服务器的CPU温度的历史数据;Save the obtained CPU temperature of each server as the historical data of the CPU temperature of each server;
根据所保存的各服务器的CPU温度的历史数据绘制各服务器的CPU温度历史变化曲线,并记录与所述CPU温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;Draw the CPU temperature historical change curve of each server according to the stored historical data of the CPU temperature of each server, and record the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve and the characteristic attribute of the abnormal event;
此时,at this time,
对所述运行异常的服务器进行异常处理,包括:Perform exception handling on the abnormally running server, including:
对比当前所获取的所述运行异常的服务器的CPU温度的变化趋势是否与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the CPU temperature historical change curve of the server;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述运行异常的服务器进行异常处理。If it is, according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the abnormally running server.
可选地,所述异常事件的特征属性包括异常事件的处理优先级。Optionally, the characteristic attribute of the abnormal event includes a processing priority of the abnormal event.
可选地,所述方法还包括:Optionally, the method further includes:
确定运行异常的服务器在所述机房内的分布;determining the distribution of abnormally running servers in the computer room;
若相邻的两台或更多台服务器运行异常,则优先对所述相邻的两台或更多台服务器进行异常处理。If two or more adjacent servers run abnormally, the abnormality processing is preferentially performed on the two or more adjacent servers.
可选地,对所述运行异常的服务器进行异常处理包括下列至少之一:Optionally, performing exception processing on the abnormally running server includes at least one of the following:
将运行异常的服务器切换至备用服务器;Switch the abnormally running server to the standby server;
报警;Call the police;
调节所述机房内的空调温度;adjusting the temperature of the air conditioner in the machine room;
关闭运行异常的服务器进行降温。Shut down the abnormal server to cool down.
可选地,对所述机房进行异常处理包括下列至少之一:Optionally, performing exception processing on the computer room includes at least one of the following:
将所述机房切换至备用机房;switching the computer room to a spare computer room;
报警;Call the police;
自动进行物理灭火;Automatic physical fire extinguishing;
排除空调设备故障。Troubleshoot air conditioning equipment.
根据本发明实施例的另一方面,还提供了一种基于温度监测的机房异常的处理装置,包括:According to another aspect of the embodiments of the present invention, an apparatus for processing abnormality of a computer room based on temperature monitoring is also provided, including:
温度获取模块,适于获取机房内各服务器的与温度相关的CPU指标和所述机房内的环境温度;a temperature acquisition module, suitable for acquiring temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room;
机房判断模块,适于判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定所述机房运行正常;a computer room judgment module, adapted to judge whether the acquired ambient temperature of the computer room is within the first preset temperature range, and if so, determine that the computer room is operating normally;
服务器判断模块,适于若所获取的机房环境温度不在所述第一预设温度范围内,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器;The server judging module is adapted to judge whether there is an abnormally running server according to the obtained temperature-related CPU indicators of each server if the obtained ambient temperature of the computer room is not within the first preset temperature range;
服务器处理模块,适于若存在运行异常的服务器,则对所述运行异常的服务器进行异常处理;以及A server processing module, adapted to perform abnormality processing on the abnormally operating server if there is an abnormally operating server; and
机房处理模块,适于若不存在运行异常的服务器,则确定所述机房运行异常,并对所述机房进行异常处理。The computer room processing module is adapted to determine that the computer room is abnormally running if there is no abnormally running server, and process the abnormality of the computer room.
可选地,所述各服务器的与温度相关的CPU指标包括各服务器的CPU温度;Optionally, the temperature-related CPU indicators of each server include the CPU temperature of each server;
所述服务器判断模块还适于:The server judgment module is also suitable for:
判断所获取的各服务器的CPU温度是否在第二预设温度范围内;Determine whether the obtained CPU temperature of each server is within the second preset temperature range;
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常;If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally;
若所获取的各服务器的CPU温度均在所述第二预设温度范围内,则确定不存在运行异常的服务器。If the obtained CPU temperature of each server is within the second preset temperature range, it is determined that there is no abnormally running server.
可选地,所述各服务器的与温度相关的CPU指标还包括各服务器的CPU空闲时间百分比;Optionally, the temperature-related CPU indicators of each server further include the CPU idle time percentage of each server;
所述服务器判断模块还适于:The server judgment module is also suitable for:
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则判断其CPU温度不在所述第二预设温度范围内的服务器的CPU空闲时间百分比是否高于预设阈值;If the obtained CPU temperature of a certain server is not within the second preset temperature range, determine whether the CPU idle time percentage of the server whose CPU temperature is not within the second preset temperature range is higher than a preset threshold;
若是,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常。If so, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally.
可选地,所述第一预设温度范围是人为设定的温度范围、或根据机房环境温度的历史数据进行计算得到的温度范围;Optionally, the first preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the ambient temperature of the computer room;
所述第二预设温度范围是人为设定的温度范围、或根据服务器的CPU温度的历史数据进行计算得到的温度范围。The second preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the CPU temperature of the server.
可选地,所述装置还包括:Optionally, the device further includes:
第一数据保存模块,适于保存所获取的机房内的环境温度作为机房环境温度的历史数据;The first data storage module is adapted to save the acquired ambient temperature in the computer room as historical data of the ambient temperature of the computer room;
第一变化曲线绘制模块,适于根据所保存的机房环境温度的历史数据绘制机房环境温度历史变化曲线,并记录与所述机房环境温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;The first variation curve drawing module is adapted to draw the historical variation curve of the ambient temperature of the computer room according to the stored historical data of the ambient temperature of the computer room, and record the abnormal events corresponding to the abnormal variation segments in the historical variation curve of the ambient temperature of the computer room and the Characteristics of abnormal events;
此时,at this time,
所述机房处理模块还适于:The computer room processing module is also suitable for:
对比当前所获取的机房环境温度的变化趋势是否与所述机房环境温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the ambient temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述机房进行异常处理。If yes, then according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the computer room.
可选地,所述装置还包括:Optionally, the device further includes:
第二数据保存模块,适于保存所获取的各服务器的CPU温度作为各服务器的CPU温度的历史数据;The second data saving module is adapted to save the obtained CPU temperature of each server as the historical data of the CPU temperature of each server;
第二变化曲线绘制模块,适于根据所保存的各服务器的CPU温度的历史数据绘制各服务器的CPU温度历史变化曲线,并记录与所述CPU温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;The second change curve drawing module is adapted to draw the CPU temperature historical change curve of each server according to the stored historical data of the CPU temperature of each server, and record the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve and the characteristic properties of said anomalous event;
此时,at this time,
所述服务器处理模块还适于:The server processing module is also adapted to:
对比当前所获取的所述运行异常的服务器的CPU温度的变化趋势是否与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the CPU temperature historical change curve of the server;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述运行异常的服务器进行异常处理。If it is, according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the abnormally running server.
可选地,所述异常事件的特征属性包括异常事件的处理优先级。Optionally, the characteristic attribute of the abnormal event includes a processing priority of the abnormal event.
可选地,所述装置还包括:Optionally, the device further includes:
异常分布确定模块,适于确定运行异常的服务器在所述机房内的分布;an abnormality distribution determining module, adapted to determine the distribution of abnormally running servers in the computer room;
若相邻的两台或更多台服务器运行异常,则触发所述服务器处理模块优先对所述相邻的两台或更多台服务器进行异常处理。If two or more adjacent servers run abnormally, the server processing module is triggered to preferentially process the abnormality on the two or more adjacent servers.
可选地,对所述运行异常的服务器进行异常处理包括下列至少之一:Optionally, performing exception processing on the abnormally running server includes at least one of the following:
将运行异常的服务器切换至备用服务器;Switch the abnormally running server to the standby server;
报警;Call the police;
调节所述机房内的空调温度;adjusting the temperature of the air conditioner in the machine room;
关闭运行异常的服务器进行降温。Shut down the abnormal server to cool down.
可选地,对所述机房进行异常处理包括下列至少之一:Optionally, performing exception processing on the computer room includes at least one of the following:
将所述机房切换至备用机房;switching the computer room to a spare computer room;
报警;Call the police;
自动进行物理灭火;Automatic physical fire extinguishing;
排除空调设备故障。Troubleshoot air conditioning equipment.
根据本发明实施例的再一方面,还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行根据上文中任一项所述的基于温度监测的机房异常的处理方法。According to yet another aspect of the embodiments of the present invention, there is also provided a computer storage medium, where the computer storage medium stores computer program codes, which, when the computer program codes are executed on a computing device, cause the computing device to execute according to the The processing method for the abnormality of the equipment room based on temperature monitoring according to any one of the above.
根据本发明实施例的又一方面,还提供了一种计算设备,包括:According to yet another aspect of the embodiments of the present invention, a computing device is also provided, including:
处理器;以及processor; and
存储有计算机程序代码的存储器;memory in which computer program code is stored;
当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行根据上文中任一项所述的基于温度监测的机房异常的处理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for processing an abnormality of a computer room based on temperature monitoring according to any one of the above.
本发明实施例提出的基于温度监测的机房异常的处理方法和装置,首先获取机房内各服务器的与温度相关的CPU指标和机房内的环境温度;然后根据所获取的机房环境温度判断机房是否运行正常,若否,则进一步根据所获取的各服务器的与温度相关的CPU指标判断是否存在运行异常的服务器;进而,若存在运行异常的服务器,则对运行异常的服务器进行异常处理,若不存在运行异常的服务器,则对机房进行异常处理。通过直接根据机房和服务器的温度信息对机房和服务器的异常情况进行排查和处理,减少了响应时间,从而降低损失,同时减少了人工干预,从而降低人力成本。The method and device for processing abnormality in a computer room based on temperature monitoring proposed by the embodiments of the present invention first acquire temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room; and then determine whether the computer room is running according to the acquired ambient temperature of the computer room If it is normal, if not, then further judge whether there is an abnormally running server according to the obtained temperature-related CPU indicators of each server; further, if there is an abnormally running server, perform abnormal processing on the abnormally running server, if not If the server runs abnormally, the computer room will be processed abnormally. By directly checking and processing the abnormal conditions of the computer room and the server according to the temperature information of the computer room and the server, the response time is reduced, thereby reducing losses, and at the same time reducing manual intervention, thereby reducing labor costs.
进一步地,在判断服务器是否异常时,结合服务器的CPU温度和CPU空闲时间百分比进行判断,能够更准确地排查出服务器异常。Further, when judging whether the server is abnormal, the judgment is made in combination with the CPU temperature and the CPU idle time percentage of the server, so that the abnormality of the server can be more accurately checked.
更进一步地,保存所获取的机房环境温度和服务器的CPU温度作为历史数据,根据机房环境温度和CPU温度的历史数据分别绘制机房环境温度历史变化曲线和服务器的CPU温度历史变化曲线,并分别记录与机房环境温度历史变化曲线中的异常变化段对应的异常事件和该异常事件的特征属性以及与CPU温度历史变化曲线中的异常变化段对应的异常事件和该异常事件的特征属性。这样,在对机房和/或服务器进行异常处理时,可以通过对比当前所获取的机房环境温度的变化趋势与机房环境温度历史变化曲线中的异常变化段的变化趋势是否相同,和/或对比当前所获取的运行异常的服务器的CPU温度的变化趋势与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势是否相同,来确定机房异常事件和/或服务器异常事件的处理优先级,进而,可以根据处理优先级来对机房和/或服务器进行异常处理,防止由于紧急异常事件没有得到及时处理而造成巨大损失,提高了机房的容灾能力。Further, save the obtained computer room ambient temperature and the server's CPU temperature as historical data, draw the computer room ambient temperature historical change curve and the server's CPU temperature historical change curve respectively according to the historical data of the computer room ambient temperature and CPU temperature, and record them separately. The abnormal event corresponding to the abnormal change segment in the historical change curve of the ambient temperature of the computer room and the characteristic attribute of the abnormal event, and the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve and the characteristic attribute of the abnormal event. In this way, when abnormal processing is performed on the computer room and/or the server, it is possible to compare whether the change trend of the currently obtained environmental temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the environmental temperature of the computer room, and/or compare the current Whether the change trend of the obtained CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the historical change curve of the CPU temperature of the server is to determine the processing priority of abnormal events in the computer room and/or abnormal events of the server, and then , abnormal processing can be performed on the computer room and/or the server according to the processing priority, so as to prevent huge losses caused by the emergency abnormal event not being processed in time, and improve the disaster recovery capability of the computer room.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。The above and other objects, advantages and features of the present invention will be more apparent to those skilled in the art from the following detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:
图1示出了根据本发明一实施例的基于温度监测的机房异常的处理方法的流程图;FIG. 1 shows a flowchart of a method for processing abnormality in a computer room based on temperature monitoring according to an embodiment of the present invention;
图2示出了根据本发明另一实施例的基于温度监测的机房异常的处理方法的流程图;FIG. 2 shows a flowchart of a method for processing an abnormality in a computer room based on temperature monitoring according to another embodiment of the present invention;
图3示出了根据本发明一实施例的基于温度监测的机房异常的处理装置的结构示意图;以及FIG. 3 shows a schematic structural diagram of an apparatus for processing abnormality in a computer room based on temperature monitoring according to an embodiment of the present invention; and
图4示出了根据本发明另一实施例的基于温度监测的机房异常的处理装置的结构示意图。FIG. 4 shows a schematic structural diagram of an apparatus for processing abnormality in a computer room based on temperature monitoring according to another embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.
发明人发现,当服务器的CPU故障时,通常表现为CPU温度异常,而在目前机房运维中,运维人员一般只能得到机房的区域温度异常的通知,而后需要人工去一步步排查故障。例如,对服务器进行故障排查时,常规方式是先登录服务器,如果无法登录,则检查网络是否正常,如果网络正常但仍然无法登录,则继续查看CPU指标、操作日志等。这导致响应时间过长,无法快速应对突发情况。另外,人工故障排查步骤繁琐,增加了人力成本。The inventor found that when the CPU of the server is faulty, the CPU temperature is usually abnormal. In the current operation and maintenance of the computer room, the operation and maintenance personnel can only be notified of the abnormal temperature in the area of the computer room, and then need to manually troubleshoot the fault step by step. For example, when troubleshooting a server, the conventional method is to log in to the server first. If you cannot log in, check whether the network is normal. If the network is normal but you still cannot log in, continue to check the CPU metrics and operation logs. This results in too long response times to quickly respond to emergencies. In addition, manual troubleshooting steps are cumbersome, increasing labor costs.
为解决上述技术问题,本发明实施例提出一种基于温度监测的机房异常的处理方法。图1示出了根据本发明一实施例的基于温度监测的机房异常的处理方法的流程图。参见图1,该方法至少可以包括以下步骤:In order to solve the above technical problem, an embodiment of the present invention proposes a method for processing an abnormality of a computer room based on temperature monitoring. FIG. 1 shows a flowchart of a method for processing an abnormality in a computer room based on temperature monitoring according to an embodiment of the present invention. Referring to Figure 1, the method may include at least the following steps:
步骤S102,获取机房内各服务器的与温度相关的CPU指标和机房内的环境温度。Step S102, acquiring temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room.
步骤S104,判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定机房运行正常。Step S104, it is determined whether the obtained ambient temperature of the computer room is within the first preset temperature range, and if so, it is determined that the computer room is operating normally.
步骤S106,若否,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器。Step S106 , if no, according to the obtained temperature-related CPU indicators of each server, it is determined whether there is a server with abnormal operation.
步骤S108,若存在运行异常的服务器,则对运行异常的服务器进行异常处理。Step S108, if there is a server with abnormal operation, perform abnormal processing on the server with abnormal operation.
步骤S110,若不存在运行异常的服务器,则确定机房运行异常,并对机房进行异常处理。Step S110, if there is no abnormally running server, it is determined that the computer room is running abnormally, and the abnormality processing is performed on the computer room.
本发明实施例提出的基于温度监测的机房异常的处理方法可以通过指定监测管理平台执行。优选地,指定监测管理平台为IPMI(Intelligent Platform ManagementInterface,智能平台管理接口)平台。IPMI是管理基于Intel结构的企业系统中所使用的外围设备采用的一种工业标准。IPMI亦是一个开放的免费标准,用户无需支付额外的费用即可使用此标准。IPMI能够横跨不同的操作系统、固件和硬件平台,可以智能的监视、控制和自动回报大量服务器的运作状况,如温度、电压、风扇工作状态、电源状态等,以降低服务器系统成本。The method for processing an abnormality of a computer room based on temperature monitoring provided by the embodiment of the present invention may be executed by a designated monitoring management platform. Preferably, the designated monitoring management platform is an IPMI (Intelligent Platform Management Interface, intelligent platform management interface) platform. IPMI is an industry standard adopted for managing peripheral devices used in Intel architecture-based enterprise systems. IPMI is also an open and free standard that users can use at no additional cost. IPMI can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report the operating status of a large number of servers, such as temperature, voltage, fan working status, power status, etc., to reduce server system costs.
本发明实施例提出的基于温度监测的机房异常的处理方法,首先获取机房内各服务器的与温度相关的CPU指标和机房内的环境温度;然后根据所获取的机房环境温度判断机房是否运行正常,若否,则进一步根据所获取的各服务器的与温度相关的CPU指标判断是否存在运行异常的服务器;进而,若存在运行异常的服务器,则对运行异常的服务器进行异常处理,若不存在运行异常的服务器,则对机房进行异常处理。通过直接根据机房和服务器的温度信息对机房和服务器的异常情况进行排查和处理,减少了响应时间,从而降低损失,同时减少了人工干预,从而降低人力成本。The method for processing an abnormality in a computer room based on temperature monitoring proposed by the embodiment of the present invention first acquires temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room; then judges whether the computer room is running normally according to the acquired ambient temperature of the computer room If not, it is further judged whether there is an abnormally running server according to the obtained temperature-related CPU indicators of each server; furthermore, if there is an abnormally running server, the abnormally running server is processed abnormally, if there is no abnormally running server If the server is installed, the server room will be abnormally processed. By directly checking and processing the abnormal conditions of the computer room and the server according to the temperature information of the computer room and the server, the response time is reduced, thereby reducing losses, and at the same time reducing manual intervention, thereby reducing labor costs.
上文步骤S102中,可以通过指定监测管理平台,特别是IPMI平台,借助各传感器(例如,温度传感器)获取机房内各服务器的与温度相关的CPU指标和机房内的环境温度。In the above step S102, the temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room can be obtained by means of various sensors (eg, temperature sensors) by specifying a monitoring and management platform, especially an IPMI platform.
上文步骤S104中,通过将所获取的机房环境温度与第一预设温度范围的上限值和下限值进行对比,判断机房环境温度是否异常。此处提及的第一预设温度范围可以是人为设定的机房正常运行的温度范围,也可以是根据机房环境温度的历史数据进行计算得到的温度范围。In the above step S104, it is determined whether the ambient temperature of the computer room is abnormal by comparing the obtained ambient temperature of the computer room with the upper limit value and the lower limit value of the first preset temperature range. The first preset temperature range mentioned here may be an artificially set temperature range for the normal operation of the computer room, or may be a temperature range obtained by calculation according to historical data of the ambient temperature of the computer room.
在一种实施方式中,可以通过对每一指定时间区间(如每分钟、每小时、每天等)中的运行正常的机房的环境温度历史数据中的最高值和最低值分别作加和平均,得到最高值的平均值和最低值的平均值,进而根据计算得到的最高值的平均值和最低值的平均值得到第一预设温度范围。举例来说,假设在五天的历史数据中,每天的正常机房环境温度的最高值分别为24℃、25℃、24℃、25℃、24℃,最低值分别为20℃、21℃、20℃、22℃、19℃,则对最高值和最低值分别进行加和平均,得到最高值平均值24.4℃和最低值平均值20.4℃,进而得到第一预设温度范围为20.4-24.4℃。In one embodiment, the highest value and the lowest value in the historical data of the ambient temperature of the normal operating equipment room in each specified time interval (such as every minute, hour, every day, etc.) can be added and averaged respectively, Obtain the average value of the highest value and the average value of the lowest value, and then obtain the first preset temperature range according to the average value of the highest value and the average value of the lowest value obtained by calculation. For example, assume that in the five-day historical data, the highest values of the normal room ambient temperature are 24°C, 25°C, 24°C, 25°C, and 24°C, and the lowest values are 20°C, 21°C, and 20°C, respectively. ℃, 22℃, 19℃, the highest value and the lowest value are summed and averaged respectively to obtain the average value of the highest value 24.4°C and the average value of the lowest value 20.4°C, and then the first preset temperature range is 20.4-24.4°C.
在另一种可替换的实施方式中,也可以通过对运行正常的机房的环境温度历史数据进行加和平均,得到机房环境温度平均值,然后根据计算得到的机房环境温度平均值和机房环境温度的允许波动范围,得到第一预设温度范围。例如,计算得到机房环境温度平均值为22.4℃,机房环境温度的允许波动范围为±3℃,则得到第一预设温度范围为19.4-25.4℃。需要说明的是,以上第一预设温度范围的计算方式仅是示例性的,本发明并不限于此。In another alternative embodiment, the average value of the ambient temperature of the computer room can also be obtained by adding and averaging the historical data of the ambient temperature of the computer room that is running normally, and then according to the calculated average value of the ambient temperature of the computer room and the ambient temperature of the computer room The allowable fluctuation range is obtained to obtain the first preset temperature range. For example, if the average value of the ambient temperature in the computer room is 22.4°C, and the allowable fluctuation range of the ambient temperature in the computer room is ±3°C, the first preset temperature range is obtained as 19.4-25.4°C. It should be noted that the above calculation manner of the first preset temperature range is only exemplary, and the present invention is not limited thereto.
上文步骤S106中,若所获取的机房环境温度不在第一预设温度范围内,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器。In the above step S106, if the acquired ambient temperature of the computer room is not within the first preset temperature range, it is determined whether there is an abnormally running server according to the acquired temperature-related CPU indicators of each server.
在本发明的一个可选实施例中,所获取的各服务器的与温度相关的CPU指标包括各服务器的CPU温度。相应地,根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器可以实施为如下步骤:In an optional embodiment of the present invention, the obtained temperature-related CPU indicators of each server include the CPU temperature of each server. Correspondingly, according to the obtained temperature-related CPU indicators of each server, judging whether there is a server with abnormal operation can be implemented as the following steps:
判断所获取的各服务器的CPU温度是否在第二预设温度范围内;Determine whether the obtained CPU temperature of each server is within the second preset temperature range;
若存在所获取的某服务器的CPU温度不在第二预设温度范围内,则确定其CPU温度不在第二预设温度范围内的服务器运行异常;If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally;
若所获取的各服务器的CPU温度均在第二预设温度范围内,则确定不存在运行异常的服务器。If the obtained CPU temperatures of the servers are all within the second preset temperature range, it is determined that there is no abnormally running server.
各服务器的CPU温度优选地可以通过IPMI平台,借助安装于各服务器的温度传感器获取得到。The CPU temperature of each server can preferably be obtained through the IPMI platform by means of a temperature sensor installed on each server.
此处提及的第二预设温度范围可以是人为设定的服务器正常运行的CPU温度范围,也可以是根据服务器的CPU温度的历史数据进行计算得到的温度范围。The second preset temperature range mentioned here may be an artificially set CPU temperature range for normal operation of the server, or may be a temperature range calculated according to historical data of the CPU temperature of the server.
在一种实施方式中,可以通过对每一指定时间区间(如每分钟、每小时、每天等)中的运行正常的服务器的CPU温度历史数据中的最高值和最低值分别作加和平均,得到最高值的平均值和最低值的平均值,进而根据计算得到的最高值的平均值和最低值的平均值得到第二预设温度范围。举例来说,假设在五天的历史数据中,每天的服务器的正常CPU温度的最高值分别为63℃、65℃、64℃、65℃、62℃,最低值分别为45℃、44℃、46℃、45℃、46℃,则对最高值和最低值分别进行加和平均,得到最高值平均值63.8℃和最低值平均值45.2℃,进而得到第二预设温度范围为45.2-63.8℃。In one embodiment, the highest value and the lowest value in the historical data of the CPU temperature of the server running normally in each specified time interval (such as every minute, hour, every day, etc.) can be added and averaged respectively, The average value of the highest value and the average value of the lowest value are obtained, and then the second preset temperature range is obtained according to the average value of the highest value and the average value of the lowest value obtained by calculation. For example, assume that in the five-day historical data, the highest values of the normal CPU temperature of the server are 63°C, 65°C, 64°C, 65°C, and 62°C, and the lowest values are 45°C, 44°C, and 62°C. 46°C, 45°C, and 46°C, the highest and lowest values are summed and averaged, respectively, to obtain the average value of the highest value of 63.8°C and the average value of the lowest value of 45.2°C, and then obtain the second preset temperature range of 45.2-63.8°C .
在另一种可替换的实施方式中,也可以通过对运行正常的服务器的CPU温度历史数据进行加和平均,得到CPU温度平均值,然后根据计算得到的CPU温度平均值和CPU温度的允许波动范围,得到第二预设温度范围。例如,计算得到服务器的CPU温度平均值为54.5℃,CPU温度的允许波动范围为±10℃,则得到第二预设温度范围为44.5-64.5℃。需要说明的是,以上第二预设温度范围的计算方式仅是示例性的,本发明并不限于此。In another alternative embodiment, the average CPU temperature can also be obtained by adding and averaging the historical data of the CPU temperature of the server that is running normally, and then according to the calculated average CPU temperature and the allowable fluctuation of the CPU temperature range to obtain a second preset temperature range. For example, if the average CPU temperature of the server is calculated to be 54.5°C, and the allowable fluctuation range of the CPU temperature is ±10°C, the second preset temperature range is obtained as 44.5-64.5°C. It should be noted that the above calculation manner of the second preset temperature range is only exemplary, and the present invention is not limited thereto.
进一步地,在本发明的另一个可选实施例中,所获取的各服务器的与温度相关的CPU指标除包括各服务器的CPU温度之外,还包括各服务器的CPU空闲时间百分比。相应地,若存在所获取的某服务器的CPU温度不在第二预设温度范围内,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常的步骤还可以实施为:Further, in another optional embodiment of the present invention, the obtained temperature-related CPU indicators of each server include not only the CPU temperature of each server, but also the CPU idle time percentage of each server. Correspondingly, if the obtained CPU temperature of a certain server is not within the second preset temperature range, the step of determining that the server whose CPU temperature is not within the second preset temperature range is abnormally running may also be implemented as follows:
若存在所获取的某服务器的CPU温度不在第二预设温度范围内,则判断其CPU温度不在第二预设温度范围内的服务器的CPU空闲时间百分比是否高于预设阈值;If the obtained CPU temperature of a certain server is not within the second preset temperature range, then determine whether the CPU idle time percentage of the server whose CPU temperature is not within the second preset temperature range is higher than the preset threshold;
若是,则确定其CPU温度不在第二预设温度范围内的服务器运行异常。If so, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally.
CPU空闲时间百分比,即idle值,是指示CPU运行状态的重要指标之一。Idle值越高,则表明CPU占用越低,CPU越空闲。当服务器进行密集运算时,会导致CPU温度上升,此时,相应的CPU指标表现为低idle值。因此,通过结合服务器的CPU温度和CPU空闲时间百分比(即,idle值)进行判断,当服务器的CPU温度较高并且CPU占用也很高(即,idle值很低)时,表明CPU处于正常的密集运算状态,当服务器的CPU温度较高而CPU却很空闲(即,idle值很高)时,则表明CPU运行异常,从而能够更准确地排查出服务器异常。The percentage of CPU idle time, that is, the idle value, is one of the important indicators to indicate the running state of the CPU. The higher the Idle value, the lower the CPU usage and the more idle the CPU is. When the server performs intensive operations, the CPU temperature will rise. At this time, the corresponding CPU indicator shows a low idle value. Therefore, by combining the server's CPU temperature and CPU idle time percentage (ie, the idle value) to judge, when the server's CPU temperature is high and the CPU usage is also high (ie, the idle value is low), it indicates that the CPU is in a normal state. In the intensive computing state, when the CPU temperature of the server is high but the CPU is very idle (that is, the idle value is high), it indicates that the CPU is running abnormally, so that the server abnormality can be more accurately checked.
上文步骤S108中,若判断出存在运行异常的服务器,则对运行异常的服务器进行异常处理。In the above step S108, if it is determined that there is a server with abnormal operation, abnormal processing is performed on the server with abnormal operation.
可选地,根据不同的服务器异常情况,对运行异常的服务器进行异常处理可以包括下列至少之一:将运行异常的服务器切换至备用服务器;报警;调节机房内的空调温度;关闭运行异常的服务器进行降温。Optionally, according to different server abnormal conditions, the abnormal processing of the abnormally operating server may include at least one of the following: switching the abnormally operating server to a backup server; alarming; adjusting the temperature of the air conditioner in the computer room; shutting down the abnormally operating server Cool down.
报警的方式包括但不限于短信、邮件、APP(应用)消息通知等。The methods of alarming include but are not limited to text messages, emails, and APP (application) message notifications.
下面以一具体实例进行说明:当发现运行异常的服务器后,可以首先调节距离运行异常的服务器所在的机柜最近的空调的温度,直至整个机房的温度下降到正常范围。然后,若仅通过调节空调无法实现将整个机房的温度下降到正常范围,则将运行异常的服务器切换至备用服务器,关闭运行异常的服务器进行降温,进行报警,并记录日志。A specific example is described below: when an abnormally running server is found, the temperature of the air conditioner closest to the cabinet where the abnormally running server is located can be adjusted first, until the temperature of the entire equipment room drops to a normal range. Then, if the temperature of the entire computer room cannot be lowered to the normal range only by adjusting the air conditioner, switch the abnormally running server to the standby server, shut down the abnormally running server to cool down, make an alarm, and record the log.
上文步骤S110中,若判断出不存在运行异常的服务器,则确定为机房运行异常,并对机房进行异常处理。In the above step S110, if it is determined that there is no abnormally operating server, it is determined that the computer room is operating abnormally, and the abnormality processing is performed on the computer room.
可选地,根据不同的机房异常情况,对机房进行异常处理可以包括下列至少之一:Optionally, according to different abnormal conditions of the computer room, the abnormal processing of the computer room may include at least one of the following:
将机房切换至备用机房;Switch the computer room to the standby computer room;
报警;Call the police;
自动进行物理灭火;Automatic physical fire extinguishing;
排除空调设备故障。Troubleshoot air conditioning equipment.
目前,互联网业务大多都采用了本地多活(即,将一个服务部署到一个城市的多个机房中)或异地多活(即,将一个服务部署到多个城市的多个机房中)的架构设计。在多活架构中,每个机房都是活的,可以实时承担流量,任何一个机房出问题,都可以直接切掉,由另外一个机房直接接管,从而提高机房的容灾能力。在确定机房异常后,通过切换至备用机房,保障业务的正常运行。At present, most Internet services adopt the architecture of local multi-active (that is, deploying a service to multiple computer rooms in a city) or remote multi-active (that is, deploying a service to multiple computer rooms in multiple cities). design. In the multi-active architecture, each computer room is active and can bear the traffic in real time. If any computer room has a problem, it can be directly cut off and another computer room can take over directly, thereby improving the disaster recovery capability of the computer room. After determining that the equipment room is abnormal, switch to the spare equipment room to ensure the normal operation of the business.
报警的方式包括但不限于短信、邮件、APP(应用)消息通知等。The methods of alarming include but are not limited to text messages, emails, and APP (application) message notifications.
如果机房起火,则可以自动进行物理灭火。If there is a fire in the computer room, physical extinguishing can be carried out automatically.
如果空调设备发生故障,则可以通知机房运维人员,进行风道、压缩机、加湿器等的故障排除工作。If the air-conditioning equipment fails, you can notify the operation and maintenance personnel of the equipment room to troubleshoot the air duct, compressor, humidifier, etc.
在本发明的可选实施例中,该方法还可以包括以下步骤:In an optional embodiment of the present invention, the method may further include the following steps:
保存所获取的机房内的环境温度作为机房环境温度的历史数据;Save the obtained ambient temperature in the computer room as the historical data of the ambient temperature in the computer room;
根据所保存的机房环境温度的历史数据绘制机房环境温度历史变化曲线,并记录与机房环境温度历史变化曲线中的异常变化段对应的异常事件和异常事件的特征属性。Draw the historical change curve of the environmental temperature of the computer room according to the historical data of the environmental temperature of the computer room, and record the abnormal events and the characteristic attributes of the abnormal events corresponding to the abnormal change segments in the historical change curve of the environmental temperature of the computer room.
此时,相应地,对机房进行异常处理的步骤可以包括:At this time, correspondingly, the steps of processing exceptions in the computer room may include:
对比当前所获取的机房环境温度的变化趋势是否与机房环境温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the current change trend of the ambient temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room;
若是,则根据与该异常变化段对应的异常事件和异常事件的特征属性,对机房进行异常处理。If yes, then according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, abnormal processing is performed on the computer room.
此处提及的异常事件可以包括机房起火、空调设备故障等。The abnormal events mentioned here may include fire in the computer room, failure of air-conditioning equipment, and the like.
进一步地,异常事件的特征属性可以包括异常事件的处理优先级。在实际应用中,异常事件的处理优先级可以根据异常事件的紧急程度或其可能引发的损失的大小来设定。Further, the characteristic attribute of the abnormal event may include the processing priority of the abnormal event. In practical applications, the processing priority of the abnormal event can be set according to the urgency of the abnormal event or the size of the loss it may cause.
在一种可选的实施方式中,当前所获取的机房环境温度的变化趋势可以通过结合当前所获取的机房环境温度的数据与当前时间点之前一段时间内所获取的机房环境温度的数据来分析温度的变化而得出。在另一种可选的实施方式中,也可以通过在指定时长内连续获取多个机房环境温度数据,通过分析该多个机房环境温度数据的变化而得出。例如,在1分钟内每秒获取机房环境温度,得到60个机房环境温度数据,进而分析该60个机房环境温度数据的变化,得到当前获取的机房环境温度的变化趋势。In an optional implementation manner, the currently acquired change trend of the ambient temperature of the computer room may be analyzed by combining the currently acquired data of the ambient temperature of the computer room with the data of the ambient temperature of the computer room acquired within a period of time before the current time point derived from changes in temperature. In another optional implementation manner, it can also be obtained by continuously acquiring multiple computer room ambient temperature data within a specified period of time, and by analyzing changes in the multiple computer room ambient temperature data. For example, the ambient temperature of the computer room is acquired every second within 1 minute, and the ambient temperature data of 60 computer rooms are obtained, and then the changes of the ambient temperature data of the 60 computer rooms are analyzed to obtain the current change trend of the ambient temperature of the computer room.
在本发明的可选实施例中,该方法还可以包括以下步骤:In an optional embodiment of the present invention, the method may further include the following steps:
保存所获取的各服务器的CPU温度作为各服务器的CPU温度的历史数据;Save the obtained CPU temperature of each server as the historical data of the CPU temperature of each server;
根据所保存的各服务器的CPU温度的历史数据绘制各服务器的CPU温度历史变化曲线,并记录与各服务器的CPU温度历史变化曲线中的异常变化段对应的异常事件和异常事件的特征属性。Draw the CPU temperature historical change curve of each server according to the stored historical data of the CPU temperature of each server, and record the abnormal events and the characteristic attributes of abnormal events corresponding to the abnormal change segments in the CPU temperature historical change curve of each server.
此时,相应地,对运行异常的服务器进行异常处理的步骤可以包括:At this time, correspondingly, the steps of abnormally processing the abnormally running server may include:
对比当前所获取的运行异常的服务器的CPU温度的变化趋势是否与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the CPU temperature historical change curve of the server;
若是,则根据与该异常变化段对应的异常事件和异常事件的特征属性,对运行异常的服务器进行异常处理。If so, according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the abnormally running server.
在一种可选的实施方式中,当前所获取的运行异常的服务器的CPU温度可以通过结合当前所获取的该服务器的CPU温度数据与当前时间点之前一段时间内所获取的该服务器的CPU温度数据来分析温度的变化而得出。在另一种可选的实施方式中,也可以通过在指定时长内连续获取多个该服务器的CPU温度数据,通过分析连续获取的这些温度数据的变化而得出。例如,在1分钟内每秒获取该服务器的CPU温度数据,得到60个该服务器的CPU温度数据,进而分析这些CPU温度数据的变化,得到当前获取的服务器的CPU温度的变化趋势。In an optional implementation manner, the currently acquired CPU temperature of the abnormally running server may be obtained by combining the currently acquired CPU temperature data of the server with the CPU temperature of the server acquired within a period of time before the current time point data to analyze temperature changes. In another optional implementation manner, it can also be obtained by continuously acquiring a plurality of CPU temperature data of the server within a specified period of time, and by analyzing the changes of the continuously acquired temperature data. For example, the CPU temperature data of the server is acquired every second within 1 minute, and 60 CPU temperature data of the server are obtained, and then the changes of the CPU temperature data are analyzed to obtain the current change trend of the CPU temperature of the server obtained.
进一步地,异常事件的特征属性可以包括异常事件的处理优先级。在实际应用中,异常事件的处理优先级可以根据异常事件的紧急程度或其可能引发的损失的大小来设定。Further, the characteristic attribute of the abnormal event may include the processing priority of the abnormal event. In practical applications, the processing priority of the abnormal event can be set according to the urgency of the abnormal event or the size of the loss it may cause.
在对机房和/或服务器进行异常处理时,通过对比当前所获取的机房环境温度的变化趋势与机房环境温度历史变化曲线中的异常变化段的变化趋势是否相同,和/或对比当前所获取的运行异常的服务器的CPU温度的变化趋势与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势是否相同,来确定机房异常事件和/或服务器异常事件的处理优先级,进而,可以根据处理优先级来对机房和/或服务器进行异常处理,防止由于紧急异常事件没有得到及时处理而造成巨大损失,提高了机房的容灾能力。When abnormality processing is performed on the computer room and/or server, by comparing the change trend of the currently obtained ambient temperature of the computer room with the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room, and/or comparing the current acquired Whether the change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the historical change curve of the CPU temperature of the server is used to determine the processing priority of abnormal events in the computer room and/or abnormal events of the server. The processing priority is used to handle exceptions in the computer room and/or server, so as to prevent huge losses due to the failure to deal with emergency abnormal events in time, and improve the disaster recovery capability of the computer room.
在本发明的可选实施例中,在判断出存在运行异常的服务器之后,该方法还可以包括以下步骤:In an optional embodiment of the present invention, after judging that there is an abnormally running server, the method may further include the following steps:
确定运行异常的服务器在机房内的分布;Determine the distribution of abnormal servers in the computer room;
若相邻的两台或更多台服务器运行异常,则优先对相邻的两台或更多台服务器进行异常处理。If two or more adjacent servers run abnormally, the two or more adjacent servers will be prioritized for exception handling.
异常运行的服务器聚集成片的情形往往预示着更严重的服务器故障,也会导致更多的服务失败和损失。因此,通过分析运行异常的服务器在机房内的分布,进而根据分析结果,对聚集的多台异常运行的服务器优先进行及时处理,避免造成更大的损失。A cluster of abnormally operating servers often indicates more severe server failures, which can also lead to more service failures and losses. Therefore, by analyzing the distribution of abnormally running servers in the computer room, and then according to the analysis results, the aggregated multiple abnormally running servers are preferentially processed in a timely manner to avoid causing greater losses.
以上介绍了图1所示实施例的各个环节的多种实现方式,下面将通过具体实施例来详细介绍本发明的基于温度监测的机房异常的处理方法的实现过程。图2示出了根据本发明又一实施例的基于温度监测的机房异常的处理方法的流程图。参见图2,该方法至少可以包括步骤S202至步骤S222。Various implementations of each link of the embodiment shown in FIG. 1 have been described above. The following will describe in detail the implementation process of the method for processing abnormality in a computer room based on temperature monitoring of the present invention through specific embodiments. FIG. 2 shows a flowchart of a method for processing an abnormality in a computer room based on temperature monitoring according to another embodiment of the present invention. Referring to FIG. 2, the method may include at least steps S202 to S222.
步骤S202,获取机房内各服务器的CPU温度和CPU空闲时间百分比以及机房内的环境温度。Step S202, acquiring the CPU temperature and CPU idle time percentage of each server in the computer room and the ambient temperature in the computer room.
步骤S204,判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定机房运行正常。Step S204, it is determined whether the obtained ambient temperature of the computer room is within the first preset temperature range, and if so, it is determined that the computer room is operating normally.
步骤S206,若否,判断所获取的各服务器的CPU温度是否在第二预设温度范围内。Step S206, if not, determine whether the obtained CPU temperature of each server is within the second preset temperature range.
步骤S208,若存在所获取的某服务器的CPU温度不在第二预设温度范围内,则判断其CPU温度不在第二预设温度范围内的服务器的CPU空闲时间百分比是否高于预设阈值。Step S208, if the obtained CPU temperature of a certain server is not within the second preset temperature range, determine whether the CPU idle time percentage of the server whose CPU temperature is not within the second preset temperature range is higher than a preset threshold.
步骤S210,若是,则确定其CPU温度不在第二预设温度范围内的服务器运行异常。Step S210, if yes, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally.
步骤S212,对比当前所获取的运行异常的服务器的CPU温度的变化趋势是否与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势相同,其中,该服务器的CPU温度历史变化曲线是根据所保存的该服务器的CPU温度的历史数据绘制而成,并且记录有与该服务器的CPU温度历史变化曲线中的异常变化段对应的异常事件和异常事件的处理优先级。Step S212, compare whether the currently obtained change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the CPU temperature historical change curve of the server, wherein the CPU temperature historical change curve of the server is based on The stored historical data of the CPU temperature of the server is drawn, and the abnormal events and the processing priorities of the abnormal events corresponding to the abnormal change segments in the CPU temperature historical change curve of the server are recorded.
步骤S214,若相同,则根据与该CPU温度历史变化曲线中的该异常变化段对应的异常事件和异常事件的处理优先级,对运行异常的服务器进行异常处理;若不同,则按常规对运行异常的服务器进行异常处理。Step S214, if they are the same, according to the abnormal event and the processing priority of the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve, perform abnormal processing on the abnormally running server; The abnormal server performs exception handling.
步骤S216,若所获取的各服务器的CPU温度均在第二预设温度范围内,则确定机房运行异常。Step S216, if the obtained CPU temperatures of the servers are all within the second preset temperature range, it is determined that the computer room is abnormally running.
步骤S218,对比当前所获取的机房环境温度的变化趋势是否与机房环境温度历史变化曲线中的异常变化段的变化趋势相同,其中,机房环境温度历史变化曲线是根据所保存的机房环境温度的历史数据绘制而成,并且记录有与机房环境温度历史变化曲线中的异常变化段对应的异常事件和异常事件的处理优先级。Step S218, compare whether the currently obtained change trend of the ambient temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room, wherein the historical change curve of the ambient temperature of the computer room is based on the saved history of the ambient temperature of the computer room The data is drawn, and the abnormal events and the processing priorities of the abnormal events corresponding to the abnormal change segments in the historical change curve of the ambient temperature of the equipment room are recorded.
步骤S220,若相同,则根据与机房环境温度历史变化曲线中的该异常变化段对应的异常事件和异常事件的处理优先级,对机房进行异常处理;若不同,则按常规对机房进行异常处理。Step S220, if the same, according to the abnormal event and the processing priority of the abnormal event corresponding to the abnormal change section in the historical change curve of the environmental temperature of the computer room, perform abnormal processing on the computer room; if different, perform abnormal processing on the computer room as usual .
步骤S222,保存所获取的机房内的环境温度和各服务器的CPU温度,分别作为机房环境温度和各服务器的CPU温度的历史数据。Step S222, save the acquired ambient temperature in the computer room and the CPU temperature of each server as historical data of the ambient temperature of the computer room and the CPU temperature of each server, respectively.
需要说明的是,本发明实施例中步骤S222在步骤S220之后执行,在其他可替换实施例中,步骤S222也可以在步骤S202之后的任一步骤执行。It should be noted that, in this embodiment of the present invention, step S222 is performed after step S220. In other alternative embodiments, step S222 may also be performed at any step after step S202.
需要说明的是,实际应用中,上述所有可选实施方式可以采用结合的方式任意组合,形成本发明的可选实施例,在此不再一一赘述。It should be noted that, in practical applications, all the above-mentioned optional embodiments may be combined arbitrarily to form optional embodiments of the present invention, which will not be repeated here.
基于同一发明构思,本发明实施例还提供了一种基于温度监测的机房异常的处理装置,用于支持上述任意一个实施例或其组合所提供的基于温度监测的机房异常的处理方法。图3示出了根据本发明一实施例的基于温度监测的机房异常的处理装置的结构示意图。参见图3,该装置至少可以包括:温度获取模块310、机房判断模块320、服务器判断模块330、服务器处理模块340以及机房处理模块350。Based on the same inventive concept, an embodiment of the present invention also provides a temperature monitoring-based equipment room abnormality processing device, which is used to support the temperature monitoring-based equipment room abnormality processing method provided by any one of the above embodiments or a combination thereof. FIG. 3 shows a schematic structural diagram of an apparatus for processing abnormality in a computer room based on temperature monitoring according to an embodiment of the present invention. Referring to FIG. 3 , the apparatus may at least include: a temperature acquisition module 310 , a computer room judgment module 320 , a server judgment module 330 , a server processing module 340 , and a computer room processing module 350 .
本发明实施例提出的基于温度监测的机房异常的处理装置可以通过指定监测管理平台实现。优选地,指定监测管理平台为IPMI平台。The apparatus for processing an abnormality in a computer room based on temperature monitoring proposed by the embodiment of the present invention may be implemented by specifying a monitoring management platform. Preferably, the designated monitoring management platform is the IPMI platform.
现介绍本发明实施例的基于温度监测的机房异常的处理装置的各组成或器件的功能以及各部分间的连接关系:Now introduce the functions of each component or device and the connection relationship between each part of the temperature monitoring-based device room abnormality processing device according to the embodiment of the present invention:
温度获取模块310,适于获取机房内各服务器的与温度相关的CPU指标和机房内的环境温度。The temperature acquisition module 310 is adapted to acquire temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room.
机房判断模块320,与温度获取模块310连接,适于判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定机房运行正常。The computer room judgment module 320 is connected to the temperature acquisition module 310 and is adapted to judge whether the acquired ambient temperature of the computer room is within the first preset temperature range, and if so, it is determined that the computer room is operating normally.
服务器判断模块330,与温度获取模块310和机房判断模块320连接,适于若所获取的机房环境温度不在第一预设温度范围内,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器。The server determination module 330 is connected to the temperature acquisition module 310 and the computer room determination module 320, and is adapted to, if the acquired ambient temperature of the computer room is not within the first preset temperature range, according to the acquired temperature-related CPU indicators of each server, Determine whether there is an abnormal server.
服务器处理模块340,与服务器判断模块330连接,适于若存在运行异常的服务器,则对运行异常的服务器进行异常处理。The server processing module 340 is connected to the server judgment module 330, and is adapted to perform abnormality processing on the abnormally running server if there is an abnormally running server.
机房处理模块350,与服务器判断模块330连接,适于若不存在运行异常的服务器,则确定机房运行异常,并对机房进行异常处理。The computer room processing module 350 is connected to the server judging module 330, and is adapted to determine that the computer room is abnormally running if there is no abnormally running server, and process the abnormality of the computer room.
在一个可选实施例中,各服务器的与温度相关的CPU指标包括各服务器的CPU温度;此时,相应地,服务器判断模块330还适于:In an optional embodiment, the temperature-related CPU indicators of each server include the CPU temperature of each server; in this case, correspondingly, the server determination module 330 is further adapted to:
判断所获取的各服务器的CPU温度是否在第二预设温度范围内;Determine whether the obtained CPU temperature of each server is within the second preset temperature range;
若存在所获取的某服务器的CPU温度不在第二预设温度范围内,则确定其CPU温度不在第二预设温度范围内的服务器运行异常;If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally;
若所获取的各服务器的CPU温度均在第二预设温度范围内,则确定不存在运行异常的服务器。If the obtained CPU temperatures of the servers are all within the second preset temperature range, it is determined that there is no abnormally running server.
在一个可选实施例中,各服务器的与温度相关的CPU指标还包括各服务器的CPU空闲时间百分比;此时,相应地,服务器判断模块330还适于:In an optional embodiment, the temperature-related CPU indicators of each server further include the CPU idle time percentage of each server; in this case, correspondingly, the server determination module 330 is further adapted to:
若存在所获取的某服务器的CPU温度不在第二预设温度范围内,则判断其CPU温度不在第二预设温度范围内的服务器的CPU空闲时间百分比是否高于预设阈值;If the obtained CPU temperature of a certain server is not within the second preset temperature range, then determine whether the CPU idle time percentage of the server whose CPU temperature is not within the second preset temperature range is higher than the preset threshold;
若是,则确定其CPU温度不在第二预设温度范围内的服务器运行异常。If so, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally.
在一个可选实施例中,第一预设温度范围是人为设定的温度范围、或根据机房环境温度的历史数据进行计算得到的温度范围。第二预设温度范围是人为设定的温度范围、或根据服务器的CPU温度的历史数据进行计算得到的温度范围。In an optional embodiment, the first preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the ambient temperature of the equipment room. The second preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the CPU temperature of the server.
在一个可选实施例中,如图4所示,图3展示的基于温度监测的机房异常的处理装置还可以包括第一数据保存模块460和第一变化曲线绘制模块470。第一数据保存模块460与温度获取模块310连接,适于保存所获取的机房内的环境温度作为机房环境温度的历史数据。第一变化曲线绘制模块470与第一数据保存模块460连接,适于根据所保存的机房环境温度的历史数据绘制机房环境温度历史变化曲线,并记录与机房环境温度历史变化曲线中的异常变化段对应的异常事件和异常事件的特征属性。In an optional embodiment, as shown in FIG. 4 , the apparatus for processing abnormality in a computer room based on temperature monitoring shown in FIG. 3 may further include a first data saving module 460 and a first change curve drawing module 470 . The first data storage module 460 is connected to the temperature acquisition module 310, and is adapted to save the acquired ambient temperature in the computer room as historical data of the ambient temperature of the computer room. The first change curve drawing module 470 is connected to the first data saving module 460, and is adapted to draw the historical change curve of the computer room ambient temperature according to the stored historical data of the computer room ambient temperature, and record the abnormal change segment in the historical change curve of the computer room ambient temperature. Corresponding exception events and characteristic properties of exception events.
此时,对应地,机房处理模块350还适于:At this time, correspondingly, the computer room processing module 350 is further adapted to:
对比当前所获取的机房环境温度的变化趋势是否与机房环境温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the current change trend of the ambient temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room;
若是,则根据与机房环境温度历史变化曲线中的该异常变化段对应的异常事件和异常事件的特征属性,对机房进行异常处理。If yes, then according to the abnormal event and the characteristic attribute of the abnormal event corresponding to the abnormal change segment in the historical change curve of the environmental temperature of the computer room, the abnormal processing is performed on the computer room.
在一个可选实施例中,如图4所示,图3展示的基于温度监测的机房异常的处理装置还可以包括第二数据保存模块480和第二变化曲线绘制模块490。第二数据保存模块480与温度获取模块310连接,适于保存所获取的各服务器的CPU温度作为各服务器的CPU温度的历史数据。第二变化曲线绘制模块490与第二数据保存模块480连接,适于根据所保存的各服务器的CPU温度的历史数据绘制各服务器的CPU温度历史变化曲线,并记录与CPU温度历史变化曲线中的异常变化段对应的异常事件和异常事件的特征属性。In an optional embodiment, as shown in FIG. 4 , the apparatus for processing abnormality in a computer room based on temperature monitoring shown in FIG. 3 may further include a second data saving module 480 and a second change curve drawing module 490 . The second data saving module 480 is connected to the temperature obtaining module 310, and is adapted to save the obtained CPU temperature of each server as historical data of the CPU temperature of each server. The second change curve drawing module 490 is connected to the second data saving module 480, and is adapted to draw the CPU temperature historical change curve of each server according to the stored historical data of the CPU temperature of each server, and record the CPU temperature historical change curve with the CPU temperature historical change curve. The abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event.
此时,对应地,服务器处理模块340还适于:At this time, correspondingly, the server processing module 340 is further adapted to:
对比当前所获取的运行异常的服务器的CPU温度的变化趋势是否与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the CPU temperature historical change curve of the server;
若是,则根据与CPU温度历史变化曲线中的该异常变化段对应的异常事件和异常事件的特征属性,对运行异常的服务器进行异常处理。If yes, then according to the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve and the characteristic attribute of the abnormal event, abnormal processing is performed on the abnormally running server.
进一步地,上述提及的异常事件的特征属性包括异常事件的处理优先级。Further, the characteristic attribute of the abnormal event mentioned above includes the processing priority of the abnormal event.
在一个可选实施例中,如图4所示,图3展示的基于温度监测的机房异常的处理装置还可以包括异常分布确定模块500。异常分布确定模块500与服务器判断模块330和服务器处理模块340连接,适于确定运行异常的服务器在机房内的分布。若相邻的两台或更多台服务器运行异常,则异常分布确定模块500触发服务器处理模块340优先对相邻的两台或更多台服务器进行异常处理。In an optional embodiment, as shown in FIG. 4 , the apparatus for processing abnormality in a computer room based on temperature monitoring shown in FIG. 3 may further include a module 500 for determining abnormality distribution. The abnormality distribution determining module 500 is connected to the server judging module 330 and the server processing module 340, and is adapted to determine the distribution of abnormally running servers in the computer room. If two or more adjacent servers run abnormally, the abnormality distribution determining module 500 triggers the server processing module 340 to preferentially perform abnormality processing on the two or more adjacent servers.
在一个可选实施例中,对运行异常的服务器进行异常处理包括下列至少之一:将运行异常的服务器切换至备用服务器;报警;调节机房内的空调温度;关闭运行异常的服务器进行降温。In an optional embodiment, performing abnormality processing on the abnormally operating server includes at least one of the following: switching the abnormally operating server to a standby server; alarming; adjusting the temperature of the air conditioner in the equipment room; shutting down the abnormally operating server for cooling.
在一个可选实施例中,对机房进行异常处理包括下列至少之一:将机房切换至备用机房;报警;自动进行物理灭火;排除空调设备故障。In an optional embodiment, the abnormal processing of the computer room includes at least one of the following: switching the computer room to a backup computer room; alarming; automatically performing physical fire extinguishing;
基于同一发明构思,本发明实施例还提供了一种计算机存储介质。该计算机存储介质存储有计算机程序代码,当该计算机程序代码在计算设备上运行时,导致计算设备执行根据上述任意一个实施例或其组合所述的基于温度监测的机房异常的处理方法。Based on the same inventive concept, an embodiment of the present invention also provides a computer storage medium. The computer storage medium stores computer program code, and when the computer program code runs on the computing device, causes the computing device to execute the temperature monitoring-based processing method for a computer room abnormality according to any one of the above embodiments or a combination thereof.
基于同一发明构思,本发明实施例还提供了一种计算设备。该计算设备可以包括:Based on the same inventive concept, an embodiment of the present invention further provides a computing device. The computing device may include:
处理器;以及processor; and
存储有计算机程序代码的存储器;memory in which computer program code is stored;
当该计算机程序代码被处理器运行时,导致该计算设备执行根据上述任意一个实施例或其组合所述的基于温度监测的机房异常的处理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for processing an abnormality of a computer room based on temperature monitoring according to any one of the above embodiments or a combination thereof.
根据上述任意一个可选实施例或多个可选实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the foregoing optional embodiments or a combination of multiple optional embodiments, the embodiments of the present invention can achieve the following beneficial effects:
本发明实施例提出的基于温度监测的机房异常的处理方法和装置,首先获取机房内各服务器的与温度相关的CPU指标和机房内的环境温度;然后根据所获取的机房环境温度判断机房是否运行正常,若否,则进一步根据所获取的各服务器的与温度相关的CPU指标判断是否存在运行异常的服务器;进而,若存在运行异常的服务器,则对运行异常的服务器进行异常处理,若不存在运行异常的服务器,则对机房进行异常处理。通过直接根据机房和服务器的温度信息对机房和服务器的异常情况进行排查和处理,减少了响应时间,从而降低损失,同时减少了人工干预,从而降低人力成本。The method and device for processing abnormality in a computer room based on temperature monitoring proposed by the embodiments of the present invention first acquire temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room; and then determine whether the computer room is running according to the acquired ambient temperature of the computer room If it is normal, if not, then further judge whether there is an abnormally running server according to the obtained temperature-related CPU indicators of each server; further, if there is an abnormally running server, perform abnormal processing on the abnormally running server, if not If the server runs abnormally, the computer room will be processed abnormally. By directly checking and processing the abnormal conditions of the computer room and the server according to the temperature information of the computer room and the server, the response time is reduced, thereby reducing losses, and at the same time reducing manual intervention, thereby reducing labor costs.
进一步地,在判断服务器是否异常时,结合服务器的CPU温度和CPU空闲时间百分比进行判断,能够更准确地排查出服务器异常。Further, when judging whether the server is abnormal, the judgment is made in combination with the CPU temperature and the CPU idle time percentage of the server, so that the abnormality of the server can be more accurately checked.
更进一步地,保存所获取的机房环境温度和服务器的CPU温度作为历史数据,根据机房环境温度和服务器的CPU温度的历史数据分别绘制机房环境温度历史变化曲线和服务器的CPU温度历史变化曲线,并分别记录与机房环境温度历史变化曲线中的异常变化段对应的异常事件和该异常事件的特征属性以及与CPU温度历史变化曲线中的异常变化段对应的异常事件和该异常事件的特征属性。这样,在对机房和/或服务器进行异常处理时,可以通过对比当前所获取的机房环境温度的变化趋势与机房环境温度历史变化曲线中的异常变化段的变化趋势是否相同,和/或对比当前所获取的运行异常的服务器的CPU温度的变化趋势与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势是否相同,来确定机房异常事件和/或服务器异常事件的处理优先级,进而,可以根据处理优先级来对机房和/或服务器进行异常处理,防止由于紧急异常事件没有得到及时处理而造成巨大损失,提高了机房的容灾能力。Further, save the obtained computer room ambient temperature and server CPU temperature as historical data, and draw the computer room ambient temperature historical change curve and the server CPU temperature historical change curve respectively according to the historical data of the computer room ambient temperature and the server CPU temperature, and Record the abnormal event corresponding to the abnormal change segment in the historical change curve of the computer room ambient temperature and the characteristic attribute of the abnormal event, as well as the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve and the characteristic attribute of the abnormal event. In this way, when abnormal processing is performed on the computer room and/or the server, it is possible to compare whether the change trend of the currently obtained environmental temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the environmental temperature of the computer room, and/or compare the current Whether the change trend of the obtained CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the historical change curve of the CPU temperature of the server is used to determine the processing priority of abnormal events in the computer room and/or abnormal events of the server, and then , abnormal processing can be performed on the computer room and/or server according to the processing priority, so as to prevent huge losses caused by the emergency abnormal event not being processed in time, and improve the disaster recovery capability of the computer room.
所属领域的技术人员可以清楚地了解到,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,为简洁起见,在此不另赘述。Those skilled in the art can clearly understand that, for the specific working processes of the systems, devices and units described above, reference may be made to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, details are not described herein.
另外,在本发明各个实施例中的各功能单元可以物理上相互独立,也可以两个或两个以上功能单元集成在一起,还可以全部功能单元都集成在一个处理单元中。上述集成的功能单元既可以采用硬件的形式实现,也可以采用软件或者固件的形式实现。In addition, each functional unit in each embodiment of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above-mentioned integrated functional units may be implemented in the form of hardware, and may also be implemented in the form of software or firmware.
本领域普通技术人员可以理解:所述集成的功能单元如果以软件的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,其包括若干指令,用以使得一台计算设备(例如个人计算机,服务器,或者网络设备等)在运行所述指令时执行本发明各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM),磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that: if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, which includes several instructions to make a computer A computing device (such as a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the embodiments of the present invention when running the instructions. The aforementioned storage medium includes: U disk, removable hard disk, read only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.
或者,实现前述方法实施例的全部或部分步骤可以通过程序指令相关的硬件(诸如个人计算机,服务器,或者网络设备等的计算设备)来完成,所述程序指令可以存储于一计算机可读取存储介质中,当所述程序指令被计算设备的处理器执行时,所述计算设备执行本发明各实施例所述方法的全部或部分步骤。Alternatively, all or part of the steps of implementing the foregoing method embodiments may be accomplished by program instructions related to hardware (such as a personal computer, a server, or a computing device such as a network device), and the program instructions may be stored in a computer-readable storage In the medium, when the program instructions are executed by the processor of the computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:在本发明的精神和原则之内,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案脱离本发明的保护范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: Within the spirit and principle of the present invention, it is still possible to modify the technical solutions recorded in the foregoing embodiments, or to perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate protection scope of the present invention.
根据本发明实施例的一方面,提供了A1.一种基于温度监测的机房异常的处理方法,包括:According to an aspect of the embodiments of the present invention, A1. A temperature monitoring-based processing method for abnormality in a computer room is provided, including:
获取机房内各服务器的与温度相关的CPU指标和所述机房内的环境温度;Obtain the temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room;
判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定所述机房运行正常;Determine whether the obtained ambient temperature of the computer room is within the first preset temperature range, and if so, determine that the computer room is operating normally;
若否,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器;If not, according to the obtained temperature-related CPU indicators of each server, determine whether there is an abnormally running server;
若存在运行异常的服务器,则对所述运行异常的服务器进行异常处理;If there is a server running abnormally, perform abnormal processing on the server running abnormally;
若不存在运行异常的服务器,则确定所述机房运行异常,并对所述机房进行异常处理。If there is no server running abnormally, it is determined that the computer room is running abnormally, and the abnormality processing is performed on the computer room.
A2.根据A1所述的方法,其中,所述各服务器的与温度相关的CPU指标包括各服务器的CPU温度;A2. The method according to A1, wherein the temperature-related CPU indicators of each server include the CPU temperature of each server;
根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器,包括:According to the obtained temperature-related CPU indicators of each server, determine whether there are abnormal servers, including:
判断所获取的各服务器的CPU温度是否在第二预设温度范围内;Determine whether the obtained CPU temperature of each server is within the second preset temperature range;
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常;If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally;
若所获取的各服务器的CPU温度均在所述第二预设温度范围内,则确定不存在运行异常的服务器。If the obtained CPU temperature of each server is within the second preset temperature range, it is determined that there is no abnormally running server.
A3.根据A2所述的方法,其中,所述各服务器的与温度相关的CPU指标还包括各服务器的CPU空闲时间百分比;A3. The method according to A2, wherein the temperature-related CPU indicators of each server further include the CPU idle time percentage of each server;
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常,包括:If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally, including:
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则判断其CPU温度不在所述第二预设温度范围内的服务器的CPU空闲时间百分比是否高于预设阈值;If the obtained CPU temperature of a certain server is not within the second preset temperature range, determine whether the CPU idle time percentage of the server whose CPU temperature is not within the second preset temperature range is higher than a preset threshold;
若是,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常。If so, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally.
A4.根据A2或A3所述的方法,其中,所述第一预设温度范围是人为设定的温度范围、或根据机房环境温度的历史数据进行计算得到的温度范围;A4. The method according to A2 or A3, wherein the first preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the ambient temperature of the computer room;
所述第二预设温度范围是人为设定的温度范围、或根据服务器的CPU温度的历史数据进行计算得到的温度范围。The second preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the CPU temperature of the server.
A5.根据A2-A4中任一项所述的方法,其中,还包括:A5. The method according to any one of A2-A4, wherein, further comprising:
保存所获取的机房内的环境温度作为机房环境温度的历史数据;Save the obtained ambient temperature in the computer room as the historical data of the ambient temperature in the computer room;
根据所保存的机房环境温度的历史数据绘制机房环境温度历史变化曲线,并记录与所述机房环境温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;Draw a historical change curve of the environmental temperature of the computer room according to the stored historical data of the environmental temperature of the computer room, and record the abnormal event corresponding to the abnormal change segment in the historical change curve of the environmental temperature of the computer room and the characteristic attribute of the abnormal event;
此时,at this time,
对所述机房进行异常处理,包括:Exception handling is performed on the computer room, including:
对比当前所获取的机房环境温度的变化趋势是否与所述机房环境温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the ambient temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述机房进行异常处理。If yes, then according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the computer room.
A6.根据A2-A5中任一项所述的方法,其中,还包括:A6. The method according to any one of A2-A5, wherein, further comprising:
保存所获取的各服务器的CPU温度作为各服务器的CPU温度的历史数据;Save the obtained CPU temperature of each server as the historical data of the CPU temperature of each server;
根据所保存的各服务器的CPU温度的历史数据绘制各服务器的CPU温度历史变化曲线,并记录与所述CPU温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;Draw the CPU temperature historical change curve of each server according to the stored historical data of the CPU temperature of each server, and record the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve and the characteristic attribute of the abnormal event;
此时,at this time,
对所述运行异常的服务器进行异常处理,包括:Perform exception handling on the abnormally running server, including:
对比当前所获取的所述运行异常的服务器的CPU温度的变化趋势是否与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the CPU temperature historical change curve of the server;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述运行异常的服务器进行异常处理。If it is, according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the abnormally running server.
A7.根据A5或A6所述的方法,其中,所述异常事件的特征属性包括异常事件的处理优先级。A7. The method according to A5 or A6, wherein the characteristic attribute of the abnormal event includes a processing priority of the abnormal event.
A8.根据A1-A7中任一项所述的方法,其中,还包括:A8. The method according to any one of A1-A7, wherein, further comprising:
确定运行异常的服务器在所述机房内的分布;determining the distribution of abnormally running servers in the computer room;
若相邻的两台或更多台服务器运行异常,则优先对所述相邻的两台或更多台服务器进行异常处理。If two or more adjacent servers run abnormally, the abnormality processing is preferentially performed on the two or more adjacent servers.
A9.根据A1-A8中任一项所述的方法,其中,对所述运行异常的服务器进行异常处理包括下列至少之一:A9. The method according to any one of A1-A8, wherein performing exception processing on the abnormally running server includes at least one of the following:
将运行异常的服务器切换至备用服务器;Switch the abnormally running server to the standby server;
报警;Call the police;
调节所述机房内的空调温度;adjusting the temperature of the air conditioner in the machine room;
关闭运行异常的服务器进行降温。Shut down the abnormal server to cool down.
A10.根据A1-A9中任一项所述的方法,其中,对所述机房进行异常处理包括下列至少之一:A10. The method according to any one of A1-A9, wherein performing exception handling on the computer room includes at least one of the following:
将所述机房切换至备用机房;switching the computer room to a spare computer room;
报警;Call the police;
自动进行物理灭火;Automatic physical fire extinguishing;
排除空调设备故障。Troubleshoot air conditioning equipment.
根据本发明实施例的另一方面,还提供了B11.一种基于温度监测的机房异常的处理装置,包括:According to another aspect of the embodiments of the present invention, B11. An apparatus for processing abnormality in a computer room based on temperature monitoring is also provided, including:
温度获取模块,适于获取机房内各服务器的与温度相关的CPU指标和所述机房内的环境温度;a temperature acquisition module, suitable for acquiring temperature-related CPU indicators of each server in the computer room and the ambient temperature in the computer room;
机房判断模块,适于判断所获取的机房环境温度是否在第一预设温度范围内,若是,则确定所述机房运行正常;a computer room judgment module, adapted to judge whether the acquired ambient temperature of the computer room is within the first preset temperature range, and if so, determine that the computer room is operating normally;
服务器判断模块,适于若所获取的机房环境温度不在所述第一预设温度范围内,则根据所获取的各服务器的与温度相关的CPU指标,判断是否存在运行异常的服务器;The server judging module is adapted to judge whether there is an abnormally running server according to the obtained temperature-related CPU indicators of each server if the obtained ambient temperature of the computer room is not within the first preset temperature range;
服务器处理模块,适于若存在运行异常的服务器,则对所述运行异常的服务器进行异常处理;以及A server processing module, adapted to perform abnormality processing on the abnormally operating server if there is an abnormally operating server; and
机房处理模块,适于若不存在运行异常的服务器,则确定所述机房运行异常,并对所述机房进行异常处理。The computer room processing module is adapted to determine that the computer room is abnormally running if there is no abnormally running server, and process the abnormality of the computer room.
B12.根据B11所述的装置,其中,所述各服务器的与温度相关的CPU指标包括各服务器的CPU温度;B12. The apparatus according to B11, wherein the temperature-related CPU indicators of each server include the CPU temperature of each server;
所述服务器判断模块还适于:The server judgment module is also suitable for:
判断所获取的各服务器的CPU温度是否在第二预设温度范围内;Determine whether the obtained CPU temperature of each server is within the second preset temperature range;
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常;If the obtained CPU temperature of a certain server is not within the second preset temperature range, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally;
若所获取的各服务器的CPU温度均在所述第二预设温度范围内,则确定不存在运行异常的服务器。If the obtained CPU temperature of each server is within the second preset temperature range, it is determined that there is no abnormally running server.
B13.根据B12所述的装置,其中,所述各服务器的与温度相关的CPU指标还包括各服务器的CPU空闲时间百分比;B13. The apparatus according to B12, wherein the temperature-related CPU indicators of each server further include the CPU idle time percentage of each server;
所述服务器判断模块还适于:The server judgment module is also suitable for:
若存在所获取的某服务器的CPU温度不在所述第二预设温度范围内,则判断其CPU温度不在所述第二预设温度范围内的服务器的CPU空闲时间百分比是否高于预设阈值;If the obtained CPU temperature of a certain server is not within the second preset temperature range, determine whether the CPU idle time percentage of the server whose CPU temperature is not within the second preset temperature range is higher than a preset threshold;
若是,则确定其CPU温度不在所述第二预设温度范围内的服务器运行异常。If so, it is determined that the server whose CPU temperature is not within the second preset temperature range operates abnormally.
B14.根据B12或B13所述的装置,其中,所述第一预设温度范围是人为设定的温度范围、或根据机房环境温度的历史数据进行计算得到的温度范围;B14. The device according to B12 or B13, wherein the first preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the ambient temperature of the computer room;
所述第二预设温度范围是人为设定的温度范围、或根据服务器的CPU温度的历史数据进行计算得到的温度范围。The second preset temperature range is an artificially set temperature range, or a temperature range calculated according to historical data of the CPU temperature of the server.
B15.根据B12-B14中任一项所述的装置,其中,还包括:B15. The device according to any one of B12-B14, further comprising:
第一数据保存模块,适于保存所获取的机房内的环境温度作为机房环境温度的历史数据;The first data storage module is adapted to save the acquired ambient temperature in the computer room as historical data of the ambient temperature of the computer room;
第一变化曲线绘制模块,适于根据所保存的机房环境温度的历史数据绘制机房环境温度历史变化曲线,并记录与所述机房环境温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;The first variation curve drawing module is adapted to draw the historical variation curve of the ambient temperature of the computer room according to the stored historical data of the ambient temperature of the computer room, and record the abnormal events corresponding to the abnormal variation segments in the historical variation curve of the ambient temperature of the computer room and the Characteristics of abnormal events;
此时,at this time,
所述机房处理模块还适于:The computer room processing module is also suitable for:
对比当前所获取的机房环境温度的变化趋势是否与所述机房环境温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the ambient temperature of the computer room is the same as the change trend of the abnormal change segment in the historical change curve of the ambient temperature of the computer room;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述机房进行异常处理。If yes, then according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the computer room.
B16.根据B12-B15中任一项所述的装置,其中,还包括:B16. The device according to any one of B12-B15, further comprising:
第二数据保存模块,适于保存所获取的各服务器的CPU温度作为各服务器的CPU温度的历史数据;The second data saving module is adapted to save the obtained CPU temperature of each server as the historical data of the CPU temperature of each server;
第二变化曲线绘制模块,适于根据所保存的各服务器的CPU温度的历史数据绘制各服务器的CPU温度历史变化曲线,并记录与所述CPU温度历史变化曲线中的异常变化段对应的异常事件和所述异常事件的特征属性;The second change curve drawing module is adapted to draw the CPU temperature historical change curve of each server according to the stored historical data of the CPU temperature of each server, and record the abnormal event corresponding to the abnormal change segment in the CPU temperature historical change curve and the characteristic properties of said anomalous event;
此时,at this time,
所述服务器处理模块还适于:The server processing module is also adapted to:
对比当前所获取的所述运行异常的服务器的CPU温度的变化趋势是否与该服务器的CPU温度历史变化曲线中的异常变化段的变化趋势相同;Compare whether the currently obtained change trend of the CPU temperature of the abnormally running server is the same as the change trend of the abnormal change segment in the CPU temperature historical change curve of the server;
若是,则根据与所述异常变化段对应的异常事件和所述异常事件的特征属性,对所述运行异常的服务器进行异常处理。If it is, according to the abnormal event corresponding to the abnormal change segment and the characteristic attribute of the abnormal event, perform abnormal processing on the abnormally running server.
B17.根据B15或B16所述的装置,其中,所述异常事件的特征属性包括异常事件的处理优先级。B17. The apparatus according to B15 or B16, wherein the characteristic attribute of the abnormal event includes a processing priority of the abnormal event.
B18.根据B11-B17中任一项所述的装置,其中,还包括:B18. The device according to any one of B11-B17, further comprising:
异常分布确定模块,适于确定运行异常的服务器在所述机房内的分布;an abnormality distribution determining module, adapted to determine the distribution of abnormally running servers in the computer room;
若相邻的两台或更多台服务器运行异常,则触发所述服务器处理模块优先对所述相邻的两台或更多台服务器进行异常处理。If two or more adjacent servers run abnormally, the server processing module is triggered to preferentially process the abnormality on the two or more adjacent servers.
B19.根据B11-B18中任一项所述的装置,其中,对所述运行异常的服务器进行异常处理包括下列至少之一:B19. The apparatus according to any one of B11-B18, wherein performing abnormal processing on the abnormally running server includes at least one of the following:
将运行异常的服务器切换至备用服务器;Switch the abnormally running server to the standby server;
报警;Call the police;
调节所述机房内的空调温度;adjusting the temperature of the air conditioner in the machine room;
关闭运行异常的服务器进行降温。Shut down the abnormal server to cool down.
B20.根据B11-B19中任一项所述的装置,其中,对所述机房进行异常处理包括下列至少之一:B20. The device according to any one of B11-B19, wherein performing abnormal processing on the computer room includes at least one of the following:
将所述机房切换至备用机房;switching the computer room to a spare computer room;
报警;Call the police;
自动进行物理灭火;Automatic physical fire extinguishing;
排除空调设备故障。Troubleshoot air conditioning equipment.
根据本发明实施例的再一方面,还提供了C21.一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行根据A1-A10中任一项所述的基于温度监测的机房异常的处理方法。According to yet another aspect of the embodiments of the present invention, there is also provided C21. A computer storage medium, the computer storage medium stores computer program code, when the computer program code is executed on a computing device, causes the computing device Execute the method for processing the abnormality of the equipment room based on temperature monitoring according to any one of A1-A10.
根据本发明实施例的又一方面,还提供了D22.一种计算设备,包括:According to yet another aspect of the embodiments of the present invention, D22. A computing device is also provided, comprising:
处理器;以及processor; and
存储有计算机程序代码的存储器;memory in which computer program code is stored;
当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行根据A1-A10中任一项所述的基于温度监测的机房异常的处理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for processing an abnormality in a computer room based on temperature monitoring according to any one of A1-A10.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811026549.2A CN110873613A (en) | 2018-09-04 | 2018-09-04 | A method and device for processing abnormality of computer room based on temperature monitoring |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811026549.2A CN110873613A (en) | 2018-09-04 | 2018-09-04 | A method and device for processing abnormality of computer room based on temperature monitoring |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110873613A true CN110873613A (en) | 2020-03-10 |
Family
ID=69716180
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811026549.2A Pending CN110873613A (en) | 2018-09-04 | 2018-09-04 | A method and device for processing abnormality of computer room based on temperature monitoring |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110873613A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112783937A (en) * | 2020-12-30 | 2021-05-11 | 成群 | Product production monitoring method and device based on big data and cloud computing |
| CN113190406A (en) * | 2021-04-30 | 2021-07-30 | 上海爱数信息技术股份有限公司 | IT entity group anomaly detection method under cloud native observability |
| CN114676863A (en) * | 2022-05-30 | 2022-06-28 | 南京南瑞继保工程技术有限公司 | Method and system for monitoring abnormal temperature of turbine bearing shell |
| CN117742206A (en) * | 2023-12-15 | 2024-03-22 | 江苏环迅信息科技有限公司 | Tax control machine room environment monitoring method, system, terminal and storage medium |
| CN118139392A (en) * | 2024-05-08 | 2024-06-04 | 广东欢联电子科技有限公司 | A method and system for optimizing energy-saving control of a data center cooling system |
| CN119166400A (en) * | 2024-08-28 | 2024-12-20 | 盐城轻策信息科技有限公司 | A network server cabinet fault processing system and method |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103105923A (en) * | 2013-03-07 | 2013-05-15 | 鄂尔多斯市云泰互联科技有限公司 | Energy-efficient scheduling method and system for information technology (IT) business of cloud computing center |
| CN203745817U (en) * | 2014-02-19 | 2014-07-30 | 北方互联(北京)网络技术有限公司 | Temperature control system of network computer room |
| CN105094061A (en) * | 2014-04-29 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Machine room server temperature adjustment method and equipment |
| CN105353713A (en) * | 2015-12-15 | 2016-02-24 | 国网北京市电力公司 | Computer room monitoring system |
| CN205246244U (en) * | 2015-12-15 | 2016-05-18 | 杭州万联网络科技有限公司 | Wireless temperature measurement system |
| CN107708378A (en) * | 2017-08-07 | 2018-02-16 | 深圳益强信息科技有限公司 | The control system and method for machine utilization and temperature in computer room |
-
2018
- 2018-09-04 CN CN201811026549.2A patent/CN110873613A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103105923A (en) * | 2013-03-07 | 2013-05-15 | 鄂尔多斯市云泰互联科技有限公司 | Energy-efficient scheduling method and system for information technology (IT) business of cloud computing center |
| CN203745817U (en) * | 2014-02-19 | 2014-07-30 | 北方互联(北京)网络技术有限公司 | Temperature control system of network computer room |
| CN105094061A (en) * | 2014-04-29 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Machine room server temperature adjustment method and equipment |
| CN105353713A (en) * | 2015-12-15 | 2016-02-24 | 国网北京市电力公司 | Computer room monitoring system |
| CN205246244U (en) * | 2015-12-15 | 2016-05-18 | 杭州万联网络科技有限公司 | Wireless temperature measurement system |
| CN107708378A (en) * | 2017-08-07 | 2018-02-16 | 深圳益强信息科技有限公司 | The control system and method for machine utilization and temperature in computer room |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112783937A (en) * | 2020-12-30 | 2021-05-11 | 成群 | Product production monitoring method and device based on big data and cloud computing |
| CN112783937B (en) * | 2020-12-30 | 2022-01-07 | 深圳市宇航智能信息技术有限公司 | Product production monitoring method and equipment based on big data and cloud computing |
| CN113190406A (en) * | 2021-04-30 | 2021-07-30 | 上海爱数信息技术股份有限公司 | IT entity group anomaly detection method under cloud native observability |
| CN114676863A (en) * | 2022-05-30 | 2022-06-28 | 南京南瑞继保工程技术有限公司 | Method and system for monitoring abnormal temperature of turbine bearing shell |
| CN117742206A (en) * | 2023-12-15 | 2024-03-22 | 江苏环迅信息科技有限公司 | Tax control machine room environment monitoring method, system, terminal and storage medium |
| CN118139392A (en) * | 2024-05-08 | 2024-06-04 | 广东欢联电子科技有限公司 | A method and system for optimizing energy-saving control of a data center cooling system |
| CN118139392B (en) * | 2024-05-08 | 2024-07-23 | 广东欢联电子科技有限公司 | Optimized energy-saving control method and system for data center cooling system |
| CN119166400A (en) * | 2024-08-28 | 2024-12-20 | 盐城轻策信息科技有限公司 | A network server cabinet fault processing system and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111176879A (en) | Fault repairing method and device for equipment | |
| CN119892680B (en) | A dynamic monitoring method, device, medium and program product for a server room | |
| US20160217378A1 (en) | Identifying anomalous behavior of a monitored entity | |
| CN114924929B (en) | NVMe hard disk failure warning method, system and computer device | |
| CN107094207B (en) | A kind of automatic testing method and its automatic detection device of traffic indicator exception | |
| CN115865649A (en) | An intelligent operation and maintenance management control method, system and storage medium | |
| CN115860729A (en) | IT operation and maintenance integrated management system | |
| CN107766533A (en) | Telephone traffic abnormal automatic testing method and system, storage medium, electronic equipment | |
| CN111488258A (en) | System for analyzing and early warning software and hardware running state | |
| CN113760634B (en) | A data processing method and device | |
| CN110808856A (en) | A big data operation and maintenance method and system based on data center | |
| CN107947998A (en) | A kind of real-time monitoring system based on application system | |
| CN109040277A (en) | A kind of long-distance monitoring method and device of server | |
| CN107231493A (en) | Automatic alarm method and its device, storage medium, the electronic equipment of call center | |
| CN104598359A (en) | Server monitoring system and method | |
| CN110750427A (en) | Data center equipment inspection method and system | |
| CN110311802A (en) | Network operation method, device, electronic device and storage medium | |
| CN121166472A (en) | Intelligent operation and maintenance method and system for server | |
| CN110855484A (en) | Method, system, electronic device and storage medium for automatically detecting changes in traffic volume | |
| CN115442223A (en) | Automatic operation and maintenance method for distributed cluster | |
| WO2018035765A1 (en) | Method and apparatus for detecting network abnormity | |
| CN113391611B (en) | Early warning method, device and system for power environment monitoring system | |
| CN115875296B (en) | Energy storage system fan inspection method, device and energy storage system | |
| CN114328087A (en) | Alarm compression notification method, device, equipment and readable storage medium | |
| CN115934453A (en) | A troubleshooting method, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200310 |
|
| RJ01 | Rejection of invention patent application after publication |
