Blockchain-based operation and maintenance data management methods, devices and electronic equipment

CN116866341BActive Publication Date: 2026-08-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0004]本发明实施例提供了一种基于区块链的运维数据管理方法、装置及电子设备,以至少解决现有技术中在使用区块链技术管理运维数据时,由于区块链运算速度较慢,存在运维效率比较低的技术问题

Benefits of technology

[0017] Therefore, the technical solution of this invention achieves the goal of improving the security, consistency and convenience of operation and maintenance data, providing more effective protection for the storage and use of operation and maintenance data, thereby realizing the technical effect of improving the computing speed of blockchain and improving operation and maintenance efficiency. It also solves the technical problem of low operation and maintenance efficiency when using blockchain technology to manage operation and maintenance data in the prior art due to the slow computing speed of blockchain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116866341B_ABST
    Figure CN116866341B_ABST
Patent Text Reader

Abstract

This invention discloses a blockchain-based method, apparatus, and electronic device for managing operational data, relating to the blockchain field. The method includes: receiving data processing requests from multiple blockchain nodes, and determining the target processing link corresponding to the data processing request based on the data type in the request; generating a target transaction corresponding to the data processing request based on the target processing link, and determining the target processing method corresponding to the target transaction based on the transaction type; processing the target transaction according to the target processing method to obtain a data processing result, and returning the data processing result to multiple blockchain nodes. This invention solves the technical problem of low operational efficiency in existing technologies when using blockchain technology to manage operational data due to the slow computing speed of blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of blockchain, and more specifically, to a blockchain-based method, apparatus, and electronic device for managing operational data. Background Technology

[0002] As the operations and maintenance (O&M) organization of large enterprises, data centers undertake the management and maintenance of massive amounts of O&M data. The normal operation of a data center depends on the normal operation of each server. The O&M process generates massive amounts of O&M data, such as application data, system logs, and performance data. This data is distributed across different servers in different locations, making data integration and management extremely difficult. Furthermore, during data transmission and use, it is necessary to ensure the consistency and security of data across different nodes, resulting in a huge workload for data management. Blockchain technology, as a new and continuously improving technology, is well-suited for managing O&M data due to its distributed storage method, and it can provide strong guarantees for data security and consistency. However, in existing technologies, when using blockchain technology to manage O&M data, the massive amount of O&M data puts enormous pressure on the blockchain, and the relatively slow blockchain processing speed leads to low O&M efficiency.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This invention provides a blockchain-based operation and maintenance data management method, device, and electronic device to at least solve the technical problem of low operation and maintenance efficiency in the prior art when using blockchain technology to manage operation and maintenance data, due to the slow computing speed of blockchain.

[0005] According to one aspect of the present invention, a blockchain-based operation and maintenance data management method is provided, comprising: receiving data processing requests sent by multiple blockchain nodes, and determining a target processing link corresponding to the data processing request based on the data type in the data processing request, wherein the data processing request is used to request processing of target operation and maintenance data corresponding to the data type, and the target processing link is one of the following: blockchain main chain, blockchain side chain; generating a target transaction corresponding to the data processing request based on the target processing link, and determining a target processing method corresponding to the target transaction based on the transaction type of the target transaction, wherein the target transaction is used to perform data processing operations on the blockchain, and the target processing method is one of the following: on-chain processing method, off-chain processing method; processing the target transaction according to the target processing method to obtain a data processing result, and returning the data processing result to multiple blockchain nodes.

[0006] Furthermore, based on the data type in the data processing request, the target processing link corresponding to the data processing request is determined, including: if the data type is a performance data type, then the blockchain sidechain is used as the target processing link; if the data type is a data type other than a performance data type, then the blockchain main chain is used as the target processing link.

[0007] Furthermore, based on the transaction type of the target transaction, the target processing method corresponding to the target transaction is determined, including: if the transaction type is the first transaction type, then the off-chain processing method is used as the target processing method; if the transaction type is the second transaction type, then the on-chain processing method is used as the target processing method, wherein the real-time requirements of the first transaction type are higher than those of the second transaction type.

[0008] Furthermore, the target transaction is processed according to the target processing method to obtain the data processing result, including: if the target processing method is off-chain processing, historical transaction data within a preset time period is obtained, and the transaction situation in the future target time period is predicted based on the pre-trained ridge regression model and historical transaction data; based on the transaction situation in the future target time period, the state channel of the blockchain is controlled, wherein the state channel is used to realize off-chain transactions of multiple blockchain nodes; the final channel state of the state channel submitted by multiple blockchain nodes is received, and the data processing result is generated based on the final channel state, wherein the final channel state is the channel state at the end of the transactions of multiple blockchain nodes in the state channel.

[0009] Furthermore, the transaction situation for the future target time period includes at least the number of transactions for each blockchain node on each trading day of the future target time period. Based on the transaction situation for the future target time period, state control is performed on the state channels of the blockchain, including: determining a target blockchain node from multiple blockchain nodes based on the number of transactions for each blockchain node on each trading day of the future target time period, wherein the target blockchain node is a blockchain node whose number of transactions exceeds a preset threshold; and performing state control on the state channel corresponding to the target blockchain node according to preset control rules.

[0010] Furthermore, after determining the target processing link corresponding to the data processing request based on the data type in the data processing request, the method further includes: if the target processing link is a blockchain sidechain, then determining the storage space and generation time of the blockchain sidechain based on the data volume of the target operation and maintenance data, and generating the blockchain sidechain based on the storage space and generation time.

[0011] Furthermore, before receiving data processing requests from multiple blockchain nodes, the method further includes: constructing an initial blockchain, wherein the initial blockchain comprises multiple initial blocks, each of which is constructed by each server in the server cluster of the data center; acquiring server operation and maintenance data, and verifying the operation and maintenance data according to the standard data requirements of the blockchain to obtain a data verification result, wherein the operation and maintenance data includes at least performance data, and the data verification result indicates whether the operation and maintenance data passes verification; if the operation and maintenance data passes verification, determining first operation and maintenance data from the operation and maintenance data, and storing the first operation and maintenance data outside the blockchain through a target storage method, wherein the first operation and maintenance data is operation and maintenance data with a data volume greater than a data volume threshold; packaging the operation and maintenance data other than the first operation and maintenance data into a new block, and verifying the legality of the new block through a target consensus algorithm; if the new block passes the legality verification, adding the new block to the end of the initial blockchain to generate the blockchain.

[0012] According to another aspect of the present invention, a blockchain-based operation and maintenance data management device is also provided, comprising: a receiving module, configured to receive data processing requests sent by multiple blockchain nodes, and determine a target processing link corresponding to the data processing request based on the data type in the data processing request, wherein the data processing request is used to request processing of target operation and maintenance data corresponding to the data type, and the target processing link is one of the following: blockchain main chain, blockchain side chain; a determining module, configured to generate a target transaction corresponding to the data processing request based on the target processing link, and determine a target processing method corresponding to the target transaction based on the transaction type of the target transaction, wherein the target transaction is used to implement data processing operations on the blockchain, and the target processing method is one of the following: on-chain processing method, off-chain processing method; and a processing module, configured to process the target transaction according to the target processing method, obtain a data processing result, and return the data processing result to multiple blockchain nodes.

[0013] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described blockchain-based operation and maintenance data management method at runtime.

[0014] According to another aspect of the present invention, an electronic device is also provided, the electronic device including one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are configured to run the programs, wherein the programs are configured to execute the above-described blockchain-based operation and maintenance data management method during runtime.

[0015] In this embodiment of the invention, server performance data is processed via a blockchain sidechain, and transactions that can be transferred to off-chain processing are transacted outside the blockchain network. First, data processing requests from multiple blockchain nodes are received. Based on the data type in the data processing request, the target processing link corresponding to the data processing request is determined. Then, based on the target processing link, a target transaction corresponding to the data processing request is generated. Based on the transaction type of the target transaction, the target processing method corresponding to the target transaction is determined. The target transaction is then processed according to the target processing method to obtain the data processing result, which is returned to multiple blockchain nodes. Specifically, the data processing request is used to request processing of target operational data corresponding to the data type. The target processing link is one of the following: blockchain main chain, blockchain sidechain. The target transaction is used to perform data processing operations on the blockchain, and the target processing method is one of the following: on-chain processing method, off-chain processing method.

[0016] In the above process, based on the data type in the data processing request, the target processing link corresponding to the data processing request can be determined. This allows for the generation of the target transaction corresponding to the data processing request based on the target processing link. This enables the processing of some operational data through the blockchain sidechain, relieving the computational burden on the main blockchain and effectively improving the blockchain's operational efficiency. Furthermore, based on the transaction type of the target transaction, the target processing method corresponding to the target transaction can be determined. This allows for the processing of the target transaction according to the target processing method, obtaining the data processing result. This enables transactions that could be transferred to off-chain processing to be conducted outside the blockchain network, significantly improving the blockchain's computational speed, thereby increasing operational efficiency and enhancing the data center's management capabilities for operational data.

[0017] Therefore, the technical solution of this invention achieves the goal of improving the security, consistency and convenience of operation and maintenance data, providing more effective protection for the storage and use of operation and maintenance data, thereby realizing the technical effect of improving the computing speed of blockchain and improving operation and maintenance efficiency. It also solves the technical problem of low operation and maintenance efficiency when using blockchain technology to manage operation and maintenance data in the prior art due to the slow computing speed of blockchain. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0019] Figure 1 This is a flowchart of an optional blockchain-based operation and maintenance data management method according to an embodiment of the present invention;

[0020] Figure 2This is a schematic diagram of an optional blockchain-based operation and maintenance data management system according to an embodiment of the present invention;

[0021] Figure 3 This is a schematic diagram of the data query and calculation process of an optional blockchain-based operation and maintenance data management system according to an embodiment of the present invention;

[0022] Figure 4 This is a schematic diagram of an optional blockchain-based operation and maintenance data management device according to an embodiment of the present invention;

[0023] Figure 5 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] It should be noted that all relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this invention are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with the relevant user or organization. Before obtaining relevant information, it needs to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent from the aforementioned user or organization.

[0027] Example 1

[0028] According to an embodiment of the present invention, an embodiment of a blockchain-based operation and maintenance data management method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] Figure 1 This is a flowchart of an optional blockchain-based operation and maintenance data management method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0030] Step S101: Receive data processing requests sent by multiple blockchain nodes, and determine the target processing link corresponding to the data processing request based on the data type in the data processing request. The data processing request is used to request the processing of target operation and maintenance data corresponding to the data type. The target processing link is one of the following: blockchain main chain or blockchain side chain.

[0031] In the above steps, data processing requests sent by multiple blockchain nodes can be received through application systems, processors, electronic devices, etc. Optionally, data processing requests sent by multiple blockchain nodes can be received through a blockchain-based operation and maintenance data management system, wherein the system includes a blockchain network composed of multiple blockchain nodes, and data processing requests sent by multiple blockchain nodes are received through the blockchain network.

[0032] Optionally, each blockchain node corresponds to each server in the server cluster of the data center. Data processing requests can be requests to add, delete, modify, or query operational data. Data types include at least performance data types, application data types, and system configuration data types. For example, when the data type in the data processing request is a performance data type, the target operational data is performance data.

[0033] Optionally, based on the data type in the data processing request, the target processing chain corresponding to the data processing request can be determined, that is, whether the processing chain for processing the target operation and maintenance data is the main blockchain or a side blockchain. For example, when the data type in the data processing request is a performance data type, the side blockchain is used as the target processing chain, that is, the performance data is processed through the side blockchain.

[0034] Step S102: Based on the target processing link, generate the target transaction corresponding to the data processing request, and determine the target processing method corresponding to the target transaction based on the transaction type of the target transaction. The target transaction is used to implement data processing operations on the blockchain, and the target processing method is one of the following: on-chain processing method and off-chain processing method.

[0035] Optionally, after determining the target processing link, a target transaction corresponding to the data processing request can be generated based on the target processing link. This allows the target processing method corresponding to the target transaction to be determined based on the transaction type of the target transaction, i.e., whether the target transaction is processed on-chain or off-chain, or whether the target transaction can be transferred off-chain.

[0036] For example, when the target transaction is a transaction type with high real-time requirements, off-chain processing is used as the target processing method. That is, the target transaction is processed through off-chain processing, thereby enabling transactions that can be transferred to off-chain processing to be traded outside the blockchain network, significantly improving the computing speed of the blockchain.

[0037] Step S103: Process the target transaction according to the target processing method, obtain the data processing result, and return the data processing result to multiple blockchain nodes.

[0038] Optionally, after determining the target processing method, the target transaction can be processed according to the target processing method to obtain the data processing result, and the data processing result can be returned to multiple blockchain nodes. For example, when the target processing method is off-chain processing, the target transaction is transferred to an external blockchain network to obtain the data processing result.

[0039] Based on the scheme defined in steps S101 to S103 above, it can be understood that in this embodiment of the invention, server performance data is processed through a blockchain sidechain, and transactions that can be transferred to off-chain processing are transacted outside the blockchain network. First, data processing requests sent by multiple blockchain nodes are received. Based on the data type in the data processing request, the target processing link corresponding to the data processing request is determined. Then, based on the target processing link, a target transaction corresponding to the data processing request is generated. Based on the transaction type of the target transaction, the target processing method corresponding to the target transaction is determined. Then, the target transaction is processed according to the target processing method to obtain the data processing result, and the data processing result is returned to multiple blockchain nodes. Specifically, the data processing request is used to request processing of target operation and maintenance data corresponding to the data type. The target processing link is one of the following: blockchain main chain, blockchain sidechain. The target transaction is used to implement data processing operations on the blockchain. The target processing method is one of the following: on-chain processing method, off-chain processing method.

[0040] It is noteworthy that, in the above process, based on the data type in the data processing request, the target processing link corresponding to the data processing request can be determined. This allows for the generation of the target transaction corresponding to the data processing request based on the target processing link, enabling the processing of some operational data through the blockchain sidechain, thus relieving the computational burden on the main blockchain and effectively improving the blockchain's operational efficiency. Furthermore, based on the transaction type of the target transaction, the target processing method corresponding to the target transaction can be determined. This allows for the processing of the target transaction according to the target processing method, obtaining the data processing result. This enables transactions that could be transferred to off-chain processing to be conducted outside the blockchain network, significantly improving the blockchain's computational speed, thereby enhancing operational efficiency and improving the data center's management capabilities for operational data.

[0041] Therefore, the technical solution of this invention achieves the goal of improving the security, consistency and convenience of operation and maintenance data, providing more effective protection for the storage and use of operation and maintenance data, thereby realizing the technical effect of improving the computing speed of blockchain and improving operation and maintenance efficiency. It also solves the technical problem of low operation and maintenance efficiency when using blockchain technology to manage operation and maintenance data in the prior art due to the slow computing speed of blockchain.

[0042] In one optional embodiment, the target processing link corresponding to the data processing request is determined based on the data type in the data processing request, including: if the data type is a performance data type, then the blockchain sidechain is used as the target processing link; if the data type is a data type other than a performance data type, then the blockchain main chain is used as the target processing link.

[0043] Optionally, the operational data generated during data center operation and maintenance includes system configuration data, application data, system logs, performance data, security data, user data, image files, and installation packages. In determining the target processing link corresponding to a data processing request based on its data type, if the data type is a performance data type, the target processing link is determined to be a blockchain sidechain; if the data type is a data type other than a performance data type, such as a system configuration data type or an application data type, the target processing link is determined to be the blockchain main chain.

[0044] It should be noted that in this embodiment, for data formats such as server performance data that are collected daily and have a relatively fixed format, sidechain technology is used to move transactions from the main blockchain network to another blockchain network, that is, to move transactions from the main blockchain to the blockchain sidechain. This effectively reduces the load on the main blockchain network and can improve the operating performance of the data center blockchain network while maintaining the security and decentralization characteristics of the blockchain.

[0045] In one optional embodiment, the target processing method corresponding to the target transaction is determined according to the transaction type of the target transaction, including: if the transaction type is a first transaction type, then the off-chain processing method is used as the target processing method; if the transaction type is a second transaction type, then the on-chain processing method is used as the target processing method, wherein the real-time requirement of the first transaction type is higher than that of the second transaction type.

[0046] Optionally, the first transaction type can be transactions with high real-time requirements, while the second transaction type can be transactions with low real-time requirements. In determining the target processing method based on the target transaction's transaction type, it can be determined whether the target transaction can be transferred off-chain. Optionally, if the transaction type is the first transaction type, i.e., when the target transaction has high real-time requirements, then the off-chain processing method is used as the target processing method, meaning the target transaction can be transferred outside the blockchain network; if the transaction type is the second transaction type, i.e., when the target transaction has low real-time requirements, then the on-chain processing method is used as the target processing method.

[0047] It should be noted that, in this embodiment, during the blockchain operation, computational tasks can be completed based on StateChannels technology. This allows transactions that can be transferred to off-chain processing (e.g., transactions with high real-time requirements) to be traded outside the blockchain network. Only the final state will be recorded on the blockchain, significantly improving the blockchain's computational speed and throughput, and reducing operating costs.

[0048] In one optional embodiment, the target transaction is processed according to the target processing method to obtain the data processing result, including: if the target processing method is off-chain processing, then historical transaction data within a preset time period is obtained, and the transaction situation in the future target time period is predicted based on the pre-trained ridge regression model and the historical transaction data; based on the transaction situation in the future target time period, the state channel of the blockchain is controlled, wherein the state channel is used to realize off-chain transactions of multiple blockchain nodes; the final channel state of the state channel submitted by multiple blockchain nodes is received, and the data processing result is generated based on the final channel state, wherein the final channel state is the channel state at the end of the transactions of multiple blockchain nodes in the state channel.

[0049] Optionally, if the target processing method is on-chain processing, the target transaction will be processed according to the existing processing flow to generate data processing results, which will not be elaborated here.

[0050] Optionally, during blockchain operations, computational tasks are completed using State Channels technology, enabling transactions that can be transferred to off-chain processing (e.g., transactions with high real-time requirements) to be processed outside the blockchain network. Specifically, participants (i.e., server nodes) in State Channels technology can perform any number of transactions (e.g., adding, deleting, modifying, and querying operational data). Since the quantity and types of operational data in data centers are large, severe transaction congestion and delays can occur. Therefore, in this embodiment, the Ridge Regression algorithm is used to control the state of the blockchain's state channels, thereby better managing transaction traffic and reducing latency.

[0051] Optionally, if the target processing method is off-chain processing, historical transaction data within a preset time period is obtained, and the transaction situation for the future target time period is predicted based on a pre-trained ridge regression model and the historical transaction data. For example, transaction latency data of the blockchain over the past three months is collected, including the correspondence between transaction quantity, transaction latency, and time (i.e., the correspondence between the level of transaction latency and the transaction time period), and regression analysis is performed on the historical transaction data based on the pre-trained ridge regression model to predict the transaction latency situation within the next week.

[0052] Furthermore, based on transaction activity within a future target timeframe, state control can be implemented for blockchain state channels. For example, after predicting transaction latency for the next week, transaction management of State Channels can be automated. Control rules can include, at a minimum, controlling the number of state channels opened (i.e., controlling the number of state channels created on the blockchain) during periods of high transaction latency, and limiting the transaction frequency of participants with a large number of transactions.

[0053] Optionally, participants can establish a shared channel, which can be achieved by creating a multi-signature wallet on the blockchain. This multi-signature wallet requires authorization from all participants in the channel to conduct transactions. Participants can freely transact within the channel without submitting each transaction to the blockchain. Participants can send transaction requests to each other and sign transactions using their respective private keys.

[0054] Optionally, after each transaction occurs, participants can verify the validity of the transaction locally to ensure that it does not violate the channel's rules and constraints, thereby saving verification time and costs on the blockchain. Optionally, once a transaction is verified, participants can exchange signatures, so that each participant holds the latest signature of the entire channel state. If a dispute arises between participants, for example, if one party refuses to cooperate or proposes an invalid transaction, participants can resolve the dispute by submitting the channel state on the blockchain. In this case, the smart contract on the blockchain will execute the dispute resolution rules and determine the winning party based on the final signature of the channel state.

[0055] Optionally, when a participant wants to close the channel after completing a transaction, they can submit the final channel state to the blockchain. The blockchain receives the final channel state submitted by multiple blockchain nodes and generates data processing results based on the final channel state. For example, the participant will allocate funds on the blockchain according to the final state.

[0056] It should be noted that the above process significantly improves the computing speed of the blockchain, thereby improving operational efficiency and enhancing the data center's ability to manage operational data.

[0057] In one optional embodiment, the transaction situation for the future target time period includes at least the number of transactions for each blockchain node in each trading day of the future target time period. The state control of the blockchain's state channel based on the transaction situation for the future target time period includes: determining a target blockchain node from multiple blockchain nodes based on the number of transactions for each blockchain node in each trading day of the future target time period, wherein the target blockchain node is a blockchain node whose transaction count exceeds a preset threshold; and performing state control on the state channel corresponding to the target blockchain node according to preset control rules.

[0058] Optionally, after predicting the number of transactions in the coming week (i.e., the number of transactions per blockchain node in each trading day of the target time period in the future), the correspondence between transaction latency and time (i.e., the correspondence between the level of transaction latency and the transaction time period), state control can be implemented on the blockchain's state channels. For example, the transaction management of State Channels can be automatically controlled. The control rules (i.e., preset control rules) should at least include controlling the number of state channels opened (i.e., controlling the number of state channels created on the blockchain) for time points with high transaction latency, and limiting the transaction frequency of participants with more transactions.

[0059] Optionally, based on the number of transactions of each blockchain node in each trading day of the future target time period, participants with more transactions can be identified from multiple blockchain nodes, that is, blockchain nodes with more transactions than a preset threshold. In this way, state control can be performed on the state channel corresponding to the blockchain node with more transactions than the preset threshold according to preset control rules, that is, the transaction frequency of participants with more transactions can be restricted.

[0060] It should be noted that by controlling the state channels of the blockchain, transaction flow can be better managed and latency reduced, effectively improving the computing speed of the blockchain.

[0061] In one optional embodiment, after determining the target processing link corresponding to the data processing request based on the data type in the data processing request, if the target processing link is a blockchain sidechain, the storage space and generation time of the blockchain sidechain are determined based on the amount of target operation and maintenance data, and the blockchain sidechain is generated based on the storage space and generation time.

[0062] Optionally, when it is determined that the processing link is a blockchain sidechain, the blockchain sidechain needs to be created first. That is, based on the amount of target operation and maintenance data, the storage space and generation time of the blockchain sidechain are determined, and the blockchain sidechain is generated based on the storage space and generation time.

[0063] Optionally, in this embodiment, for data formats such as server performance data that are collected daily and have a relatively fixed format, sidechain technology is used to move transactions from the main blockchain network to another blockchain network, that is, to move transactions from the main blockchain to the sidechain. When the sidechain technology is running, the block size (i.e., storage space size), block generation time (i.e., generation time), and consensus algorithm of the blockchain sidechain are first determined based on the amount of performance data, and then the blockchain sidechain is generated.

[0064] Optionally, in this embodiment, to assist the operation of Sidechains technology, a Redis database is used to cache calculation results and data, and corresponding expiration times are set for different cached data to ensure that the data in the cache will automatically expire after a certain period of time, thereby avoiding the use of expired cached data and automatically deleting expired cached content.

[0065] It should be noted that the above process can generate a blockchain sidechain, thereby enabling transactions to be moved from the main blockchain to the sidechain. This effectively reduces the load on the main blockchain network and improves the performance of the data center blockchain network while maintaining the security and decentralization of the blockchain.

[0066] In one optional embodiment, before receiving data processing requests from multiple blockchain nodes, an initial blockchain is constructed, comprising multiple initial blocks, each constructed by each server in the server cluster of the data center; operational data of the servers is acquired and verified according to the standard data requirements of the blockchain to obtain a data verification result, wherein the operational data includes at least performance data, and the data verification result indicates whether the operational data passes verification; if the operational data passes verification, first operational data is determined from the operational data and stored outside the blockchain using a target storage method, wherein the first operational data is operational data with a data volume greater than a data volume threshold; the operational data other than the first operational data is packaged into a new block, and the new block is validated for legality using a target consensus algorithm; if the new block passes the legality validation, the new block is added to the end of the initial blockchain to generate the blockchain.

[0067] Optionally, a blockchain network needs to be built before receiving data processing requests from multiple blockchain nodes. Optionally, the target storage method is off-chain data storage, and the target consensus algorithm is the Proof of Stake consensus algorithm.

[0068] Figure 2 This is a schematic diagram of an optional blockchain-based operation and maintenance data management system according to an embodiment of the present invention, such as... Figure 2 As shown, the initial blockchain is first constructed, that is, the blockchain is initialized through the initialization module, the initial block corresponding to the server is constructed on each server, and each initial block is added to the blockchain.

[0069] Furthermore, the system can acquire server operation and maintenance data. For example, through the data receiving module, it can acquire system configuration data, application data, system logs, performance data, security data, user data, image files, and installation packages generated by the data center for each server in the server cluster (e.g., Machine_1, Machine_2, Machine_3, ..., Machine_n). Optionally, the data receiving module can also receive blockchain smart contracts, where each user's access and operation permissions are recorded. This means that permission control is implemented in the smart contract. For example, only users who actually need to access and modify data are granted the corresponding permissions, and only specific users can add new data blocks or perform certain operations to prevent malicious attacks and unauthorized access.

[0070] Furthermore, the received operation and maintenance data is verified to ensure that it complies with the rules and standards of the blockchain. That is, the operation and maintenance data is verified according to the standard data requirements of the blockchain to obtain the data verification result. If the operation and maintenance data fails the verification, the operation and maintenance data is obtained again.

[0071] Optionally, if the operational data passes verification, operational data with a volume exceeding a threshold (i.e., the first operational data) is identified from the operational data and stored outside the blockchain using an off-chain data storage method. Specifically, a new block is created through the block creation module, and the verified data is packaged into a new block. Off-chain data storage is used to store the data outside the blockchain elsewhere, thereby reducing the load on the blockchain network and improving the overall network efficiency.

[0072] Furthermore, the Proof of Stake consensus algorithm is used to verify the legitimacy of new blocks. If a new block passes the legitimacy verification, it is added to the end of the initial blockchain, generating the blockchain. Specifically, the Proof of Stake consensus algorithm is used in the block confirmation module to confirm new blocks. Because this algorithm does not require a large amount of computing power, it consumes less energy, thus improving the operating efficiency of the blockchain.

[0073] Furthermore, after adding a new block to the end of the initial blockchain, a node update is performed, which involves updating the block copies of all nodes in the blockchain to ensure data consistency. This allows for data querying and computation on the blockchain as needed.

[0074] Figure 3 This is a schematic diagram of a data query and calculation process for an optional blockchain-based operation and maintenance data management system according to an embodiment of the present invention, such as... Figure 3As shown, during the process of querying and computing data on the blockchain according to actual needs, the blockchain receives data processing requests such as CRUD operations from multiple blockchain nodes. The blockchain divides the processing links according to the data type. When the data in the processing request is server performance data, the transaction is moved from the main blockchain network to another blockchain network using Sidechains technology, i.e., the transaction is moved from the main blockchain to a sidechain. When the data in the processing request is not server performance data, the main blockchain processes the operational data, including creating transactions and dividing computational tasks. Then, it determines whether the transaction can be moved off-chain. If the transaction cannot be moved off-chain, CRUD operations are performed on the blockchain. If the transaction can be moved off-chain, a ridge regression data prediction algorithm is used to perform regression analysis on historical data to obtain transaction volume prediction results. The computational task is then completed based on State Channels technology, i.e., CRUD operations are performed. This allows transactions that can be moved off-chain (e.g., transactions with high real-time requirements) to be processed outside the blockchain network. Only the final state is recorded on the blockchain, significantly improving the blockchain's computing speed and throughput while reducing operating costs.

[0075] It should be noted that, in this embodiment, based on blockchain technology and blockchain optimization algorithms, the system achieves efficient management of massive amounts of data center operation and maintenance data. This effectively addresses the enormous pressure that massive operation and maintenance data puts on the blockchain, making the blockchain more practical for data centers, significantly improving the blockchain's computing speed, thereby increasing operation and maintenance efficiency and enhancing the data center's ability to manage operation and maintenance data.

[0076] Therefore, the technical solution of this invention achieves the goal of improving the security, consistency and convenience of operation and maintenance data, providing more effective protection for the storage and use of operation and maintenance data, thereby realizing the technical effect of improving the computing speed of blockchain and improving operation and maintenance efficiency. It also solves the technical problem of low operation and maintenance efficiency when using blockchain technology to manage operation and maintenance data in the prior art due to the slow computing speed of blockchain.

[0077] Example 2

[0078] According to an embodiment of the present invention, a blockchain-based operation and maintenance data management device is provided, wherein... Figure 4 This is a schematic diagram of an optional blockchain-based operation and maintenance data management device according to an embodiment of the present invention, such as... Figure 4As shown, the device includes: a receiving module 401, used to receive data processing requests sent by multiple blockchain nodes, and determine the target processing link corresponding to the data processing request based on the data type in the data processing request, wherein the data processing request is used to request the processing of target operation and maintenance data corresponding to the data type, and the target processing link is one of the following: blockchain main chain, blockchain side chain; a determining module 402, used to generate a target transaction corresponding to the data processing request based on the target processing link, and determine the target processing method corresponding to the target transaction based on the transaction type of the target transaction, wherein the target transaction is used to implement data processing operations on the blockchain, and the target processing method is one of the following: on-chain processing method, off-chain processing method; and a processing module 403, used to process the target transaction according to the target processing method, obtain the data processing result, and return the data processing result to multiple blockchain nodes.

[0079] It should be noted that the receiving module 401, determining module 402 and processing module 403 mentioned above correspond to steps S101 to S103 in the above embodiments. The three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the content disclosed in the above embodiment 1.

[0080] Optionally, the receiving module includes: a first determining module, configured to use the blockchain sidechain as the target processing link if the data type is a performance data type; and a second determining module, configured to use the blockchain main chain as the target processing link if the data type is a data type other than the performance data type.

[0081] Optionally, the determining module includes: a third determining module, configured to, if the transaction type is a first transaction type, use the off-chain processing method as the target processing method; and a fourth determining module, configured to, if the transaction type is a second transaction type, use the on-chain processing method as the target processing method, wherein the real-time requirements of the first transaction type are higher than those of the second transaction type.

[0082] Optionally, the processing module includes: a first acquisition module, configured to acquire historical transaction data within a preset time period if the target processing method is the off-chain processing method, and predict the transaction situation in the future target time period based on a pre-trained ridge regression model and the historical transaction data; a control module, configured to perform state control on the state channel of the blockchain based on the transaction situation in the future target time period, wherein the state channel is used to realize off-chain transactions of the multiple blockchain nodes; and a first generation module, configured to receive the final channel state of the state channel submitted by the multiple blockchain nodes, and generate the data processing result based on the final channel state, wherein the final channel state is the channel state at the end of the transactions of the multiple blockchain nodes in the state channel.

[0083] Optionally, the transaction situation of the future target time period includes at least the number of transactions of each blockchain node in each trading day of the future target time period, wherein the control module includes: a fifth determining module, used to determine a target blockchain node from the plurality of blockchain nodes based on the number of transactions of each blockchain node in each trading day of the future target time period, wherein the target blockchain node is a blockchain node whose number of transactions is greater than a preset threshold; and a first control module, used to perform state control on the state channel corresponding to the target blockchain node according to preset control rules.

[0084] Optionally, the blockchain-based operation and maintenance data management device further includes: a second generation module, used to determine the target processing link corresponding to the data processing request based on the data type in the data processing request, and if the target processing link is the blockchain sidechain, determine the storage space and generation time of the blockchain sidechain based on the data volume of the target operation and maintenance data, and generate the blockchain sidechain based on the storage space and the generation time.

[0085] Optionally, the blockchain-based operation and maintenance data management device further includes: a construction module, configured to construct an initial blockchain before receiving data processing requests from multiple blockchain nodes, wherein the initial blockchain includes multiple initial blocks, each initial block being constructed by each server in the server cluster of the data center; a second acquisition module, configured to acquire the operation and maintenance data of the server and verify the operation and maintenance data according to the standard data requirements of the blockchain to obtain a data verification result, wherein the operation and maintenance data includes at least performance data, and the data verification result characterizes whether the operation and maintenance data passes the verification; a sixth determination module, configured to determine first operation and maintenance data from the operation and maintenance data if the operation and maintenance data passes the verification, and store the first operation and maintenance data outside the blockchain using a target storage method, wherein the first operation and maintenance data is operation and maintenance data with a data volume greater than a data volume threshold; and a third generation module, configured to package the operation and maintenance data other than the first operation and maintenance data into a new block, and perform legality verification on the new block using a target consensus algorithm, and if the new block passes the legality verification, add the new block to the end of the initial blockchain to generate the blockchain.

[0086] Example 3

[0087] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described blockchain-based operation and maintenance data management method at runtime.

[0088] Example 4

[0089] According to another aspect of the present invention, an electronic device is also provided, wherein, Figure 5 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as... Figure 5As shown, the electronic device includes one or more processors; a memory for storing one or more programs. When one or more programs are executed by one or more processors, the processors are configured to run the programs, wherein the programs are set to execute the aforementioned blockchain-based operation and maintenance data management method. When the processor executes the program, it performs the following steps: receiving data processing requests sent by multiple blockchain nodes, and determining the target processing link corresponding to the data processing request based on the data type in the data processing request. The data processing request requests processing of target operation and maintenance data corresponding to the data type. The target processing link is one of the following: the blockchain main chain or the blockchain side chain; generating a target transaction corresponding to the data processing request based on the target processing link, and determining the target processing method corresponding to the target transaction based on the transaction type of the target transaction. The target transaction is used to perform data processing operations on the blockchain. The target processing method is one of the following: on-chain processing or off-chain processing; processing the target transaction according to the target processing method to obtain the data processing result, and returning the data processing result to multiple blockchain nodes.

[0090] Optionally, when the processor executes the program, it also performs the following steps: determining the target processing link corresponding to the data processing request based on the data type in the data processing request, including: if the data type is a performance data type, then the blockchain sidechain is used as the target processing link; if the data type is a data type other than a performance data type, then the blockchain main chain is used as the target processing link.

[0091] Optionally, when the processor executes the program, it also performs the following steps: determining the target processing method corresponding to the target transaction based on the transaction type of the target transaction, including: if the transaction type is the first transaction type, then the off-chain processing method is used as the target processing method; if the transaction type is the second transaction type, then the on-chain processing method is used as the target processing method, wherein the real-time requirement of the first transaction type is higher than that of the second transaction type.

[0092] Optionally, the processor, when executing the program, further implements the following steps: processing the target transaction according to the target processing method to obtain data processing results, including: if the target processing method is off-chain processing, acquiring historical transaction data within a preset time period, and predicting the transaction situation in the future target time period based on a pre-trained ridge regression model and historical transaction data; controlling the state of the blockchain state channel based on the transaction situation in the future target time period, wherein the state channel is used to realize off-chain transactions of multiple blockchain nodes; receiving the final channel state of the state channel submitted by multiple blockchain nodes, and generating data processing results based on the final channel state, wherein the final channel state is the channel state at the end of the transactions of multiple blockchain nodes in the state channel.

[0093] Optionally, the processor, when executing the program, further implements the following steps: the transaction situation for the future target time period includes at least the number of transactions for each blockchain node in each trading day of the future target time period, wherein, based on the transaction situation for the future target time period, state control is performed on the state channel of the blockchain, including: determining a target blockchain node from multiple blockchain nodes based on the number of transactions for each blockchain node in each trading day of the future target time period, wherein the target blockchain node is a blockchain node whose number of transactions exceeds a preset threshold; and performing state control on the state channel corresponding to the target blockchain node according to preset control rules.

[0094] Optionally, when the processor executes the program, it also performs the following steps: after determining the target processing link corresponding to the data processing request based on the data type in the data processing request, if the target processing link is a blockchain sidechain, then based on the amount of target operation and maintenance data, the storage space and generation time of the blockchain sidechain are determined, and the blockchain sidechain is generated based on the storage space and generation time.

[0095] Optionally, the processor, when executing the program, also implements the following steps: before receiving data processing requests from multiple blockchain nodes, constructing an initial blockchain, wherein the initial blockchain includes multiple initial blocks, each of which is constructed by each server in the server cluster of the data center; acquiring the server's operation and maintenance data, and verifying the operation and maintenance data according to the standard data requirements of the blockchain to obtain a data verification result, wherein the operation and maintenance data includes at least performance data, and the data verification result indicates whether the operation and maintenance data has passed verification; if the operation and maintenance data has passed verification, determining the first operation and maintenance data from the operation and maintenance data, and storing the first operation and maintenance data outside the blockchain through a target storage method, wherein the first operation and maintenance data is operation and maintenance data with a data volume greater than a data volume threshold; packaging the operation and maintenance data other than the first operation and maintenance data into a new block, and verifying the legality of the new block through a target consensus algorithm; if the new block passes the legality verification, adding the new block to the end of the initial blockchain to generate the blockchain.

[0096] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0097] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0098] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0100] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0101] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0102] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0103] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A blockchain-based operation and maintenance data management method, characterized in that, include: The system receives data processing requests from multiple blockchain nodes and determines the target processing link corresponding to the data processing request based on the data type in the data processing request. The data processing request is used to request the processing of target operation and maintenance data corresponding to the data type. The target processing link is one of the following: blockchain main chain or blockchain side chain. Based on the target processing link, a target transaction corresponding to the data processing request is generated. Based on the transaction type of the target transaction, a target processing method corresponding to the target transaction is determined. The target transaction is used to perform data processing operations on the blockchain. The target processing method is one of the following: on-chain processing method or off-chain processing method. During the process of determining the target processing method based on the transaction type of the target transaction, it is determined whether the target transaction can be transferred off-chain. When the target transaction is a transaction with high real-time requirements, the off-chain processing method is used as the target processing method, and the target transaction is transferred outside the blockchain network for transaction. When the target transaction is a transaction with low real-time requirements, the on-chain processing method is used as the target processing method. The target transaction is processed according to the target processing method to obtain a data processing result, and the data processing result is returned to the multiple blockchain nodes. The final channel state submitted by the multiple blockchain nodes is received, and the data processing result is generated based on the final channel state. The state channel is used to realize the off-chain transactions of the multiple blockchain nodes, and the final channel state is the channel state when the multiple blockchain nodes finish trading in the state channel.

2. The method according to claim 1, characterized in that, Based on the data type in the data processing request, the target processing link corresponding to the data processing request is determined, including: If the data type is a performance data type, then the blockchain sidechain will be used as the target processing link; If the data type is a data type other than the performance data type, then the blockchain main chain will be used as the target processing link.

3. The method according to claim 1, characterized in that, Based on the transaction type of the target transaction, determine the target processing method corresponding to the target transaction, including: If the transaction type is the first transaction type, then the off-chain processing method will be used as the target processing method. If the transaction type is the second transaction type, then the on-chain processing method will be used as the target processing method, wherein the real-time requirements of the first transaction type are higher than those of the second transaction type.

4. The method according to claim 1, characterized in that, The target transaction is processed according to the target processing method to obtain data processing results, including: If the target processing method is the off-chain processing method, then historical transaction data within a preset time period is obtained, and the transaction situation in the future target time period is predicted based on the pre-trained ridge regression model and the historical transaction data. Based on the transaction situation within the target future time period, the state channels of the blockchain are subject to state control.

5. The method according to claim 4, characterized in that, The transaction data for the future target time period includes at least the number of transactions for each blockchain node on each trading day within that future target time period. The state control of the blockchain's state channels based on the transaction data for the future target time period includes: Based on the number of transactions of each blockchain node in each trading day of the future target time period, a target blockchain node is determined from the plurality of blockchain nodes, wherein the target blockchain node is a blockchain node whose number of transactions is greater than a preset threshold; Based on preset control rules, the state channel corresponding to the target blockchain node is subject to state control.

6. The method according to claim 1, characterized in that, After determining the target processing link corresponding to the data processing request based on the data type in the data processing request, the method further includes: If the target processing link is the blockchain sidechain, then the storage space and generation time of the blockchain sidechain are determined based on the amount of data of the target operation and maintenance data, and the blockchain sidechain is generated based on the storage space and the generation time.

7. The method according to claim 1, characterized in that, Before receiving data processing requests from multiple blockchain nodes, the method further includes: Construct an initial blockchain, wherein the initial blockchain comprises multiple initial blocks, each of which is constructed by each server in the server cluster of the data center; The operation and maintenance data of the server is obtained, and the operation and maintenance data is verified according to the standard data requirements of blockchain to obtain a data verification result. The operation and maintenance data includes at least performance data, and the data verification result indicates whether the operation and maintenance data has passed the verification. If the operation and maintenance data passes the verification, then the first operation and maintenance data is determined from the operation and maintenance data, and the first operation and maintenance data is stored outside the blockchain through the target storage method, wherein the first operation and maintenance data is operation and maintenance data with a data volume greater than the data volume threshold; The operation and maintenance data other than the first operation and maintenance data are packaged into a new block, and the new block is verified for legality using the target consensus algorithm. If the new block passes the legality verification, the new block is added to the end of the initial blockchain to generate the blockchain.

8. A blockchain-based operation and maintenance data management device, characterized in that, include: The receiving module is used to receive data processing requests sent by multiple blockchain nodes, and determine the target processing link corresponding to the data processing request based on the data type in the data processing request. The data processing request is used to request the processing of target operation and maintenance data corresponding to the data type. The target processing link is one of the following: blockchain main chain, blockchain side chain. The determination module is used to generate a target transaction corresponding to the data processing request based on the target processing link, and to determine the target processing method corresponding to the target transaction based on the transaction type of the target transaction. The target transaction is used to perform data processing operations on the blockchain, and the target processing method is one of the following: on-chain processing method or off-chain processing method. During the process of determining the target processing method corresponding to the target transaction based on its transaction type, it is determined whether the target transaction can be transferred off-chain. When the target transaction is a transaction with high real-time requirements, the off-chain processing method is used as the target processing method, and the target transaction is transferred outside the blockchain network for transaction. When the target transaction is a transaction with low real-time requirements, the on-chain processing method is used as the target processing method. The processing module is used to process the target transaction according to the target processing method, obtain the data processing result, and return the data processing result to the multiple blockchain nodes. It receives the final channel state of the state channel submitted by the multiple blockchain nodes and generates the data processing result based on the final channel state. The state channel is used to implement off-chain transactions of the multiple blockchain nodes, and the final channel state is the channel state at the end of the transaction in the state channel by the multiple blockchain nodes.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the blockchain-based operation and maintenance data management method according to any one of claims 1 to 7 when it is run.

10. An electronic device, characterized in that, The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by one or more processors, enable the one or more processors to run the programs, wherein the programs are configured to execute the blockchain-based operation and maintenance data management method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Multi-block chain sectional processing method and device

    CN106899680A

  • Data processing method and device based on block chain network, electronic device and storage medium

    CN110727712A

  • Data processing method and device

    CN114692185A