Scheduling task processing method, system, device and medium for blockchain platform

By analyzing the resource requirements of scheduling tasks and classifying task types, and selecting appropriate processing nodes to handle scheduling tasks, the problems of data security risks in traditional power systems and low efficiency of blockchain platforms are solved, and efficient and safe data processing is achieved.

CN114896032BActive Publication Date: 2024-09-17CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210327149.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-09-17
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

The traditional power system dispatching task processing method has data security risks, and the consensus overhead of the blockchain platform leads to low data processing efficiency.

Method used

By analyzing the memory, hard disk and CPU occupancy and transmission resource requirements of scheduling tasks, the task types are divided, and appropriate processing nodes are selected within the blockchain platform for processing according to the types to reduce consensus overhead.

Benefits of technology

It improves the data processing efficiency and capabilities of the blockchain platform for scheduling tasks, reduces consensus overhead, and enhances the security and reliability of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114896032B
    Figure CN114896032B
Patent Text Reader

Abstract

The present invention belongs to the field of electric power automation, and discloses a method, system, device and medium for processing scheduling tasks of a blockchain platform, including: obtaining the resource requirements of the scheduling task for memory, hard disk and CPU and the transmission resource requirements of the scheduling task for memory, hard disk and CPU; according to the preset weights, respectively superimposing the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU, and obtaining the processing resource requirements of the scheduling task for memory, hard disk and CPU; according to the processing resource requirements of the scheduling task for memory, hard disk and CPU, determining the task type of the scheduling task, and determining the processing node of the scheduling task in the blockchain platform, and processing the scheduling task through the processing node. The type division of scheduling tasks is realized, and different consensus processing methods are adopted for different types of scheduling tasks, which reduces the consensus overhead of the blockchain platform and effectively improves the data processing efficiency and capability of the blockchain platform for scheduling tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electric power automation and relates to a scheduling task processing method, system, equipment and medium of a blockchain platform. Background Art

[0002] During the construction of new power systems, due to the access of multiple entities such as microgrids, distributed power generation units and new energy power systems, as well as the improvement of the intelligence of new power systems, the information data in the dispatching field presents the characteristics of scattered data sources, large data volume and high data transmission frequency, which places higher requirements on the security and reliability of data transmission and processing of the dispatching system. Traditional dispatching task processing methods mostly use centralized processing, with a single data processing device responsible for task execution and storing the results in the core database. This centralized processing method poses a hidden danger to data security. Once the data processing device or database is attacked, it will cause data tampering or leakage, which greatly threatens the safe production of the power system.

[0003] At present, the decentralized execution and distributed storage technical features of the blockchain platform can greatly improve the anti-risk and anti-attack capabilities of scheduling data, and strengthen the secure processing and reliable transmission of scheduling data. However, the consensus overhead of the blockchain leads to excessively high time costs for data processing, which greatly restricts data processing efficiency. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a scheduling task processing method, system, device and medium for a blockchain platform.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect of the present invention, a scheduling task processing method of a blockchain platform includes:

[0007] Obtain and parse the scheduling task to obtain the resource requirements of the scheduling task on memory, hard disk and CPU, as well as the transmission resource requirements of the scheduling task on memory, hard disk and CPU;

[0008] According to the preset weights, the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU are respectively added to obtain the processing resource requirements of the scheduling task for memory, hard disk and CPU;

[0009] According to the processing resource requirements of the scheduling task for memory, hard disk and CPU, the task type of the scheduling task is determined, and according to the task type of the scheduling task, the processing node of the scheduling task in the blockchain platform is determined, and the scheduling task is processed by the processing node.

[0010] Optionally, the obtaining and parsing of the scheduling task to obtain the resource requirements of the scheduling task on the memory, hard disk and CPU and the transmission resource requirements of the scheduling task on the memory, hard disk and CPU include:

[0011] Obtain and parse the scheduling task to obtain the resource requirements of the scheduling task for memory, hard disk and CPU, as well as the proportion of each transmission protocol used by the scheduling task; according to the proportion of each transmission protocol used by the scheduling task and the preset transmission resource occupancy value of each transmission protocol, obtain the transmission resource requirements of the scheduling task for memory, hard disk and CPU.

[0012] Optionally, the transmission protocol includes HTTP protocol, RTP protocol and FTP protocol; the transmission resource requirements of the scheduling task for memory, hard disk and CPU obtained according to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol include:

[0013] According to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol, the transmission resource requirements of the scheduling task for memory, hard disk and CPU are obtained through the following formula:

[0014] M p =θ1*M http +θ2*M ftp +θ3*M rtp

[0015] C p =θ1*C http +θ2*C ftp +θ3*C rtp

[0016] D p =θ1*D http +θ2*D ftp +θ3*D rtp

[0017]

[0018] Among them, M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource demand of the scheduling task on the hard disk; θ1 is the proportion of the scheduling task content transmitted by the HTTP protocol in the total scheduling task content, θ2 is the proportion of the scheduling task content transmitted by the FTP protocol in the total scheduling task content, and θ3 is the proportion of the scheduling task content transmitted by the RTP protocol in the total scheduling task content;

[0019] M http =γ,C http=δ,D http =ε

[0020] C ftp =δ,

[0021] M rtp =2·γ,C rtp =4·δ,D rtp =ε

[0022] Among them, M http is the memory transmission resource occupancy value of the HTTP protocol, M ftp is the memory transfer resource usage value of the FTP protocol, M rtp is the memory transmission resource occupancy value of the RTP protocol; C http is the CPU transmission resource usage value of HTTP protocol, C ftp is the CPU resource usage of FTP protocol, C rtp It is the CPU transmission resource occupancy value of the RTP protocol; D http is the disk transfer resource usage value of HTTP protocol, D ftp D is the hard disk transfer resource usage value of the FTP protocol. rtp is the hard disk transmission resource occupancy value of the RTP protocol; γ, δ, and ε are all preset configuration parameters.

[0023] Optionally, the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU are respectively superimposed according to preset weights to obtain the processing resource requirements of the scheduling task for memory, hard disk and CPU, including:

[0024] By superimposing the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU, the processing resource requirements of the scheduling task for memory, hard disk and CPU are obtained:

[0025] M=α·M r +β·M p

[0026] C=μ·C r +ρ·C p

[0027]

[0028] Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, C is the processing resource requirement of the scheduling task for the CPU, and M r To schedule the memory resource requirements of tasks, C r To schedule the CPU resource requirements of the task, D rThe resource requirements of the scheduling task on the hard disk; M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource requirement of the hard disk for the scheduling task; α, β, μ, ρ, and ω is the preset weight parameter, and α+β=1, μ+ρ=1,

[0029] Optionally, determining the task type of the scheduling task according to the processing resource requirements of the scheduling task on the memory, hard disk and CPU includes:

[0030] When C≥max(M, D) or M<C≤D, the task type of the scheduled task is a computing task;

[0031] When C<min(M, D) or D<C≤M, the task type of the scheduled task is a text task;

[0032] Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, and C is the processing resource requirement of the scheduling task for the CPU.

[0033] Optionally, determining a processing node for the scheduling task in the blockchain platform according to the task type of the scheduling task, and processing the scheduling task through the processing node includes:

[0034] When the task type of the scheduling task is a computing task, the scheduling task is verified, calculated and consensus-elected through the computing nodes in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform;

[0035] When the task type of the scheduling task is a text-based task, verification, text processing and consensus election are performed through each broadcast node in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform.

[0036] In a second aspect of the present invention, a scheduling task processing system for a blockchain platform includes:

[0037] The resource demand acquisition module is used to acquire and analyze the scheduling tasks to obtain the resource requirements of the scheduling tasks for memory, hard disk and CPU, as well as the transmission resource requirements of the scheduling tasks for memory, hard disk and CPU;

[0038] The demand superposition module is used to superimpose the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU according to the preset weights, and obtain the processing resource requirements of the scheduling task for memory, hard disk and CPU;

[0039] The task processing module is used to determine the task type of the scheduled task according to the processing resource requirements of the scheduled task for memory, hard disk and CPU, and determine the processing node of the scheduled task in the blockchain platform according to the task type of the scheduled task, and process the scheduled task through the processing node.

[0040] Optionally, the resource requirement acquisition module is specifically used to: obtain and analyze the scheduling task to obtain the resource requirements of the scheduling task for memory, hard disk and CPU and the proportion of each transmission protocol adopted by the scheduling task; obtain the transmission resource requirements of the scheduling task for memory, hard disk and CPU according to the proportion of each transmission protocol adopted by the scheduling task and the transmission resource occupancy value preset by each transmission protocol.

[0041] Optionally, the task processing module is specifically used to:

[0042] When C≥max(M, D) or M<C≤D, the task type of the scheduled task is a computing task;

[0043] When C<min(M, D) or D<C≤M, the task type of the scheduled task is a text task;

[0044] Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, and C is the processing resource requirement of the scheduling task for the CPU;

[0045] When the task type of the scheduling task is a computing task, the scheduling task is verified, calculated and consensus-elected through the computing nodes in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform;

[0046] When the task type of the scheduling task is a text-based task, verification, text processing and consensus election are performed through each broadcast node in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform.

[0047] In a third aspect of the present invention, a computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the scheduling task processing method of the above-mentioned blockchain platform when executing the computer program.

[0048] In a fourth aspect of the present invention, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the scheduling task processing method of the above-mentioned blockchain platform.

[0049] Compared with the prior art, the present invention has the following beneficial effects:

[0050] The scheduling task processing method of the blockchain platform of the present invention analyzes the occupied resource requirements and transmission resource requirements of the scheduling tasks, and then obtains the processing resource requirements of different scheduling tasks on the memory, hard disk and CPU of the network nodes in the blockchain platform. On this basis, the type classification of scheduling tasks is realized, and then for different types of scheduling tasks, the blockchain platform adopts different processing nodes and processing methods to process them, so as to more reasonably utilize the resources of each network node in the blockchain platform. Compared with the current method of reaching consensus among all network nodes for any scheduling task, the consensus overhead of the blockchain platform is greatly reduced, thereby effectively improving the data processing efficiency and capability of the blockchain platform for scheduling tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 This is a flow chart of the scheduling task processing method of the blockchain platform of the present invention;

[0052] Figure 2 It is a schematic diagram of the structure of the scheduling task processing system of the blockchain platform of the present invention. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0055] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0056] First, the basic structure of the current blockchain platform is introduced. In general, the blockchain platform is a decentralized system composed of several network nodes. Among them, the network node can be a separate computer, server, cloud server or server cluster. In addition, based on the capabilities of different network nodes, each network node in the blockchain platform can be used as a broadcast node and a computing node respectively. Among them, the network nodes with strong computing power and storage capacity in the blockchain platform serve as broadcast nodes, responsible for verifying and executing the scheduling tasks. After reaching a consensus among the broadcast nodes, the results are broadcast to the entire blockchain platform. Other network nodes in the blockchain platform store the results after receiving the results and verifying the source of the information, and the entire blockchain platform reaches a consensus. All network nodes in the blockchain platform can serve as computing nodes, responsible for participating in scheduling tasks that require all network nodes to calculate together. After each network node calculates independently, the consensus result is selected according to the election algorithm and then broadcast by the broadcast node, and the entire blockchain platform reaches a consensus.

[0057] See also Figure 1 In one embodiment of the present invention, a scheduling task processing method for a blockchain platform is provided. By classifying and determining the types of scheduling tasks and adopting different processing methods according to the types, the processing efficiency of the blockchain platform for scheduling data is ultimately improved, providing technical support for the construction and application of the scheduling data chain.

[0058] Specifically, the scheduling task processing method of the blockchain platform of the embodiment of the present invention includes the following steps:

[0059] S1: Obtain and parse the scheduling task to obtain the resource requirements of the scheduling task on the memory, hard disk and CPU and the transmission resource requirements of the scheduling task on the memory, hard disk and CPU.

[0060] S2: According to the preset weights, the resource requirements and transmission resource requirements of the scheduling task for the memory, hard disk and CPU are respectively added to obtain the processing resource requirements of the scheduling task for the memory, hard disk and CPU.

[0061] S3: Determine the task type of the scheduling task according to the processing resource requirements of the scheduling task on the memory, hard disk and CPU, and determine the processing node of the scheduling task in the blockchain platform according to the task type of the scheduling task, and process the scheduling task through the processing node.

[0062] In step S1, generally, when the external system sends the scheduling task to the blockchain platform, it records the resource requirements required for the scheduling task in XML format, which includes the memory, hard disk and CPU occupation of the scheduling task. After receiving the scheduling task, the blockchain platform parses the XML file to obtain the memory, hard disk and CPU occupation resource requirements of the scheduling task Task:

[0063] Task resource → <M r ,C r ,D r >

[0064] Among them, M r To schedule the memory resource requirements of tasks, C r To schedule the CPU resource requirements of the task, D r To monitor the resource requirements of the hard disk for scheduling tasks.

[0065] In the step S1, the scheduling task is obtained and analyzed to obtain the transmission resource requirements of the scheduling task for the memory, hard disk and CPU, including: obtaining the scheduling task and analyzing it to obtain the proportion of each transmission protocol adopted by the scheduling task; according to the proportion of each transmission protocol adopted by the scheduling task and the transmission resource occupancy value preset by each transmission protocol, the transmission resource requirements of the scheduling task for the memory, hard disk and CPU are obtained.

[0066] Specifically, the transmission of the scheduled task depends on the transmission protocol, which mainly includes HTTP, RTP and FTP. Usually, the scheduled task often uses multiple protocols at the same time during transmission. The transmission resource usage of the scheduled task during transmission is as follows:

[0067] Task protocol → <M p ,C p ,D p >

[0068] M p =θ1*M http +θ2*M ftp+θ3*M rtp

[0069] C p =θ1*X http +θ2*C ftp +θ3*C rtp

[0070] D p =θ1*D http +θ2*D ftp +θ3*D rtp

[0071]

[0072] Among them, M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource demand of the scheduling task for the hard disk; θ1 is the proportion of the scheduling task content transmitted by the HTTP protocol in the total scheduling task content, θ2 is the proportion of the scheduling task content transmitted by the FTP protocol in the total scheduling task content, and θ3 is the proportion of the scheduling task content transmitted by the RTP protocol in the total scheduling task content.

[0073] For the convenience of calculation, in this embodiment, the transmission resource occupancy of the HTTP protocol is set as follows:

[0074] M http =γ,C http =δ,D http =ε

[0075] Among them, M http is the memory transmission resource usage value of the HTTP protocol, C http is the CPU transmission resource usage value of the HTTP protocol, D http is the hard disk transmission resource occupancy value of the HTTP protocol. γ, δ, and ε are all preset configuration parameters, which are set according to actual experience.

[0076] Then, based on the transmission resource usage of the HTTP protocol, the transmission resource usage of the FTP protocol and the RTP protocol is set as follows:

[0077] C ftp =δ,

[0078] M rtp =2·γ,C rtp =4·δ,D rtp =ε

[0079] Among them, M ftpis the memory transfer resource usage value of the FTP protocol, M rtp is the memory transmission resource occupancy value of the RTP protocol, C ftp is the CPU resource usage of FTP protocol, C rtp is the CPU transmission resource occupancy value of the RTP protocol, D ftp D is the hard disk transfer resource usage value of the FTP protocol. rtp It is the resource usage of hard disk transmission of RTP protocol.

[0080] From this, we can calculate the above M p , C p and D p The value of is then used as the basis for the classification of scheduling tasks.

[0081] In a possible implementation, in step S2, the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU are respectively superimposed according to preset weights to obtain the processing resource requirements of the scheduling task for memory, hard disk and CPU, including:

[0082] Comprehensively consider the resource requirements and transmission resource requirements of the scheduling task, and use the following formula to superimpose the resource requirements and transmission resource requirements of the scheduling task on the memory, hard disk, and CPU to obtain the processing resource requirements of the scheduling task on the memory, hard disk, and CPU:

[0083] M=α·M r +β·M p

[0084] C=μ·C r +ρ·C p

[0085]

[0086] Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, C is the processing resource requirement of the scheduling task for the CPU, and M r To schedule the memory resource requirements of tasks, C r To schedule the CPU resource requirements of the task, D r The resource requirements of the scheduling task on the hard disk; M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource requirement of the hard disk for the scheduling task; α, β, μ, ρ, and ω is the preset weight parameter, and α+β=1, μ+ρ=1,

[0087] Among them, in a possible implementation, α, β, μ, ρ ∈ [0, 1], The specific parameter values ​​can be adjusted according to actual conditions.

[0088] In a possible implementation, in step S3, determining the task type of the scheduling task according to the processing resource requirements of the scheduling task on the memory, hard disk and CPU includes:

[0089] When C≥max(M, D) or M<C≤D, the task type of the scheduled task is a computing task; when C<min(M, D) or D<C≤M, the task type of the scheduled task is a text task.

[0090] Then, based on the task type of the scheduled task, the processing node of the scheduled task in the blockchain platform is determined, and the scheduled task is processed by the processing node. For example, when the task type of the scheduled task is a computing task, the processing node is a computing node in the blockchain platform, and the processing method can adopt the conventional processing method of computing tasks. When the task type of the scheduled task is a text task, the processing node is a broadcast node in the blockchain platform, and the processing method can adopt the conventional processing method of computing tasks.

[0091] Specifically, when the task type of the scheduling task is a computing task, the scheduling task is verified, calculated and consensus-elected through the computing nodes in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform; when the task type of the scheduling task is a text task, the scheduling task is verified, text-processed and consensus-elected through each broadcast node in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform.

[0092] In summary, the scheduling task processing method of the blockchain platform of the present invention analyzes the occupied resource requirements and transmission resource requirements of the scheduling tasks, and then obtains the processing resource requirements of the memory, hard disk and CPU of the network nodes in the blockchain platform for different scheduling tasks, and on this basis realizes the type classification of scheduling tasks, and then for different types of scheduling tasks, the blockchain platform adopts different processing nodes and processing methods, so as to more reasonably utilize the resources of each network node in the blockchain platform, and compared with the current method of consensus of all network nodes for any scheduling task, it greatly reduces the consensus overhead of the blockchain platform, and then effectively improves the data processing efficiency and ability of the blockchain platform for scheduling tasks. For example, for text-type tasks, only the broadcast node needs to be broadcast for consensus election and the consensus result is broadcast, which greatly reduces the consensus overhead.

[0093] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.

[0094] See also Figure 2 In another embodiment of the present invention, a scheduling task processing system for a blockchain platform is provided, which can be used to implement the scheduling task processing method of the above-mentioned blockchain platform. Specifically, the scheduling task processing system of the blockchain platform includes a resource demand acquisition module, a demand superposition module and a task processing module.

[0095] Among them, the resource occupation demand acquisition module is used to obtain and analyze the scheduling task, and obtain the scheduling task's resource occupation demand for memory, hard disk and CPU and the scheduling task's transmission resource demand for memory, hard disk and CPU; the demand superposition module is used to superimpose the scheduling task's resource occupation demand and transmission resource demand for memory, hard disk and CPU according to preset weights, and obtain the scheduling task's processing resource demand for memory, hard disk and CPU; the task processing module is used to determine the task type of the scheduling task according to the scheduling task's processing resource demand for memory, hard disk and CPU, and determine the processing node of the scheduling task in the blockchain platform according to the task type of the scheduling task, and process the scheduling task through the processing node.

[0096] In a possible implementation, the resource demand acquisition module is specifically used to: acquire and analyze the scheduling task to obtain the resource requirements of the scheduling task for memory, hard disk and CPU and the proportion of each transmission protocol used by the scheduling task; according to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol, obtain the transmission resource requirements of the scheduling task for memory, hard disk and CPU

[0097] In a possible implementation, the transmission protocol includes HTTP protocol, RTP protocol and FTP protocol; the transmission resource demand acquisition module is specifically used to obtain the transmission resource demand of the scheduling task for memory, hard disk and CPU according to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol through the following formula:

[0098] M p =θ1*M http +θ2*M ftp +θ3*M rtp

[0099] C p =θ1*C http +θ2*C ftp +θ3*C rtp

[0100] D p =θ1*Dhttp +θ2*D ftp +θ3*D rtp

[0101]

[0102] Among them, M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource demand of the scheduling task for the hard disk; θ1 is the proportion of the scheduling task content transmitted by the HTTP protocol in the total scheduling task content, θ2 is the proportion of the scheduling task content transmitted by the FTP protocol in the total scheduling task content, and θ3 is the proportion of the scheduling task content transmitted by the RTP protocol in the total scheduling task content.

[0103] M http =γ,C http =δ,D http =ε

[0104] C ftp =δ,

[0105] M rtp =2·γ,C rtp =4·δ,D rtp =ε

[0106] Among them, M http is the memory transmission resource occupancy value of the HTTP protocol, M ftp is the memory transfer resource usage value of the FTP protocol, M rtp is the memory transmission resource occupancy value of the RTP protocol; C http is the CPU transmission resource usage value of HTTP protocol, C ftp is the CPU resource usage of FTP protocol, C rtp It is the CPU transmission resource occupancy value of the RTP protocol; D http is the disk transfer resource usage value of HTTP protocol, D ftp D is the hard disk transfer resource usage value of the FTP protocol. rtp is the hard disk transmission resource occupancy value of the RTP protocol; γ, δ, and ε are all preset configuration parameters.

[0107] In a possible implementation, the demand superposition module is specifically used to obtain the processing resource requirements of the scheduling task for the memory, hard disk and CPU by superimposing the resource requirements and transmission resource requirements of the scheduling task for the memory, hard disk and CPU through the following formula:

[0108] M=α·M r+β·M p

[0109] C=μ·C r +ρ·C p

[0110]

[0111] Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, C is the processing resource requirement of the scheduling task for the CPU, and M r To schedule the memory resource requirements of tasks, C r To schedule the CPU resource requirements of the task, D r The resource requirements of the scheduling task on the hard disk; M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource requirement of the hard disk for the scheduling task; α, β, μ, ρ, and ω is the preset weight parameter, and α+β=1, μ+ρ=1,

[0112] In a possible implementation, the task processing module is specifically used for: when C≥max(M, D) or M<C≤D, the task type of the scheduling task is a computing task; when C<min(M, D) or D<C≤M, the task type of the scheduling task is a text task; wherein M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, and C is the processing resource requirement of the scheduling task for the CPU. When the task type of the scheduling task is a computing task, the scheduling task is verified, calculated, and consensus-elected by the computing nodes in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform; when the task type of the scheduling task is a text task, the scheduling task is verified, text-processed, and consensus-elected by each broadcast node in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform.

[0113] All relevant contents of each step involved in the embodiment of the scheduling task processing method of the aforementioned blockchain platform can be referred to the functional description of the functional module corresponding to the scheduling task processing system of the blockchain platform in the embodiment of the present invention, and will not be repeated here.

[0114] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0115] In another embodiment of the present invention, a computer device is provided, the computer device including a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions in a computer storage medium to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the scheduling task processing method of the blockchain platform.

[0116] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the scheduling task processing method for the blockchain platform in the above embodiment.

[0117] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0118] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A scheduling task processing method for a blockchain platform, characterized in that: include: Obtain and parse the scheduling task to obtain the resource requirements of the scheduling task on memory, hard disk and CPU, as well as the transmission resource requirements of the scheduling task on memory, hard disk and CPU; According to the preset weights, the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU are respectively added to obtain the processing resource requirements of the scheduling task for memory, hard disk and CPU; Determine the task type of the scheduling task according to the processing resource requirements of the scheduling task on memory, hard disk and CPU, and determine the processing node of the scheduling task in the blockchain platform according to the task type of the scheduling task, and process the scheduling task through the processing node; Determining the task type of the scheduling task according to the processing resource requirements of the scheduling task on the memory, hard disk and CPU includes: When C≥max(M, D) or M<C≤D, the task type of the scheduled task is a computing task; When C<min(M, D) or D<C≤M, the task type of the scheduled task is a text task; Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, and C is the processing resource requirement of the scheduling task for the CPU; Determining a processing node for the scheduling task in the blockchain platform according to the task type of the scheduling task, and processing the scheduling task through the processing node includes: When the task type of the scheduling task is a computing task, the scheduling task is verified, calculated and consensus-elected through the computing nodes in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform; When the task type of the scheduling task is a text-based task, verification, text processing and consensus election are performed through each broadcast node in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform.

2. The scheduling task processing method of the blockchain platform according to claim 1 is characterized in that: The obtaining and parsing of the scheduling task to obtain the resource requirements of the scheduling task on the memory, hard disk and CPU and the transmission resource requirements of the scheduling task on the memory, hard disk and CPU include: Obtain and parse the scheduled tasks to obtain the resource requirements of the scheduled tasks for memory, hard disk, and CPU, as well as the proportion of each transmission protocol used by the scheduled tasks; According to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol, the transmission resource requirements of the scheduling task for memory, hard disk and CPU are obtained.

3. The scheduling task processing method of the blockchain platform according to claim 2 is characterized in that: The transmission protocols include HTTP protocol, RTP protocol and FTP protocol; The transmission resource requirements of the scheduling task for memory, hard disk and CPU are obtained according to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol, including: According to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol, the transmission resource requirements of the scheduling task for memory, hard disk and CPU are obtained through the following formula: M p =θ1*M http +θ2*M ftp +θ3*M rtp C p =θ1*C http +θ2*C ftp +θ3*C rtp D p =θ1*D http +θ2*D ftp +θ3*D rtp Among them, M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource demand of the scheduling task on the hard disk; θ1 is the proportion of the scheduling task content transmitted by the HTTP protocol in the total scheduling task content, θ2 is the proportion of the scheduling task content transmitted by the FTP protocol in the total scheduling task content, and θ3 is the proportion of the scheduling task content transmitted by the RTP protocol in the total scheduling task content; M http =γ,C http =δ,D http =e Among them, M http is the memory transmission resource occupancy value of the HTTP protocol, M ftp is the memory transfer resource usage value of the FTP protocol, M rtp is the memory transmission resource occupancy value of the RTP protocol; C http is the CPU transmission resource usage value of HTTP protocol, C ftp is the CPU resource usage of FTP protocol, C rtp It is the CPU transmission resource occupancy value of the RTP protocol; D http is the disk transfer resource usage value of HTTP protocol, D ftp is the hard disk transfer resource usage value of the FTP protocol, d ttp is the hard disk transmission resource occupancy value of the RTP protocol; γ, δ, and ε are all preset configuration parameters.

4. The scheduling task processing method of the blockchain platform according to claim 1 is characterized in that: According to the preset weights, the resource requirements and transmission resource requirements of the scheduling task for the memory, hard disk and CPU are respectively superimposed to obtain the processing resource requirements of the scheduling task for the memory, hard disk and CPU, including: By superimposing the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU, the processing resource requirements of the scheduling task for memory, hard disk and CPU are obtained: M=α·M r +β·M p Cμ·C r +ρ·C p Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, C is the processing resource requirement of the scheduling task for the CPU, and M r To schedule the memory resource requirements of tasks, C r To schedule the CPU resource requirements of the task, D r The resource requirements of the scheduling task on the hard disk; M p To schedule tasks’ memory transmission resource requirements, C p To schedule the task's transmission resource requirements for the CPU, D p is the transmission resource requirement of the hard disk for the scheduling task; α, β, μ, ρ, and ω is the preset weight parameter, and α+β=1, μ+ρ=1, 5. A scheduling task processing system for a blockchain platform, characterized in that: include: The resource demand acquisition module is used to acquire and analyze the scheduling tasks to obtain the resource requirements of the scheduling tasks for memory, hard disk and CPU, as well as the transmission resource requirements of the scheduling tasks for memory, hard disk and CPU; The demand superposition module is used to superimpose the resource requirements and transmission resource requirements of the scheduling task for memory, hard disk and CPU according to the preset weights, and obtain the processing resource requirements of the scheduling task for memory, hard disk and CPU; The task processing module is used to determine the task type of the scheduled task according to the processing resource requirements of the scheduled task on the memory, hard disk and CPU, and determine the processing node of the scheduled task in the blockchain platform according to the task type of the scheduled task, and process the scheduled task through the processing node; The task processing module is specifically used for: When C≥max(M, D) or M<C≤D, the task type of the scheduled task is a computing task; When C<min(M, D) or D<C≤M, the task type of the scheduled task is a text task; Among them, M is the processing resource requirement of the scheduling task for the memory, D is the processing resource requirement of the scheduling task for the hard disk, and C is the processing resource requirement of the scheduling task for the CPU; When the task type of the scheduling task is a computing task, the scheduling task is verified, calculated and consensus-elected through the computing nodes in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform; When the task type of the scheduling task is a text-based task, verification, text processing and consensus election are performed through each broadcast node in the blockchain platform to obtain the scheduling task processing result, and the scheduling task processing result is broadcast to all network nodes of the blockchain platform through each broadcast node in the blockchain platform.

6. The scheduling task processing system of the blockchain platform according to claim 5 is characterized in that: The resource demand acquisition module is specifically used for: Obtain and parse the scheduled tasks to obtain the resource requirements of the scheduled tasks for memory, hard disk, and CPU, as well as the proportion of each transmission protocol used by the scheduled tasks; According to the proportion of each transmission protocol used by the scheduling task and the transmission resource occupancy value preset by each transmission protocol, the transmission resource requirements of the scheduling task for memory, hard disk and CPU are obtained.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the scheduling task processing method of the blockchain platform as described in any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the steps of the scheduling task processing method of the blockchain platform as described in any one of claims 1 to 4 are implemented.