Power distribution network data storage method and system, electronic equipment and storage medium
By building a multi-level data storage architecture and dynamically determining the storage layer according to the characteristics of distribution network data, the storage bottleneck problem of traditional storage systems when facing high-frequency and low-latency data is solved, and efficient data storage and access is achieved.
Patent Information
- Application Number
- CN202411728144.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-11
AI Technical Summary
When traditional single-level data storage systems face a large amount of distribution network data with high frequency, low latency and high reliability requirements, there is a storage bottleneck, which cannot meet the data storage needs of distribution network control services.
A multi-level data storage architecture is adopted to dynamically determine the target storage layer according to different characteristics of distribution network data (such as data access speed, storage capacity, access frequency and update frequency), including the first storage layer (cache layer), the second storage layer (main storage layer), the third storage layer (supervisory storage layer), the fourth storage layer (cold storage layer) and the fifth storage layer (edge storage layer)) to meet the needs of different control services.
It effectively improves the storage efficiency and query analysis efficiency of distribution network data, meets the needs of different control services for data access speed and storage capacity, and improves the user experience.
Smart Images

Figure CN119806394A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data storage method, system, electronic device and storage medium for a distribution network. Background Art
[0002] At present, with the rapid development of smart grid technology, the role of distribution network monitoring and control systems in power systems is becoming increasingly prominent.
[0003] In related technologies, data storage systems use a single-layer architecture. However, in actual applications, it is found that the current traditional storage system has a storage bottleneck when facing a large amount of high-frequency, low-latency, and high-reliability data, and cannot meet the data storage needs of distribution network control services.
[0004] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention
[0005] The embodiments of the present application provide a distribution network data storage method, system, electronic device and storage medium, which can meet the requirements of different control services of the distribution network for data access speed and storage capacity, and effectively improve the user experience.
[0006] On the one hand, an embodiment of the present application provides a distribution network data storage method, comprising the following steps:
[0007] Acquire distribution network data to be stored; wherein the distribution network data includes monitoring data, historical operation data, control instruction data and fault log data;
[0008] Based on the power distribution network data, determining a target storage layer from a data storage architecture;
[0009] Storing the power distribution network data in the target storage layer;
[0010] The data storage architecture includes multiple storage layers; the data stored in each storage layer has different characteristics.
[0011] Optionally, the data storage architecture includes a first storage layer, a second storage layer, a third storage layer, a fourth storage layer, and a fifth storage layer; and determining a target storage layer from the data storage architecture based on the power distribution network data includes:
[0012] Determining data characteristics of the power distribution network data to be stored; wherein the data characteristics include data access speed, data storage capacity, data access frequency, and data update frequency;
[0013] When the data access speed of the power distribution network data is higher than a first preset threshold, determining that the target storage layer of the power distribution network data is the first storage layer;
[0014] When the data storage capacity of the power distribution network data is higher than a second preset threshold, determining that the target storage layer of the power distribution network data is the second storage layer;
[0015] When the data access speed of the power distribution network data is higher than the first preset threshold and the data update frequency is lower than or equal to a third preset threshold, determining that the target storage layer of the power distribution network data is the third storage layer;
[0016] When the data access frequency of the power distribution network data is lower than or equal to a fourth preset threshold, determining that the target storage layer of the power distribution network data is a fourth storage layer;
[0017] When the data source of the power distribution network data is an edge device, it is determined that the target storage layer of the power distribution network data is the fifth storage layer.
[0018] Optionally, the method further comprises:
[0019] The first storage layer and the third storage layer are constructed based on solid-state memory; the second storage layer and the fourth storage layer are constructed based on mechanical hard disks; and the fifth storage layer is constructed based on a distributed storage structure.
[0020] Optionally, the method further comprises:
[0021] In response to the triggered data backup instruction, the power distribution network data stored in the data storage architecture is backed up.
[0022] Optionally, the data backup instructions include regular backup instructions and off-site backup instructions.
[0023] Optionally, the method further comprises:
[0024] Obtaining the utilization rate and data response time of each storage layer;
[0025] Based on the usage rate and the data response time of each storage layer, a data adjustment strategy for each storage layer is determined and executed.
[0026] On the other hand, an embodiment of the present application provides a distribution network data storage system, the system comprising:
[0027] A data acquisition module, used to acquire the distribution network data to be stored; wherein the distribution network data includes monitoring data, historical operation data, control instruction data and fault log data;
[0028] A storage matching module, configured to determine a target storage layer from a data storage architecture based on the power distribution network data;
[0029] A data storage module, used for storing the distribution network data in the target storage layer;
[0030] The data storage architecture includes multiple storage layers; the data stored in each storage layer has different characteristics.
[0031] Optionally, the system further comprises: a data backup module and a storage adjustment module;
[0032] The data backup module is used to back up the distribution network data stored in the data storage architecture in response to a triggered data backup instruction;
[0033] The storage adjustment module is used to obtain the usage rate and data response time of each storage layer; based on the usage rate and data response time of each storage layer, determine and execute the data adjustment strategy of each storage layer.
[0034] On the other hand, an embodiment of the present application provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned distribution network data storage method when executing the computer program.
[0035] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned distribution network data storage method is implemented.
[0036] The embodiment of the present application builds a multi-level data storage architecture to store distribution network data with different characteristics, which helps to meet the requirements of different control services of the distribution network for data access speed and storage capacity, and effectively improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of an implementation environment of a distribution network data storage method provided in an embodiment of the present application;
[0038] Figure 2 It is a flow chart of a method for storing data in a power distribution network provided in an embodiment of the present application;
[0039] Figure 3 It is a schematic diagram of a process for adjusting storage layer indicators provided in an embodiment of the present application;
[0040] Figure 4 It is a structural diagram of a distribution network data storage system provided by an embodiment of the present application;
[0041] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0043] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0044] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0046] At present, with the rapid development of smart grid technology, the role of distribution network monitoring and control system in power system is becoming increasingly prominent. The monitoring and control business functions of distribution network involve the collection, processing, storage and dispatch of a large amount of real-time data.
[0047] In related technologies, data storage systems use a single-layer architecture. However, in actual applications, it is found that the current traditional storage system has a storage bottleneck when facing a large amount of high-frequency, low-latency, and high-reliability data, and cannot meet the data storage needs of distribution network control services.
[0048] In view of this, the embodiments of the present application provide a distribution network data storage method, system, electronic device and storage medium, which store distribution network data with different characteristics by constructing a multi-level data storage architecture, thereby helping to meet the requirements of different control services of the distribution network for data access speed and storage capacity, and effectively improving the user experience.
[0049] The specific implementation of the embodiment of the present application is described in detail below in conjunction with the accompanying drawings. First, a distribution network data storage method provided in the embodiment of the present application is described in conjunction with the accompanying drawings.
[0050] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of an implementation environment of a distribution network data storage method provided in an embodiment of the present application. In the implementation environment, the main software and hardware entities involved include a terminal processor 110 and a server 120.
[0051] Specifically, the terminal processor 110 may be installed with a related power distribution network data storage method control program, and the server 120 is a background server of the control program. The terminal processor 110 and the background server 120 are connected in communication. The power distribution network data storage method provided in the embodiment of the present application may be executed on the terminal processor 110 side.
[0052] Server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0053] In addition, the server 120 may also be a node server in the blockchain network.
[0054] The terminal processor 110 and the server 120 may establish a communication connection through a wireless network. The wireless network uses standard communication technology and / or protocols, and the network may be set to the Internet, or any other network, such as but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, or any combination of a wireless network, a private network, or a virtual private network. Moreover, the above-mentioned software and hardware entities may use the same communication connection mode or different communication connection modes, and this application does not impose any specific restrictions on this.
[0055] Of course, it is understandable that Figure 1 The implementation environment in the embodiment of the present application is only some optional application scenarios of the distribution network data storage method provided in the embodiment of the present application, and the actual application is not fixed. Figure 1 The software and hardware environment shown is not specifically limited in this application.
[0056] like Figure 2 As shown, Figure 2 It is a flow chart of a distribution network data storage method provided in an embodiment of the present application, which specifically includes but is not limited to steps S100 to S300.
[0057] Step S100, obtaining distribution network data to be stored, wherein the distribution network data includes monitoring data, historical operation data, control instruction data and fault log data.
[0058] In an embodiment of the present application, the distribution network data of various control services in the distribution network can be collected in real time by installing real-time monitoring equipment (such as voltage, current, and power measuring instruments), and the data can be classified according to the type of control service. For example, the distribution network data can be divided into monitoring data, historical operation data, control instruction data, and fault log data, wherein the control instruction data refers to the dispatching control commands of the distribution network, such as load switching, fault isolation, etc. The historical operation data can be regularly exported from the database and stored in the data storage architecture for archiving. Fault log data is generally the fault information automatically triggered by the system to collect and obtain when a fault occurs in the distribution network.
[0059] Step S200: Based on the power distribution network data, determine a target storage layer from a data storage architecture, wherein the data storage architecture includes a plurality of storage layers, and the data stored in each storage layer has different characteristics.
[0060] In an embodiment of the present application, in the distribution network control service, different data types have different access frequencies and response time requirements. Therefore, for the acquired distribution network data to be stored, the data can be classified according to its business type, and then the data type and data characteristics of the distribution network data to be stored can be determined.
[0061] Furthermore, the data storage architecture refers to the storage architecture in the distribution network data storage system, which can be composed of multiple storage layers, wherein each storage layer can store distribution network data of different data types and different data characteristics. In other words, different storage layers have different storage focuses. For example, a storage layer with fast data access speed and a storage layer with large data storage capacity can be set in the data storage architecture, so that the distribution network data with different data characteristics can be stored in the corresponding storage layer, which can effectively meet the different access frequency and response time requirements of different data types.
[0062] Specifically, as an optional implementation, the data storage architecture includes a first storage layer, a second storage layer, a third storage layer, a fourth storage layer, and a fifth storage layer; and determining the target storage layer from the data storage architecture based on the power distribution network data includes:
[0063] Determining data characteristics of the power distribution network data to be stored; wherein the data characteristics include data access speed, data storage capacity, data access frequency, and data update frequency;
[0064] When the data access speed of the power distribution network data is higher than a first preset threshold, determining that the target storage layer of the power distribution network data is the first storage layer;
[0065] When the data storage capacity of the power distribution network data is higher than a second preset threshold, determining that the target storage layer of the power distribution network data is the second storage layer;
[0066] When the data access speed of the power distribution network data is higher than the first preset threshold and the data update frequency is lower than or equal to a third preset threshold, determining that the target storage layer of the power distribution network data is the third storage layer;
[0067] When the data access frequency of the power distribution network data is lower than or equal to a fourth preset threshold, determining that the target storage layer of the power distribution network data is a fourth storage layer;
[0068] When the data source of the power distribution network data is an edge device, it is determined that the target storage layer of the power distribution network data is the fifth storage layer.
[0069] In an embodiment of the present application, when constructing a data storage architecture, five storage layers may be designed, namely a first storage layer, a second storage layer, a third storage layer, a fourth storage layer, and a fifth storage layer.
[0070] Among them, the first storage layer can be used as a cache layer to store distribution network data with high access speed requirements. For example, it can be used to store monitoring data and control instruction data, thereby effectively ensuring the strict requirements of distribution network control services on data real-time performance.
[0071] The second storage layer can be used as the main storage layer and can use high-capacity storage devices, so that it can be used to store distribution network data with a large data storage capacity. For example, it can be used to store historical operation data and fault log data. Data compression and data indexing can also be added to the distribution network data stored in the second storage layer, which helps to improve data storage efficiency and improve the query and analysis efficiency of distribution network data.
[0072] The third storage layer can be used as an auxiliary storage layer to store distribution network data that has high requirements on response speed but does not need to be updated frequently. For example, it can be used to store mid-term operation analysis data and optimized control parameter data. High-performance hard disk storage can be used to ensure that the distribution network data in this storage layer can be quickly accessed when needed.
[0073] The fourth storage layer can be used as a cold storage layer to store infrequently accessed distribution network data. For example, it can be used to store historical operation data with a long time period interval. Low-power, high-capacity storage devices can be used to reduce energy consumption and costs.
[0074] The fifth storage layer can be used as an edge storage layer to store distribution network data collected by edge devices in the distribution network. Exemplarily, it can be used to store distributed data collected by edge node sensors in the distribution network.
[0075] Of course, it can be understood that the above embodiments are only optional implementation methods of the storage layer in the data storage architecture provided in the embodiments of the present application. The actual application is not fixed to the storage layer architecture distribution shown in the above embodiments, and the present application does not impose specific restrictions on this.
[0076] Furthermore, based on the distribution network data, when determining the target storage layer from the data storage architecture, the data characteristics of the distribution network data to be stored can be determined, thereby selecting the target storage layer according to the data characteristics and data type of the distribution network data to be stored.
[0077] In practical applications, when the data access speed of the distribution network data is higher than the first preset threshold, such as real-time monitoring data and control instruction data, the target storage layer can be determined to be the first storage layer; when the data storage capacity of the distribution network data is higher than the second preset threshold, such as historical operation data and fault log data, the target storage layer can be determined to be the second storage layer; when the data access speed of the distribution network data is higher than the first preset threshold and the data update frequency is lower than or equal to the third preset threshold, such as mid-term operation analysis data and optimization control parameter data, the target storage layer can be determined to be the third storage layer; when the data access frequency of the distribution network data is lower than or equal to the fourth preset threshold, such as historical operation data with a longer time period interval, the target storage layer is determined to be the fourth storage layer; when the data source of the distribution network data is an edge device, the target storage layer of the distribution network data is determined to be the fifth storage layer. Among them, the first preset threshold, the second preset threshold, the third preset threshold, the fourth preset threshold and the fifth preset threshold can be set according to the specific usage scenario, and this application does not make specific restrictions on this.
[0078] Therefore, the data storage architecture provided in this application can design and construct multiple storage layers according to the business data type, so as to meet the requirements of different monitoring and control services of the distribution network for data access speed and storage capacity.
[0079] Furthermore, as an optional implementation, the method further includes:
[0080] The first storage layer and the third storage layer are constructed based on solid-state memory; the second storage layer and the fourth storage layer are constructed based on mechanical hard disks; and the fifth storage layer is constructed based on a distributed storage structure.
[0081] In an embodiment of the present application, the distribution network data stored in the first storage layer and the third storage layer have certain requirements for data access speed. Therefore, a solid-state memory (such as a solid-state drive SSD) can be used as the basic construction; the distribution network data stored in the second storage layer and the fourth storage layer usually have a large data storage capacity. Therefore, a high-capacity storage device, such as a mechanical hard disk HDD, can be used as the basic construction; the fifth storage layer is used to store data collected by edge devices. By adopting a distributed storage structure as the basic construction, the data transmission delay can be effectively reduced and the overall response speed of the system can be improved.
[0082] Step S300: storing the distribution network data in the target storage layer.
[0083] In the embodiments of the present application, efficient support for distribution network control services is achieved by optimizing the data storage structure and management strategy.
[0084] Exemplarily, when a fault occurs in the distribution network, fault information is collected in real time and classified into control instruction data and fault log data. The control instruction data includes control commands for isolating the distribution network fault. Further, based on the data characteristics of the control instruction data and the fault log data, the control instruction data is stored in the first storage layer serving as a cache layer, and the fault log data is stored in the second storage layer serving as the main storage layer.
[0085] Exemplarily, in the daily process of collecting load operation data of the distribution network, the collected distribution network data can be classified into monitoring data, control instruction data and optimized control parameter data. The control instruction data includes dispatching control commands for load switching. Further, according to the data characteristics of different distribution network data, the monitoring data and control instruction data are stored in the first storage layer as a cache layer, and the optimized control parameter data is stored in the third storage layer as an auxiliary storage layer.
[0086] Specifically, as an optional implementation, the method further includes:
[0087] In response to the triggered data backup instruction, the power distribution network data stored in the data storage architecture is backed up.
[0088] In an embodiment of the present application, the distribution network data storage method provided by the present application can also implement multiple data backup strategies to ensure the security of the stored distribution network data.
[0089] Exemplarily, the processor responds to the triggered data backup instruction to back up the distribution network data stored in the current data storage architecture to prevent the loss of distribution network data.
[0090] As an optional implementation, the data backup instructions include regular backup instructions and off-site backup instructions.
[0091] That is to say, the data backup strategy provided by this application includes regular backup, specifically daily, weekly and monthly regular backup of distribution network data, to ensure that an effective recovery point can be found in any case of data loss.
[0092] It is understandable that the regular backup strategy can also be combined with incremental backup and full backup, where incremental backup refers to backing up only the part of the data that has changed since the last backup (full or incremental), and full backup refers to a complete copy of the entire data set, including all files and data, regardless of whether the data has changed. In other words, incremental backup can be used for daily regular backup, and full backup can be used for weekly and monthly regular backup, so as to effectively balance backup speed and storage efficiency.
[0093] Furthermore, the data backup strategy provided by the present application also includes off-site backup, specifically, off-site backup in a remote server or cloud storage to prevent data loss due to natural disasters or hardware failures.
[0094] In actual applications, you can also regularly verify the integrity and recoverability of backup data to ensure that backup data can be effectively restored when needed, save multiple backup versions, and use identification factors such as backup date as version numbers so that you can restore to the previous version when problems occur in the latest version of the data, and reasonably manage the number of historical backups based on storage space.
[0095] Please refer to Figure 3 , Figure 3 is a schematic diagram of a process for adjusting a storage layer indicator provided in an embodiment of the present application. The distribution network data storage method provided in the present application also includes:
[0096] Obtaining the utilization rate and data response time of each storage layer;
[0097] Based on the usage rate and the data response time of each storage layer, a data adjustment strategy for each storage layer is determined and executed.
[0098] In an embodiment of the present application, the usage of each storage layer can also be monitored, which may specifically include indicators such as storage layer utilization rate, response time, read and write operation frequency, etc., so as to generate an adjustment strategy for dynamically adjusting the storage layer and optimize the performance and resource utilization of the data storage architecture.
[0099] Exemplarily, during periods of high data access frequency, the data adjustment strategy of the first storage layer serving as the cache layer is determined to be to increase capacity, so as to improve the response speed of the system and ensure efficient processing of real-time data; during periods of low load, the distribution network data with a lower access frequency is transferred from the first storage layer serving as the cache layer to the second storage layer serving as the main storage layer or the fourth storage layer serving as the cold storage layer, thereby releasing cache resources and reducing energy consumption.
[0100] Therefore, the distribution network data storage method provided in the present application can also perform dynamic adjustment and optimization after the distribution network data is stored in the target storage layer. For example, frequently accessed business data types are migrated from the cold storage layer to the cache layer, while business data types that are not accessed for a long time are migrated to the cold storage layer.
[0101] Below, in combination with a specific application implementation process, the distribution network data storage method provided in the present invention is introduced and described in detail:
[0102] In an embodiment of the present application, a distribution network data storage method is provided, which can be applied to distribution network data storage scenarios. By constructing a multi-level data storage architecture to store distribution network data with different characteristics, it helps to meet the requirements of different control services of the distribution network for data access speed and storage capacity, and effectively improves the user experience.
[0103] Specifically, real-time monitoring equipment (such as voltage, current, and power measuring instruments) can be installed to collect distribution network data of various control services in the distribution network in real time, and the data can be classified according to the type of control service. For the acquired distribution network data to be stored, the data can be classified according to its service type, thereby determining the data type and data characteristics of the distribution network data to be stored.
[0104] Exemplarily, based on the distribution network data, when determining the target storage layer from the data storage architecture, the data characteristics of the distribution network data to be stored can be determined, so that the target storage layer can be selected according to the data characteristics and data type of the distribution network data to be stored.
[0105] In actual applications, when the data access speed of distribution network data is higher than the first preset threshold, such as real-time monitoring data and control instruction data, the target storage layer can be determined to be the first storage layer; when the data storage capacity of distribution network data is higher than the second preset threshold, such as historical operation data and fault log data, the target storage layer can be determined to be the second storage layer; when the data access speed of distribution network data is higher than the first preset threshold and the data update frequency is lower than or equal to the third preset threshold, such as mid-term operation analysis data and optimization control parameter data, the target storage layer can be determined to be the third storage layer; when the data access frequency of distribution network data is lower than or equal to the fourth preset threshold, such as historical operation data with a longer time period interval, the target storage layer is determined to be the fourth storage layer; when the data source of distribution network data is edge device, the target storage layer of distribution network data is determined to be the fifth storage layer.
[0106] Therefore, after determining the target storage layer for the distribution network data, the distribution network data can be stored in the target storage layer.
[0107] Furthermore, multiple data backup strategies can be implemented to ensure the security of stored distribution network data. For example, the data backup strategy provided in the present application includes regular backup, specifically daily, weekly and monthly regular backup of distribution network data to ensure that an effective recovery point can be found in any data loss situation. It also includes off-site backup, specifically off-site backup in a remote server or cloud storage to prevent data loss due to natural disasters or hardware failure.
[0108] Furthermore, the usage of each storage layer can also be monitored, including indicators such as storage layer utilization, response time, read and write operation frequency, etc., so as to generate an adjustment strategy for dynamically adjusting the storage layer and optimize the performance and resource utilization of the data storage architecture.
[0109] See also Figure 4 , Figure 4 4 is a schematic diagram of a structure of a distribution network data storage system provided in an embodiment of the present application, which can implement the above-mentioned distribution network data storage method. The distribution network data storage system 400 includes:
[0110] The data acquisition module 410 is used to acquire the distribution network data to be stored; wherein the distribution network data includes monitoring data, historical operation data, control instruction data and fault log data;
[0111] A storage matching module 420, configured to determine a target storage layer from a data storage architecture based on the power distribution network data;
[0112] A data storage module 430, used for storing the distribution network data in the target storage layer;
[0113] The data storage architecture includes multiple storage layers; the data stored in each storage layer has different characteristics.
[0114] Specifically, as an optional implementation, the distribution network data storage system 400 further includes: a data backup module 440 and a storage adjustment module 450;
[0115] The data backup module 440 is used to back up the distribution network data stored in the data storage architecture in response to a triggered data backup instruction;
[0116] The storage adjustment module 450 is used to obtain the usage rate and data response time of each storage layer; based on the usage rate and data response time of each storage layer, determine and execute the data adjustment strategy of each storage layer.
[0117] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0118] Please refer to Figure 5 , Figure 5 : is a hardware structure diagram of an electronic device provided in an embodiment of the present application, the electronic device includes:
[0119] The processor 501 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0120] The memory 502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 502 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 502, and the processor 501 calls and executes the distribution network data storage method of the embodiment of this application;
[0121] Input / output interface 503, used to implement information input and output;
[0122] Communication interface 504, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0123] A bus 505 that transmits information between the various components of the device (e.g., the processor 501, the memory 502, the input / output interface 503, and the communication interface 504);
[0124] The processor 501 , the memory 502 , the input / output interface 503 and the communication interface 504 are connected to each other in communication within the device via a bus 505 .
[0125] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned distribution network data storage method is implemented.
[0126] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0127] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0128] The embodiments of the present application provide a distribution network data storage method, system, electronic device and storage medium, which store distribution network data with different characteristics by constructing a multi-level data storage architecture, thereby helping to meet the requirements of different control services of the distribution network for data access speed and storage capacity, and effectively improving the user experience.
[0129] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0130] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0131] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0133] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0134] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0135] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0136] The units described above 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.
[0137] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0139] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for storing data in a distribution network, characterized in that: The method comprises the following steps: Acquire distribution network data to be stored; wherein the distribution network data includes monitoring data, historical operation data, control instruction data and fault log data; Based on the power distribution network data, determining a target storage layer from a data storage architecture; Storing the power distribution network data in the target storage layer; The data storage architecture includes multiple storage layers; the data stored in each storage layer has different characteristics.
2. The method for storing data in a power distribution network according to claim 1, characterized in that: The data storage architecture includes a first storage layer, a second storage layer, a third storage layer, a fourth storage layer, and a fifth storage layer; and determining a target storage layer from the data storage architecture based on the power distribution network data includes: Determining data characteristics of the power distribution network data to be stored; wherein the data characteristics include data access speed, data storage capacity, data access frequency, and data update frequency; When the data access speed of the power distribution network data is higher than a first preset threshold, determining that the target storage layer of the power distribution network data is the first storage layer; When the data storage capacity of the power distribution network data is higher than a second preset threshold, determining that the target storage layer of the power distribution network data is the second storage layer; When the data access speed of the power distribution network data is higher than the first preset threshold and the data update frequency is lower than or equal to a third preset threshold, determining that the target storage layer of the power distribution network data is the third storage layer; When the data access frequency of the power distribution network data is lower than or equal to a fourth preset threshold, determining that the target storage layer of the power distribution network data is a fourth storage layer; When the data source of the power distribution network data is an edge device, it is determined that the target storage layer of the power distribution network data is the fifth storage layer.
3. The method for storing data in a power distribution network according to claim 2, characterized in that: The method further comprises: The first storage layer and the third storage layer are constructed based on solid-state memory; the second storage layer and the fourth storage layer are constructed based on mechanical hard disks; and the fifth storage layer is constructed based on a distributed storage structure.
4. The method for storing data in a power distribution network according to claim 1, characterized in that: The method further comprises: In response to the triggered data backup instruction, the power distribution network data stored in the data storage architecture is backed up.
5. The method for storing data in a power distribution network according to claim 4, characterized in that: The data backup instructions include regular backup instructions and off-site backup instructions.
6. The method for storing data in a power distribution network according to claim 1, characterized in that: The method further comprises: Obtaining the utilization rate and data response time of each storage layer; Based on the usage rate and the data response time of each storage layer, a data adjustment strategy for each storage layer is determined and executed.
7. A distribution network data storage system, characterized in that: The system comprises: A data acquisition module, used to acquire the distribution network data to be stored; wherein the distribution network data includes monitoring data, historical operation data, control instruction data and fault log data; A storage matching module, configured to determine a target storage layer from a data storage architecture based on the power distribution network data; A data storage module, used for storing the distribution network data in the target storage layer; The data storage architecture includes multiple storage layers; the data stored in each storage layer has different characteristics.
8. The distribution network data storage system according to claim 7, characterized in that: The system also includes: a data backup module and a storage adjustment module; The data backup module is used to back up the distribution network data stored in the data storage architecture in response to a triggered data backup instruction; The storage adjustment module is used to obtain the usage rate and data response time of each storage layer; based on the usage rate and data response time of each storage layer, determine and execute the data adjustment strategy of each storage layer.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the distribution network data storage method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the distribution network data storage method according to any one of claims 1 to 6 is implemented.