Memory cluster system and method for power grid equipment
By designing a grid device memory cluster system containing multiple modules, the problem of data loss when the system crashes is solved, data integrity and reliability are achieved, and the system response speed and storage efficiency are improved.
Patent Information
- Application Number
- CN202411695841.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-18
AI Technical Summary
The existing grid equipment memory cluster system can easily lead to data loss when the system crashes, affecting the working effect of the system.
A power grid equipment memory cluster system is designed, including data acquisition module, timely protection module, data classification module, short storage module, classification transmission module, category verification module, classification storage module, compression module and backup storage module. The data is transmitted to the total storage module for temporary storage through the total transmission module to ensure that the data will not be lost when the system crashes.
It effectively avoids the problem of data loss when system crashes, ensures data integrity and reliability, and improves the system's response speed and storage efficiency.
Smart Images

Figure CN119645889A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid equipment, and in particular to a power grid equipment memory cluster system and method. Background Art
[0002] The power grid equipment memory cluster system is an advanced technical architecture for power grid operation and management. It is usually composed of multiple memory modules connected together through a high-speed network, working together to provide efficient data storage and processing capabilities. The advantage of this system is that it can quickly respond to a large amount of real-time data generated by power grid equipment, and achieve fast data reading, writing and processing, thereby supporting key tasks such as real-time monitoring, fault diagnosis, and optimized scheduling of the power grid. In terms of design, the fault tolerance and reliability of the system need to be considered to ensure stable operation when some modules fail. At the same time, attention should be paid to the scalability of the system so that as the scale of the power grid expands and the amount of data increases, memory modules can be easily added to meet the needs.
[0003] If the existing power grid equipment memory cluster system suddenly crashes during operation, data that has just been detected but not yet processed will be lost, resulting in incomplete data, which will affect the working effect of the system. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the above existing problems, the present invention is proposed.
[0006] Therefore, the present invention provides a power grid equipment memory cluster system and method, which can solve the problems mentioned in the background technology.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In a first aspect, the present invention provides a power grid equipment memory cluster system, which includes a data acquisition module, a timely protection module, a data classification module, a short storage module, a classification transmission module, a category verification module, a classification storage module, a compression module and a backup storage module;
[0009] The data acquisition module is used to collect data generated by various types of equipment in the power grid;
[0010] The timely protection module is connected to the data acquisition module and is used to receive and temporarily store all data collected by the data acquisition module.
[0011] The data classification module is connected to the data acquisition module and is used to classify the data collected by the data acquisition module;
[0012] The short-term storage module is connected to the data classification module and is used to store the short-term data classified by the data classification module;
[0013] The classification transmission module is connected to the data classification module and is used to transmit the classified data through multiple channels;
[0014] The category verification module is connected to the classification transmission module and is used to verify whether the data transmitted by the classification transmission module is correctly allocated to the corresponding channel;
[0015] The classification storage module is connected to the category verification module and is used to store verified classification data;
[0016] The compression module is connected to the classification storage module and is used to compress the data in the classification storage module;
[0017] The backup storage module is connected to the compression module and is used to store the data compressed by the compression module.
[0018] As a preferred solution of the power grid equipment memory cluster system described in the present invention, the data collected by the data acquisition module includes various types of equipment in the power grid, and real-time collection of relevant data on power operation, including voltage, current, and power.
[0019] As a preferred solution of the power grid equipment memory cluster system of the present invention, the timely protection module includes:
[0020] The total transmission module is used to transmit all the data collected by the data collection module to the total storage module;
[0021] The total storage module is used to store data from the total transmission module;
[0022] The time segmentation module is used to segment the data in the total storage module according to time periods;
[0023] The regional comparison module is used to compare the data segmented in the same time period and select the most representative set of data;
[0024] The region deletion module is used to delete data that is not the most representative.
[0025] As a preferred solution of the power grid equipment memory cluster system of the present invention, the short memory module includes:
[0026] A short storage module is used to store classified data;
[0027] A partitioning module, used for dividing the data in the short storage module into time periods;
[0028] A deletion module, used to delete the data of the previous time period in the partition module;
[0029] The timing module is used to set the partition time of the partition module and the deletion time of the deletion module.
[0030] As a preferred solution of the power grid equipment memory cluster system of the present invention, wherein: the classification storage module and the backup storage module include:
[0031] Use a custom hash function h to map data to the index position in the hash table; the hash function calculation formula is as follows:
[0032] h(V t ,I t ,P t ,E h ,S d ,E t ,L f )=(A*V t +B*I t +C*P t +D*E h +E*S d +F*E t +
[0033] G*L f )mod N
[0034] Among them, V t is the real-time voltage, unit: Volt (V), I t is the real-time current, unit: ampere (A), P t is the real-time power, unit: Watt (W), E h is the historical energy consumption data, unit: kilowatt-hour (kWh), S d is the device status, such as online, offline, etc. t is environmental data, such as temperature (℃), L f is the load forecast data, unit: kilowatt (kW), A, B, C, D, E, F, G are weight constants, N is the size of the hash table, that is, the number of buckets, and the modulus operation is performed to ensure that the hash value is within the valid index range of the hash table;
[0035] When storing power data, the storage location is determined by calculating the hash value h;
[0036] If the hash values of two data items h1 and h2 are the same, they are processed using the linked list method or the open address method.
[0037] As a preferred solution of the power grid equipment memory cluster system of the present invention, the category verification module can detect the data filtered by the classification transmission module to determine whether the transmitted data is the data corresponding to the current channel.
[0038] As a preferred solution of the power grid equipment memory cluster system described in the present invention, wherein: the compression module can compress the data inside the classification storage module to reduce the space occupied by the data, and the backup storage module stores the data compressed by the compression module, so that the storage of the backup storage module is independent of the classification storage module.
[0039] In a second aspect, the present invention provides a method for clustering power grid equipment memory, which includes: a data acquisition module acquires data generated by various types of equipment in the power grid;
[0040] The timely protection module receives and temporarily stores all the data collected by the data collection module, and transmits the data to the general storage module through the general transmission module, and uses the time segmentation module to segment the data according to time periods, the regional comparison module compares the data in the same time period to select the most representative set of data, and the regional deletion module deletes the non-representative data;
[0041] The data classification module classifies the data collected by the data collection module, and the classified data is stored by the short-term storage module, and the short-term storage module performs short-term storage management on the data through the short storage module, the partition module, the deletion module and the timing module;
[0042] The classified data is transmitted through multiple channels of the classification transmission module. After the category verification module verifies whether the data is correctly allocated to the corresponding channel, the classification storage module stores the verified data. The compression module compresses the data in the classification storage module, and the backup storage module stores the compressed data.
[0043] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, the steps of the memory cluster system of the power grid device are implemented.
[0044] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, the steps of implementing a memory cluster system for a power grid device are implemented.
[0045] Compared with the prior art, the beneficial effect of the present invention is that all data collected by the data acquisition module are transmitted to the general storage module for storage through the general transmission module. According to the priority relationship, the data will be stored just after the detection is completed. At this time, even if the system suddenly crashes, the data of the last detection will also be stored in the general storage module, thereby avoiding the problem of loss of the last detection data. At the same time, the transmission method of the general transmission module is to adopt the method of data acquisition module to detect and transmit at the same time, which can ensure the integrity of the data as much as possible; the short storage module method is used to store only recent data, so that other systems can quickly extract data from the system when using it, increasing the response speed of the system, and at the same time, the deletion module can clean up the data in the short storage module, thereby ensuring that there is only a small amount of data in the short storage module, which is convenient for data screening; the compression module will compress the data of the classification storage module, so as to store the compressed data in the backup storage module for backup, avoiding data loss in the backup storage module. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 A system structure diagram of a power grid equipment memory cluster system and method provided by an embodiment of the present invention;
[0048] Figure 2 An internal structural diagram of a computer device of a power grid equipment memory cluster system and method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the above-mentioned purposes, features and advantages of the present invention more understandable, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0050] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0051] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0052] Example 1, reference Figure 1-Figure 2 , which is the first embodiment of the present invention, and which provides a power grid device memory cluster system, including:
[0053] This application provides a method that can effectively solve the above-mentioned problems. Next, multiple embodiments will be combined to explain in detail how to implement the power grid device memory cluster system;
[0054] Figure 1 A method flow chart of a power grid device memory cluster system and method is shown, including:
[0055] Data collection module, timely protection module, data classification module, short-term storage module, classification transmission module, category verification module, classification storage module, compression module and backup storage module;
[0056] The data acquisition module is used to collect data generated by various types of equipment in the power grid;
[0057] The timely protection module is connected to the data acquisition module and is used to receive and temporarily store all data collected by the data acquisition module.
[0058] The data classification module is connected to the data acquisition module and is used to classify the data collected by the data acquisition module;
[0059] The short-term storage module is connected to the data classification module and is used to store the short-term data classified by the data classification module;
[0060] The classification transmission module is connected to the data classification module and is used to transmit the classified data through multiple channels;
[0061] The category verification module is connected to the classification transmission module and is used to verify whether the data transmitted by the classification transmission module is correctly allocated to the corresponding channel;
[0062] The classification storage module is connected to the category verification module and is used to store verified classification data;
[0063] The compression module is connected to the classification storage module and is used to compress the data in the classification storage module;
[0064] The backup storage module is connected to the compression module and is used to store the data compressed by the compression module.
[0065] Furthermore, the data collected by the data acquisition module includes various types of equipment in the power grid, and real-time data related to power operation is collected, and the data includes voltage, current, and power.
[0066] Furthermore, the timely protection module includes:
[0067] The total transmission module is used to transmit all the data collected by the data collection module to the total storage module;
[0068] The total storage module is used to store data from the total transmission module;
[0069] The time segmentation module is used to segment the data in the total storage module according to time periods;
[0070] The regional comparison module is used to compare the data segmented in the same time period and select the most representative set of data;
[0071] The region deletion module is used to delete data that is not the most representative.
[0072] Furthermore, the short memory module includes:
[0073] A short storage module is used to store classified data;
[0074] A partitioning module, used for dividing the data in the short storage module into time periods;
[0075] A deletion module, used to delete the data of the previous time period in the partition module;
[0076] The timing module is used to set the partition time of the partition module and the deletion time of the deletion module.
[0077] Furthermore, the classification storage module and the backup storage module include:
[0078] Use a custom hash function h to map data to the index position in the hash table; the hash function calculation formula is as follows:
[0079] h(V t ,I t ,P t ,E h ,S d ,E t ,L f )=(A*V t +B*I t +C*P t +D*E h +E*S d +F*E t +
[0080] G*L f )mod N
[0081] Among them, V t is the real-time voltage, unit: Volt (V), I t is the real-time current, unit: ampere (A), P t is the real-time power, unit: Watt (W), E h is the historical energy consumption data, unit: kilowatt-hour (kWh), S d is the device status, such as online, offline, etc. t is environmental data, such as temperature (℃), L f is the load forecast data, unit: kilowatt (kW), A, B, C, D, E, F, G are weight constants, N is the size of the hash table, that is, the number of buckets, and the modulus operation is performed to ensure that the hash value is within the valid index range of the hash table;
[0082] When storing power data, the storage location is determined by calculating the hash value h;
[0083] If the hash values of two data items h1 and h2 are the same, they are processed using the linked list method or the open address method.
[0084] Furthermore, the category verification module can detect the data filtered by the classification transmission module to determine whether the transmitted data is data corresponding to the current channel.
[0085] Furthermore, the compression module can compress the data inside the classification storage module to reduce the space occupied by the data, and the backup storage module stores the data compressed by the compression module, so that the storage of the backup storage module is independent of the classification storage module.
[0086] Furthermore, this embodiment also provides a power grid device memory cluster method, including:
[0087] The data acquisition module collects data generated by various devices in the power grid;
[0088] The timely protection module receives and temporarily stores all the data collected by the data collection module, and transmits the data to the general storage module through the general transmission module, and uses the time segmentation module to segment the data according to time periods, the regional comparison module compares the data in the same time period to select the most representative set of data, and the regional deletion module deletes the non-representative data;
[0089] The data classification module classifies the data collected by the data collection module, and the classified data is stored by the short-term storage module, and the short-term storage module performs short-term storage management on the data through the short storage module, the partition module, the deletion module and the timing module;
[0090] The classified data is transmitted through multiple channels of the classification transmission module. After the category verification module verifies whether the data is correctly allocated to the corresponding channel, the classification storage module stores the verified data. The compression module compresses the data in the classification storage module, and the backup storage module stores the compressed data.
[0091] This embodiment also provides a computer device, which may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 2 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a memory cluster system of a power grid device is realized. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0092] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0093] Data collection module, timely protection module, data classification module, short-term storage module, classification transmission module, category verification module, classification storage module, compression module and backup storage module;
[0094] The data acquisition module is used to collect data generated by various types of equipment in the power grid;
[0095] The timely protection module is connected to the data acquisition module and is used to receive and temporarily store all data collected by the data acquisition module.
[0096] The data classification module is connected to the data acquisition module and is used to classify the data collected by the data acquisition module;
[0097] The short-term storage module is connected to the data classification module and is used to store the short-term data classified by the data classification module;
[0098] The classification transmission module is connected to the data classification module and is used to transmit the classified data through multiple channels;
[0099] The category verification module is connected to the classification transmission module and is used to verify whether the data transmitted by the classification transmission module is correctly allocated to the corresponding channel;
[0100] The classification storage module is connected to the category verification module and is used to store verified classification data;
[0101] The compression module is connected to the classification storage module and is used to compress the data in the classification storage module;
[0102] The backup storage module is connected to the compression module and is used to store the data compressed by the compression module.
[0103] Example 2, reference Figure 1 - Figure 2 , which is the second embodiment of the present invention, and this embodiment provides a power grid equipment memory cluster system. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0104] In order to verify the effectiveness and superiority of the power grid equipment memory cluster system of the present invention, a set of experiments was designed to simulate the data processing process in the actual power grid operation environment. The power grid equipment used in the experiment includes sensors, smart meters, etc., and the data types collected include voltage, current, power, etc. The experimental environment is built in a small simulated power grid system, which can simulate various operating conditions in the actual power grid, including normal operation, overload, short circuit, etc.
[0105] Experimental equipment and materials:
[0106] Sensor: used to collect data such as voltage, current, and power in the power grid.
[0107] Smart meters: used to record energy consumption data in the power grid.
[0108] Server cluster: used to run the power grid equipment memory cluster system of the present invention.
[0109] Storage device: used to store experimental data.
[0110] Experimental steps:
[0111] Data collection: Use sensors and smart meters to collect data in the simulated power grid system, including voltage, current, power, historical energy consumption data, equipment status, environmental data, and load forecast data. The collection time is 24 hours, and the data is collected every 1 minute.
[0112] Data transmission and temporary storage: The data acquisition module transmits the collected data to the timely protection module in real time, and the total transmission module transmits the data to the total storage module for temporary storage.
[0113] Data processing and storage:
[0114] Time segmentation and regional comparison: The time segmentation module divides the data in the total storage module into different regions according to time periods (1 hour is a time period). The regional comparison module compares the data in the same time period and selects the most representative set of data.
[0115] Data deletion: The regional deletion module deletes non-representative data to ensure that only the most representative data is retained in the overall storage module.
[0116] Data classification and short-term storage: The data classification module classifies the data, and the classified data is stored in the short-term storage module. The short-term storage module manages the data in a short-term storage manner through the short-term storage module, partition module, deletion module and timing module to ensure that only the data of the most recent time period is retained in the short-term storage module.
[0117] Data transmission and verification: The classified data is transmitted through multiple channels via the classification transmission module, and the category verification module verifies whether the data is correctly assigned to the corresponding channel.
[0118] Data storage and compression: The classification storage module stores verified classification data, the compression module compresses the data in the classification storage module, and the backup storage module stores the compressed data.
[0119] Experimental parameter settings:
[0120] Voltage: 220V±10%
[0121] Current: 10A±2A
[0122] Power: 2200W±200W
[0123] Historical energy consumption data: 500kWh±50kWh
[0124] Device status: online / offline
[0125] Environmental data: 25℃±5℃
[0126] Load forecast data: 2.5kW±0.5kW
[0127] Table 1: Experimental data collection and processing results
[0128]
[0129] Table 2: Comparison of data processing and storage efficiency
[0130]
[0131] It can be seen from the above experimental data that the power grid equipment memory cluster system of the present invention has significant advantages in data processing and storage. The specific analysis is as follows:
[0132] As can be seen from Table 2, the data transmission time is between 10-12 milliseconds, which shows that the total transmission module of the present invention can efficiently transmit data from the data acquisition module to the total storage module. Compared with the traditional data transmission method, the method of the present invention greatly shortens the data transmission time and improves the response speed of the system.
[0133] The data storage time is between 20 and 22 milliseconds, which shows that the time segmentation module and the region comparison module of the present invention can quickly process and store data. Traditional data storage methods usually take longer to complete data storage, while the method of the present invention significantly improves the efficiency of data storage through time segmentation and region comparison.
[0134] The data compression rate is between 60% and 62%, which indicates that the compression module of the present invention can effectively reduce the space occupied by the data. Compared with the traditional data compression method, the method of the present invention can achieve a higher compression rate, thereby saving a lot of storage resources.
[0135] The data loss rate is 0%, which shows that the timely protection module and the area deletion module of the present invention can effectively prevent data loss. The traditional data storage method is prone to data loss when the system crashes, while the method of the present invention ensures the integrity and reliability of the data through temporary storage and data deletion.
[0136] The data retrieval time is about 5 milliseconds, which shows that the classification storage module and hash function of the present invention can quickly locate and retrieve data. Traditional data retrieval methods usually take a long time to find data, while the method of the present invention significantly improves the speed of data retrieval through hash functions and multi-channel transmission.
[0137] In summary, the power grid equipment memory cluster system of the present invention shows significant advantages in data transmission, storage, compression and retrieval. Compared with the prior art, the method of the present invention not only improves the response speed and storage efficiency of the system, but also ensures the integrity and reliability of the data. These advantages make the present invention have high practical value and promotion prospects in practical applications.
[0138] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
[0139] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0143] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A power grid equipment memory cluster system, characterized by: It includes a data collection module, a timely protection module, a data classification module, a short-term storage module, a classification transmission module, a category verification module, a classification storage module, a compression module and a backup storage module; The data acquisition module is used to collect data generated by various types of equipment in the power grid; The timely protection module is connected to the data acquisition module and is used to receive and temporarily store all data collected by the data acquisition module. The data classification module is connected to the data acquisition module and is used to classify the data collected by the data acquisition module; The short-term storage module is connected to the data classification module and is used to store the short-term data classified by the data classification module; The classification transmission module is connected to the data classification module and is used to transmit the classified data through multiple channels; The category verification module is connected to the classification transmission module and is used to verify whether the data transmitted by the classification transmission module is correctly allocated to the corresponding channel; The classification storage module is connected to the category verification module and is used to store verified classification data; The compression module is connected to the classification storage module and is used to compress the data in the classification storage module; The backup storage module is connected to the compression module and is used to store the data compressed by the compression module.
2. The power grid equipment memory cluster system according to claim 1, characterized in that: The data collected by the data acquisition module includes various types of equipment in the power grid, and collects relevant data of power operation in real time, including voltage, current, and power.
3. The power grid equipment memory cluster system according to claim 2, characterized in that: The timely protection module includes: The total transmission module is used to transmit all the data collected by the data collection module to the total storage module; The total storage module is used to store data from the total transmission module; The time segmentation module is used to segment the data in the total storage module according to time periods; The regional comparison module is used to compare the data segmented in the same time period and select the most representative set of data; The region deletion module is used to delete data that is not the most representative.
4. The power grid equipment memory cluster system according to claim 3, characterized in that: The short memory module comprises: A short storage module is used to store classified data; A partitioning module, used for dividing the data in the short storage module into time periods; A deletion module, used to delete the data of the previous time period in the partition module; The timing module is used to set the partition time of the partition module and the deletion time of the deletion module.
5. The power grid equipment memory cluster system according to claim 4, characterized in that: The classification storage module and the backup storage module include: Use a custom hash function h to map data to index locations in the hash table; The hash function calculation formula is as follows: h(V t ,I t ,P t ,E h ,S d ,E t ,L f )=(A*V t +B*I t +C*P t +D*E h +E*S d +F*E t + G*L f )mod N Among them, V t is the real-time voltage, unit: Volt (V), I t is the real-time current, unit: ampere (A), P t is the real-time power, unit: Watt (W), E h is the historical energy consumption data, unit: kilowatt-hour (kWh), S d is the device status, such as online, offline, etc. t is environmental data, such as temperature (℃), L f is the load forecast data, unit: kilowatt (kW), A, B, C, D, E, F, G are weight constants, N is the size of the hash table, that is, the number of buckets, and the modulus operation is performed to ensure that the hash value is within the valid index range of the hash table; When storing power data, the storage location is determined by calculating the hash value h; If the hash values of two data items h1 and h2 are the same, they are processed using the linked list method or the open address method.
6. The power grid equipment memory cluster system according to claim 5, characterized in that: The category verification module can detect the data filtered by the classification transmission module and determine whether the transmitted data is data corresponding to the current channel.
7. The power grid equipment memory cluster system according to claim 6, characterized in that: The compression module can compress the data inside the classification storage module to reduce the space occupied by the data. The backup storage module stores the data compressed by the compression module, so that the storage of the backup storage module is independent of the classification storage module.
8. A power grid device memory cluster method, based on the power grid device memory cluster system according to any one of claims 1 to 7, characterized in that: Including, the data acquisition module collects data generated by various devices in the power grid; The timely protection module receives and temporarily stores all the data collected by the data collection module, and transmits the data to the general storage module through the general transmission module, and uses the time segmentation module to segment the data according to time periods, the regional comparison module compares the data in the same time period to select the most representative set of data, and the regional deletion module deletes the non-representative data; The data classification module classifies the data collected by the data collection module, and the classified data is stored by the short-term storage module, and the short-term storage module performs short-term storage management on the data through the short storage module, the partition module, the deletion module and the timing module; The classified data is transmitted through multiple channels of the classification transmission module. After the category verification module verifies whether the data is correctly allocated to the corresponding channel, the classification storage module stores the verified data. The compression module compresses the data in the classification storage module, and the backup storage module stores the compressed data.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the power grid device memory cluster system according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the power grid device memory cluster system according to any one of claims 1 to 7 are implemented.