Concurrent processing and storage system, electronic device and method for power image data

By adopting Erlang's multi-core parallel processing method and distributed storage technology in the power image data storage system, the problems of low processing efficiency and high cost of the traditional power image data storage system are solved, and efficient and real-time data processing and storage are achieved to meet the needs of Meet the storage and sharing needs of large-scale data.

CN118568277BActive Publication Date: 2024-10-11STATE GRID INFORMATION & TELECOMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411011121.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-11
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

The traditional power image data storage system has low processing efficiency due to resource consumption and large data volume caused by thread switching at the operating system layer, which affects real-time monitoring and data analysis. Moreover, traditional local storage cannot meet the needs of large-scale data storage and real-time sharing. The long-term cost of cloud storage is higher.

Method used

A multi-core parallel processing method based on Erlang is used to establish a heartbeat connection node with the status monitoring device, task scheduling is performed through the concurrent communication base, and the protocol processing plug-in is used to parse the image message, convert it into a standardized format, and then convert it into a data exchange format through the message queue module , Utilize the stream processing multi-task parallel processing framework for data stream processing, and store it through distributed object storage and metadata structured storage systems.

Benefits of technology

It significantly improves the processing speed and real-time performance of power image data, enhances the scalability and stability of the system, meets the continuous growth of data processing capabilities, and reduces storage costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568277B_ABST
    Figure CN118568277B_ABST
Patent Text Reader

Abstract

The present application provides a concurrent processing and storage system, electronic device and method for power image data. The concurrent communication base can establish a heartbeat connection node with multiple status monitoring devices based on Erlang's multi-core parallel processing method. The concurrent communication base can use an independent process to perform task scheduling processing on each power image data; then use the protocol processing plug-in to perform protocol parsing on the power image data to obtain image messages, and convert the image messages into a standardized format; then obtain image messages in data exchange format after data exchange format processing by the message queue module; then decompose the image messages into multiple image tasks through the stream processing multi-task parallel processing framework, and perform parallel data stream processing on each image task to obtain image file data and image metadata, use the distributed object storage system to distribute the image file data, and use the metadata structured storage system to store the image metadata.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a concurrent processing and storage system, electronic device and method for power image data. Background Art

[0002] The power industry currently uses a variety of storage technologies for power image storage, including local storage, cloud storage and distributed storage. Local storage technologies include disk arrays, network attached storage and storage area networks. Cloud storage technologies include public cloud storage, private cloud storage and hybrid cloud storage.

[0003] The power image uses the traditional internal thread pool for concurrent storage. The thread switching at the operating system layer consumes a lot of system resources, the number of concurrent accesses is limited, and the amount of data generated by the power image equipment is usually large, which leads to low efficiency in image message processing and affects the efficiency of real-time monitoring and data analysis. To achieve high-performance concurrent services, it can only be achieved by increasing hardware resources, which increases the system service cost.

[0004] Power image storage currently uses local storage or cloud storage. Traditional local storage solutions are difficult to meet the needs of large-scale data storage and real-time sharing. Although cloud storage is scalable, the long-term cost may be high, and as the amount of image data increases, the storage cost may become very high. Summary of the invention

[0005] In view of this, the purpose of the present application is to propose a concurrent processing and storage system, electronic device and method for power image data to solve or partially solve the above technical problems.

[0006] Based on the above purpose, the present application provides a concurrent processing and storage system for power image data, including:

[0007] Condition monitoring device to obtain power image data;

[0008] Concurrent protocol access components, including: concurrent communication base and protocol processing plug-in;

[0009] The concurrent communication base establishes a heartbeat connection node with multiple status monitoring devices based on Erlang's multi-core parallel processing method, and performs task scheduling processing on the power image data sent by each status monitoring device using an independent process;

[0010] The protocol processing plug-in receives the power image data corresponding to the task scheduling of the concurrent communication base, performs protocol parsing on the received power image data, parses out the image message, and converts the image message into a standardized format;

[0011] A message queue module receives an image message in a standardized format, converts the image message in the standardized format into a data exchange format, and obtains an image message in the data exchange format;

[0012] Storage system, including: stream processing multi-task parallel processing framework, distributed object storage system and metadata structured storage system;

[0013] The stream processing multi-task parallel processing framework receives an image message in a data exchange format, decomposes the image message in the data exchange format into tasks to obtain a plurality of image tasks, and performs data stream processing on each image task to obtain image file data and image metadata;

[0014] The distributed object storage system receives the image file data and performs distributed storage on the image file data;

[0015] The metadata structured storage system receives the image metadata and performs structured storage on the image metadata.

[0016] Based on the same inventive concept, the present disclosure also provides an electronic device, including the concurrent processing and storage system for power image data as described above.

[0017] Based on the same inventive concept, the present disclosure also provides a method for concurrently processing and storing power image data, including:

[0018] Acquiring power image data using condition monitoring devices;

[0019] Using the multi-core parallel processing method based on Erlang of the concurrent communication base, a heartbeat connection node is established with multiple status monitoring devices, and the power image data sent by each status monitoring device is processed by an independent process for task scheduling;

[0020] Performing protocol parsing on the received power image data using the protocol processing plug-in to parse out the image message, and converting the image message into a standardized format;

[0021] receiving an image message in a standardized format through a message queue module, converting the image message in the standardized format into a data exchange format, and obtaining an image message in a data exchange format;

[0022] Using a stream processing multi-task parallel processing framework, receiving an image message in a data exchange format, performing task decomposition on the image message in the data exchange format to obtain a plurality of image tasks, and performing data stream processing on each image task to obtain image file data and image metadata;

[0023] Using a distributed object storage system to perform distributed storage of image file data;

[0024] The metadata structured storage system is used to store image metadata in a structured manner.

[0025] From the above, it can be seen that the concurrent processing and storage system, electronic device and method of power image data provided by the present application, the concurrent communication base can establish a heartbeat connection node with multiple status monitoring devices based on Erlang's multi-core parallel processing method, so that the concurrent communication base can use an independent process to perform task scheduling processing on the power image data sent by each status monitoring device; then use the protocol processing plug-in to perform protocol parsing on the power image data, parse out the image message, and convert the image message into a standardized format; then after data exchange format processing by the message queue module, an image message in a data exchange format that better meets the format requirements is obtained; and then through stream processing multi-task parallel processing The processing framework decomposes the image message into multiple image tasks, so that each image task can be processed in parallel, which can improve the processing speed. After obtaining the image file data and image metadata, the distributed object storage system is used to distribute the image file data, and the metadata structured storage system is used to store the image metadata. This realizes real-time data calculation and optimization of data storage and retrieval mechanisms for power image data, ensuring that power image data can be stored and shared quickly and reliably, which can significantly improve the processing speed and real-time performance of power image data, and can also enhance the scalability and stability of the system to meet the system's continuous growth in data processing capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 A schematic diagram of the structure of a concurrent processing and storage system for power image data according to an embodiment of the present application;

[0028] Figure 2 A schematic diagram of the processing process of the concurrent protocol access component of an embodiment of the present application;

[0029] Figure 3 A schematic diagram of the processing process of the storage system according to an embodiment of the present application;

[0030] Figure 4 A flowchart of a method for concurrently processing and storing power image data according to an embodiment of the present application;

[0031] Figure 5A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0033] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0034] The traditional power image protocol communication access method generally includes a device communication layer, an intermediate layer, a business processing layer, and a message middleware. The device communication layer uses the NIO framework Netty as a server, and is equipped with several protocol services for receiving data requests of different protocols for decryption, conversion into standard message bodies, and device authority verification; the intermediate layer is used to convert the standard message body into unified business data according to the business type and dynamically distribute the routing rules; the business processing layer is equipped with several business modules, which are respectively used to process the corresponding business data; the message middleware is used for data interaction between the device communication layer, the intermediate layer, and the business processing layer. It uses the Java framework as a server, and uses the traditional high-concurrency system to adopt the thread pool in the operating system to implement the Internet of Things terminal access technology of the Socket concurrent communication mechanism. Due to the large amount of system resource consumption caused by the thread switching of the operating system layer, the number of concurrent accesses is limited, and the amount of data generated by the power image equipment is usually large, which will lead to low efficiency in image message processing, affecting the efficiency of real-time monitoring and data analysis. To achieve high-performance concurrent services, it can only be achieved by increasing hardware resources, which increases the system service cost.

[0035] The existing power image data processing system has key technical problems such as low efficiency in processing messages generated by massive devices, insufficient real-time computing capabilities, and distributed storage performance bottlenecks. In power systems, with the widespread deployment of status monitoring equipment and sensors, the amount of image data generated has increased dramatically, placing higher demands on the concurrent processing capabilities and real-time computing performance of data processing systems. Traditional data processing methods are often unable to effectively cope with the challenges of high concurrency and large data volumes, resulting in data processing delays and affecting the real-time performance of power grid monitoring and fault diagnosis.

[0036] Based on the above situation, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0037] The embodiment of the present application proposes a concurrent processing and storage system for power image data, such as Figure 1 As shown, including:

[0038] Condition monitoring device to obtain power image data;

[0039] Concurrent protocol access components (e.g. concurrent I1 protocol (general technical specifications for transmission line condition monitoring devices) access components), including: concurrent communication base and protocol processing plug-in;

[0040] The concurrent communication base establishes a heartbeat connection node with multiple status monitoring devices based on the multi-core parallel processing method of Erlang (a general-purpose concurrent programming language), and performs task scheduling processing on the power image data sent by each status monitoring device using an independent process;

[0041] The protocol processing plug-in receives the power image data corresponding to the task scheduling of the concurrent communication base, performs protocol parsing on the received power image data, parses the image message, and converts the image message into a standardized format;

[0042] A message queue module receives an image message in a standardized format, converts the image message in the standardized format into a data exchange format, and obtains an image message in the data exchange format;

[0043] Storage system, including: stream processing multi-task parallel processing framework, distributed object storage system and metadata structured storage system;

[0044] The stream processing multi-task parallel processing framework receives an image message in a data exchange format, decomposes the image message in the data exchange format into tasks to obtain a plurality of image tasks, and performs data stream processing on each image task to obtain image file data and image metadata;

[0045] The distributed object storage system receives the image file data and performs distributed storage on the image file data;

[0046] The metadata structured storage system receives the image metadata and performs structured storage on the image metadata.

[0047] In the above embodiment, the concurrent I1 protocol access component is oriented to the needs of massive terminal access and data collection in the power Internet of Things, providing a high-performance and highly reliable communication link for real-time communication between the platform and the terminal, and has the capabilities of sea-connected device access, millions of concurrent connections, I1 protocol adaptation, asynchronous parallel processing of messages and flexible data forwarding. I1 protocol access component: includes a high-concurrency communication base based on Erlang parallel access technology and an I1 protocol processing plug-in based on user space lightweight process multi-task parallel control technology.

[0048] The technology of the concurrent I1 protocol access component is used to achieve high-concurrency collection, parsing and assembly of batch power image data transmitted remotely from the status monitoring device. Compared with similar technologies in traditional power industry, the concurrent I1 protocol access component has low resource usage during operation, and can achieve high-concurrency processing of power image data under low-configuration resources and efficiently forward the processed stream data to the message queue after standardization of the data model, thus preparing for high-performance storage and sharing of subsequent power image data.

[0049] Among them, Figure 2 As shown in the figure, the specific implementation process of Erlang's multi-core parallel connection in the concurrent communication base is to build an OTP (Open Telecom Platform, an open source Erlang distribution and an application server written in Erlang) middleware operating environment for large-scale distributed fault-tolerant applications, perform process management based on OTP, and provide components such as process management and process scheduling, inter-process communication, memory management, and message manager. The concurrent communication base can establish heartbeat connection nodes with multiple status monitoring devices based on Erlang's multi-core parallel processing method, and use independent processes to perform task scheduling processing on the power image data sent by each status monitoring device.

[0050] Among them, process management and scheduling are used to allocate and schedule processes; inter-process communication is used to distribute and process communications between processes; memory management is used to manage storage and running space; and the message manager is used to manage messages of power image data processed by each process.

[0051] Then the protocol processing plug-in can perform protocol analysis on the power image data and parse out the image message. For example, parse out the hexadecimal image message, the hexadecimal image message format includes: message header 5AA5, message length, status monitoring device ID (17-bit encoding), frame type, message type, frame sequence number, channel number, preset position number, total number of packets, sub-packet number, data area, check bit, and message tail (96H).

[0052] Through the above scheme, concurrent processing uses Erlang concurrency technology. Erlang is a programming language that is particularly suitable for building high-concurrency, distributed and fault-tolerant systems. Its lightweight process and message passing mechanism can effectively support large-scale parallel processing. The present invention uses these characteristics of Erlang to design an efficient data access and processing framework that can process a large number of concurrent messages at the same time.

[0053] In addition, the present invention provides a high-performance distributed storage solution, which realizes real-time data calculation and optimized data storage and retrieval mechanism for power image data through the effective combination of real-time computing framework and distributed object storage technology, ensuring that power image data can be stored and shared quickly and reliably. This system can not only significantly improve the processing speed and real-time performance of power image data, but also enhance the scalability and stability of the system, meeting the continuous growth of the power system's ability to process power image data.

[0054] In some embodiments, the concurrent communications base is configured to:

[0055] An independent process is allocated to the status monitoring device corresponding to each heartbeat connection node, and the independent process is used to perform task scheduling processing on the power image data sent by the status monitoring device according to a predetermined period.

[0056] When implementing it, Figure 2 As shown, the concurrent communication base uses Erlang's lightweight process and message passing mechanism. The concurrent communication base manages processes through the OTP operating environment, can efficiently run millions of concurrent process connections on multi-core processors, establish heartbeat connection nodes with multiple status monitoring devices, and use independent processes to perform task scheduling for the power image data sent by each status monitoring device. After the heartbeat connection node is established, the status monitoring device sends the detection data, i.e., remote power image data, according to a predetermined period.

[0057] In some embodiments, the concurrent communications base is further configured to:

[0058] When it is determined to establish a new heartbeat connection node, the usable system kernel is detected, and a usable target system kernel is scheduled for the new heartbeat connection node. A new process is created based on the target system kernel to perform task scheduling processing on the new power image data sent from the status monitoring device corresponding to the new heartbeat connection node.

[0059] In specific implementation, during the operation of the concurrent communication base, the connection request corresponding to the power image data sent by each status monitoring device is processed by an independent process. When a new status monitoring device sends a connection request, a new heartbeat connection node will be established. The concurrent communication base schedules a usable target system kernel for the new heartbeat connection node and quickly creates a new process to handle the new connection request without affecting other running processes.

[0060] In specific implementation, a scheduler is automatically assigned to each CPU system core in the concurrent communication base. The scheduler uses a time slice rotation method to allocate CPU system core time to each process to ensure that all processes can obtain execution time fairly. When a new connection heartbeat node is started, the concurrent communication base will automatically detect the number of all CPU cores available in the CPU system and run a scheduler on each CPU core to achieve automatic multi-core utilization.

[0061] The implementation process of processing data by a multi-task control concurrent mechanism based on a message mechanism is that when the concurrent communication base processes the power image data corresponding to TCP in parallel through Socket, the reception, processing and response of the TCP power image data are all executed in parallel on multiple cores.

[0062] In some embodiments, the protocol processing plug-in is configured to:

[0063] Determine the header data area of ​​the power image data, determine the image ID according to the message of the first predetermined number of bytes before the header data area, and determine the image offset according to the message of the second predetermined number of bytes after the header data area;

[0064] Determine an image message of an image data area of ​​the power image data;

[0065] According to the image message format, sub-packets of the same image message corresponding to each same image ID are reassembled to obtain a message assembly, and the image message in the message assembly is converted into a standardized format.

[0066] When implementing it, Figure 2As shown, the I1 codec in the protocol processing plug-in parses the power image data and parses out the image message (for example, hexadecimal image message). Each power image data message includes: message header 5AA5, message length, status monitoring device ID (17-bit encoding), frame type, message type, frame sequence number, channel number, preset position number, total number of packets, sub-packet number, data area and check bit, and message tail (96H).

[0067] During the specific implementation, the header data area is determined. The first 8 bytes of the data area are the image header data area, which is used for breakpoint resumption when TCP transmission is interrupted. The transmission starts from the interrupted message sequence number, and the image data area is after 8 bytes. The first 4 bytes of the image header are the image ID, which is incremented each time it is transmitted. It is necessary to ensure that each image ID is not repeated. The four bytes after the image header are the offset of the image header in the image data. After receiving the power image data, the sub-packets of the same image message under each same image ID are reassembled according to the message format of the power image data to obtain the message assembly. Because each TCP connection request is handled by a different Erlang process, all connection requests can be processed in parallel, making full use of the advantages of CPU multi-core.

[0068] like Figure 2 As shown, after the message is assembled, the image message in the message assembly is converted into a standardized format through the data model mapping mechanism, and the image message in the standardized format is forwarded to the monitoring process for message monitoring through the high concurrency mode, and the image message in the standardized format is sent to the message queue module. The image message in the standardized format is converted into the json format corresponding to the image message in the standardized format.

[0069] The message queue module receives an image message in a standardized format, converts the image message in the standardized format into a data exchange format, and obtains an image message in the data exchange format.

[0070] In some embodiments, Figure 3 As shown, the stream processing multi-task parallel processing framework includes: a job manager and multiple task managers;

[0071] The job manager performs task decomposition on the received image message in the data exchange format into a plurality of image tasks, and assigns each image task to a corresponding task manager;

[0072] After receiving the image task, the task manager reads the image file data in the image task in real time and determines the image metadata of the image task, outputs the image file data to the distributed object storage system, and outputs the image metadata to the metadata structured storage system.

[0073] In specific implementation, the stream processing multi-task parallel processing framework in the storage system follows the master-slave architecture, which mainly includes two main daemons, a job manager of the master node daemon process and a task manager of multiple slave node daemons.

[0074] The job manager receives and executes applications submitted by the client and is responsible for scheduling and coordinating all tasks of image messages in data exchange format. The job manager decomposes the image messages in data exchange format into multiple image tasks and assigns these image tasks to the task manager for execution.

[0075] The task manager mainly provides computing resources, which are encapsulated in various task slots. The number of task slots owned by the task manager determines the number of tasks that can be executed. Each task slot represents a fixed resource, and the number of task slots represents the number of tasks that the task manager can execute in parallel.

[0076] In some embodiments, the task manager includes a plurality of task slots, each task slot includes a data source node, a data processing node, and a data output node;

[0077] The task manager distributes the image tasks to each task slot;

[0078] Using the data source node in the task slot, the data source corresponding to the distributed image task is read in real time to determine the image file data of the distributed image task;

[0079] Using the data processing nodes in the task slot, real-time calculation is performed on the distributed image task, the image ID and timestamp of the distributed image task are determined, and the image ID and timestamp of the image task are added to the image metadata;

[0080] The image file data is output to the distributed object storage system by using the data output node in the task slot, and the image metadata is output to the metadata structured storage system.

[0081] During specific implementation, the data source is responsible for real-time batch reading of image file data of image tasks.

[0082] The data processing node is responsible for processing the image file data, that is, real-time calculation, including using the image ID (17 bits) and timestamp as the storage path of the image file data to ensure uniqueness and extract metadata information of the image file data and prepare various operations for the next step of storage. These operations are called operators.

[0083] The output node is responsible for outputting the storage path and metadata information of the image file data calculated by the data processing node in the previous step. The data model of the task slot framework is based on flow and transformation, with one or more data source nodes as input and terminated at one or more output nodes. The data stream of the image file data is processed through different transformation operators, where each operation subtask is independent of another operation subtask, and the parallelism of each operator can be defined. The number of operation subtasks is determined by the concurrency of the operator.

[0084] In some embodiments, the distributed object storage system includes multiple storage nodes configured to:

[0085] After receiving the image file data, the image file data is distributed in at least one storage node for storage using the S3 protocol, wherein each storage node is an independent object storage.

[0086] In specific implementation, a distributed object storage system is used to store and manage large-scale image file data. The distributed object storage system is used to store the image file data obtained after the power image data monitored by the status monitoring device passes through the process of the above embodiment. The specific implementation process is that the distributed object storage system supports S3 protocol and distributed fault-tolerant storage, and is composed of multiple storage nodes, each storage node is an independent object storage service, and the image file data can be automatically synchronized and replicated between storage nodes to achieve high availability and fault tolerance.

[0087] In some embodiments, the metadata structured storage system is configured to:

[0088] receiving the image metadata, and using the image ID and timestamp in the image metadata as the image name of the image file data;

[0089] A data set is constructed based on the image name, and the storage address and timestamp of the image file data corresponding to the same image ID in the image metadata are stored in the data set.

[0090] In specific implementation, while the above-mentioned distributed object storage system stores image file data, the image metadata is synchronously sent to the metadata structured storage system. For image metadata such as image ID, image name, image size (KB), storage path of the image in the distributed object storage system, and image timestamp information, a structured database (for example, a MySQL database) is used as a storage carrier.

[0091] The structured database uses image ID and timestamp as image names to ensure uniqueness and organize data. When storing image metadata, one image ID index corresponds to a data set of image file data, that is, the image file data corresponding to the power image data monitored by a condition monitoring device is a data set. Different image file data are named with timestamps. When searching, first locate the image ID index mapping, and then locate the image file data with a specific timestamp.

[0092] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0093] The concurrent processing and storage system of the power image data in the embodiment of the present application can be an integrated electronic device, or it can be an electronic device composed of various electrical components.

[0094] Based on the same inventive concept, corresponding to the concurrent processing and storage system of power image data in any of the above embodiments, the present application also provides a concurrent processing and storage method of power image data, such as Figure 4 As shown, including:

[0095] Step 201: Acquire power image data using a status monitoring device.

[0096] Step 202, using the multi-core parallel processing method based on Erlang of the concurrent communication base, a heartbeat connection node is established with multiple status monitoring devices, and the power image data sent from each status monitoring device is processed by an independent process for task scheduling.

[0097] Step 203: Use the protocol processing plug-in to perform protocol analysis on the received power image data, parse out the image message, and convert the image message into a standardized format.

[0098] Step 204: receiving the image message in the standardized format through the message queue module, converting the image message in the standardized format into a data exchange format, and obtaining the image message in the data exchange format.

[0099] In specific implementation, the data source of power image data is obtained in real time, and the processed image message data stream in a standardized format is forwarded to the message queue module through the I1 protocol access component. The real-time stream computing framework obtains the image message in real time from the topic of the message queue module.

[0100] Step 205, using a stream processing multi-task parallel processing framework, receiving an image message in a data exchange format, performing task decomposition on the image message in the data exchange format to obtain a plurality of image tasks, and performing data stream processing on each image task to obtain image file data and image metadata.

[0101] In specific implementation, the real-time processing task of the image message in the data exchange format is submitted to the job manager. The job manager distributes the image message task to the task manager according to the concurrency and enters the specific task slot. The data source management in the task slot pre-processes the image message. The image data processing function of the conversion operator is used to perform tasks such as real-time image data stream processing and analysis.

[0102] Step 206: Distributed storage of the image file data is performed using a distributed object storage system.

[0103] Step 207: Use the metadata structured storage system to perform structured storage on the image metadata.

[0104] The image file data is stored in the distributed object storage system through the real-time computing framework. The distributed object storage system uses an S3 compatible API, so the real-time computing framework can use the S3 connector to integrate and communicate with it, and store the image file data as an object in the system, but its image metadata (such as file name, size, creation time, and any other image metadata) needs to be stored in the metadata structured storage system. This makes it easy to index and query the image file data. The real-time computing framework is responsible for processing the image metadata and writing it to the structured database in the metadata structured storage system.

[0105] Both the stream processing multi-task parallel processing framework and the distributed object storage system provide fault tolerance mechanisms and horizontal scalability. When the workload grows, the system can be easily expanded by adding more nodes. It also ensures the consistency of data processing in the event of a failure. The stream processing multi-task parallel processing framework can also be optimized for performance: data processing performance can be improved by adjusting the job's parallelism, memory allocation, and other configurations. Performance optimization can also be performed for the distributed object storage system. Under the condition of limited hardware resources, the high availability of data storage and reading can be ensured by configuring the distributed mode.

[0106] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0107] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0108] The method of the above embodiment is used to execute the concurrent processing and storage system of the corresponding power image data in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0109] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any of the above embodiments when executing the program.

[0110] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0111] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an 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 this specification.

[0112] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0113] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0114] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0115] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).

[0116] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0117] The electronic device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0118] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in any of the above embodiments.

[0119] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0120] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0121] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0122] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device may be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0123] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.

[0124] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A concurrent processing and storage system for power image data, characterized in that: include: Condition monitoring device to obtain power image data; Concurrent protocol access components, including: concurrent communication base and protocol processing plug-in; The concurrent communication base establishes a heartbeat connection node with multiple status monitoring devices based on Erlang's multi-core parallel processing method, and performs task scheduling processing on the power image data sent by each status monitoring device using an independent process; The protocol processing plug-in receives the power image data corresponding to the task scheduling of the concurrent communication base, performs protocol parsing on the received power image data, parses the image message, and converts the image message into a standardized format; A message queue module receives an image message in a standardized format, converts the image message in the standardized format into a data exchange format, and obtains an image message in the data exchange format; Storage system, including: stream processing multi-task parallel processing framework, distributed object storage system and metadata structured storage system; The stream processing multi-task parallel processing framework receives an image message in a data exchange format, decomposes the image message in the data exchange format into tasks to obtain a plurality of image tasks, and performs data stream processing on each image task to obtain image file data and image metadata; The distributed object storage system receives the image file data and performs distributed storage on the image file data; The metadata structured storage system receives the image metadata and performs structured storage on the image metadata.

2. The concurrent processing and storage system for power image data according to claim 1, characterized in that: The concurrent communication base is configured to: An independent process is allocated to the status monitoring device corresponding to each heartbeat connection node, and the independent process is used to perform task scheduling processing on the power image data sent by the status monitoring device according to a predetermined period.

3. The concurrent processing and storage system for power image data according to claim 2, characterized in that: The concurrent communication base is further configured to: When it is determined to establish a new heartbeat connection node, the usable system kernel is detected, and a usable target system kernel is scheduled for the new heartbeat connection node. A new process is created based on the target system kernel to perform task scheduling processing on the new power image data sent from the status monitoring device corresponding to the new heartbeat connection node.

4. The concurrent processing and storage system for power image data according to claim 1, characterized in that: The protocol processing plug-in is configured as follows: Determine the header data area of ​​the power image data, determine the image ID according to the message of the first predetermined number of bytes before the header data area, and determine the image offset according to the message of the second predetermined number of bytes after the header data area; Determine an image message of an image data area of ​​the power image data; According to the image message format, sub-packets of the same image message corresponding to each same image ID are reassembled to obtain a message assembly, and the image message in the message assembly is converted into a standardized format.

5. The concurrent processing and storage system for power image data according to claim 1, characterized in that: The stream processing multi-task parallel processing framework includes: a job manager and multiple task managers; The job manager performs task decomposition on the received image message in the data exchange format into a plurality of image tasks, and assigns each image task to a corresponding task manager; After receiving the image task, the task manager reads the image file data in the image task in real time and determines the image metadata of the image task, outputs the image file data to the distributed object storage system, and outputs the image metadata to the metadata structured storage system.

6. The concurrent processing and storage system for power image data according to claim 5, characterized in that: The task manager includes a plurality of task slots, each of which includes a data source node, a data processing node and a data output node; The task manager distributes the image tasks to each task slot; Using the data source node in the task slot, the data source corresponding to the distributed image task is read in real time to determine the image file data of the distributed image task; Using the data processing nodes in the task slot, real-time calculation is performed on the distributed image task, the image ID and timestamp of the distributed image task are determined, and the image ID and timestamp of the image task are added to the image metadata; The image file data is output to the distributed object storage system by using the data output node in the task slot, and the image metadata is output to the metadata structured storage system.

7. The concurrent processing and storage system for power image data according to claim 1, characterized in that: The distributed object storage system includes multiple storage nodes, which are configured as follows: After receiving the image file data, the image file data is distributed in at least one storage node for storage using the S3 protocol, wherein each storage node is an independent object storage.

8. The concurrent processing and storage system for power image data according to claim 1, characterized in that: The metadata structured storage system is configured as follows: receiving the image metadata, and using the image ID and timestamp in the image metadata as the image name of the image file data; A data set is constructed based on the image name, and the storage address and timestamp of the image file data corresponding to the same image ID in the image metadata are stored in the data set.

9. An electronic device, characterized in that: A concurrent processing and storage system for power image data comprising any one of claims 1 to 8.

10. A method for concurrent processing and storage of power image data, characterized in that: include: Acquiring power image data using condition monitoring devices; Using the multi-core parallel processing method based on Erlang of the concurrent communication base, a heartbeat connection node is established with multiple status monitoring devices, and the power image data sent by each status monitoring device is processed by an independent process for task scheduling; Performing protocol parsing on the received power image data using the protocol processing plug-in to parse out the image message, and converting the image message into a standardized format; receiving an image message in a standardized format through a message queue module, converting the image message in the standardized format into a data exchange format, and obtaining an image message in a data exchange format; Using a stream processing multi-task parallel processing framework, receiving an image message in a data exchange format, performing task decomposition on the image message in the data exchange format to obtain a plurality of image tasks, and performing data stream processing on each image task to obtain image file data and image metadata; Using a distributed object storage system to perform distributed storage of image file data; The metadata structured storage system is used to store image metadata in a structured manner.