WO2022077846A1 - Procédé et système d'exploitation et de maintenance basés sur une chaîne de blocs, dispositif informatique et support d'informations - Google Patents

Procédé et système d'exploitation et de maintenance basés sur une chaîne de blocs, dispositif informatique et support d'informations Download PDF

Info

Publication number
WO2022077846A1
WO2022077846A1 PCT/CN2021/078571 CN2021078571W WO2022077846A1 WO 2022077846 A1 WO2022077846 A1 WO 2022077846A1 CN 2021078571 W CN2021078571 W CN 2021078571W WO 2022077846 A1 WO2022077846 A1 WO 2022077846A1
Authority
WO
WIPO (PCT)
Prior art keywords
maintenance
message
blockchain
node
message queue
Prior art date
Application number
PCT/CN2021/078571
Other languages
English (en)
Chinese (zh)
Inventor
姜勇
韩永楠
陈宇峰
Original Assignee
杭州云链趣链数字科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州云链趣链数字科技有限公司 filed Critical 杭州云链趣链数字科技有限公司
Publication of WO2022077846A1 publication Critical patent/WO2022077846A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • the present application relates to the field of blockchain technology, in particular to a blockchain-based operation and maintenance method, system, computer equipment and storage medium.
  • an embodiment of the present application provides a blockchain-based operation and maintenance method, including the following steps:
  • the operation and maintenance message is acquired from the message queue, and an operation and maintenance operation corresponding to the operation and maintenance message is performed on the node according to the operation and maintenance message.
  • the method further includes: updating an on-chain configuration file and an operation and maintenance record on the blockchain according to the operation and maintenance request, and pushing the operation and maintenance message to each a message queue of a node, wherein the operation and maintenance message includes the operation and maintenance record;
  • the operation and maintenance message is acquired from the message queue, and an operation and maintenance operation corresponding to the operation and maintenance message is performed on the node according to the operation and maintenance record in the operation and maintenance message.
  • the operation and maintenance record includes an identifier, a system type, and an operation and maintenance policy.
  • the method when the operation and maintenance request is a version update, the method further includes:
  • Update the on-chain configuration file on the blockchain according to the operation and maintenance request upload the bytecode file to the blockchain, and push the operation and maintenance message to the messages of each node on the blockchain a queue, wherein the bytecode file corresponds to the operation and maintenance request;
  • the method when the operation and maintenance request is a version rollback, the method further includes:
  • the method further includes: when a preset rollback process is triggered, obtaining a rollback version number according to the rollback process, and obtaining and matching the rollback version number from the blockchain.
  • a fallback version bytecode file corresponding to the fallback version is updated, and the fallback version bytecode file is updated to the node corresponding to the message queue.
  • the method further includes:
  • the loading of the bytecode file is completed by a hot loader.
  • the pushing the operation and maintenance message to the message queue of each node on the blockchain includes:
  • the operation and maintenance message fails to be pushed, the operation and maintenance message is reissued through the oracle machine until the operation and maintenance message is pushed successfully.
  • updating the on-chain configuration file on the blockchain according to the operation and maintenance request, and pushing the operation and maintenance message to the message queue of each node on the blockchain includes:
  • the embodiments of the present application further provide a blockchain-based operation and maintenance system, the system includes an operation and maintenance system access party and a blockchain platform, and the operation and maintenance system access party is connected in a node manner Enter the blockchain platform and deploy smart contracts on the blockchain platform, and the operation and maintenance system access parties have their own message queues:
  • the smart contract is used to update the on-chain configuration file on the blockchain according to the operation and maintenance request of the access party of the operation and maintenance system, and push the operation and maintenance message to the message queue of each node on the blockchain.
  • the operation and maintenance message is successfully pushed to the message queue
  • the operation and maintenance message pushed to the message queue of each node on the blockchain is recorded on the blockchain in the form of a transaction, wherein the The on-chain configuration file corresponds to the operation and maintenance request, and the operation and maintenance message corresponds to the operation and maintenance request;
  • the operation and maintenance system access party obtains the operation and maintenance message from the message queue, and performs the operation and maintenance operation corresponding to the operation and maintenance message on the node according to the operation and maintenance message.
  • the smart contract includes a data processing module and a message push module:
  • the data processing module is used to update the bytecode file and the operation and maintenance record on the blockchain according to the operation and maintenance request of the operation and maintenance system access party;
  • the message pushing module is configured to push the operation and maintenance message to the message queue, wherein the operation and maintenance message includes the operation and maintenance record.
  • an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implementing the above-mentioned region-based program when executing the computer program The operation and maintenance method of the blockchain.
  • an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned blockchain-based operation and maintenance method is implemented.
  • the above blockchain-based operation and maintenance method, system, computer equipment and storage medium update the on-chain configuration file on the blockchain according to the operation and maintenance request, and push the operation and maintenance message to the message queue of each node on the blockchain.
  • the push operation is recorded on the blockchain as a transaction; the operation and maintenance message is obtained from the message queue, and the operation and maintenance message corresponding to the operation and maintenance message is executed on the node according to the operation and maintenance message.
  • the operation and maintenance operation through the consensus among the blockchain nodes, realizes that one operation and maintenance operation takes effect on multiple systems at the same time, and realizes the credit endorsement of the whole process to ensure the consistency and security of the operation and maintenance version.
  • FIG. 1 is an application scenario diagram of a blockchain-based operation and maintenance method according to an embodiment of the present application
  • FIG. 2 is a flowchart of a blockchain-based operation and maintenance method according to an embodiment of the present application
  • Fig. 3 is a processing flow chart of operation and maintenance records in the blockchain-based operation and maintenance method according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a blockchain-based operation and maintenance system according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the architecture of a blockchain-based operation and maintenance system according to an optional embodiment of the present application.
  • FIG. 6 is a flowchart of a blockchain-based operation and maintenance method according to an optional embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a blockchain-based operation and maintenance computer device according to an embodiment of the present application.
  • Words like "connected,” “connected,” “coupled,” and the like referred to in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
  • the “plurality” referred to in this application refers to two or more.
  • “And/or” describes the association relationship between associated objects, indicating that there can be three kinds of relationships. For example, “A and/or B” can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • the terms “first”, “second”, “third”, etc. involved in this application are only to distinguish similar objects, and do not represent a specific order for the objects.
  • the blockchain is a distributed database, and the data stored by each node participating in the blockchain behavior maintains data consistency through consensus.
  • the blockchain technology adopted in this application will be illustrated first.
  • the electronic device runs the blockchain technology to become a node of the blockchain network
  • the blockchain platform infrastructure includes a blockchain presentation layer, an application layer, a service layer, and a blockchain core support module.
  • the presentation layer is used to display system functions, and then realize user interaction.
  • Each file subject can log in to the interface displayed by the corresponding presentation layer through the system client to access the application layer and obtain information resources, including registration interface, operation execution interface, query interface, application management interface, administrator interface, etc.
  • the application layer is used to display the specific functions of the blockchain network and is an important part of file storage. It can be divided into user management, permission control, and directory management according to different functions.
  • the service layer is used to effectively integrate and manage application-related functions through distributed servers, such as user registration, user identity management, encryption and decryption services, distributed ledger services, smart contract services, and data management services.
  • the core support modules of the blockchain include data layer, network layer, consensus layer and contract layer.
  • the data layer is used to encapsulate the underlying data blocks and related technologies such as data encryption and time stamping.
  • the network layer encapsulates the P2P networking mode, message dissemination protocol and data verification mechanism of the blockchain network system, so that each node has equal status and is connected and interacted with each other in a flat topology, with distributed, autonomous, open Features such as free entry and exit. Every node in the blockchain network can participate in the verification and accounting process of the block data. Only when the block data is verified by most of the nodes in the entire network can it be recorded in the blockchain.
  • the decentralized design of blockchain ensures that file data cannot be tampered with or forged.
  • the consensus layer encapsulates a method to quickly complete consensus in a topology network with highly decentralized decision-making power to participate in the consensus mechanism of the blockchain network.
  • the contract layer encapsulates the contract code of the data access policy. When the conditions in the contract code are triggered, the corresponding transaction is automatically executed, and the corresponding data can be accessed through the corresponding access conditions specified in the contract content.
  • FIG. 1 is an application scenario diagram of the blockchain-based operation and maintenance method according to an embodiment of the present application.
  • the blockchain-based operation and maintenance method provided by the present application can be applied to the application environment shown in FIG. 1 .
  • the blockchain network 10 includes an operation and maintenance requester node 12, a first node 14 and a second node 16, and the first node 14, the second node 16 and the operation and maintenance requester node 12 are all access parties of the unified operation and maintenance system. According to the data consistency characteristics of the blockchain, all nodes on the blockchain network 10 share all source code data of the operation and maintenance system.
  • the operation and maintenance requester node 12 has operation authority such as uploading, editing, adding or deleting source code data to the blockchain network 10 .
  • the blockchain network 10 updates the on-chain configuration file on the blockchain according to the operation and maintenance request of the operation and maintenance requester node 12, and pushes the operation and maintenance messages to the operation and maintenance requester node 12, the first node 14 and the operation and maintenance requester node 12 on the blockchain respectively.
  • the message queue of the second node 16 records the push operation on the blockchain network 10 in the form of a transaction when the operation and maintenance message is successfully pushed to the message queue; each node of the blockchain network 10 obtains from the message queue Operation and maintenance messages, and perform operation and maintenance operations corresponding to the operation and maintenance messages on the node according to the operation and maintenance messages.
  • the above-mentioned operation and maintenance requester node 12 , the first node 14 and the second node 16 may specifically be any electronic device, such as a server, a mobile phone, a computer, a tablet computer, and the like. It can be understood that, the above-mentioned operation and maintenance requester node 12, the first node 14 and the second node 16 can communicate with each other.
  • the operation and maintenance requester node may include a file node, the first node may include a user node, and the second node may include an accounting node.
  • the distinction between the above nodes is determined according to the identity information logged in through the node.
  • the above blockchain is a private blockchain or a consortium blockchain, and the story is first completed on the blockchain platform. For registration, the corresponding subjects of the above nodes need to complete the registration on the blockchain platform in advance, and obtain the corresponding public and private keys.
  • FIG. 2 is a flowchart of a blockchain-based operation and maintenance method according to an embodiment of the present application, which provides a blockchain-based operation and maintenance method, which is applied to the area in FIG. 1 .
  • the blockchain network 10 is used as an example to illustrate, including the following steps:
  • Step S210 Update the on-chain configuration file on the blockchain according to the operation and maintenance request, and push the operation and maintenance message to the message queue of each node on the blockchain.
  • All access parties of the unified operation and maintenance system access the blockchain network in the form of nodes, and all nodes have all the source code data of the unified operation and maintenance system.
  • the source code data is written into the contract ledger by the script calling the smart contract during initialization.
  • each node needs to build its own message queue service. The node acts as a message producer to push messages to the message queue, and the unified operation and maintenance service access party acts as a message consumer to subscribe to the message queue.
  • the smart contract updates the on-chain configuration file on the blockchain according to the update or modification in the operation and maintenance request when it receives an external operation and maintenance request.
  • the content of the operation and maintenance request generates an operation and maintenance message, and pushes the operation and maintenance message to the message queue of each access party of the unified operation and maintenance system.
  • Each access party of the above unified operation and maintenance system may be each terminal of the same system, or may be access parties of different systems that are applied to the same operation and maintenance management logic but are physically isolated.
  • Step S220 In the case that the operation and maintenance message is successfully pushed to the message queue, record the operation and maintenance message to the message queue of each node on the blockchain in transaction form on the blockchain. After confirming that the operation and maintenance message has been successfully sent to the message queue of each node, the consensus and placement of on-chain transactions are carried out, and written into the blockchain ledger to ensure that the message queue service of each node has completed the placement of the message.
  • the contract and blockchain consensus mechanism carry out credit endorsement for the operation and maintenance process. Optionally, if the operation and maintenance message is not successfully sent, the transaction is rolled back.
  • Step S230 Obtain the operation and maintenance message from the message queue, and perform the operation and maintenance operation corresponding to the operation and maintenance message on the node according to the operation and maintenance message.
  • Each operation and maintenance system access node subscribes to the messages in the message queue, obtains the operation and maintenance message from the message queue when receiving the message, and executes the operation according to the operation and maintenance operation indicated in the operation and maintenance message. For example, if the operation and maintenance request requires the unified shutdown of all the operation and maintenance system access parties on the chain, the blockchain sends a shutdown command, and the access end will receive the operation and maintenance message indicating the shutdown. When the configuration information corresponding to the request is at the administrator level, all clients accessing the blockchain will shut down the system.
  • steps S210 to S230 based on the characteristics of the blockchain platform, combined with the message queue to achieve unified operation and maintenance management of multiple systems, since the system time in the blockchain network is unified for each node, the transaction placement time is for each node.
  • the nodes are also consistent, which improves the time consistency of the operation and maintenance system; at the same time, the smart contract and blockchain consensus mechanism are used to endorse the operation and maintenance process, which improves the security and reliability of the operation and maintenance process.
  • the blockchain platform updates the on-chain configuration file on the blockchain according to the operation and maintenance request, and receives the uploaded updated bytecode file and saves it to the block
  • each operation and maintenance system access node obtains the operation and maintenance message from the message queue, obtains the updated bytecode file from the blockchain according to the operation and maintenance message, and replaces the original on the node with the updated bytecode file.
  • the updated bytecode file is loaded to complete the update.
  • the operation and maintenance request is a version rollback
  • the blockchain since the blockchain will save all files and data on the chain in history, it only needs to obtain the bytecode version number that needs to be rolled back, and the node can download Obtain the bytecode file of the lower version corresponding to the version on the blockchain, replace the bytecode file of the higher version on the node with the bytecode file of the lower version, and load the bytecode file of the lower version.
  • Implement version fallback is not necessarily a rollback to the previous version of the existing version, but may be any historical version.
  • the access node of the operation and maintenance system can also be downgraded according to its own needs.
  • the access side of the operation and maintenance system has a preset rollback process, and the process indicates that if the update fails during the update process, the node automatically rolls back to the specified version.
  • the rollback process is triggered, the node will obtain the bytecode corresponding to the rollback version number from the blockchain according to the rollback version number preset in the rollback process, and update the rollback version.
  • the bytecode is loaded to this node, so as to realize the spontaneous version fallback of the access node.
  • the on-chain configuration file on the blockchain is updated according to the operation and maintenance request, and the execution node corresponding to the operation and maintenance request is determined according to the on-chain configuration file; the operation and maintenance message is pushed to the message queue of the execution node.
  • an execution node that performs an operation and maintenance operation may be specified in a configuration file through an operation and maintenance request. If the instruction of the configuration information is a version update, and not all access parties will be updated at the same time, only the access parties indicated in the configuration information will be updated, and other nodes do not need to be updated. In the process of updating, the update needs to be obtained from the blockchain. The manner provided in this embodiment makes the operation and maintenance more flexible.
  • FIG. 3 is a flowchart of the processing of operation and maintenance records in the blockchain-based operation and maintenance method according to an embodiment of the present application, as shown in FIG. 3 .
  • the blockchain-based operation and maintenance method includes the following steps:
  • Step S310 Update the on-chain configuration file and the operation and maintenance record on the blockchain according to the operation and maintenance request, and push the operation and maintenance message to the message queue of each node on the blockchain.
  • the blockchain also stores the operation and maintenance records for the source code data.
  • the operation object, operation content, etc. corresponding to each operation and maintenance operation may be recorded in the above operation and maintenance record.
  • the smart contract receives an external operation and maintenance request, it updates the on-chain configuration file stored on the blockchain according to the update or modification content in the operation and maintenance request, while maintaining the corresponding operation and maintenance record.
  • the operation and maintenance message pushed to the message queue of each node also includes the operation and maintenance record corresponding to the operation and maintenance message.
  • Step S320 In the case that the operation and maintenance message is successfully pushed to the message queue, record the push operation on the blockchain in the form of a transaction. As mentioned above, the operation and maintenance message is pushed to the message queue of each node. After confirming that the operation and maintenance message has been successfully sent to the message queue of each node, the consensus and placement of on-chain transactions are carried out and written into the blockchain ledger.
  • Step S330 Obtain the operation and maintenance message from the message queue, and perform the operation and maintenance operation corresponding to the operation and maintenance message on the node according to the operation and maintenance record in the operation and maintenance message.
  • steps S310 to S330 not only source code data but also operation and maintenance records are stored on the blockchain.
  • the process of operation and maintenance can be better managed and tracked, and the security of operation and maintenance can be improved.
  • the access party of the operation and maintenance system in the case of frequent or complex operation and maintenance operations, the updated content can be accurately obtained from the blockchain according to the operation and maintenance records in the operation and maintenance message, so as to prevent the update of the updated version. Obfuscation further improves the consistency and security of operation and maintenance.
  • the operation and maintenance record includes an identifier, a system type, and an operation and maintenance policy.
  • the identifier is unique and is used to indicate the operation and maintenance operation uniquely corresponding to the operation and maintenance record
  • the system type indicates the system type corresponding to the operation and maintenance operation
  • the operation and maintenance strategy can be customized. For example, if the operation and maintenance operation is an urgent bug fix, an automatic pull update is performed; if the operation and maintenance operation is a regular update, the system administrator decides whether to perform it.
  • the operation and maintenance strategy in the smart contract is initialized at the beginning of the construction of the blockchain platform, and the operation and maintenance strategy of each application server, that is, the unified operation and maintenance service access party, can be customized according to the operation and maintenance strategy of the blockchain.
  • the contents included in the above operation and maintenance records can improve the accuracy and flexibility of the operation and maintenance process.
  • the smart contract pushes operation and maintenance messages to the message queues of each node through the oracle machine.
  • the function of the oracle machine is to write external information into the blockchain to complete the data exchange between the blockchain and the real world. It allows certain smart contracts to respond to the uncertain external world, and is the way for smart contracts to interact with the outside world, and it is also the interface between the blockchain and the real world.
  • the smart contract runs in the sandbox environment and does not directly interact with external data.
  • the message push process uses the oracle to interact with the outside world. After confirming that the message is successfully sent to the node message queue, the consensus and placement of the on-chain transaction are carried out, and written to the area. Blockchain ledger.
  • the operation and maintenance message push status is obtained through the oracle machine, which can better ensure that the operation and maintenance message is sent to the message queue of each node, so as to better ensure that the operation and maintenance process is executed on each node. Improve the consistency of operation and maintenance.
  • the message push process uses the oracle machine to interact with the outside world. If the message queue of a node fails to produce messages, the oracle machine re-sends the failed message. The purpose is to ensure that the message queue service of each node has completed the message placement. , so that each access party of the operation and maintenance system can complete the operation and maintenance operation.
  • the loading of the bytecode file is completed by the hot loader.
  • the hot loader of the code means that the changed code can take effect without restarting the service.
  • the hot loader can significantly improve the efficiency of development and debugging.
  • the system realizes non-stop maintenance through hot loading technology. The system only needs to pull the latest bytecode and replace the bytecode file in its running container, and use the code hot loader to load it into the running environment to complete the maintenance and upgrade process.
  • FIG. 4 is a schematic structural diagram of a blockchain-based operation and maintenance system implemented according to the present application.
  • a blockchain-based operation and maintenance system 40 is provided, and the system 40 includes The operation and maintenance system access party 42 and the blockchain platform 44.
  • the operation and maintenance system access party 42 accesses the blockchain platform 44 in the form of a node and deploys a smart contract on the blockchain platform 44.
  • the operation and maintenance system The access party has its own message queue 46;
  • the smart contract is used to update the on-chain configuration file on the blockchain according to the operation and maintenance request of the operation and maintenance system access party 42 , and push the operation and maintenance message to the message queue 46 , in the case that the operation and maintenance message is successfully pushed to the message queue 46
  • the push operation is recorded on the blockchain in the form of a transaction, wherein the configuration file on the chain corresponds to the operation and maintenance request, and the operation and maintenance message corresponds to the operation and maintenance request;
  • the operation and maintenance system access party 42 obtains the operation and maintenance message from the message queue 46, and performs the operation and maintenance operation corresponding to the operation and maintenance message on the node according to the operation and maintenance message.
  • the smart contract includes a data processing module and a message push module: the data processing module is used to update the on-chain configuration file and the operation and maintenance record on the blockchain according to the operation and maintenance request of the operation and maintenance system access party 42; the message The push module is used to push the operation and maintenance message to the message queue 46, wherein the operation and maintenance message includes the operation and maintenance record.
  • Figure 4 only shows the situation that the blockchain-based operation and maintenance system includes three operation and maintenance system access parties, three message queues, and three nodes on the blockchain platform. In an application, there may be more or less than three parties. And in some embodiments, the system may not include the operation and maintenance system access party 42, and is only used for the operation and maintenance of blockchain nodes.
  • the operation and maintenance system access party 42 may be various forms of third-party operation and maintenance tools, operation and maintenance platforms, or operation and maintenance systems.
  • the specific definition of the operation and maintenance system based on the blockchain please refer to the definition of the operation and maintenance method based on the blockchain above, which will not be repeated here.
  • Each module in the above-mentioned blockchain-based operation and maintenance system can be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • the above blockchain-based operation and maintenance system updates the on-chain configuration file on the blockchain according to the operation and maintenance request, and pushes the operation and maintenance message to the message queue of each node on the blockchain, wherein the on-chain configuration file and the operation and maintenance
  • the operation and maintenance message corresponds to the request
  • the operation and maintenance message corresponds to the operation and maintenance request
  • the push operation is recorded on the blockchain in the form of a transaction
  • the operation and maintenance message is obtained from the message queue.
  • message and update the node configuration file corresponding to the operation and maintenance message on the node according to the operation and maintenance message.
  • Fig. 5 is a schematic diagram of the architecture of a blockchain-based operation and maintenance system according to an optional embodiment of the present application.
  • the underlying blockchain platform needs to build multiple nodes, and all access parties of the unified operation and maintenance system use nodes as nodes. way to access. All the nodes have all the source code data of the application system. The source code data is written into the contract ledger by the script calling the smart contract during initialization.
  • the node side needs to build its own message queue service.
  • the node acts as a message producer to push messages to the message queue, and the unified operation and maintenance service access party acts as a message consumer to subscribe to the message queue.
  • smart contracts are divided into two modules in design. Including data processing and message push modules.
  • the data processing module receives and processes external operation and maintenance requests and code bytecode files required for operation and maintenance. Specifically, the data processing module updates the source code file, that is, the bytecode file, on the chain according to the external request, and maintains the corresponding operation and maintenance records.
  • the operation and maintenance records include unique identifiers, system types, and operation and maintenance strategies.
  • the message push module monitors the behavior of the data processing module, and pushes the operation and maintenance messages according to the newly added operation and maintenance records of the data processing module.
  • the smart contract runs in the sandbox environment and does not directly interact with external data.
  • the message push process uses the oracle to interact with the outside world.
  • the consensus and placement of the on-chain transaction are carried out, and written to the area.
  • Blockchain ledger otherwise the transaction is rolled back. If a node fails to produce a message, the oracle machine reissues the failed message, and finally ensures that the message queue service of each node completes the message placement.
  • the access party consumes the messages in its message queue through the unified operation and maintenance subscription service, pulls the latest code bytecode file on the chain according to the system type and operation and maintenance strategy in the operation and maintenance message, and updates the code bytecode file in the running container , and use the hot loader to complete the hot loading of bytecode files to achieve the ultimate goal of operation and maintenance.
  • the operation and maintenance strategy can be customized.
  • an automatic pull update is performed. If it is a regular update, the system administrator decides whether to perform it.
  • the operation and maintenance strategy in the smart contract is initialized at the beginning of the construction of the blockchain platform.
  • the operation and maintenance strategy of each application server, that is, the unified operation and maintenance service access party, can be customized according to the operation and maintenance strategy of the blockchain.
  • FIG. 6 is a flowchart of a blockchain-based operation and maintenance method according to an optional embodiment of the present application. As shown in FIG. 6 , the blockchain-based operation and maintenance process includes the following steps:
  • Step S610 The smart contract obtains a unified operation and maintenance request.
  • a unified operation and maintenance request is initiated from outside the blockchain platform.
  • Step S620 The smart contract executes data processing logic. Update on-chain source code bytecode files and maintain operation and maintenance records.
  • Step S630 The smart contract publishes the operation and maintenance message to the message queue through the oracle machine. After the smart contract completes data processing, it publishes operation and maintenance messages to the message queue corresponding to the server where each node is located through the oracle machine.
  • Step S640 Determine whether the operation and maintenance message is successfully published.
  • Step S650 in the case that the publishing of the operation and maintenance message fails, the operation and maintenance operation is rolled back.
  • Step S660 In the case that the operation and maintenance message is published successfully, a node consensus is performed, and the transaction is placed. After the oracle machine determines that the node corresponding to the message queue receives the message, each node reaches a consensus, synchronizes the transaction data, and completes the transaction.
  • Step S670 the access party consumes the message from the message queue.
  • the node access party that is, the unified operation and maintenance service access party, consumes messages and pulls the latest bytecode files on the chain.
  • Step S680 The application system container updates the bytecode file and performs hot loading.
  • the application system container replaces the existing bytecode file in the system running container with the latest bytecode file obtained on the chain, and uses the hot loader to hot load the bytecode file, and finally completes the entire operation and maintenance process.
  • the blockchain-based operation and maintenance method in the above-mentioned optional embodiment realizes unified operation and maintenance management of multiple systems, and physical isolation of multiple systems. It is effective for multiple systems, and based on this, the credit endorsement of the entire process is realized to ensure the consistency of operation and maintenance versions, and at the same time, historical updates can be traced back and easily restored. Through this technology, the system can be maintained without downtime. The system only needs to pull the latest bytecode and replace the bytecode file in its running container, and use the code hot loader to load it into the running environment to complete the maintenance and upgrade process. Based on the characteristics of the blockchain platform, combined with message queue and code file hot loading technology to achieve unified operation and maintenance management of multiple systems, use smart contracts and blockchain consensus mechanism to endorse the operation and maintenance process, and finally realize the blockchain-based unified operation and maintenance plan.
  • the above optional embodiments are mainly aimed at the operation and maintenance of external application systems, but the method provided in this application is not limited to the operation and maintenance scenarios of external application systems in the above optional embodiments, for example, code hot loading
  • the controller can point to the blockchain node in the reverse direction, so as to realize the self-update of the blockchain node.
  • this solution can also be provided to the blockchain Chain nodes respond to self-update of new business requirements.
  • the method provided by this application can also be combined with other systems with operation and maintenance requirements, and the modification and improvement of the scheme made under the premise of not departing from the concept of this application all belong to the protection scope of this application.
  • steps in the flowcharts in FIGS. 2 to 6 are sequentially displayed in accordance with the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 2 to FIG. 6 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages may be executed at different times. The order of execution of the stages is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a stage.
  • FIG. 7 is a schematic structural diagram of a blockchain-based operation and maintenance computer device according to an embodiment of the present application. As shown in FIG. 7 , its internal The structure diagram can be shown in Figure 7.
  • the computer equipment includes a processor, memory, a network interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to implement a blockchain-based operation and maintenance method.
  • the display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen
  • the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
  • FIG. 7 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • a computer device including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the above blockchain-based operation and maintenance method when the computer program is executed .
  • the above-mentioned blockchain-based operation and maintenance computer equipment updates the on-chain configuration file on the blockchain according to the operation and maintenance request, and pushes the operation and maintenance message to the message queue of each node on the blockchain.
  • the operation and maintenance message corresponds to the operation and maintenance request; when the operation and maintenance message is successfully pushed to the message queue, the push operation is recorded on the blockchain in the form of a transaction; the operation and maintenance message is obtained from the message queue.
  • maintenance message and execute the operation and maintenance operation corresponding to the operation and maintenance message on the node according to the operation and maintenance message.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the foregoing blockchain-based operation and maintenance method is implemented.
  • the above-mentioned blockchain-based operation and maintenance computer-readable storage medium updates the on-chain configuration file on the blockchain according to the operation and maintenance request, and pushes the operation and maintenance message to the message queue of each node on the blockchain, wherein the on-chain configuration
  • the file corresponds to the operation and maintenance request
  • the operation and maintenance message corresponds to the operation and maintenance request
  • the push operation is recorded on the blockchain in the form of a transaction
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

La présente invention porte sur un procédé et sur un système d'exploitation et de maintenance basés sur une chaîne de blocs, sur un dispositif informatique et sur un support d'informations. Le procédé comprend : la mise à jour d'un fichier de configuration en chaîne sur une chaîne de blocs en fonction d'une demande d'exploitation et de maintenance, et l'envoi d'un message d'exploitation et de maintenance vers une file d'attente de messages de chaque nœud sur la chaîne de blocs, le fichier de configuration en chaîne correspondant à la demande d'opération et de maintenance, et le message d'exploitation et de maintenance correspondant à la demande d'opération et de maintenance; si le message d'exploitation et de maintenance est envoyé avec succès vers la file d'attente de messages, l'enregistrement de l'opération d'envoi sur la chaîne de blocs sous la forme d'une transaction; et l'obtention du message d'exploitation et de maintenance à partir de la file d'attente de messages et selon le message d'exploitation et de maintenance, la réalisation d'une opération d'exploitation et de maintenance correspondant au message d'exploitation et de maintenance sur le nœud.
PCT/CN2021/078571 2020-10-15 2021-03-02 Procédé et système d'exploitation et de maintenance basés sur une chaîne de blocs, dispositif informatique et support d'informations WO2022077846A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011101503.XA CN111930443B (zh) 2020-10-15 2020-10-15 基于区块链的运维方法、系统、计算机设备和存储介质
CN202011101503.X 2020-10-15

Publications (1)

Publication Number Publication Date
WO2022077846A1 true WO2022077846A1 (fr) 2022-04-21

Family

ID=73334452

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078571 WO2022077846A1 (fr) 2020-10-15 2021-03-02 Procédé et système d'exploitation et de maintenance basés sur une chaîne de blocs, dispositif informatique et support d'informations

Country Status (2)

Country Link
CN (1) CN111930443B (fr)
WO (1) WO2022077846A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116402496A (zh) * 2023-06-08 2023-07-07 山东诚卓信息技术有限公司 一种it资产的可视化维保管控方法及系统
CN117270936A (zh) * 2023-10-10 2023-12-22 武汉碧涯科技有限公司 一种云平台运维方法及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930443B (zh) * 2020-10-15 2020-12-18 杭州云链趣链数字科技有限公司 基于区块链的运维方法、系统、计算机设备和存储介质
CN112733182A (zh) * 2020-12-22 2021-04-30 航天信息股份有限公司 一种区块链节点访问内网隐私数据的方法及系统
CN112632192A (zh) * 2020-12-31 2021-04-09 杭州趣链科技有限公司 节点维护方法、装置、计算机设备及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542865A (zh) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 分布式集群系统配置文件同步方法、装置、系统及介质
US20190354614A1 (en) * 2018-05-15 2019-11-21 International Business Machines Corporation Configuration drift prevention across multiple systems using blockchain
CN110659430A (zh) * 2019-08-23 2020-01-07 上海共链信息科技有限公司 一种支持多区块链网络的区块链浏览方法
CN111488616A (zh) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 业务数据区块链的预言机实现方法及装置
CN111726304A (zh) * 2020-06-19 2020-09-29 中国工商银行股份有限公司 信息处理方法、信息处理装置、计算机系统和介质
CN111930443A (zh) * 2020-10-15 2020-11-13 杭州云链趣链数字科技有限公司 基于区块链的运维方法、系统、计算机设备和存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450664B (zh) * 2018-10-09 2022-07-12 北京医拍智能科技有限公司 一种基于区块链p2p网络的数据协同处理方法及装置
CN110175032B (zh) * 2019-01-17 2023-01-06 杭州趣链科技有限公司 一种高可用区块链开放平台及应用发布方法
CN110659142A (zh) * 2019-08-02 2020-01-07 平安科技(深圳)有限公司 消息队列处理方法及装置、电子设备、存储介质
CN110609755A (zh) * 2019-08-02 2019-12-24 平安科技(深圳)有限公司 跨区块链节点的消息处理方法及装置、设备、介质
CN110708371A (zh) * 2019-09-27 2020-01-17 支付宝(杭州)信息技术有限公司 一种基于区块链的数据处理方法、装置、系统及电子设备
CN111461879A (zh) * 2020-03-11 2020-07-28 中关村科技软件股份有限公司 一种基于区块链的政务服务处理系统和方法
CN111770130B (zh) * 2020-05-08 2022-08-05 贵阳信息技术研究院(中科院软件所贵阳分部) 一种区块链分布式组网中软硬件资源高效协同复用的方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190354614A1 (en) * 2018-05-15 2019-11-21 International Business Machines Corporation Configuration drift prevention across multiple systems using blockchain
CN109542865A (zh) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 分布式集群系统配置文件同步方法、装置、系统及介质
CN110659430A (zh) * 2019-08-23 2020-01-07 上海共链信息科技有限公司 一种支持多区块链网络的区块链浏览方法
CN111488616A (zh) * 2020-04-08 2020-08-04 北京瑞策科技有限公司 业务数据区块链的预言机实现方法及装置
CN111726304A (zh) * 2020-06-19 2020-09-29 中国工商银行股份有限公司 信息处理方法、信息处理装置、计算机系统和介质
CN111930443A (zh) * 2020-10-15 2020-11-13 杭州云链趣链数字科技有限公司 基于区块链的运维方法、系统、计算机设备和存储介质

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116402496A (zh) * 2023-06-08 2023-07-07 山东诚卓信息技术有限公司 一种it资产的可视化维保管控方法及系统
CN116402496B (zh) * 2023-06-08 2023-08-22 山东诚卓信息技术有限公司 一种it资产的可视化维保管控方法及系统
CN117270936A (zh) * 2023-10-10 2023-12-22 武汉碧涯科技有限公司 一种云平台运维方法及系统
CN117270936B (zh) * 2023-10-10 2024-03-19 武汉碧涯科技有限公司 一种云平台运维方法及系统

Also Published As

Publication number Publication date
CN111930443B (zh) 2020-12-18
CN111930443A (zh) 2020-11-13

Similar Documents

Publication Publication Date Title
WO2022077846A1 (fr) Procédé et système d'exploitation et de maintenance basés sur une chaîne de blocs, dispositif informatique et support d'informations
US10764142B2 (en) Clustered application management with a blockchain
US11323530B2 (en) Proxy agents and proxy ledgers on a blockchain
US10754989B2 (en) Runtime self-correction for blockchain ledgers
CN111213340B (zh) 选择用于密码功能的证明委托并使其安全
US11018852B2 (en) Blockchain trust anchor
US20200252202A1 (en) Cross-chain validation
US20200084615A1 (en) Switching mobile service provider using blockchain
US20200052884A1 (en) Parallel transaction validation and block generation in a blockchain
US20190372772A1 (en) Blockchain implementing delta storage
US20190318338A1 (en) Network node management on a blockchain
US10997150B2 (en) Configuration drift prevention across multiple systems using blockchain
US11188920B2 (en) Autocommit transaction management in a blockchain network
US20220382746A1 (en) Blockchain notification board storing blockchain resources
US10922097B2 (en) Collaborative model execution
US20190288995A1 (en) Autonomous secrets management for a managed service identity
US10691790B2 (en) Autonomous secrets management for a temporary shared access signature service
US20220083643A1 (en) Autonomous secrets renewal and distribution
US20200110824A1 (en) Blockchain notification board storing blockchain resources
WO2019028992A1 (fr) Procédé de construction de relation de dépendance de version multi-module, dispositif, serveur et support de stockage
US11689616B2 (en) Optimization of delivery of blocks
US11568402B2 (en) Decentralized out-of-band accelerated blockchain transaction processing
WO2019219324A1 (fr) Projection de données automatisée pour groupes de contrats intelligents sur une chaîne de blocs
US10965457B2 (en) Autonomous cross-scope secrets management
CN111737104A (zh) 区块链网络服务平台及其测试用例共享方法、存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21878903

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21878903

Country of ref document: EP

Kind code of ref document: A1