WO2022222353A1 - 热力图的确定方法、装置、存储介质及处理器 - Google Patents

热力图的确定方法、装置、存储介质及处理器 Download PDF

Info

Publication number
WO2022222353A1
WO2022222353A1 PCT/CN2021/119188 CN2021119188W WO2022222353A1 WO 2022222353 A1 WO2022222353 A1 WO 2022222353A1 CN 2021119188 W CN2021119188 W CN 2021119188W WO 2022222353 A1 WO2022222353 A1 WO 2022222353A1
Authority
WO
WIPO (PCT)
Prior art keywords
temperature
server
data center
information
temperature information
Prior art date
Application number
PCT/CN2021/119188
Other languages
English (en)
French (fr)
Inventor
王玉涛
孙凯
Original Assignee
维谛技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 维谛技术有限公司 filed Critical 维谛技术有限公司
Publication of WO2022222353A1 publication Critical patent/WO2022222353A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Definitions

  • the present application relates to the technical field of information processing, and in particular, to a method, device, storage medium and processor for determining a heat map.
  • Scheme 1 cannot simulate the problem of displaying the temperature value of each point, but can only display the temperature value of the point.
  • This solution has the following disadvantages: the number of temperature sensors configured in each data center is limited, and it is not even possible to configure a temperature sensor for each cabinet, and the coverage area is small, making it difficult to find hot spots. Users care more about the temperature inside each cabinet than the temperature of a cross-section of the data center. Since temperature sensors are not heat-generating devices, heat maps drawn with temperature sensors are not accurate.
  • the main purpose of the present application is to provide a method, device, storage medium and processor for determining a heat map, so as to solve the problem of low accuracy in displaying data center temperature in the related art.
  • a method for determining a heat map includes: collecting temperature information of a server in a data center through a collection system; obtaining temperature information through a monitoring system; drawing a temperature heat map of the server based on the temperature information; and displaying the temperature heat map in the monitoring system.
  • drawing the temperature heat map of the server based on the temperature information includes: determining the color value corresponding to the temperature information; determining the temperature diffusion range based on the temperature information; determining the location coordinates of the server; Location coordinates to draw the temperature heat map of the server.
  • determining the temperature diffusion range based on the temperature information includes: acquiring preset maximum temperature diffusion range and minimum temperature diffusion range; and determining the temperature diffusion range based on the temperature information, the maximum temperature diffusion range and the minimum temperature diffusion range.
  • the method further includes: judging whether the temperature information meets the standardization requirements; if the temperature information does not meet the standardization requirements, storing the temperature information Standardize transformations.
  • the method further includes: checking whether the relationship of the data center has been configured through the monitoring system, wherein the relationship of the data center includes: the relationship between the data center and the cabinet, the cabinet The relationship between the server and the server; if not configured, the relationship between the data center is configured.
  • the method further includes: acquiring the information of the data center and the information of the cabinets in the data center; based on the information of the data center and the information of the cabinets in the data center, using three.js
  • the framework draws the 3D model of the cabinet on the Canvas component; the server is drawn inside the 3D model of the cabinet.
  • an apparatus for determining a heat map includes: a first collection unit, used for collecting temperature information of a server in a data center through a collection system; a first obtaining unit, used for obtaining temperature information through a monitoring system; a first drawing unit, used for drawing the temperature information of the server based on the temperature information The temperature heat map; the first display unit is used to display the temperature heat map in the monitoring system.
  • the first drawing unit includes: a first determination module for determining a color value corresponding to the temperature information; a second determination module for determining a temperature diffusion range based on the temperature information; a third determination module for determining the location of the server Coordinates; the first drawing module is used to draw the temperature heat map of the server based on the color value corresponding to the temperature information, the temperature diffusion range and the location coordinates of the server.
  • the second determination module includes: a first acquisition sub-module for acquiring preset maximum temperature diffusion range and minimum temperature diffusion range; a first determination sub-module for obtaining maximum temperature diffusion range and minimum temperature based on temperature information Diffusion range, to determine the temperature diffusion range.
  • the device further includes: a first judging unit for judging whether the temperature information meets the standardization requirements after the temperature information of the server of the data center is collected through the collection system and before the temperature information is obtained through the monitoring system; the first conversion unit , which is used to standardize the temperature information if it does not meet the standardization requirements.
  • the device further includes: a first detection unit, configured to check whether the relationship between the data centers has been configured by the monitoring system before drawing the temperature heat map of the server based on the temperature information, wherein the relationship between the data centers includes: the data center and the The relationship between the cabinets, the relationship between the cabinets and the server; the first configuration unit is used to configure the relationship of the data center if not configured.
  • a first detection unit configured to check whether the relationship between the data centers has been configured by the monitoring system before drawing the temperature heat map of the server based on the temperature information, wherein the relationship between the data centers includes: the data center and the The relationship between the cabinets, the relationship between the cabinets and the server; the first configuration unit is used to configure the relationship of the data center if not configured.
  • the device further includes: a second acquisition unit, used for acquiring information of the data center and information of the cabinets in the data center before drawing the temperature heat map of the server based on the temperature information; a second drawing unit, used for based on the data center
  • the information of the cabinet and the information of the cabinet in the data center use the three.js framework to draw the 3D model of the cabinet on the Canvas component; the third drawing unit is used to draw the server inside the 3D model of the cabinet.
  • a storage medium includes a stored program, wherein the program executes any one of the methods described above.
  • a processor is provided, and the processor is used for running a program, wherein, when the program is run, any one of the methods described above is executed.
  • the following steps are adopted: collecting the temperature information of the server of the data center through the collection system; obtaining the temperature information through the monitoring system; drawing the temperature heat map of the server based on the temperature information;
  • the display of data center temperature is less accurate.
  • the information of the outlet air temperature of the server in the data center can be collected, and the heat map display can be performed based on the outlet air temperature of the server, so that the display accuracy of the temperature of the data center can be improved.
  • FIG. 1 is a flowchart of a method for determining a heat map provided according to an embodiment of the present application
  • FIG. 2 is a system schematic diagram of a method for determining a heat map provided according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for determining a heat map provided according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of a 3D relationship configuration of a data center and a cabinet provided according to an embodiment of the present application;
  • FIG. 5 is a schematic diagram of a relationship configuration between a cabinet and a server provided according to an embodiment of the present application
  • FIG. 6 is a schematic diagram of data center and cabinet information provided according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram 1 of a 3D model of a cabinet provided according to an embodiment of the present application.
  • FIG. 8 is a second schematic diagram of a 3D model of a cabinet provided according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram 3 of a 3D model of a cabinet provided according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a coordinate relationship between a server and a cabinet provided according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram 1 of a server in a cabinet provided according to an embodiment of the present application.
  • FIG. 12 is a second schematic diagram of a server in a cabinet provided according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a heat map of a server in a cabinet provided according to an embodiment of the present application.
  • FIG. 14 is a temperature thermal diagram of a front-row cabinet provided according to an embodiment of the present application.
  • FIG. 15 is a temperature thermal diagram of a rear rack provided according to an embodiment of the present application.
  • FIG. 16 is a schematic diagram of an apparatus for determining a heat map provided according to an embodiment of the present application.
  • Three.js is a cross-browser script that uses a JavaScript library or API to create and display animated 3D computer graphics in a web browser.
  • Three.js uses WebGL.
  • the source code is hosted on GitHub.
  • WebGL Web Graphics Library
  • OpenGL ES 2.0 JavaScript API that renders high-performance interactive 3D and 2D graphics in any compatible web browser without the use of plugins. WebGL does this by introducing an API that is very consistent with OpenGL ES 2.0, which can be used in HTML5 ⁇ canvas> elements.
  • IPMI Intelligent Platform Management Interface
  • Intel-based enterprise system IPMI
  • IPMI Intelligent Platform Management Interface
  • NEC NEC
  • Dell Computer and Super Micro. Users can use IPMI to monitor the physical health characteristics of the server, such as temperature, voltage, fan working status, power status, etc.
  • 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 to reduce server system costs.
  • FIG. 1 is a flowchart of a method for determining a heat map according to an embodiment of the present application. As shown in FIG. 1 , the method includes the following steps:
  • step S101 the temperature information of the server of the data center is collected by the collection system.
  • the collection system collects the air temperature information of the server.
  • Step S102 acquiring temperature information through a monitoring system.
  • the monitoring system obtains the server temperature information collected by the above-mentioned collection system.
  • Step S103 draw a temperature heat map of the server based on the temperature information.
  • Step S104 displaying the temperature heat map in the monitoring system.
  • the information of the outlet air temperature of the server in the data center can be collected, and a heat map can be displayed based on the outlet air temperature of the server, so that the display accuracy of the temperature of the data center can be improved.
  • the architecture of the overall system of the technical solution of the present application can be shown in Figure 2.
  • the system consists of a monitoring system, a collection system, a server and other equipment, wherein the monitoring system includes the monitoring equipment itself and the functional modules (for example, equipment monitoring, temperature monitoring, power distribution monitoring, data analysis and display, 3D equipment configuration, alarm monitoring), the collection system includes the standardization of the collection equipment itself and equipment information (different types of equipment may collect inconsistent information, and the collected information needs to be standardized), the technology of this application
  • the overall flow chart of the solution can be shown in FIG. 3 .
  • the method after collecting the temperature information of the server of the data center through the collection system, and before obtaining the temperature information through the monitoring system, the method further includes: judging whether the temperature information meets the standardization requirements; Information is standardized and transformed.
  • the normalization requirement is that the temperature information is in degrees Celsius.
  • the temperature information collected by the server model B is 70 degrees Fahrenheit, which does not meet the standardization requirements, so it is standardized and converted, and the temperature information is 21.1 degrees Celsius.
  • the temperature information collected by server model A is 20 degrees Celsius, and the temperature information collected by server model A meets the standardization requirements. No normalization conversion is required.
  • the accuracy of the temperature information can be ensured, and then the accuracy of the drawn heat map can be ensured when the heat map is drawn based on the temperature information subsequently.
  • the method before drawing the temperature heat map of the server based on the temperature information, the method further includes: checking whether the relationship between the data centers has been configured by the monitoring system, wherein the data The relationship between the centers includes: the relationship between the data center and the cabinet, and the relationship between the cabinet and the server; if not configured, configure the relationship between the data center.
  • the relationship of the above data centers is that data center A includes cabinet 01 and cabinet 02, etc., and cabinet 01 includes server 01, server 02, and server 03.
  • cabinet 01 includes server 01, server 02, and server 03.
  • the method before drawing the temperature heat map of the server based on the temperature information, the method further includes: acquiring information of the data center and information of the cabinets in the data center; The information of the center and the information of the cabinets in the data center, use the three.js framework to draw the 3D model of the cabinet on Canvas; draw the server inside the 3D model of the cabinet.
  • the operation of 3D drawing cabinets and other equipment can be as follows.
  • the first step is to obtain the information of the data center and the information of the cabinets in the data center, including: obtaining the width, height, and depth of the cabinet, and obtaining the positional relationship between the data center and the cabinet. For example, the resulting top view of the data center and racks is shown in Figure 6 below.
  • the second step is to use the three.js framework to draw a 3D model of two rows of cabinets on the Canvas based on the data generated from the obtained data center information and cabinet information and the height of the server, as shown in Figures 7 and 8 below. Taking a row of cabinets as an example, assuming that the current number of cabinets in a row is 5, the model of the current cabinet is shown in Figure 9 below.
  • Drawing the server inside the 3D model of the cabinet includes: obtaining the information of the server and the cabinet, specifically, obtaining the data information such as the height, width, height and depth of the server; obtaining the position of the server in the cabinet, and calculating the coordinate relationship between the server and the cabinet, As shown in Figure 10 below.
  • drawing the temperature heat map of the server based on the temperature information includes: determining a color value corresponding to the temperature information; determining a temperature diffusion range based on the temperature information; determining the location coordinates of the server ; Based on the color value corresponding to the temperature information, the temperature diffusion range and the location coordinates of the server, draw the temperature heat map of the server.
  • the color value corresponding to the temperature information can be determined by the following methods: set the gradient color from white RGB (255, 255, 255) to black RGB (0, 0, 0), and divide the canvas drawing color into 256 colors according to the gradient color. (that is, the second one is RGB(254, 254, 254)), assuming that the current minimum temperature is 20°C and the maximum temperature is 30°C, then the minimum temperature of 20°C corresponds to RGB (255, 255, 255), and so on, to get Temperature and canvas drawing color conversion function.
  • determining the temperature diffusion range based on the temperature information includes: acquiring preset maximum temperature diffusion range and minimum temperature diffusion range; and determining the temperature diffusion range based on the temperature information, the maximum temperature diffusion range and the minimum temperature diffusion range.
  • createRadialGradient(x0, y0, r0, x1, y1, r1) provided by the Canvas API createRadialGradient() is the method of determining the coordinates of the two circles according to the parameters of the Canvas 2D API and drawing the radioactive gradient ).
  • x0 The x-axis coordinate of the server center.
  • y0 The y-axis coordinate of the server center.
  • r0 The starting value of the radius of the temperature diffusion range (the color within the radius before the starting value is RGB(n, n, n), the default is 0).
  • x1 The x-axis coordinate of the server center.
  • y1 The y-axis coordinate of the server center.
  • r1 The radius of the temperature diffusion range to the end.
  • the gradient of the current line needs to set a rectangular range in the coordinate system: x0: the x-axis coordinate of the starting point in the coordinate system (the default setting is 0). y0: The x-axis coordinate of the starting point in the coordinate system (default is 0). x1: The x-axis coordinate of the end point in the coordinate system (x1-x0 is the length of the current ribbon).
  • y1 The y-axis coordinate of the end point in the coordinate system (y1-y0 is the width of the current ribbon). For example, setting the parameter to createLinearGradient(0, 0, 256, 1) can generate a rectangle with a length of 256 and a width of 1, and then according to the set color, a gradient ribbon can be generated. (2) Set the parameter to createLinearGradient (0, 0, 256, 1); (3) Set the real display gradient color, assuming that the color length is 1, the color of 0-0.2 is RGB (9, 49, 104) to RGB ( 17, 94, 189), and so on, and divided into 256 colors).
  • the 256 colors divided according to the canvas drawing color correspond to the 256 colors that the real display color is divided into.
  • the real display color is s
  • the current real display color gradient color is CanvasGradientColor
  • pickColor(y, CanvasGradientColor) pickColor pseudocode
  • Figure 14 shows the heat map of the temperature of the front row of cabinets
  • Figure 15 shows the heat map of the temperature of the rear row of cabinets.
  • the method for determining the heat map collects the temperature information of the server of the data center through the collection system; obtains the temperature information through the monitoring system; draws the temperature heat map of the server based on the temperature information; Displaying the temperature heat map solves the problem of low accuracy in displaying data center temperature in related technologies.
  • the information of the outlet air temperature of the server in the data center can be collected, and the heat map display can be performed based on the outlet air temperature of the server, so that the display accuracy of the temperature of the data center can be improved.
  • This embodiment of the present application further provides a device for determining a heat map. It should be noted that the device for determining a heat map in the embodiment of the present application may be used to execute the method for determining a heat map provided by the embodiment of the present application. The following describes the device for determining the heat map provided by the embodiments of the present application.
  • FIG. 16 is a schematic diagram of an apparatus for determining a heat map according to an embodiment of the present application. As shown in FIG. 16 , the apparatus includes: a first acquisition unit 201 , a first acquisition unit 202 , a first drawing unit 203 , and a first display unit 204 .
  • the first collection unit 201 is configured to collect the temperature information of the server of the data center through the collection system;
  • a first obtaining unit 202 configured to obtain temperature information through a monitoring system
  • a first drawing unit 203 configured to draw a temperature heat map of the server based on the temperature information
  • the first display unit 204 is used to display the temperature heat map in the monitoring system.
  • the device for determining the heat map collects the temperature information of the server of the data center through the first collecting unit 201 through the collecting system; the first obtaining unit 202 obtains the temperature information through the monitoring system; the first drawing unit 203 The temperature heat map of the server is drawn based on the temperature information; the first display unit 204 displays the temperature heat map in the monitoring system, which solves the problem that the display accuracy of the temperature of the data center in the related art is low.
  • data can be collected
  • the information of the outlet air temperature of the server in the center is displayed in a heat map based on the outlet air temperature of the server, which can improve the accuracy of the display of the temperature of the data center.
  • the first drawing unit 203 includes: a first determination module, configured to determine a color value corresponding to the temperature information; a second determination module, configured based on the temperature information The temperature diffusion range is determined; the third determination module is used to determine the location coordinates of the server; the first drawing module is used to draw the temperature heat map of the server based on the color value corresponding to the temperature information, the temperature diffusion range and the location coordinates of the server.
  • the second determination module includes: a first acquisition sub-module, configured to acquire a preset maximum temperature diffusion range and minimum temperature diffusion range; a first determination sub-module Module for determining temperature spread based on temperature information, maximum temperature spread and minimum temperature spread.
  • the apparatus further includes: a first judgment unit, configured to obtain the temperature through the monitoring system after collecting the temperature information of the server of the data center through the collection system. Before the information, it is judged whether the temperature information meets the standardization requirements; the first conversion unit is used for standardizing and converting the temperature information if the temperature information does not meet the standardization requirements.
  • the device further includes: a first detection unit, configured to check whether the data has been configured by a monitoring system before drawing the temperature heat map of the server based on the temperature information
  • the relationship of the center wherein the relationship of the data center includes: the relationship between the data center and the cabinet, the relationship between the cabinet and the server; the first configuration unit is used to configure the relationship of the data center if not configured.
  • the device further includes: a second obtaining unit, configured to obtain information of the data center and the data center before drawing the temperature heat map of the server based on the temperature information.
  • the information of the cabinet in the middle; the second drawing unit is used to draw the 3D model of the cabinet on the Canvas component based on the information of the data center and the information of the cabinet in the data center; the third drawing unit is used to draw the 3D model of the cabinet on the Canvas component;
  • the 3D model draws the server inside.
  • the device for determining the heat map includes a processor and a memory.
  • the above-mentioned first acquisition unit 201, first acquisition unit 202, first drawing unit 203, first display unit 204, etc. are all stored in the memory as program units, and executed by the processor.
  • the above-mentioned program units stored in the memory implement the corresponding functions.
  • the processor includes a kernel, and the kernel calls the corresponding program unit from the memory.
  • the kernel can be set to one or more, by adjusting the kernel parameters to improve the display accuracy of the data center temperature.
  • Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory (flash RAM), the memory including at least one memory chip.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • An embodiment of the present disclosure provides a storage medium on which a program is stored, and when the program is executed by a processor, implements the method for determining the heat map.
  • An embodiment of the present disclosure provides a processor for running a program, wherein the method for determining the heat map is executed when the program is running.
  • An embodiment of the present disclosure provides a device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor.
  • the processor executes the program, the following steps are implemented: collecting the temperature of a server in a data center through a collecting system information; obtain temperature information through the monitoring system; draw the temperature heat map of the server based on the temperature information; display the temperature heat map in the monitoring system.
  • the processor executes the program, the following steps are also implemented: determining the color value corresponding to the temperature information; determining the temperature diffusion range based on the temperature information; determining the location coordinates of the server; A heatmap of the server's temperature.
  • the processor executes the program, the following steps are also implemented: obtaining the preset maximum temperature diffusion range and the minimum temperature diffusion range; and determining the temperature diffusion range based on the temperature information, the maximum temperature diffusion range and the minimum temperature diffusion range.
  • the processor executes the program, the following steps are also implemented: after collecting the temperature information of the server of the data center through the acquisition system, before obtaining the temperature information through the monitoring system, it is judged whether the temperature information meets the standardization requirements; if the temperature information does not meet the standardization requirements, the Normalized conversion of temperature information.
  • the monitoring system checks whether the relationship of the data center has been configured, wherein the relationship of the data center includes: the relationship between the data center and the cabinet , the relationship between the cabinet and the server; if not configured, configure the relationship between the data center.
  • the processor executes the program, the following steps are also implemented: before drawing the temperature heat map of the server based on the temperature information, obtain the information of the data center and the information of the cabinets in the data center; based on the information of the data center and the information of the cabinets in the data center, use three
  • the .js framework draws the 3D model of the cabinet on the Canvas component; draws the server inside the 3D model of the cabinet.
  • the devices in this article can be servers, PCs, PADs, mobile phones, and so on.
  • the present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program initialized with the following method steps: collecting temperature information of a server in a data center through a collection system; obtaining temperature information through a monitoring system; Draw the temperature heat map of the server based on the temperature information; display the temperature heat map in the monitoring system.
  • determining the color value corresponding to the temperature information When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: determining the color value corresponding to the temperature information; determining the temperature diffusion range based on the temperature information; determining the location coordinates of the server; based on the color value corresponding to the temperature information , the temperature spread range and the location coordinates of the server to draw the temperature heat map of the server.
  • a data processing device When executed on a data processing device, it is also adapted to execute a program initialized with the following method steps: before drawing a temperature thermal map of the server based on the temperature information, checking by the monitoring system whether the relationship of the data center has been configured, wherein the relationship of the data center is The relationship includes: the relationship between the data center and the cabinet, and the relationship between the cabinet and the server; if not configured, configure the relationship between the data center.
  • a program When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: obtaining information of the data center and information of the cabinets in the data center before drawing the temperature heat map of the server based on the temperature information; Information and information of the cabinets in the data center, use the three.js framework to draw the 3D model of the cabinet on the Canvas component; draw the server inside the 3D model of the cabinet.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
  • the embodiments of the present application may be provided as a method, a system or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Generation (AREA)

Abstract

本申请公开了一种热力图的确定方法、装置、存储介质及处理器。该方法包括:通过采集系统采集数据中心的服务器的温度信息;通过监控系统获取温度信息;基于温度信息绘制服务器的温度热力图;在监控系统中展示温度热力图。通过本申请,解决了相关技术中对数据中心温度的展示准确性较低的问题。

Description

热力图的确定方法、装置、存储介质及处理器
本申请要求以下中国专利申请的优先权:于2021年4月23日提交中国专利局的申请号为202110444556.X、发明创造名称为“热力图的确定方法、装置、存储介质及处理器”的中国专利申请。该专利申请的全部内容通过引用结合在本申请中。
技术领域
本申请涉及信息处理技术领域,具体而言,涉及一种热力图的确定方法、装置、存储介质及处理器。
背景技术
在计算机网络高速发展的时代,人们对于互联网的依赖性越来越大,随之而来的是企业级客户数据中心、分布式边缘计算节点(Edge)、网络接入和SMB小微机房(以下统称为数据中心)业务的高速发展。由于服务器等IT设备的使用率和负载率的提高,服务器等IT设备产热也越来越高,这个时候人们也越来越关心数据中心温度状况,防止服务器等IT设备因为温度过高导致宕机,因此人们对于数据中心温度监控系统的要求也越来越高,随之出现了许多数据中心温度监控方案。传统方案一,以温度传感器为采集点的数据中心温度标签展示:该方案根据温度传感器在数据中心的位置和传感器的温度值来绘制数据中心3D模型展示温度值和温度颜色。该方案具有以下缺点:每个数据中心配置的温度传感器数量有限,甚至不能为每个机柜配置温度传感器,覆盖范围较小,很难发现热点;不能模拟展示每个点的温度值,仅能展示该点的温度值。传统方案二,以温度传感器为采集点的数据中心热力图展示:该方案是根据温度传感器在数据中心的位置和传感器的温度值来绘制数据中心3D的某个横切面的热力图,解决了传统方案一不能模拟展示每个点的温度值,仅能展示该点的温度值的问题。该方案具有以下缺点:每个数据中心配置的温度传感器数量有限,甚至不能为每个机柜配置温度传感器,覆盖范围较小,很难发现热点。用户更加关心每个机柜内部的温度,而不是数据中心某个横切面的温度。由于温度传感器不是产热的设备,使用温度传感器绘制的热力图并不准确。
针对相关技术中对数据中心温度的展示准确性较低的问题,目前尚未提出有效的解决方案。
发明内容
本申请的主要目的在于提供一种热力图的确定方法、装置、存储介质及处理器,以解决相关技术中对数据中心温度的展示准确性较低的问题。
为了实现上述目的,根据本申请的一个方面,提供了一种热力图的确定方法。该方法包括:通过采集系统采集数据中心的服务器的温度信息;通过监控系统获取温度信息;基于温度信息绘制服务器的温度热力图;在监控系统中展示温度热力图。
进一步地,基于温度信息绘制服务器的温度热力图包括:确定温度信息对应的颜色值;基于温度信息确定温度扩散范围;确定服务器的位置坐标;基于温度信息对应的颜色值、温度扩散范围和服务器的位置坐标,绘制服务器的温度热力图。
进一步地,基于温度信息确定温度扩散范围包括:获取预设的最高温度扩散范围和最低温度扩散范围;基于温度信息,最高温度扩散范围和最低温度扩散范围,确定温度扩散范围。
进一步地,在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取温度信息之前,该方法还包括:判断温度信息是否符合标准化要求;若温度信息不符合标准化要求,将温度信息进行标准化转换。
进一步地,在基于温度信息绘制服务器的温度热力图之前,该方法还包括:通过监控系统检查是否已配置数据中心的关系,其中,数据中心的关系包括:数据中心与机柜之间的关系,机柜和服务器之间的关系;若未配置,则配置数据中心的关系。
进一步地,在基于温度信息绘制服务器的温度热力图之前,该方法还包括:获取数据中心的信息和数据中心中机柜的信息;基于数据中心的信息和数据中心中机柜的信息,使用three.js框架在Canvas组件上绘制机柜的3D模型;在机柜的3D模型内部绘制服务器。
为了实现上述目的,根据本申请的另一方面,提供了一种热力图的确定装置。该装置包括:第一采集单元,用于通过采集系统采集数据中心的服务器的 温度信息;第一获取单元,用于通过监控系统获取温度信息;第一绘制单元,用于基于温度信息绘制服务器的温度热力图;第一展示单元,用于在监控系统中展示温度热力图。
进一步地,第一绘制单元包括:第一确定模块,用于确定温度信息对应的颜色值;第二确定模块,用于基于温度信息确定温度扩散范围;第三确定模块,用于确定服务器的位置坐标;第一绘制模块,用于基于温度信息对应的颜色值、温度扩散范围和服务器的位置坐标,绘制服务器的温度热力图。
进一步地,第二确定模块包括:第一获取子模块,用于获取预设的最高温度扩散范围和最低温度扩散范围;第一确定子模块,用于基于温度信息,最高温度扩散范围和最低温度扩散范围,确定温度扩散范围。
进一步地,该装置还包括:第一判断单元,用于在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取温度信息之前,判断温度信息是否符合标准化要求;第一转换单元,用于若温度信息不符合标准化要求,将温度信息进行标准化转换。
进一步地,该装置还包括:第一检测单元,用于在基于温度信息绘制服务器的温度热力图之前,通过监控系统检查是否已配置数据中心的关系,其中,数据中心的关系包括:数据中心与机柜之间的关系,机柜和服务器之间的关系;第一配置单元,用于若未配置,则配置数据中心的关系。
进一步地,该装置还包括:第二获取单元,用于在基于温度信息绘制服务器的温度热力图之前,获取数据中心的信息和数据中心中机柜的信息;第二绘制单元,用于基于数据中心的信息和数据中心中机柜的信息,使用three.js框架在Canvas组件上绘制机柜的3D模型;第三绘制单元,用于在机柜的3D模型内部绘制服务器。
为了实现上述目的,根据本申请的另一方面,提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序执行上述任意一项所述的方法。
为了实现上述目的,根据本申请的另一方面,提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述任意一项所述的方法。
通过本申请,采用以下步骤:通过采集系统采集数据中心的服务器的温度信息;通过监控系统获取温度信息;基于温度信息绘制服务器的温度热力图;在监控系统中展示温度热力图,解决了相关技术中对数据中心温度的展示准确 性较低的问题。在本申请中,可以采集数据中心中服务器的出风温度信息,并基于服务器出风温度进行热力图展示,从而可以提升对数据中心温度的展示准确性。
附图说明
构成本申请的一部分的附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1是根据本申请实施例提供的热力图的确定方法的流程图;
图2是根据本申请实施例提供的热力图的确定方法的系统示意图;
图3是根据本申请实施例提供的热力图的确定方法的流程示意图;
图4是根据本申请实施例提供的数据中心和机柜3D关系配置的示意图;
图5是根据本申请实施例提供的机柜与服务器关系配置的示意图;
图6是根据本申请实施例提供的数据中心和机柜信息的示意图;
图7是根据本申请实施例提供的机柜的3D模型的示意图一;
图8是根据本申请实施例提供的机柜的3D模型的示意图二;
图9是根据本申请实施例提供的机柜的3D模型的示意图三;
图10是根据本申请实施例提供的服务器和机柜的坐标关系的示意图;
图11是根据本申请实施例提供的机柜内部服务器的示意图一;
图12是根据本申请实施例提供的机柜内部服务器的示意图二;
图13是根据本申请实施例提供的机柜中服务器的热力图的示意图;
图14是根据本申请实施例提供的前排机柜的温度热力图;
图15是根据本申请实施例提供的后排机柜的温度热力图;以及
图16是根据本申请实施例提供的热力图的确定装置的示意图。
具体实施方式
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所 描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
为了便于描述,以下对本申请实施例涉及的部分名词或术语进行说明:
Three.js是一个跨浏览器的脚本,使用JavaScript函数库或API来在网页浏览器中创建和展示动画的三维计算机图形,Three.js使用WebGL。源代码托管在GitHub。
WebGL(Web图形库)是一个JavaScript API,可在任何兼容的Web浏览器中渲染高性能的交互式3D和2D图形,而无需使用插件。WebGL通过引入一个与OpenGL ES 2.0非常一致的API来做到这一点,该API可以在HTML5<canvas>元素中使用。
IPMI,智能平台管理接口(Intelligent Platform Management Interface)原本是一种Intel架构的企业系统的周边设备所采用的一种工业标准。IPMI亦是一个开放的免费标准,该标准由英特尔、惠普、NEC、美国戴尔电脑和Super Micro等公司制定。用户可以利用IPMI监视服务器的物理健康特征,如温度、电压、风扇工作状态、电源状态等。IPMI能够横跨不同的操作系统、固件和硬件平台,可以智能的监视、控制和自动回报大量服务器的运作状况,以降低服务器系统成本。
下面结合优选的实施步骤对本公开进行说明,图1是根据本申请实施例提供的热力图的确定方法的流程图,如图1所示,该方法包括如下步骤:
步骤S101,通过采集系统采集数据中心的服务器的温度信息。
基于IPMI2.0,采集系统采集服务器的出风温度信息。
步骤S102,通过监控系统获取温度信息。
监控系统获取上述的采集系统采集到的服务器温度信息。
步骤S103,基于温度信息绘制服务器的温度热力图。
步骤S104,在监控系统中展示温度热力图。
通过上述步骤,可以采集数据中心中服务器的出风温度信息,并基于服务器出风温度进行热力图展示,从而可以提升对数据中心温度的展示准确性。
本申请技术方案整体系统的架构可以如图2所示,系统由监控系统、采集系统和服务器等设备组成,其中,监控系统包括监控设备本身和承载于监控设备的功能模块(例如,设备监控、温度监控、配电监控、数据分析展示、3D设备配置、告警监控),采集系统包括采集设备本身和设备信息的标准化(不同型号的设备可能采集信息不一致,需要对采集信息标准化),本申请技术方案的整体的流程图可以如图3所示。
由于不同公司出产的服务器产品和型号不同,使得不同服务器所采集到的同种信息的名称或单位会存在不同,为了保证信息的准确性,可选地,在本申请实施例提供的热力图的确定方法中,在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取温度信息之前,该方法还包括:判断温度信息是否符合标准化要求;若温度信息不符合标准化要求,将温度信息进行标准化转换。
例如,标准化要求为温度信息的单位为摄氏度。服务器型号B采集到的温度信息为70华氏度,不符合标准化要求,则将其进行标准化转换,得到温度信息为21.1摄氏度。服务器型号A采集到的温度信息为20摄氏度,服务器型号A采集到的温度信息符合标准化要求。则不需要进行标准化转换。
通过上述方案,可以保证温度信息的准确性,进而后续基于温度信息绘制热力图时能够保证绘制的热力图的准确性。
可选地,在本申请实施例提供的热力图的确定方法中,在基于温度信息绘制服务器的温度热力图之前,该方法还包括:通过监控系统检查是否已配置数据中心的关系,其中,数据中心的关系包括:数据中心与机柜之间的关系,机柜和服务器之间的关系;若未配置,则配置数据中心的关系。
例如,上述的数据中心的关系为数据中心A中包括机柜01和机柜02等等,机柜01中包括服务器01、服务器02和服务器03。通过将数据中心的关系进行配置,保证了后续绘制数据中心的热力图时的准确性,对数据中心的关 系的配置示意图可以如图4和图5所示。
可选地,在本申请实施例提供的热力图的确定方法中,在基于温度信息绘制服务器的温度热力图之前,该方法还包括:获取数据中心的信息和数据中心中机柜的信息;基于数据中心的信息和数据中心中机柜的信息,使用three.js框架在Canvas上绘制机柜的3D模型;在机柜的3D模型内部绘制服务器。
3D绘制机柜等设备操作可以如下,第一步,获取数据中心的信息和数据中心中机柜的信息,具体包括:获取机柜的宽、高、深,以及获取数据中心和机柜的位置关系。例如,生成的数据中心和机柜的俯视图,如下图6所示。第二步,基于获取到的数据中心的信息和机柜的信息生成的数据和服务器的高度,使用three.js框架在Canvas之上绘制两排机柜的3D模型,如下图7和图8所示。以一排机柜为例,假设当前某一排机柜数量为5,则当前机柜的模型如下图9所示,设置一排机柜的顶点A1-A8、B1-B4,依据上述获取到的数据中心的信息和机柜的信息所提供的数据可以获取到3D下顶点A1-A8、B1-B4所有坐标。在机柜的3D模型内部绘制服务器包括:获取服务器和机柜的信息,具体地,获取服务器的高,宽、高、深等数据信息;获取服务器在机柜的位置,计算出服务器和机柜的坐标关系,如下图10所示。然后绘制机柜内部服务器,假设当前服务器只有一个时,如下图11所示,设置服务器的顶点C1-C8,并根据获取到的服务器和机柜的信息,获取顶点C1-C8坐标。将一排机柜的背视图作为一个面,将3D转换为2D平面,使用Canvas绘制出来2D图形,并保留顶点信息坐标信息A5-A8,B3-B4,C5-C8,如下图12所示,以A5为原点,A5-A6为x轴,A5-A8为y轴,则服务器中心为server.x=(C5.x+C6.x)/2,server.y=(C5.y+C8.y)/2。通过上述步骤,即可绘制出数据中心、数据中心中的机柜,机柜中的服务器。
可选地,在本申请实施例提供的热力图的确定方法中,基于温度信息绘制服务器的温度热力图包括:确定温度信息对应的颜色值;基于温度信息确定温度扩散范围;确定服务器的位置坐标;基于温度信息对应的颜色值、温度扩散范围和服务器的位置坐标,绘制服务器的温度热力图。
确定温度信息对应的颜色值可以通过以下方法:设置白色RGB(255,255,255)到黑色RGB(0,0,0)的渐变色,并根据渐变色将canvas绘制颜色等分为256个颜色(即第二个为RGB(254,254,254)),假设当前最低温度为 20℃,最高温度为30℃,则最低温度20℃对应RGB(255,255,255),以此类推,得到温度和canvas绘制颜色转化函数。假设当前温度为n,当前canvas绘制颜色的位置为y,则温度和canvas绘制颜色转化函数为(round为四舍五入取整函数,对round()中的数字四舍五入取整,例如round(1.1)=1,round(1.9)=2):n=255-round((n-20)/(30-20)*255),根据上述公式得到当前canvas绘制颜色为RGB(n,n,n)。
可选地,基于温度信息确定温度扩散范围包括:获取预设的最高温度扩散范围和最低温度扩散范围;基于温度信息,最高温度扩散范围和最低温度扩散范围,确定温度扩散范围。
例如,设置最高温度扩散范围为(C6.n-C5.n),最低温度扩散范围为0;假设当前温度为n,温度扩散范围为m,则m=(n-20)/(30-20)*(C6.n-C5.n)。通过上述方案,可以准确的确定出温度扩散范围。
在确定出温度扩散范围之后,需绘制服务器的温度扩散颜色。可以通过以下步骤实现:1、依据Canvas API提供的方法createRadialGradient(x0,y0,r0,x1,y1,r1)(createRadialGradient()是Canvas 2D API根据参数确定两个圆的坐标,绘制放射性渐变的方法)。x0:服务器中心的x轴坐标。y0:服务器中心的y轴坐标。r0:温度扩散范围的半径起始值(处于起始值前半径范围内的颜色为RGB(n,n,n),默认为0)。x1:服务器中心的x轴坐标。y1:服务器中心的y轴坐标。r1:温度扩散范围的半径至结束。根据上述步骤,得到方法参数createRadialGradient(server.x,server.y,0,server.x,server.y,z),中心温度颜色RGB(n,n,n),最边缘为白色RGB(255,255,255),根据上述方法得到结果可以如下图13所示。然后再设置真实显示颜色,具体地,(1)根据Canvas API提供的方法createLinearGradient(x0,y0,x1,y1)(createLinearGradient(x0,y0,x1,y1)方法创建一个沿参数坐标指定的直线的渐变)。当前直线的渐变需要在坐标系下设置一个矩形的范围:x0:坐标系下起点的x轴坐标(默认设置为0)。y0:坐标系下起点的x轴坐标(默认设置为0)。x1:坐标系下终点的x轴坐标(x1-x0即为当前色带的长度)。y1:坐标系下终点的y轴坐标(y1-y0即为当前色带的宽度)。例如,设置参数为createLinearGradient(0,0,256,1),即可生成长度为256宽度为1的矩形,再根据设置的颜色,就可以生成渐变色带。(2)设置参数为createLinearGradient (0,0,256,1);(3)设置真实显示渐变色颜色,假设颜色长度为1,0-0.2的颜色为RGB(9,49,104)到RGB(17,94,189)的渐变色,以此类推,并分成256个颜色)。例如,0:RGB(9,49,104);0.2:RGB(17,94,189);0.5:RGB(75,164,54);0.7:RGB(203,200,11);1.0:RGB(233,35,71)。
接着,设置canvas绘制颜色与真实显示颜色的函数,具体地,根据canvas绘制颜色分为的256种颜色对应真实显示颜色分为的256种颜色,假设真实显示颜色为s,当前真实显示颜色渐变色为CanvasGradientColor,则s=pickColor(y,CanvasGradientColor);pickColor伪代码可以如下:
functionpickColor(position,CanvasGradientColor){
let color=CanvasGradientColor.slice(position*4,position*4+3);
return RGB(${color[0]},${color[1]},${color[1]});
}
接着,获取canvas每个像素的颜色,根据上述步骤得到的函数,得到真实显示颜色s,并替换,从而得到最终的热力图的显示结果。例如,前排机柜温度的热力图如图14所示,后排机柜温度的热力图如图15所示。
综上所述,本申请实施例提供的热力图的确定方法,通过采集系统采集数据中心的服务器的温度信息;通过监控系统获取温度信息;基于温度信息绘制服务器的温度热力图;在监控系统中展示温度热力图,解决了相关技术中对数据中心温度的展示准确性较低的问题。在本申请中,可以采集数据中心中服务器的出风温度信息,并基于服务器出风温度进行热力图展示,从而可以提升对数据中心温度的展示准确性。
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本申请实施例还提供了一种热力图的确定装置,需要说明的是,本申请实施例的热力图的确定装置可以用于执行本申请实施例所提供的用于热力图的确定方法。以下对本申请实施例提供的热力图的确定装置进行介绍。
图16是根据本申请实施例的热力图的确定装置的示意图。如图16所示,该装置包括:第一采集单元201、第一获取单元202、第一绘制单元203、第一展示单元204。
具体的,第一采集单元201,用于通过采集系统采集数据中心的服务器的温度信息;
第一获取单元202,用于通过监控系统获取温度信息;
第一绘制单元203,用于基于温度信息绘制服务器的温度热力图;
第一展示单元204,用于在监控系统中展示温度热力图。
综上,本申请实施例提供的热力图的确定装置,通过第一采集单元201通过采集系统采集数据中心的服务器的温度信息;第一获取单元202通过监控系统获取温度信息;第一绘制单元203基于温度信息绘制服务器的温度热力图;第一展示单元204在监控系统中展示温度热力图,解决了相关技术中对数据中心温度的展示准确性较低的问题,在本申请中,可以采集数据中心中服务器的出风温度信息,并基于服务器出风温度进行热力图展示,从而可以提升对数据中心温度的展示准确性。
可选地,在本申请实施例提供的热力图的确定装置中,第一绘制单元203包括:第一确定模块,用于确定温度信息对应的颜色值;第二确定模块,用于基于温度信息确定温度扩散范围;第三确定模块,用于确定服务器的位置坐标;第一绘制模块,用于基于温度信息对应的颜色值、温度扩散范围和服务器的位置坐标,绘制服务器的温度热力图。
可选地,在本申请实施例提供的热力图的确定装置中,第二确定模块包括:第一获取子模块,用于获取预设的最高温度扩散范围和最低温度扩散范围;第一确定子模块,用于基于温度信息,最高温度扩散范围和最低温度扩散范围,确定温度扩散范围。
可选地,在本申请实施例提供的热力图的确定装置中,该装置还包括:第一判断单元,用于在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取温度信息之前,判断温度信息是否符合标准化要求;第一转换单元,用于若温度信息不符合标准化要求,将温度信息进行标准化转换。
可选地,在本申请实施例提供的热力图的确定装置中,该装置还包括:第一检测单元,用于在基于温度信息绘制服务器的温度热力图之前,通过监控系 统检查是否已配置数据中心的关系,其中,数据中心的关系包括:数据中心与机柜之间的关系,机柜和服务器之间的关系;第一配置单元,用于若未配置,则配置数据中心的关系。
可选地,在本申请实施例提供的热力图的确定装置中,该装置还包括:第二获取单元,用于在基于温度信息绘制服务器的温度热力图之前,获取数据中心的信息和数据中心中机柜的信息;第二绘制单元,用于基于数据中心的信息和数据中心中机柜的信息,使用three.js框架在Canvas组件上绘制机柜的3D模型;第三绘制单元,用于在机柜的3D模型内部绘制服务器。
热力图的确定装置包括处理器和存储器,上述的第一采集单元201、第一获取单元202、第一绘制单元203、第一展示单元204等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来提高数据中心温度的展示准确性。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。
本公开实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述热力图的确定方法。
本公开实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述热力图的确定方法。
本公开实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:通过采集系统采集数据中心的服务器的温度信息;通过监控系统获取温度信息;基于温度信息绘制服务器的温度热力图;在监控系统中展示温度热力图。
处理器执行程序时还实现以下步骤:确定温度信息对应的颜色值;基于温度信息确定温度扩散范围;确定服务器的位置坐标;基于温度信息对应的颜色值、温度扩散范围和服务器的位置坐标,绘制服务器的温度热力图。
处理器执行程序时还实现以下步骤:获取预设的最高温度扩散范围和最低温度扩散范围;基于温度信息,最高温度扩散范围和最低温度扩散范围,确定 温度扩散范围。
处理器执行程序时还实现以下步骤:在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取温度信息之前,判断温度信息是否符合标准化要求;若温度信息不符合标准化要求,将温度信息进行标准化转换。
处理器执行程序时还实现以下步骤:在基于温度信息绘制服务器的温度热力图之前,通过监控系统检查是否已配置数据中心的关系,其中,数据中心的关系包括:数据中心与机柜之间的关系,机柜和服务器之间的关系;若未配置,则配置数据中心的关系。
处理器执行程序时还实现以下步骤:在基于温度信息绘制服务器的温度热力图之前,获取数据中心的信息和数据中心中机柜的信息;基于数据中心的信息和数据中心中机柜的信息,使用three.js框架在Canvas组件上绘制机柜的3D模型;在机柜的3D模型内部绘制服务器。
本文中的设备可以是服务器、PC、PAD、手机等。
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:通过采集系统采集数据中心的服务器的温度信息;通过监控系统获取温度信息;基于温度信息绘制服务器的温度热力图;在监控系统中展示温度热力图。
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:确定温度信息对应的颜色值;基于温度信息确定温度扩散范围;确定服务器的位置坐标;基于温度信息对应的颜色值、温度扩散范围和服务器的位置坐标,绘制服务器的温度热力图。
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:获取预设的最高温度扩散范围和最低温度扩散范围;基于温度信息,最高温度扩散范围和最低温度扩散范围,确定温度扩散范围。
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取温度信息之前,判断温度信息是否符合标准化要求;若温度信息不符合标准化要求,将温度信息进行标准化转换。
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:在基于温度信息绘制服务器的温度热力图之前,通过监控系统检查是否已配置 数据中心的关系,其中,数据中心的关系包括:数据中心与机柜之间的关系,机柜和服务器之间的关系;若未配置,则配置数据中心的关系。
当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:在基于温度信息绘制服务器的温度热力图之前,获取数据中心的信息和数据中心中机柜的信息;基于数据中心的信息和数据中心中机柜的信息,使用three.js框架在Canvas组件上绘制机柜的3D模型;在机柜的3D模型内部绘制服务器。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash  RAM)。存储器是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (14)

  1. 一种热力图的确定方法,其特征在于,包括:
    通过采集系统采集数据中心的服务器的温度信息;
    通过监控系统获取所述温度信息;
    基于所述温度信息绘制所述服务器的温度热力图;
    在所述监控系统中展示所述温度热力图。
  2. 根据权利要求1所述的方法,其特征在于,基于所述温度信息绘制所述服务器的温度热力图包括:
    确定所述温度信息对应的颜色值;
    基于所述温度信息确定温度扩散范围;
    确定所述服务器的位置坐标;
    基于所述温度信息对应的颜色值、所述温度扩散范围和所述服务器的位置坐标,绘制所述服务器的温度热力图。
  3. 根据权利要求2所述的方法,其特征在于,基于所述温度信息确定温度扩散范围包括:
    获取预设的最高温度扩散范围和最低温度扩散范围;
    基于所述温度信息,所述最高温度扩散范围和所述最低温度扩散范围,确定温度扩散范围。
  4. 根据权利要求1所述的方法,其特征在于,在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取所述温度信息之前,所述方法还包括:
    判断所述温度信息是否符合标准化要求;
    若所述温度信息不符合标准化要求,将所述温度信息进行标准化转换。
  5. 根据权利要求1所述的方法,其特征在于,在基于所述温度信息绘制所述服务器的温度热力图之前,所述方法还包括:
    通过所述监控系统检查是否已配置所述数据中心的关系,其中,所述数据中心的关系包括:所述数据中心与机柜之间的关系,所述机柜和所述服务器之间的关系;
    若未配置,则配置所述数据中心的关系。
  6. 根据权利要求1所述的方法,其特征在于,在基于所述温度信息绘制所述服务器的温度热力图之前,所述方法还包括:
    获取所述数据中心的信息和所述数据中心中机柜的信息;
    基于所述数据中心的信息和所述数据中心中机柜的信息,使用three.js框架在Canvas组件上绘制所述机柜的3D模型;
    在所述机柜的3D模型内部绘制所述服务器。
  7. 一种热力图的确定装置,其特征在于,包括:
    第一采集单元,用于通过采集系统采集数据中心的服务器的温度信息;
    第一获取单元,用于通过监控系统获取所述温度信息;
    第一绘制单元,用于基于所述温度信息绘制所述服务器的温度热力图;
    第一展示单元,用于在所述监控系统中展示所述温度热力图。
  8. 根据权利要求7所述的装置,其特征在于,所述第一绘制单元包括:
    第一确定模块,用于确定所述温度信息对应的颜色值;
    第二确定模块,用于基于所述温度信息确定温度扩散范围;
    第三确定模块,用于确定所述服务器的位置坐标;
    第一绘制模块,用于基于所述温度信息对应的颜色值、所述温度扩散范围和所述服务器的位置坐标,绘制所述服务器的温度热力图。
  9. 根据权利要求8所述的装置,其特征在于,所述第二确定模块包括:
    第一获取子模块,用于获取预设的最高温度扩散范围和最低温度扩散范围;
    第一确定子模块,用于基于所述温度信息,所述最高温度扩散范围和所述最低温度扩散范围,确定温度扩散范围。
  10. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    第一判断单元,用于在通过采集系统采集数据中心的服务器的温度信息之后,在通过监控系统获取所述温度信息之前,判断所述温度信息是否符合标准化要求;
    第一转换单元,用于若所述温度信息不符合标准化要求,将所述温度信息进行标准化转换。
  11. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    第一检测单元,用于在基于所述温度信息绘制所述服务器的温度热力图之 前,通过所述监控系统检查是否已配置所述数据中心的关系,其中,所述数据中心的关系包括:所述数据中心与机柜之间的关系,所述机柜和所述服务器之间的关系;
    第一配置单元,用于若未配置,则配置所述数据中心的关系。
  12. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    第二获取单元,用于在基于所述温度信息绘制所述服务器的温度热力图之前,获取所述数据中心的信息和所述数据中心中机柜的信息;
    第二绘制单元,用于基于所述数据中心的信息和所述数据中心中机柜的信息,使用three.js框架在Canvas组件上绘制所述机柜的3D模型;
    第三绘制单元,用于在所述机柜的3D模型内部绘制所述服务器。
  13. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序执行权利要求1至6中任意一项所述的方法。
  14. 一种处理器,其特征在于,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至6中任意一项所述的方法。
PCT/CN2021/119188 2021-04-23 2021-09-18 热力图的确定方法、装置、存储介质及处理器 WO2022222353A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110444556.XA CN115239826A (zh) 2021-04-23 2021-04-23 热力图的确定方法、装置、存储介质及处理器
CN202110444556.X 2021-04-23

Publications (1)

Publication Number Publication Date
WO2022222353A1 true WO2022222353A1 (zh) 2022-10-27

Family

ID=83666436

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119188 WO2022222353A1 (zh) 2021-04-23 2021-09-18 热力图的确定方法、装置、存储介质及处理器

Country Status (2)

Country Link
CN (1) CN115239826A (zh)
WO (1) WO2022222353A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040532A1 (en) * 2009-08-12 2011-02-17 International Business Machines Corporation Knowledge-Based Models for Data Centers
CN103048054A (zh) * 2012-12-27 2013-04-17 德讯科技股份有限公司 一种基于高密度温度采集的数据中心温度处理方法
CN104077134A (zh) * 2014-06-25 2014-10-01 深圳市计通智能技术有限公司 获取数据中心机房平面温度云图的方法和系统
CN104391776A (zh) * 2014-11-10 2015-03-04 中兴通讯股份有限公司 数据中心的温度处理方法、装置及温度显示方法、装置
CN104614094A (zh) * 2013-11-05 2015-05-13 深圳中兴力维技术有限公司 机房温度监控实现方法及其装置
CN110793653A (zh) * 2018-08-02 2020-02-14 阿里巴巴集团控股有限公司 温度监控方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040532A1 (en) * 2009-08-12 2011-02-17 International Business Machines Corporation Knowledge-Based Models for Data Centers
CN103048054A (zh) * 2012-12-27 2013-04-17 德讯科技股份有限公司 一种基于高密度温度采集的数据中心温度处理方法
CN104614094A (zh) * 2013-11-05 2015-05-13 深圳中兴力维技术有限公司 机房温度监控实现方法及其装置
CN104077134A (zh) * 2014-06-25 2014-10-01 深圳市计通智能技术有限公司 获取数据中心机房平面温度云图的方法和系统
CN104391776A (zh) * 2014-11-10 2015-03-04 中兴通讯股份有限公司 数据中心的温度处理方法、装置及温度显示方法、装置
CN110793653A (zh) * 2018-08-02 2020-02-14 阿里巴巴集团控股有限公司 温度监控方法及装置

Also Published As

Publication number Publication date
CN115239826A (zh) 2022-10-25

Similar Documents

Publication Publication Date Title
Zheng et al. Service-generated big data and big data-as-a-service: an overview
CN109145025B (zh) 一种多数据源集成的数据查询方法、装置及业务服务器
CN110337641A (zh) 使用屏幕截图元数据确定应用测试结果
US20170322241A1 (en) Non-intrusive fine-grained power monitoring of datacenters
US9779406B2 (en) User feature identification method and apparatus
CN108540794B (zh) 显示设备排图参数的检测方法、装置、设备及存储介质
US10791036B2 (en) Infrastructure costs and benefits tracking
CN109324796B (zh) 界面布局方法及装置
US20170012847A1 (en) Visualizing resource relationships using key peformance indicators
CN109254922A (zh) 一种服务器BMC Redfish功能的自动化测试方法及装置
US10771359B2 (en) System capacity heatmap
CN113986426B (zh) 图像检测方法、装置、可读介质及电子设备
US20170010756A1 (en) Inference-based visual map of organizational structure and resource usage
US10212057B2 (en) Disparate monitoring for IoT
CN112989151B (zh) 数据血缘关系展示方法、装置、电子设备及存储介质
CN110519250A (zh) 一种提供信息流的方法与设备
Domanski et al. Applications of heterogeneous computing in computational and simulation science
WO2022222353A1 (zh) 热力图的确定方法、装置、存储介质及处理器
US20230298374A1 (en) Method and device for determining picture with texts
US11379898B2 (en) Touch and pressure-based apparel image searching
US11157395B2 (en) Automated test coverage of computing systems
CN111898742A (zh) 一种用于监控神经网络模型训练状态的方法与设备
KR20200094637A (ko) 오브젝트 집합의 시각적 표현을 제공하는 방법, 장치, 기기 및 저장 매체
US10044823B2 (en) Social content aggregation
Chang et al. MLHarness: A scalable benchmarking system for MLCommons

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21937575

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21937575

Country of ref document: EP

Kind code of ref document: A1