Data management method and device, electronic equipment and storage medium
Through hierarchical storage and language model conversion of data center operating status data, the problem of inconsistent data formats for data center monitoring and operation and maintenance is solved, flexible management and accurate prediction of data center energy consumption is achieved, and the calculation process of energy consumption indicators is simplified.
Patent Information
- Application Number
- CN202311514663.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2024-10-18
AI Technical Summary
The monitoring and operation and maintenance data format of the data center is not uniform, resulting in the inability to flexibly adapt data collection, storage, and interaction, resulting in a complex and low-accuracy calculation process for energy consumption indicators.
By obtaining the operating status data of the data center, splitting it into equipment information and measuring point data, and storing it hierarchically in static and dynamic data tables according to the spatial structure relationship, using a pre-trained language model to convert the energy consumption evaluation formula into a SQL expression, it is realized Energy consumption prediction and unified management.
It achieves unified management of operating status data of each data center, improves data storage flexibility, adapts to more business scenarios, simplifies the calculation of energy consumption indicators, and reduces manual processing workload and error rate.
Smart Images

Figure CN118796820A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data processing, and in particular to a data management method, device, electronic device and storage medium. Background Art
[0002] As the scale of the network continues to grow, the power of the air-conditioning equipment in the data center increases year by year, causing the network energy consumption to rise rapidly. The deployment and implementation of intelligent data center energy-saving technologies and intelligent control of refrigeration equipment parameters can effectively reduce the overall PUE (Power Usage Effectiveness) level of the data center.
[0003] Currently, the data center computer room can access the data center's monitoring and operation data, and then use the monitoring and operation data to predict the energy consumption of the data center's cooling side, and then reduce the data center's PUE through the prediction results. However, the format of the monitoring and operation data of data centers in various regions is not uniform, and the configuration of equipment in different data centers varies, resulting in data collection, storage and interaction cannot be flexibly adapted. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a data management method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a data management method, including:
[0006] Obtain the operating status data of each data center in each region;
[0007] Splitting the running status data to obtain device information of the device belonging to the data center and measuring point data of each preset measuring point of the device;
[0008] According to the spatial structural relationship of the equipment belonging to each of the data centers, the equipment information is stored in a hierarchical manner in a static data table, and the measurement point data of each preset measurement point of the equipment is stored in a dynamic data table; wherein the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structural relationship.
[0009] In an optional implementation manner, the method further includes:
[0010] Obtaining a target calculation formula from each of the data centers; wherein the target calculation formula is a formula for calculating the energy consumption evaluation index of the data center;
[0011] The target operation formula is formatted to obtain an SQL expression, and the SQL expression is stored.
[0012] In an optional implementation manner, the method further includes:
[0013] After the device information is hierarchically stored in a static data table according to the spatial structure relationship of the devices belonging to each of the data centers, and the measuring point data of each preset measuring point of the device is stored in a dynamic data table, in response to the energy consumption prediction task for the data center, a target SQL expression and task execution data matching the energy consumption prediction task are obtained; wherein the task execution data is the device information and measuring point data used to execute the energy consumption prediction task;
[0014] An energy consumption calculation is performed on the task execution data based on the target SQL expression to obtain an energy consumption evaluation index of the data center.
[0015] In an optional implementation manner, the target operation formula is formatted to obtain an SQL expression, including:
[0016] The target operation formula is transformed through a pre-trained language model to obtain the SQL expression after processing.
[0017] In an optional implementation manner, before converting the target operation formula to obtain an SQL expression, the method further includes:
[0018] Searching for a converted SQL expression matching the target operation formula in the cache space;
[0019] If it is determined that the converted SQL expression is not found, converting the format of the target operation formula to obtain an SQL expression;
[0020] When it is determined that the converted SQL expression is found, the found converted SQL expression is used as the SQL expression of the target operation formula.
[0021] In an optional implementation manner, the target operation formula is formatted to obtain an SQL expression, including:
[0022] Verifying the validity of the target operation formula from multiple verification dimensions;
[0023] When the validity check of the target operation formula passes, the target operation formula is formatted to obtain the SQL expression.
[0024] In an optional implementation manner, the data splitting of the operating status data to obtain the device information of the device belonging to the data center and the measurement point data of each preset measurement point of the device includes:
[0025] Obtaining a type identifier in the running status data; wherein the type identifier is used to indicate the type of the running status data;
[0026] The operation status data is split according to the type identifier to obtain the device information and the measuring point data; wherein the type identifiers corresponding to the device information and the measuring point data are different.
[0027] In an optional implementation manner, the obtaining of the operating status data of each data center in each area includes:
[0028] In response to the data collection task, obtaining a data interface of the data center;
[0029] When the validity check of the data interface is passed, the operation status data of the corresponding data center is collected through the data interface.
[0030] In an optional implementation manner, the device information is hierarchically stored in a static data table according to the spatial structure relationship of the devices belonging to each data center, including:
[0031] Determine the attribute dimension of each data table in the static data table; wherein the attribute dimension is used to indicate the type of device information stored in the data table, and each of the data tables contains corresponding device information stored according to the hierarchical relationship of the attribute dimension;
[0032] The device information matching each of the data tables is determined in the device information, and the matching device information is stored in the data table.
[0033] In an optional implementation manner, storing the measuring point data of each preset measuring point of the device in the dynamic data table includes:
[0034] Determining target data types of the measurement point data of the data center;
[0035] Determine a target storage location in the dynamic data table that matches the target data type;
[0036] The measurement point data of the data center is stored in the target storage location, and an association relationship is established between the measurement point data in the dynamic data table and the first data table; wherein the first data table is a data table at the lowest level among the multiple data tables, and the first data table is used to record the data type of the measurement point data of the smallest equipment unit in the data center.
[0037] In a second aspect, an embodiment of the present disclosure provides a data management device, including:
[0038] An acquisition unit, used to acquire the operation status data of each data center in each area;
[0039] A data processing unit, used for performing data splitting on the operation status data to obtain device information of the device belonging to the data center and measurement point data of each preset measurement point of the device;
[0040] A storage unit is used to hierarchically store the equipment information in a static data table according to the spatial structure relationship of the equipment belonging to each of the data centers, and to store the measurement point data of each preset measurement point of the equipment in a dynamic data table; wherein the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structure relationship.
[0041] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.
[0042] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.
[0043] In the embodiment of the present application, first, the operation status data of each data center in each area is obtained; then, the operation status data is split to obtain the equipment information and the measuring point data of the equipment belonging to the data center; finally, according to the spatial structure relationship of the equipment belonging to each data center, the equipment information is hierarchically stored in the static data table, and the measuring point data of each preset measuring point of the equipment is stored in the dynamic data table. Here, the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structure relationship.
[0044] In the above implementation, for the operation status data of each data center in each region, by splitting the data into static device information and dynamic measurement point data, and hierarchically storing the device information in the static data table according to the spatial structure relationship of the device, and storing the device measurement point data in the dynamic data table, the operation status data of various formats of each data center can be stored in the same format, thereby achieving unified management of the operation status data of each data center. By unified management of the operation status data, the storage flexibility of data storage can be improved, and more business scenarios can be adapted, thereby avoiding the problem of complicated energy consumption index calculation process caused by the confusion of storage methods of each data center in the prior art.
[0045] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0047] Figure 1 A flow chart of a data management method provided by an embodiment of the present disclosure is shown;
[0048] Figure 2 A schematic diagram showing the relationship between the spatial structures provided by the embodiments of the present disclosure;
[0049] Figure 3 A schematic diagram showing a static data table and a dynamic data table provided by an embodiment of the present disclosure is shown;
[0050] Figure 4 A flowchart of another data management method provided by an embodiment of the present disclosure is shown;
[0051] Figure 5 A schematic diagram of a data management device provided by an embodiment of the present disclosure is shown;
[0052] Figure 6 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0054] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0055] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0056] Research has found that as the scale of the network continues to grow, the power of the data center's air-conditioning equipment has increased year by year, causing the network's energy consumption to rise rapidly. The deployment and implementation of intelligent data center energy-saving technologies and intelligent control of refrigeration equipment parameters can effectively reduce the overall PUE level of the data center.
[0057] At present, the data center computer room can access the monitoring and operation data of the data center, and then predict the energy consumption of the cooling side of the data center through the monitoring and operation data, and then reduce the PUE of the data center through the prediction results. However, the format of the monitoring and operation data of data centers in various regions is not uniform, and the configuration of equipment in different data centers varies, resulting in data collection, storage and interaction cannot be flexibly adapted. At present, data collection is mostly personalized according to different provinces. Data from different provinces and cities are independent and difficult to be compatible with each other, and the diversity of storage methods leads to high pressure on the database. At the same time, the summary calculation of each device indicator after the business query of each data center needs to adapt to its own customized logic. Although the calculation formula has been formulated, it cannot match 100%, and manual processing is troublesome and has low accuracy. It is urgent to realize the elastic collection, storage and interaction of data according to data specifications, business logic, etc.
[0058] Based on the above research, the present disclosure provides a data management method, device, electronic device and storage medium. In an embodiment of the present application, first, the operating status data of each data center in each area is obtained; then, the operating status data is split to obtain the equipment information of the equipment belonging to the data center and the measuring point data of the equipment; finally, according to the spatial structure relationship of the equipment belonging to each data center, the equipment information is stored hierarchically in a static data table, and the measuring point data of each preset measuring point of the equipment is stored in a dynamic data table. Here, the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structure relationship.
[0059] In the above implementation, for the operation status data of each data center in each region, by splitting the data into static device information and dynamic measurement point data, and hierarchically storing the device information in the static data table according to the spatial structure relationship of the device, and storing the device measurement point data in the dynamic data table, the operation status data of various formats of each data center can be stored in the same format, thereby achieving unified management of the operation status data of each data center. By unified management of the operation status data, the storage flexibility of data storage can be improved, and more business scenarios can be adapted, thereby avoiding the problem of complicated energy consumption index calculation process caused by the confusion of storage methods of each data center in the prior art.
[0060] To facilitate understanding of this embodiment, a data management method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the data management method provided in the embodiment of the present disclosure is generally an electronic device with certain computing capabilities. In some possible implementations, the data management method can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0061] See also Figure 1 FIG. 1 is a flowchart of a data management method provided by an embodiment of the present disclosure, wherein the method includes steps S101 to S103, wherein:
[0062] S101: Acquire operation status data of each data center in each area.
[0063] Here, at least one data center is set up for each city in each province. At this time, the operation status data of each data center can be obtained; wherein, the operation status data includes static data and dynamic data. Static data can be understood as data that will not change in a short period of time, and dynamic data can be understood as data that can change at any time.
[0064] Here, the operating status data may also be status data associated with the energy consumption index calculation of the current data center; or may be all operating status data of the data center.
[0065] S102: splitting the operation status data to obtain device information of the device belonging to the data center and measurement point data of each preset measurement point of the device.
[0066] Here, the device information of the equipment belonging to the data center can be the static data described above, and the device measurement point data can be the measurement point data of each preset measurement point of the above equipment. The preset measurement points include but are not limited to the following: current value, frequency value, temperature value, humidity value, voltage value, pressure value and other measurement points.
[0067] In an embodiment of the present application, after the operation status data of the data center is acquired, the operation status data may be split into static data and dynamic data, wherein the static data is equipment information and the dynamic data is measurement point data.
[0068] Here, the device information can be understood as various information such as the device's location information, level information, device name, and preset measuring points. Since the equipment in the data center does not change dynamically, the device information of the equipment does not change dynamically either. Therefore, the device information is determined as static data. The measuring point data of the equipment for each preset measuring point can change dynamically and in real time. Therefore, the measuring point data is dynamic data.
[0069] S103: According to the spatial structural relationship of the equipment belonging to each of the data centers, the equipment information is stored in a hierarchical manner in a static data table, and the measurement point data of each preset measurement point of the equipment is stored in a dynamic data table; wherein the static data table contains a plurality of data tables having a hierarchical relationship, and the hierarchical relationship matches the spatial structural relationship.
[0070] Here, the spatial structure relationship can be understood as the equipment hierarchical relationship of each site (data center) under each city in each province. For example, province A contains B cities, and each city contains C sites. Figure 2 As shown, for each site, the following spatial structure information can be divided in sequence: module, unit system, and equipment. For example, each site can include multiple modules, where each module includes multiple machine buildings and multiple refrigeration stations. Each module includes multiple unit systems, and each unit system includes each machine room in each machine building and at least one refrigeration system in each refrigeration station. Each unit system includes multiple equipment, where each equipment includes a temperature control device in each machine room and a cooling device in each refrigeration system.
[0071] For example, assuming that the device is an air conditioner, the spatial structural relationship can be described as: the air conditioner belongs to the device M1, and the device M1 belongs to the unit system M2, and the unit system M2 belongs to the module M3, and the module M3 belongs to the site M4.
[0072] In an embodiment of the present application, the static data table includes multiple data tables with a hierarchical relationship, wherein the hierarchical relationship matches the spatial structural relationship, that is, the device information can be stored in a hierarchical manner in the static data table according to the spatial structural relationship of the device.
[0073] From the above description, it can be seen that the above spatial structure relationship can be described as: province-city-site-module-unit system-equipment-preset measuring point; among them, province and city are used to indicate the area to which the site belongs, "module-unit system-equipment" is used to indicate the equipment hierarchy relationship between the equipment belonging to the data center, and "equipment-preset measuring point" is used to indicate the data that needs to be collected from the equipment.
[0074] At this time, the static data table can be divided into multiple data tables according to the following attribute dimensions: regional dimension, device dimension and measurement point dimension. For example, the static data table can be split into data tables: site table, device table and signal table; among them, the site table is used to record each data center in each city of each province, the device table is used to record the device hierarchy relationship between the devices belonging to each data center, and the signal table is used to record the preset measurement points of each device.
[0075] In the embodiment of the present application, first, the operation status data of each data center in each area is obtained; then, the operation status data is split to obtain the equipment information and the measuring point data of the equipment belonging to the data center; finally, according to the spatial structure relationship of the equipment belonging to each data center, the equipment information is hierarchically stored in the static data table, and the measuring point data of each preset measuring point of the equipment is stored in the dynamic data table. Here, the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structure relationship.
[0076] In the above implementation, for the operation status data of each data center in each region, by splitting the data into static device information and dynamic measurement point data, and hierarchically storing the device information in the static data table according to the spatial structure relationship of the device, and storing the device measurement point data in the dynamic data table, the operation status data of various formats of each data center can be stored in the same format, thereby achieving unified management of the operation status data of each data center. By unified management of the operation status data, the storage flexibility of data storage can be improved, and more business scenarios can be adapted, thereby avoiding the problem of complicated energy consumption index calculation process caused by the confusion of storage methods of each data center in the prior art.
[0077] In an optional embodiment, in the above Figure 1 Based on the steps described above, the technical solution of the present disclosure also includes the following steps:
[0078] Step S11: obtaining a target calculation formula from each of the data centers; wherein the target calculation formula is a formula for calculating the energy consumption evaluation index of the data center;
[0079] Step S12: convert the target operation formula into a format to obtain an SQL expression, and store the SQL expression.
[0080] In an embodiment of the present application, while obtaining the operating status data of each data center, a target calculation formula can also be obtained from each data center; wherein the target calculation formula is a formula for calculating the energy consumption evaluation index of the data center.
[0081] Here, a plurality of energy consumption evaluation indicators may be set for each data center, and a target calculation formula is set for each energy consumption evaluation indicator; wherein, the target calculation formulas for different energy consumption evaluation indicators are different.
[0082] Here, energy consumption evaluation indicators may include but are not limited to the following indicators: real-time operating status value of the data center; PUE and power saving indicators of the data center; power and power consumption indicators of the data center; energy consumption of multiple branches and multiple cooling modes of the refrigeration system; and air conditioning energy consumption in the terminal computer room.
[0083] After obtaining the target operation formula, the target operation formula can be formatted to obtain an SQL expression, wherein the SQL expression can be understood as the operation principle of the target operation formula expressed by an SQL statement. Here, the target operation formula of each energy consumption evaluation indicator can be formatted to obtain an SQL expression.
[0084] After the target operation formula is formatted and the SQL expression is obtained, the SQL expression can be cached. For example, the SQL expression, the energy consumption evaluation index associated with the SQL expression, and the associated data center can be cached in the cache space at the same time.
[0085] For example, the following is the data format of a target calculation formula:
[0086] (00341006000000001478##001328_0_*1)+(00341006000000001455##002330_0_*1)+(00341006000000001456##002330_0_*1)+(00341006000000001460##002330_0_*1)-('00341006000000001458'##002330_0_*1).
[0087] Among them, 00341006000000001478 is the device code, 001328_0_ is the measurement point code, separated by ##, * is multiplication, / is division, and other +, -, () correspond to mathematical operation formulas. In actual use, according to the database design, it is hoped to be parsed into SQL format to calculate the meter power consumption value, which is convenient for subsequent conversion into success rate, energy consumption, PUE and other results:
[0088] The parsed SQL expression is:
[0089] SELECT
[0090] (SELECT sum(measureVal)FROM`energy_anhui`where((channelId='002330_0_'and deviceId='00341006000000001478')or(channelId='002301_0_'and deviceId='00341006000000001455')or(channelId='002330_0_'and deviceId='00341006000000001456')or(channelId='002330_0_'and deviceId='00341006000000001460'))and collectTime='2023-02-06 20:00:00')
[0092] (SELECT sum(measureVal)FROM`energy_anhui`where((channelId='001328_0_'and deviceId='00341006000000001491')or(channelId='002330_0_'and deviceId='00341006000000001458'))and collectTime='2023-02-06 20:00:00').
[0093] Through the above conversion method, it can be seen that the process of parsing the target calculation formula is rather cumbersome, the formula content and operators change a lot, the handwriting recognition code needs to be adapted in many places, the workload is large, and it is easy to make mistakes.
[0094] Based on this, in an embodiment of the present application, the target operation formula is formatted to obtain an SQL expression, which specifically includes the following steps:
[0095] The target operation formula is transformed through a pre-trained language model to obtain the SQL expression after processing.
[0096] In an embodiment of the present application, the target operation formula is transformed and processed through a large language model (for example, the ChatGLM language model), thereby accurately completing the "formula to SQL" conversion.
[0097] Since there is no unified calculation formula for the energy consumption evaluation indicators of data centers in various regions, in the prior art, relevant technical personnel are usually required to manually convert the format. However, when the calculation formula is more complicated, the workload of relevant technical personnel will increase, and the SQL expression after manual format conversion is prone to errors.
[0098] Based on this, by transforming the target calculation formula through the pre-trained large language model, the calculation formula can be parsed quickly and accurately, data calculation and business interaction can be completed, and the calculated data can be displayed in real time using Web technology.
[0099] In the embodiment of the present application, before the target operation formula is converted by the pre-trained language model, the language model may be trained by the following steps. The specific training process is described as follows:
[0100] First, the calculation formula is obtained from the database at regular intervals.
[0101] Secondly, the SQL expressions of the operation formulas of the data centers in each region are obtained, and the operation formulas and SQL expressions are organized into a training data set.
[0102] Next, the operation formula in the training data set is converted through the language model to be trained to obtain a piece of SQL content.
[0103] Finally, the language model performs self-supervised learning based on the predicted SQL content and SQL expressions in the training dataset, improves the accuracy of the "formula to SQL" capability, and is tuned based on machine performance based on the default configuration to improve accuracy.
[0104] After the language model achieves a certain training effect, you can write a Python external interface through code, input a real-time calculation formula, and convert the calculation formula into an SQL expression by calling the language model.
[0105] From the above description, it can be seen that the calculation logic of dynamic real-time operation formulas can be automatically identified through the language model, so as to accurately complete the "formula to SQL". In the embodiment of the present application, after obtaining the SQL expression, the SQL expression can be cached. The cache can reduce the memory performance consumed by multiple calculations and the time required to retrieve data, reduce API call overhead, and improve application scalability.
[0106] In an optional implementation, the target operation formula is formatted to obtain an SQL expression, which specifically includes the following steps:
[0107] Step S21: verifying the validity of the target operation formula from multiple verification dimensions;
[0108] Step S22: When the validity check of the target operation formula passes, the target operation formula is formatted and converted to obtain the SQL expression.
[0109] In an embodiment of the present application, when it is determined that the accuracy of the trained language model meets the requirements, it is also necessary to verify the validity of the target operation formula, and when the validity verification of the target operation formula passes, the target operation formula is formatted to obtain the SQL expression.
[0110] Here, the validity of the target calculation formula can be verified by the following verification rules:
[0111] Required rule: Check whether the required field in the target calculation formula is empty; if the required field is not empty, the required rule check is determined to have passed; otherwise, the required rule check has failed. The required field can be a site, province, formula, etc.
[0112] Character length rule: Checks whether the length of the length requirement field in the target calculation formula meets the preset length requirement; if so, the character length rule check passes; otherwise, the character length rule check fails.
[0113] Regular expression rule: Use regular expressions to verify whether the format of the target operation formula is correct. If it is correct, the regular expression rule verification passes; otherwise, the regular expression rule verification fails.
[0114] Here, it can be set that when the target operation formula satisfies at least one of the above verification rules, it is determined that the validity check of the target operation formula has passed; it can also be set that when the target operation formula satisfies all the verification rules, it is determined that the validity check of the target operation formula has passed.
[0115] In an optional embodiment, the method further comprises the following steps:
[0116] Step S31: after the device information is hierarchically stored in a static data table according to the spatial structure relationship of the devices belonging to each data center, and the measuring point data of each preset measuring point of the device is stored in a dynamic data table, in response to the energy consumption prediction task for the data center, a target SQL expression and task execution data matching the energy consumption prediction task are obtained; wherein the task execution data is the device information and measuring point data used to execute the energy consumption prediction task;
[0117] Step S32: performing energy consumption calculation on the task execution data based on the target SQL expression to obtain an energy consumption evaluation index of the data center.
[0118] In an embodiment of the present application, after the equipment information and measurement point data are stored in a hierarchical manner, the energy consumption prediction task for the data center can be detected, and after the energy consumption prediction task is detected, the task execution data for executing the energy consumption prediction task can be obtained in the database, as well as the target SQL expression matching the energy consumption prediction task.
[0119] Here, the data center corresponding to the energy consumption prediction task can be determined, as well as the energy consumption evaluation index corresponding to the energy consumption prediction task. Then, based on the corresponding data center and the corresponding energy consumption evaluation index, a matching target SQL expression can be determined, and energy consumption calculations can be performed on the task execution data through the target SQL expression to obtain the energy consumption evaluation index of the data center.
[0120] Here, the business layer can set a scheduled task, where the scheduled task is a time-triggered energy consumption prediction task. After detecting that the scheduled task is triggered, the SQL expression trained by the model can be called in the database, and the energy consumption evaluation index can be calculated and processed through the SQL expression to obtain the ideal result; here, a user-friendly interface can also be designed to display the energy consumption evaluation index of the data center.
[0121] Through the above processing method, not only the work of manually writing recognition codes is reduced, but also the efficiency can be improved, the formula can be parsed quickly and accurately, and the data calculation can be completed.
[0122] In an optional implementation, before converting the target operation formula to obtain an SQL expression, the method further includes:
[0123] Step S41: searching the cache space for a converted SQL expression that matches the target operation formula;
[0124] Step S42: when it is determined that the converted SQL expression is not found, convert the format of the target operation formula to obtain an SQL expression;
[0125] Step S43: when it is determined that the converted SQL expression is found, the found converted SQL expression is used as the SQL expression of the target operation formula.
[0126] In the embodiment of the present application, after the target operation formula is converted through the language model, the SQL expression can be cached using the idea of GPTCache. Here, the database can be connected through the GPTCache general interface extension to persist the data. This greatly reduces the cost of accessing LLM APO, reduces the request load, and facilitates the use and monitoring of subsequent business layers.
[0127] Here, before the target operation formula is formatted and the SQL expression is obtained, a converted SQL expression matching the target operation formula may be searched in the cache space; if the converted SQL expression is found, the found converted SQL expression is used as the SQL expression of the target operation formula; otherwise, the target operation formula is formatted and the SQL expression is obtained through a language model.
[0128] In an optional implementation, the step S102 above performs data splitting on the operating status data to obtain device information of the device belonging to the data center and the measurement point data of the device, specifically comprising the following steps:
[0129] Step S51: obtaining a type identifier in the running status data; wherein the type identifier is used to indicate the type of the running status data;
[0130] Step S52: splitting the running status data according to the type identifier to obtain the device information and the measuring point data; wherein the type identifiers corresponding to the device information and the measuring point data are different.
[0131] In an embodiment of the present application, the running status data may include a type identifier. In this case, the type of the running status data may be determined based on the type identifier. For example, it may be determined that the running status data is static data or dynamic data.
[0132] Here, the identification content of the type identification in the running status data can be parsed, and then the running status data can be split according to the identification content. For example, if the identification content is "01", the running status data is determined to be static data, and for another example, if the identification content is "00", the running status data is determined to be dynamic data. After that, the static data can be stored in a static data table in a hierarchical manner, and the dynamic data can be stored in a dynamic data table.
[0133] In an optional implementation, the above step S101 of acquiring the operation status data of each data center in each area specifically includes the following steps:
[0134] Step S1011: In response to the data collection task, obtaining the data interface of the data center;
[0135] Step S1012: When the validity check of the data interface passes, the operation status data of the corresponding data center is collected through the data interface.
[0136] In the embodiment of the present application, a scheduled collection task may be set, that is, the collection of operating status data from the data center may be set at preset time intervals.
[0137] After detecting that the scheduled collection task is triggered, the data interface of each data center can be requested; wherein, the data interface can be a REST-style uniform resource locator (URL) defined service interface described in the form of RESTFul Web Service using HTTP(S) protocol; wherein, the preset time interval can be flexibly configured to ensure the real-time nature of the data, and the present disclosure does not make specific limitations on this.
[0138] Here, a two-way authentication security mechanism can be added, that is, the data center can verify the request of the data interface, and after the verification is passed, the data center can return the data interface. At this time, the received data interface can be verified for legitimacy, and if the verification is passed, the operating status data of the corresponding data center can be collected through the data interface. By adding a two-way authentication security mechanism, it can be ensured that the message comes from a legitimate platform and has not been tampered with during the transmission process, ensuring data security.
[0139] In an optional implementation, the above steps of hierarchically storing the device information in a static data table according to the spatial structure relationship of the devices belonging to each data center specifically include the following steps:
[0140] Step S61: determining the attribute dimension of each data table in the static data table; wherein the attribute dimension is used to indicate the type of device information stored in the data table, and each of the data tables contains corresponding device information stored according to the hierarchical relationship of the attribute dimension;
[0141] Step S62: Determine the device information that matches each of the first data tables in the device information, and store the matching device information in the data table.
[0142] In an embodiment of the present application, the equipment belonging to the data center is pre-divided into levels according to the spatial structural relationship. For example, it can be divided into: province-city-module-unit system-equipment-preset measurement point.
[0143] At this time, the static data table can be split into multiple data tables with hierarchical relationships according to the hierarchical division information described above, and the static data table can be divided into multiple data tables from the following attribute dimensions: area dimension, equipment dimension, and measurement point dimension.
[0144] For example, Figure 3 As shown, the static data table can be divided into data tables: site table, equipment table and signal table; among them, the site table is used to record each site (data center) in each city of each province, the equipment table is used to record the equipment hierarchy relationship between the equipment belonging to each data center, and the signal table is used to record the preset measurement points of each device.
[0145] Here, the device information in the device information that matches each data table can be determined and the matched device information can be stored in the data table. For example, the information of each site in each city in each province can be determined and stored in the site table.
[0146] From the above description, we can know that the static data table can store the hierarchical relationship of various types of equipment in the data center under different provincial and municipal sites. The hierarchical relationship can be dynamically increased and decreased. Whether it is the increase or decrease of machine buildings / machine rooms / refrigeration stations / equipment caused by the change of provinces; or the shutdown and access of equipment caused by special scenarios such as high temperature and cold weather, the hierarchical relationship of the static data table can be adjusted and updated in real time according to the time of data acquisition.
[0147] In an optional implementation, the above step stores the measurement point data of each preset measurement point of the device in a dynamic data table, specifically comprising the following steps:
[0148] Step S63: determining the target data type of the measurement point data of the data center;
[0149] Step S64: determining a target storage location in the dynamic data table that matches the target data type;
[0150] Step S65: Store the measurement point data of the data center to the target storage location, and establish an association relationship between the measurement point data in the dynamic data table and the first data table; wherein the first data table is a data table at the lowest level among the multiple data tables, and the first data table is used to record the data type of the measurement point data of the smallest equipment unit in the data center.
[0151] In the embodiments of the present application, Figure 3 As shown, the dynamic data table includes a measuring point table and a formula table; wherein the measuring point table uses multiple preset measuring points as storage dimensions, one storage dimension corresponds to one preset measuring point, and one storage dimension is used to record the measuring point data of each data center in each area for the storage dimension.
[0152] Here, dynamic data is used to store the measurement point data of each preset measurement point collected in real time, such as: voltage and current values of power equipment transformers and motors; frequency values of refrigeration machines, refrigeration pumps, and cooling pumps; outlet and return air temperature values of air-conditioning equipment; temperature and humidity values in the ambient air, etc.
[0153] In the embodiment of the present application, after the measurement point data of the data center is acquired, the target data type of the measurement point data, that is, the type of the measurement point, may be determined.
[0154] After determining the target data type, a storage dimension (i.e., a target storage location) matching the target data type can be determined in the measurement point table of the dynamic data table; then, the measurement point data of the data center is stored in the target storage location, and an association relationship between the measurement point data in the dynamic data table and the first data table is established. Figure 3As shown, the signal table is the first data table. At this time, an association relationship can be established between the signal table and the measuring point table. By establishing this association relationship, the device to which each measuring point data under each storage dimension in the measuring point table belongs and the data center to which the device belongs can be determined.
[0155] Through the above processing method, all the currently collected operating status data can be covered, regardless of the addition, reduction, model type change, equipment definition change, etc. of the equipment building, refrigeration system or computer room, all can be adapted and collected.
[0156] The following will be combined Figure 4 The above data management method is introduced.
[0157] like Figure 4 As shown in the figure, the management system of the data center includes the following structures: data acquisition module, data storage module and data interaction module. Figure 4 As shown, the management system of the data center can interact with the data centers in each area, so as to collect the operating status data of each data center.
[0158] In an embodiment of the present application, the data acquisition module includes the following processing flow: requesting a data interface, data interface authentication, and data synchronization.
[0159] In specific implementation, the data collection module may request a data interface with the data center, perform message header authentication on the requested data interface, and collect the operation status data of the data center if the authentication is passed.
[0160] The data collection module can send the collected operation status data to the data storage module for storage and processing. The data processing module includes the following processing flow: data splitting, grading and table storage.
[0161] In specific implementation, the data storage module can split the operation status data to obtain static data (equipment information) and dynamic data (measurement point data). After that, the static data and dynamic data are stored in the static data table and dynamic data table of the database in a hierarchical manner. Here, the calculation formula of the energy consumption evaluation index obtained from the data center can also be converted into a format through a language model to obtain an SQL expression.
[0162] The data interaction module includes the following processing flows: obtaining SQL expressions, data calculation, and Web visualization.
[0163] In specific implementation, the data interaction module responds to the energy consumption prediction task, obtains the task execution data from the database, and obtains the SQL expression predicted by the language model that matches the energy consumption prediction task. The data calculation module in the data interaction module processes the task execution data according to the SQL expression to obtain the energy consumption evaluation index, which is displayed through the Web visualization interface.
[0164] From the above description, it can be seen that the technical solution disclosed in the present invention conducts unified and standardized management on the collection, storage and analysis of the operating status data of the data center, which can solve the problems of existing data being disordered, complicated, inconsistent in multiple scenarios and inconvenient to store and use, and can meet the needs of production system business processing and real-time statistics. At the same time, it can cope with subsequent expansion in provinces where the business is implemented, ensuring that data use is flexible, scalable and easy to deploy.
[0165] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0166] Based on the same inventive concept, a data management device corresponding to the data management method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned data management method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0167] Reference Figure 5 FIG. 1 is a schematic diagram of a data management device provided by an embodiment of the present disclosure, wherein the device comprises: an acquisition unit 10, a data processing unit 20, and a storage unit 30; wherein:
[0168] An acquisition unit, used to acquire the operation status data of each data center in each area;
[0169] A data processing unit, used for performing data splitting on the operation status data to obtain device information of the device belonging to the data center and measurement point data of each preset measurement point of the device;
[0170] A storage unit is used to hierarchically store the equipment information in a static data table according to the spatial structure relationship of the equipment belonging to each of the data centers, and to store the measurement point data of each preset measurement point of the equipment in a dynamic data table; wherein the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structure relationship.
[0171] In the above implementation, for the operation status data of each data center in each region, by splitting the data into static device information and dynamic measurement point data, and hierarchically storing the device information in the static data table according to the spatial structure relationship of the device, and storing the device measurement point data in the dynamic data table, the operation status data of various formats of each data center can be stored in the same format, thereby realizing unified management of the operation status data of each data center. By unified management of the operation status data, the storage flexibility of data storage can be improved, and more business scenarios can be adapted, thereby avoiding the problem of complicated energy consumption index calculation process caused by the confusion of storage methods of each data center in the prior art.
[0172] In a possible implementation manner, the device is also used for:
[0173] Obtaining a target calculation formula from each of the data centers; wherein the target calculation formula is a formula for calculating the energy consumption evaluation index of the data center;
[0174] The target operation formula is formatted to obtain an SQL expression, and the SQL expression is stored.
[0175] In a possible implementation manner, the device is also used for:
[0176] After the device information is hierarchically stored in a static data table according to the spatial structure relationship of the devices belonging to each of the data centers, and the measuring point data of each preset measuring point of the device is stored in a dynamic data table, in response to the energy consumption prediction task for the data center, a target SQL expression and task execution data matching the energy consumption prediction task are obtained; wherein the task execution data is the device information and measuring point data used to execute the energy consumption prediction task;
[0177] An energy consumption calculation is performed on the task execution data based on the target SQL expression to obtain an energy consumption evaluation index of the data center.
[0178] In a possible implementation manner, the device is also used for:
[0179] The target operation formula is transformed through a pre-trained language model to obtain the SQL expression after processing.
[0180] In a possible implementation manner, the device is also used for:
[0181] Searching for a converted SQL expression matching the target operation formula in the cache space;
[0182] If it is determined that the converted SQL expression is not found, converting the format of the target operation formula to obtain an SQL expression;
[0183] When it is determined that the converted SQL expression is found, the found converted SQL expression is used as the SQL expression of the target operation formula.
[0184] In a possible implementation manner, the device is also used for:
[0185] Verifying the validity of the target operation formula from multiple verification dimensions;
[0186] When the validity check of the target operation formula passes, the target operation formula is formatted to obtain the SQL expression.
[0187] In a possible implementation manner, the data processing unit is further configured to:
[0188] Obtaining a type identifier in the running status data; wherein the type identifier is used to indicate the type of the running status data;
[0189] The operation status data is split according to the type identifier to obtain the device information and the measuring point data; wherein the type identifiers corresponding to the device information and the measuring point data are different.
[0190] In a possible implementation manner, the acquisition unit is further configured to:
[0191] In response to the data collection task, obtaining a data interface of the data center;
[0192] When the validity check of the data interface is passed, the operation status data of the corresponding data center is collected through the data interface.
[0193] In a possible implementation manner, the storage unit is further used for:
[0194] Determine the attribute dimension of each data table in the static data table; wherein the attribute dimension is used to indicate the type of device information stored in the data table, and each of the data tables contains corresponding device information stored according to the hierarchical relationship of the attribute dimension;
[0195] The device information matching each of the data tables is determined in the device information, and the matching device information is stored in the data table.
[0196] In a possible implementation manner, the storage unit is further used for:
[0197] Determining target data types of the measurement point data of the data center;
[0198] Determine a target storage location in the dynamic data table that matches the target data type;
[0199] The measurement point data of the data center is stored in the target storage location, and an association relationship is established between the measurement point data in the dynamic data table and the first data table; wherein the first data table is a data table at the lowest level among the multiple data tables, and the first data table is used to record the data type of the measurement point data of the smallest equipment unit in the data center.
[0200] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0201] Corresponds to Figure 1 The data management method in the present disclosure also provides an electronic device 600, such as Figure 6 FIG. 6 is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present disclosure, including:
[0202] Processor 61, memory 62, and bus 63; memory 62 is used to store execution instructions, including internal memory 621 and external memory 622; the internal memory 621 is also called internal memory, which is used to temporarily store the operation data in the processor 61 and the data exchanged with the external memory 622 such as a hard disk. The processor 61 exchanges data with the external memory 622 through the internal memory 621. When the electronic device 600 is running, the processor 61 communicates with the memory 62 through the bus 63, so that the processor 61 executes the following instructions:
[0203] Obtain the operating status data of each data center in each region;
[0204] Splitting the running status data to obtain device information of the device belonging to the data center and measuring point data of each preset measuring point of the device;
[0205] According to the spatial structural relationship of the equipment belonging to each of the data centers, the equipment information is stored in a hierarchical manner in a static data table, and the measurement point data of each preset measurement point of the equipment is stored in a dynamic data table; wherein the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structural relationship.
[0206] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data management method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0207] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the data management method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0208] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0209] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0210] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0211] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0212] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0213] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A data management method, characterized in that: include: Obtain the operating status data of each data center in each region; Splitting the running status data to obtain device information of the device belonging to the data center and measuring point data of each preset measuring point of the device; According to the spatial structural relationship of the equipment belonging to each of the data centers, the equipment information is stored in a hierarchical manner in a static data table, and the measurement point data of each preset measurement point of the equipment is stored in a dynamic data table; wherein the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structural relationship.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a target calculation formula from each of the data centers; wherein the target calculation formula is a formula for calculating the energy consumption evaluation index of the data center; The target operation formula is formatted to obtain an SQL expression, and the SQL expression is stored.
3. The method according to claim 2, characterized in that The method further comprises: After the device information is hierarchically stored in a static data table according to the spatial structure relationship of the devices belonging to each of the data centers, and the measuring point data of each preset measuring point of the device is stored in a dynamic data table, in response to the energy consumption prediction task for the data center, a target SQL expression and task execution data matching the energy consumption prediction task are obtained; wherein the task execution data is the device information and measuring point data used to execute the energy consumption prediction task; An energy consumption calculation is performed on the task execution data based on the target SQL expression to obtain an energy consumption evaluation index of the data center.
4. The method according to claim 2, characterized in that: The target operation formula is formatted to obtain an SQL expression, including: The target operation formula is transformed through a pre-trained language model to obtain the SQL expression after processing.
5. The method according to claim 2, characterized in that: Before converting the target operation formula into a format to obtain an SQL expression, the method further includes: Searching for a converted SQL expression matching the target operation formula in the cache space; If it is determined that the converted SQL expression is not found, converting the format of the target operation formula to obtain an SQL expression; When it is determined that the converted SQL expression is found, the found converted SQL expression is used as the SQL expression of the target operation formula.
6. The method according to claim 2, characterized in that The target operation formula is formatted to obtain an SQL expression, including: Verifying the validity of the target operation formula from multiple verification dimensions; When the validity check of the target operation formula passes, the target operation formula is formatted to obtain the SQL expression.
7. The method according to claim 1, characterized in that The step of splitting the operating status data to obtain device information of the device belonging to the data center and measurement point data of each preset measurement point of the device includes: Obtaining a type identifier in the running status data; wherein the type identifier is used to indicate the type of the running status data; The operation status data is split according to the type identifier to obtain the device information and the measuring point data; wherein the type identifiers corresponding to the device information and the measuring point data are different.
8. The method according to claim 1, characterized in that The obtaining of the operation status data of each data center in each area includes: In response to the data collection task, obtaining a data interface of the data center; When the validity check of the data interface is passed, the operation status data of the corresponding data center is collected through the data interface.
9. The method according to claim 1, characterized in that: The step of storing the device information in a hierarchical manner in a static data table according to the spatial structural relationship of the devices belonging to each data center includes: Determine the attribute dimension of each data table in the static data table; wherein the attribute dimension is used to indicate the type of device information stored in the data table, and each of the data tables contains corresponding device information stored according to the hierarchical relationship of the attribute dimension; The device information matching each of the data tables is determined in the device information, and the matching device information is stored in the data table.
10. The method according to claim 9, characterized in that The storing of the measuring point data of each preset measuring point of the device in the dynamic data table includes: Determining target data types of the measurement point data of the data center; Determine a target storage location in the dynamic data table that matches the target data type; The measurement point data of the data center is stored in the target storage location, and an association relationship is established between the measurement point data in the dynamic data table and the first data table; wherein the first data table is a data table at the lowest level among the multiple data tables, and the first data table is used to record the data type of the measurement point data of the smallest equipment unit in the data center.
11. A data management device, characterized in that: include: An acquisition unit, used to acquire the operation status data of each data center in each area; A data processing unit, used for performing data splitting on the operation status data to obtain device information of the device belonging to the data center and measurement point data of each preset measurement point of the device; A storage unit is used to hierarchically store the equipment information in a static data table according to the spatial structure relationship of the equipment belonging to each of the data centers, and to store the measurement point data of each preset measurement point of the equipment in a dynamic data table; wherein the static data table contains multiple data tables with a hierarchical relationship, and the hierarchical relationship matches the spatial structure relationship.
12. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the data management method as described in any one of claims 1 to 10 are performed.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data management method according to any one of claims 1 to 10 are executed.
