[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112445865B - Method and device for automatically deploying block chain network and cloud computing platform - Google Patents

Method and device for automatically deploying block chain network and cloud computing platform Download PDF

Info

Publication number
CN112445865B
CN112445865B CN202110123803.6A CN202110123803A CN112445865B CN 112445865 B CN112445865 B CN 112445865B CN 202110123803 A CN202110123803 A CN 202110123803A CN 112445865 B CN112445865 B CN 112445865B
Authority
CN
China
Prior art keywords
blockchain
current
configuration information
node
block chain
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110123803.6A
Other languages
Chinese (zh)
Other versions
CN112445865A (en
Inventor
张翼翔
李廷鹏
刘勤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Ant Blockchain Technology Shanghai Co Ltd
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 Alipay Hangzhou Information Technology Co Ltd, Ant Blockchain Technology Shanghai Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202110123803.6A priority Critical patent/CN112445865B/en
Publication of CN112445865A publication Critical patent/CN112445865A/en
Application granted granted Critical
Publication of CN112445865B publication Critical patent/CN112445865B/en
Priority to PCT/CN2021/133145 priority patent/WO2022160904A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the specification provides a method and a device for automatically deploying a blockchain network and a cloud computing platform. The cloud computing platform comprises a device for automatically deploying a block chain network and a plurality of computing resources, wherein the block chain network comprises a plurality of block chain nodes. An apparatus for automated deployment of a blockchain network is configured to determine a computing resource for deploying any current blockchain node of a number of blockchain nodes, provide an executable file corresponding to the current blockchain node to the determined computing resource, and trigger the computing resource to execute the executable file. A computing resource that receives the executable file, configured to implement, by executing the executable file: acquiring an installation package of a block chain service and acquiring configuration information of a current block chain node; and starting the blockchain service according to the installation package of the blockchain service, and finishing deploying the current blockchain node containing the configuration information.

Description

Method and device for automatically deploying block chain network and cloud computing platform
Technical Field
One or more embodiments of the present disclosure relate to the field of blockchain, and in particular, to a method and an apparatus for automated deployment of a blockchain network, and a cloud computing platform.
Background
The blockchain technology is also called as distributed book technology, is a decentralized distributed database technology and is characterized by decentralization, openness and transparency and no tampering. Specifically, each piece of data in the blockchain network is broadcast to all blockchain nodes, and each blockchain node can store the same piece of data through a corresponding storage resource.
When a blockchain network is deployed, a large amount of manual intervention is often required by a worker, that is, the worker is required to perform a large amount of manual operation on computing resources for deploying blockchain nodes.
A new technical scheme is expected to be provided, so that the block chain network can be more automatically deployed, and the manual intervention degree is reduced.
Disclosure of Invention
One or more embodiments of the present specification provide a method, an apparatus, and a cloud computing platform for automatically deploying a blockchain network.
In a first aspect, a cloud computing platform is provided that includes an apparatus for automatically deploying a blockchain network that includes a number of blockchain nodes, and a number of computing resources. Wherein the apparatus for automatically deploying a blockchain network may determine a computing resource for deploying any current blockchain node of the plurality of blockchain nodes; and providing the executable file corresponding to the current block link point to the determined computing resource, and triggering the computing resource to execute the executable file. The computing resource that receives the executable file implements by executing the executable file: and acquiring an installation package of the blockchain service and configuration information of the current blockchain node, and starting the blockchain service according to the installation package of the blockchain service, thereby completing the deployment of the current blockchain node containing the configuration information.
In one possible implementation, the configuration information includes a private key and a digital certificate for secure communications.
In one possible embodiment, the configuration information comprises at least one of the following items of information: the unique identification of the current blockchain node, the IP address of the current blockchain link point, and the unique identifications and/or IP addresses of other blockchain nodes in the plurality of blockchain nodes except the current blockchain link point.
In one possible implementation, the computing resource comprises a computing device.
In one possible implementation, the computing resource includes a virtual compute node deployed on a computing device.
In a possible implementation manner, a key management service device and a digital certificate service device are further included in the cloud computing platform. The device for automatically deploying the blockchain network is further configured to send a key service request to the key management service device, so that the key management service returns a private key and a certificate signature request of the current blockchain node to the device for automatically deploying the blockchain network; and configured to send a certificate signing request of the current blockchain node to the digital certificate service apparatus, causing the digital certificate service apparatus to return the digital certificate of the current blockchain node to the apparatus that automatically deploys the blockchain network; the configuration information of the current blockchain node comprises a private key and a digital certificate of the current blockchain node.
In a possible implementation manner, an object storage service device is further included in the cloud computing platform. The device for automatically deploying the blockchain network is also configured to generate configuration information of the current blockchain nodes, and send the configuration information to the object storage service device, so that the object storage service device returns a storage address of the configuration information to the device for automatically deploying the blockchain network; and generating an executable file corresponding to the current block link point, wherein the executable file comprises the storage address. Wherein the computing resource is embodied by executing the executable file: and sending a data query request containing the storage address to the object storage service device, so that the object storage service device returns the configuration information to the computing resource.
In one possible implementation, the computing resource further implements, by executing the executable file: mounting a file system built based on a plurality of storage devices; and the current block chain node stores data through the file system.
In one possible embodiment, the configuration information comprises at least one of the following items of information:
the storage protocol indication information is used for indicating a storage protocol required to be adopted when the current blockchain node stores data through the file system;
and the storage resource indication information is used for indicating the size of the storage resource occupied when the front block chain node stores the data through the file system.
In one possible embodiment, the apparatus for automatically deploying a blockchain network is specifically configured to establish a secure connection with the computing resource and send a control signal to the computing resource via the established secure connection to cause the computing resource to execute the executable file.
In a possible embodiment, the apparatus for automatically deploying a blockchain network is further configured to receive a blockchain network deployment request from a terminal device; the block chain network deployment request at least comprises the number of block chain link points contained in the block chain network.
In a second aspect, a method of automated deployment of a blockchain network comprising a number of blockchain nodes is provided. The method comprises the following steps: firstly, determining a computing resource for deploying any one current blockchain node in a plurality of blockchain nodes; the computing resource is then provided with an executable file corresponding to the current block link point and triggered to execute the executable file. Wherein the computing resource is implemented by executing the executable file: acquiring an installation package of a block chain service and acquiring configuration information of a current block chain node; and starting the block chain service according to the installation package to finish deploying the current block chain node, wherein the current block chain node comprises the configuration information.
In one possible implementation, the configuration information includes a private key and a digital certificate for secure communications.
In one possible embodiment, the configuration information comprises at least one of the following items of information: a unique identification of the current blockchain node, an Internet Protocol (IP) address of the current blockchain node, and a unique identification and/or IP address of other blockchain nodes of the plurality of blockchain nodes except the current blockchain node.
In one possible implementation, the computing resource comprises a computing device.
In one possible implementation, the computing resource includes a virtual compute node deployed on a computing device.
In one possible embodiment, the method is performed by an apparatus of an automated deployment blockchain network deployed in a cloud computing platform, the cloud computing platform further comprising a key management service apparatus and a digital certificate service apparatus. The method further comprises the following steps: sending a key service request to a key management service device, enabling the key management service device to generate a private key and a Certificate Signature Request (CSR) of a current blockchain node, and returning the private key and the certificate signature request to a device of an automated deployment blockchain network; the certificate signing request is sent to a digital certificate service device, the digital certificate service device is caused to generate a digital certificate of the current blockchain node, and the digital certificate is returned to a device of the automated deployment blockchain network. Wherein, the configuration information of the current block node comprises the private key and the digital certificate.
In a possible implementation manner, an object storage service device is further included in the cloud computing platform. The method further comprises the following steps: generating configuration information of the current block chain nodes; sending the configuration information of the current block chain node to the object storage service device, enabling the object storage service device to store the configuration information of the current block chain node, and returning the storage address of the configuration information to the device for automatically deploying the block chain network; and generating an executable file corresponding to the link point of the current block, wherein the executable file comprises the storage address. Wherein the computing resource is embodied by executing the executable file: and sending a data query request containing the storage address to the object storage service device, so that the object storage service device returns the configuration information of the current block node to the computing resource.
In one possible implementation, the computing resource further implements, by executing the executable file: mounting a file system built based on a plurality of storage devices; and the current block chain node stores data through the file system.
In one possible embodiment, the configuration file further comprises stored information including at least one of the following items of information: the storage protocol indication information is used for indicating a storage protocol required to be adopted when the current block link point stores data through a file system; and the storage resource indication information is used for indicating the size of the storage resource occupied when the current block link point stores data through the file system.
In a possible implementation manner, triggering the computing resource to execute the executable file specifically includes: establishing a secure connection with the computing resource; sending a control signal to the computing resource over the established secure connection to cause the computing resource to execute the executable file.
In one possible embodiment, the method further comprises: receiving a block chain network deployment request from terminal equipment; the block chain network deployment request at least comprises the number of block chain link points contained in the block chain network.
In a third aspect, an apparatus for automatically deploying a blockchain network is provided, and the apparatus is configured to implement the method provided in any one of the second aspects.
In a fourth aspect, there is provided a computing device comprising a processor that, when executing computer instructions/code stored in a memory, implements the method of any of the second aspects.
In a fifth aspect, there is provided a computer readable storage medium having stored thereon computer instructions/code which, when executed in a computing device, implements the method of any of the second aspects.
Through the technical solution provided in the embodiments of the present specification, when a blockchain network needs to be deployed, for each current blockchain node in a plurality of blockchain nodes included in the blockchain network, a computing resource for deploying the current blockchain node may be first determined, then an executable file corresponding to the current blockchain node is provided to the computing resource, and the computing resource is triggered to execute the executable file, so that the computing resource implements: and acquiring an installation package of the blockchain service and configuration information of the current blockchain node, starting the blockchain service according to the installation package of the blockchain service, and finishing deploying the current blockchain node containing the configuration information. And manual intervention is not needed in the process of deploying the block chain network, so that the efficiency is higher.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system framework diagram of the solution provided in the examples of this specification;
fig. 2 is a flowchart illustrating a method for automatically deploying a blockchain network according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another method for automatically deploying a blockchain network provided in an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus for automatically deploying a blockchain network provided in an embodiment of the specification.
Detailed Description
Various non-limiting embodiments provided by the present specification are described in detail below with reference to the attached figures.
Fig. 1 is a system framework diagram of the technical solution provided in the embodiment of the present specification. As shown in fig. 1, in a cloud computing platform, a computing task and a storage task are separated, the computing task is executed by a plurality of special computing devices, and the storage task is executed by a plurality of special storage devices. A file system can be built by using a plurality of Storage devices, such as a Network Attached Storage (NAS) file system; after the computing device or a virtual compute node deployed on the computing device successfully mounts the file system, data may be stored by the file system. In addition, various service devices for realizing specific services can be deployed in the cloud computing platform according to service requirements.
In a possible technical solution, a user may request, through a terminal device connected to a cloud computing platform, the cloud computing platform to deploy a blockchain network including a plurality of blockchain nodes. In implementation, after determining a plurality of computing resources for deploying the blockchain network, a large amount of manual intervention is usually required by a worker, for example, the worker manually creates/applies for configuration information of blockchain nodes, manually triggers the computing resources to initiate blockchain service, and the like. A large amount of manual intervention will result in that deployment of the blockchain network cannot be completed quickly and accurately, and the efficiency is low.
In order to reduce the degree of manual intervention in the deployment process of the blockchain network and thus complete deployment of the blockchain network more efficiently, at least one embodiment of the present specification provides a method and an apparatus for automatically deploying the blockchain network, and a cloud computing platform. The cloud computing platform at least comprises a device for automatically deploying the blockchain network and a plurality of computing resources, and optionally comprises one or more of a key management service device, a digital certificate service device and an object storage service device. When the blockchain network needs to be deployed, the device for automatically deploying the blockchain network may first determine, for each current blockchain node in a plurality of blockchain nodes included in the blockchain network, a computing resource for deploying the current blockchain node, then provide an executable file corresponding to the current blockchain node to the computing resource, and trigger the computing resource to execute the executable file, so that the computing resource implements: and acquiring an installation package of the blockchain service, acquiring configuration information of the current blockchain node, and starting the blockchain service according to the installation package of the blockchain service, thereby completing the deployment of the current blockchain node. Wherein the current block link point where the allocation is completed includes the allocation information.
It should be noted that each device included in the cloud computing platform may be in the form of hardware, software, or firmware. Specifically, each device may be a computing device of an entity, or may be a virtual computing node in a cloud computing platform. When any one of the foregoing apparatuses is implemented by using software, a computer program corresponding to the apparatus may be stored in a computer-readable medium, or the computer program corresponding to the apparatus may be transmitted as one or more instructions/codes on the computer-readable medium, so that when the computer program corresponding to the apparatus is executed by a computing resource, the computing resource implements various functions of the apparatus.
Fig. 2 is a flowchart illustrating a method for automatically deploying a blockchain network according to an embodiment of the present disclosure. The execution subject of the method may be a computing device, a virtual computing node deployed on a computing device, or a cloud computing platform containing several computing devices. As shown in fig. 2, the method may include at least:
at step 201, computing resources for deploying a current blockchain node are determined.
The current blockchain link point is any blockchain node included in a blockchain network to be deployed.
Step 202, providing the executable file corresponding to the link point of the current block to the computing resource, and triggering the computing resource to execute the executable file.
Wherein the computing resource implements, when executing the executable file: acquiring an installation package of a block chain service and acquiring configuration information of a current block chain node; and starting the blockchain service according to the installation package of the blockchain service to complete the deployment of the current blockchain node containing the configuration information.
The automated deployment of the blockchain network can be completed by executing step 201 and step 202 on each blockchain node included in the blockchain network.
The process of automated deployment of blockchain networks is described below in conjunction with the system framework shown in fig. 1.
Fig. 3 is a flowchart of another method for automatically deploying a blockchain network provided in an embodiment of the present disclosure. The method for automatically deploying the blockchain network may include some or all of steps 301 to 3145 shown in fig. 3.
Step 301, the device for automatically deploying the blockchain network receives a blockchain network deployment request from a terminal device.
The blockchain network deployment request is used for requesting that a blockchain network is deployed in the cloud computing platform. Optionally, the block chain network deployment request is further used to indicate the number of block chain nodes included in the block chain network, and the size of the storage resource that each block chain node needs to use.
For each current blockchain node included in the blockchain network, the automated means for deploying the blockchain network determines a computing resource for deploying the current blockchain node, step 302.
In other words, when a user requests the cloud computing platform to deploy the block chain network including the N block chain nodes through the terminal device, the apparatus for automatically deploying the block chain network needs to determine N computing resources, where the N computing resources are in one-to-one correspondence with the N block chain nodes, and each computing resource is used to deploy its corresponding block chain node.
In particular, an apparatus for automated deployment of blockchain networks may create virtual compute nodes on any computing device in a cloud computing platform, and the created virtual compute nodes may be determined as computing resources for deploying blockchain nodes. Alternatively, a number of virtual compute nodes have been created on a number of computing devices included in the cloud computing platform, from which the apparatus for automatically deploying the blockchain network may select one virtual compute node as a computing resource for deploying the current blockchain node. Alternatively, the apparatus for automated deployment of blockchain networks may determine any computing device included in the cloud computing platform as a computing resource for deploying the current blockchain node.
In step 303, the device that automatically deploys the blockchain network sends a key service request to the key management service device.
The key management service device generates a private key of the current blockchain node and the CSR in response to a key service request from a device of the automated deployment blockchain network, and performs step 304 to send the private key of the current blockchain node and the CSR to the blockchain network service device.
In step 305, the blockchain network deployment service sends the CSR to the digital certificate service.
The digital certificate service device generates a digital certificate for the current blockchain node in response to the CSR from the device of the automated deployment blockchain network and performs step 306 of sending the digital certificate for the current blockchain node to the device of the automated deployment blockchain network.
Step 307, the device for automatically deploying the blockchain network generates configuration information of the current blockchain node.
The configuration information of the current block link point comprises a private key and a digital certificate of the current block link point, and the private key and the digital certificate are used for supporting the current block link point to perform secure communication.
The configuration information of the current blockchain node may further include connection configuration information, where the connection configuration information is used to support the current blockchain node to establish a communication connection with other blockchain nodes in the blockchain network. The connection configuration information may include any one or more of the following: the IP address of the current blockchain node, the unique identification of the current blockchain link point, the IP address of each blockchain node in the blockchain network except the current blockchain link point, and the unique identification of each blockchain node in the blockchain network except the current blockchain link point. The unique identifier may be a character string generated by deployment of the blockchain network, and different blockchain link points in the blockchain network can discover each other through the respective unique identifier and establish a communication connection.
The configuration information of the current block link point may further include storage configuration information, where the storage configuration information is used to support the current block link point to store data through a file system. Wherein the storage configuration information may include any one or more of the following items of information: the storage protocol indication information is used for indicating a storage protocol required to be adopted when the current block link point stores data through a file system; and the storage resource indication information is used for indicating the size of the storage resource needed to be used when the current block link point stores data through the file system.
Other information may also be included in the configuration information of the current chunk node. For example, the configuration information may further include: an encryption algorithm and a decryption algorithm which are required to be adopted when the current block chain node and other block chain nodes in the block chain network exchange data; or indication information for indicating the encryption algorithm and the decryption algorithm.
Step 308, the device automatically deploying the blockchain network sends the configuration information of the current blockchain node to the object storage service device.
The object storage service device may store configuration information of the current chunk node through the NAS file system or other file systems deployed in the cloud computing platform. It should be noted that the object storage service device may store the configuration information of the current block node as an entire storage object to the NAS file system or another file system deployed in the cloud computing platform, and obtain a storage address of the storage object in the corresponding file system, that is, obtain a storage address of the configuration information.
In step 309, the object storage service device sends the storage address of the configuration information to the device of the automation deployment blockchain network.
At step 310, the device that automatically deploys the blockchain network generates an executable file that includes the storage address.
The device for automatically deploying the blockchain network can maintain a template of an executable file in advance according to tasks required to be executed by computing resources, and can obtain the executable file corresponding to the current blockchain link point by inserting the storage address of the configuration information into the template of the executable file.
At step 311, the device that automatically deploys the blockchain network sends the executable to the computing resource.
An apparatus that automates deploying a blockchain network may send an executable file corresponding to a current blockchain nexus to the computing resource based on connection configuration information (e.g., an IP address or other identification that can be used to identify the computing resource) for the computing resource. Alternatively, the blockchain network deployment service may send the executable file corresponding to the current blockchain link point to the computing resource through the established secure connection after completing the secure connection with the computing resource in the subsequent process.
At step 312, the devices of the automated deployment blockchain network establish secure connections with the computing resources.
The Secure connection may include, but is not limited to, a Secure Shell protocol (SSH) connection. Specifically, the device for automatically deploying the blockchain network can be a java-based service/device; the computing resources may employ a LINUX operating system or an operating system based on a LINUX system kernel, such that the computing resources support SSH connectivity. In this way, the device for automatically deploying the blockchain network may establish an SSH connection with the computing resource through a Java Secure Channel (JSCH), and then remotely control the computing resource for deploying the current blockchain node based on the SSH connection.
Specifically, at step 313, the device that automates deploying the blockchain network sends a control signal to the computing resource over the secure connection.
The computing resource for deploying the current blockchain node executes step 314, executing the executable file it receives, in response to a control signal from a device that automates deploying the blockchain network.
Specifically, the computing resource for deploying the current blockchain node implements the following steps 3141 to 3145 through the execution of the executable file received by the computing resource.
At step 3141, the file system is mounted.
At step 3142, a data query request including the storage address is sent to the object storage service device.
At step 3143, configuration information is received from the object storage service.
At step 3144, an installation package for blockchain services is obtained. The executable file may include a storage address of the installation package of the blockchain service, and when the computing resource executes the executable file, the installation package of the blockchain service is downloaded from a corresponding storage service device (such as an object storage service device) according to the storage address.
At step 3145, the computing resource initiates a blockchain service according to the installation package of blockchain services.
The computing resource after starting the blockchain service can be used as a blockchain node contained in the blockchain network, and the blockchain node contains the configuration information of the blockchain node. That is, through the foregoing steps 302 to 3145, the deployment of the single blockchain node included in the blockchain network can be completed.
It can be understood that after each block chain node included in the block chain network is deployed, any current block chain node in the block chain network can establish communication connection with other block chain nodes in the block chain network according to the connection configuration information included in the configuration information, so as to form the block chain network composed of a plurality of block chain nodes.
Any current blockchain link point in the blockchain network may interact data with other blockchain nodes in the blockchain network according to a predetermined encryption algorithm and decryption algorithm (or the encryption algorithm and decryption algorithm indicated in the configuration information), and the private key and digital certificate of the current blockchain node.
When the block chain network receives the data to be stored, any current block chain link point in the block chain network can store the data through the file system mounted by the block chain network. Specifically, the current blockchain node may store data to the mounted file system by using a corresponding storage protocol according to the storage protocol indication information included in the configuration information. In addition, it should be noted that, when the front block chain node stores data to the mounted file system for the first time, it may also apply for a storage resource of a corresponding size from the mounted file system according to the storage resource indication information included in the configuration information; and then, when the current block link point stores data to the mounted file system, the data is stored in the storage resource applied by the current block link point.
In some embodiments, rather than the embodiment shown in fig. 3, the apparatus for automatically deploying a blockchain network may send configuration information for a current blockchain node to a computing resource for deploying the current blockchain node. Accordingly, the executable file corresponding to the current blockchain node does not need to contain the aforementioned storage address, and the computing resource for deploying the current blockchain node does not need to acquire the configuration information of the current blockchain node from the object storage service device.
In some embodiments, unlike in the embodiment shown in fig. 3, the private key of the current blockchain node, the digital certificate, are both generated by the device that automatically deploys the blockchain network. Correspondingly, the device for automatically deploying the blockchain network does not need to perform information interaction with other service devices such as a key management service device and a digital certificate service device.
In some embodiments, unlike the embodiment shown in fig. 3, the apparatus for automated deployment of a blockchain network may be deployed on any target computing device in a computing cluster, each computing device in the computing cluster having independent non-volatile storage resources. The computing resources used to deploy the blockchain nodes are any computing device in the computing cluster. Accordingly, the computing resources used to deploy the current blockchain node need not mount a file system, but instead use their own non-volatile storage resources to store the data of the current blockchain node.
In some embodiments, unlike the embodiment shown in fig. 3, one or more of the key management service, the digital certificate service, and the object storage service may be implemented by a dedicated computing device or computing cluster. For example, the digital certificate service may be a Certificate Authority (CA) center of a third party, the CA center comprising one or more computing devices.
It should be noted that, after the computing resource starts the blockchain service, the corresponding execution result may also be sent to the device that automatically deploys the blockchain network, and the device that automatically deploys the blockchain network is notified that the computing resource has completed deployment of the current blockchain node. Then, the device for automatically deploying the blockchain network can also register the blockchain network which is deployed to the corresponding platform management service device so as to manage the blockchain network.
Based on the same concept as the foregoing method embodiment, an apparatus for automatically deploying a blockchain network is further provided in this embodiment, where the blockchain network includes a number of blockchain nodes. As shown in fig. 4, the apparatus includes: a resource determining unit 401, configured to determine a computing resource for deploying any current blockchain node of the plurality of blockchain nodes; a node control unit 402, configured to provide an executable file corresponding to the current blockchain node to the computing resource, and trigger the computing resource to execute the executable file; wherein the computing resource is implemented by executing the executable file: acquiring an installation package of a block chain service and acquiring configuration information of the current block chain node; starting the block chain service according to the installation package of the block chain service to finish deploying the current block chain node; wherein the current blockchain node includes the configuration information.
In one possible embodiment, the configuration information includes a private key and a digital certificate for secure communication.
In one possible implementation, the computing resource comprises a computing device.
In one possible implementation, the computing resources include virtual machines deployed on the computing devices.
In one possible embodiment, the configuration information includes connection configuration information. The connection information includes at least one of the following items of information: the unique identification of the current blockchain node, the IP address of the current blockchain node, and the unique identifications and/or IP addresses of other blockchain nodes of the plurality of blockchain nodes except the current blockchain node.
In a possible implementation, the device is deployed in a cloud computing platform, and the cloud computing platform further includes a key management service device and a digital certificate service device. The apparatus for automated deployment of a blockchain network further comprises: a key application unit 403, configured to send a key service request to the key management service device, enable the key management service device to generate a private key and a certificate signature request of the current blockchain node, and return the private key and the certificate signature request to the device of the automated deployment blockchain network; a certificate application unit 404, configured to send the certificate signing request to the digital certificate service apparatus, cause the digital certificate service apparatus to generate a digital certificate of the current blockchain node, and return the digital certificate to the apparatus of the automated deployment blockchain network. The configuration information comprises the private key and the digital certificate, and the private key and the digital certificate are used for supporting the current block link point to perform secure communication.
In a possible implementation manner, an object storage service device is further included in the cloud computing platform. The apparatus for automated deployment of a blockchain network further comprises: a configuration management unit 405, configured to generate configuration information of the current block node; a storage management unit 406, configured to send the configuration information to the object storage service device, enable the object storage service device to store the configuration information, and return a storage address of the configuration information to a device of the automation deployment blockchain network; a script generating unit 407, configured to generate an executable file corresponding to the current blockchain node; wherein the storage address is included in the executable file. Wherein the computing resource is embodied by executing the executable file: and sending a data query request containing the storage address to the object storage service device, so that the object storage service device sends the configuration information to the computing resource.
In one possible implementation, the computing resource further implements, by executing the executable file: and mounting a file system built based on a plurality of storage devices. Wherein the current blockchain node stores data through the file system.
In one possible embodiment, the configuration information comprises at least one of the following items of information: the storage protocol indication information is used for indicating a storage protocol required to be adopted when the current blockchain node stores data through the file system; and the storage resource indication information is used for indicating the size of the storage resource occupied by the current block chain node when the current block chain node stores data through the file system.
In a possible implementation manner, the node control unit 402 is specifically configured to: establishing a secure connection with the computing resource; sending a control signal to the computing resource over the established secure connection to cause the computing resource to execute the executable file.
In one possible embodiment, the method further comprises: a request receiving unit 408, configured to receive a blockchain network deployment request from a terminal device; the block chain network deployment request at least comprises the number of block chain link points contained in the block chain network.
Also provided in an embodiment of this specification is a computing device comprising a processor that, when executing computer instructions/code stored in a memory, performs a method performed by an apparatus for automated deployment of blockchain network services in any of the embodiments of this specification. Wherein the memory may be located in the computing device or external to the computing device.
Also provided in an embodiment of the present specification is a computer-readable storage medium having stored thereon computer instructions/code which, when executed in a computing device, performs the method performed by an apparatus for automated deployment of blockchain network services in any of the embodiments of the present specification.
Those skilled in the art will recognize that in one or more of the examples described above, the functions described in this specification can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, a computer program corresponding to these functions may be stored in a computer-readable medium or transmitted as one or more instructions/codes on the computer-readable medium, so that when the computer program corresponding to these functions is executed by a computer, the method performed by the apparatus for automatically deploying a blockchain network service in any one embodiment of the present invention is implemented by the computer.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts in the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment and the cloud computing platform, since they are substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (21)

1. A cloud computing platform comprises devices and computing resources for automatically deploying a blockchain network, wherein the blockchain network comprises a plurality of blockchain nodes; wherein,
the automated block chain network deploying device is configured to determine a computing resource for deploying any one of the plurality of block chain nodes; providing an executable file corresponding to the current blockchain node to the computing resource and triggering the computing resource to execute the executable file;
the computing resource is configured to implement, by executing the executable file: acquiring an installation package of a blockchain service, and acquiring configuration information of the current blockchain node, wherein the configuration information comprises a private key and a digital certificate for carrying out secure communication; and starting the blockchain service according to the installation package of the blockchain service, and finishing deploying the current blockchain node, wherein the current blockchain node comprises the configuration information.
2. The cloud computing platform of claim 1, wherein the configuration information includes at least one of: the unique identification of the current blockchain node, the IP address of the current blockchain node, and the unique identifications and/or IP addresses of other blockchain nodes of the plurality of blockchain nodes except the current blockchain node.
3. The cloud computing platform of claim 1 or 2, wherein the computing resources comprise computing devices or the computing resources comprise virtual computing nodes deployed on computing devices.
4. The cloud computing platform according to claim 1 or 2, wherein the cloud computing platform further comprises a key management service device and a digital certificate service device;
the device of the automated deployment blockchain network is further configured to send a key service request to the key management service device, so that the key management service returns a private key and a certificate signing request of the current blockchain node to the device of the automated deployment blockchain network; and configured to send the certificate signing request to the digital certificate service apparatus, causing the digital certificate service apparatus to return the digital certificate of the current blockchain node to the apparatus of the automated deployment blockchain network; wherein the configuration information comprises the private key and the digital certificate, the private key and the digital certificate being used for secure communication by the current blockchain node.
5. The cloud computing platform of claim 4, wherein the cloud computing platform further comprises an object storage service; wherein,
the device for automatically deploying the blockchain network is also configured to generate the configuration information and send the configuration information to the object storage service device, so that the object storage service device returns a storage address of the configuration information to the device for automatically deploying the blockchain network; and configured to generate an executable file corresponding to the current blockchain node, the executable file including the storage address;
the computing resource is further configured to implement, by executing the executable file: and sending a data query request containing the storage address to the object storage service device, so that the object storage service device returns the configuration information to the computing resource.
6. The cloud computing platform of claim 1 or 2, wherein the computing resources are further configured to implement, by executing the executable file: mounting a file system built based on a plurality of storage devices; wherein the current blockchain node stores data through the file system.
7. The cloud computing platform of claim 6, wherein the configuration information includes at least one of:
the storage protocol indication information is used for indicating a storage protocol required to be adopted when the current blockchain node stores data through the file system;
and the storage resource indication information is used for indicating the size of the storage resource occupied by the current block chain node when the current block chain node stores data through the file system.
8. The cloud computing platform of claim 1 or 2, wherein the means for automatically deploying the blockchain network is specifically configured to establish a secure connection with the computing resource and to send a control signal to the computing resource via the secure connection to cause the computing resource to execute the executable file.
9. The cloud computing platform of claim 1 or 2,
the device for automatically deploying the blockchain network is also configured to receive a blockchain network deployment request from the terminal equipment; the block chain network deployment request at least comprises the number of block chain link points contained in the block chain network.
10. A method of automated deployment of a blockchain network comprising a number of blockchain nodes, the method comprising:
determining a computing resource for deploying any one of the plurality of blockchain nodes;
providing an executable file corresponding to the current blockchain node to the computing resource and triggering the computing resource to execute the executable file; wherein the computing resource is implemented by executing the executable file:
acquiring an installation package of a blockchain service, and acquiring configuration information of the current blockchain node, wherein the configuration information comprises a private key and a digital certificate for carrying out secure communication; and starting the blockchain service according to the installation package of the blockchain service, and finishing deploying the current blockchain node, wherein the current blockchain node comprises the configuration information.
11. The method of claim 10, wherein the configuration information comprises at least one of: the unique identification of the current blockchain node, the IP address of the current blockchain node, and the unique identifications and/or IP addresses of other blockchain nodes of the plurality of blockchain nodes except the current blockchain node.
12. The method of claim 10 or 11, wherein the computing resource comprises a computing device or the computing resource comprises a virtual computing node deployed on a computing device.
13. The method of claim 10 or 11, wherein the method is performed by an apparatus of an automated deployment blockchain network in a cloud computing platform, the cloud computing platform further comprising a key management service apparatus and a digital certificate service apparatus; the method further comprises the following steps:
sending a key service request to the key management service device, so that the key management service device returns a private key and a certificate signature request of the current blockchain node to the device of the automated deployment blockchain network;
sending the certificate signing request to the digital certificate service device, so that the digital certificate service device returns the digital certificate of the current blockchain node to the device of the automated deployment blockchain network;
wherein the configuration information comprises the private key and the digital certificate, the private key and the digital certificate being used for secure communication by the current blockchain node.
14. The method of claim 13, wherein the cloud computing platform further comprises an object storage service; the method further comprises the following steps:
generating the configuration information;
sending the configuration information to the object storage service device, and enabling the object storage service device to return a storage address of the configuration information to a device of the automatic deployment block chain network;
generating an executable file corresponding to the current blockchain node; wherein the executable file comprises the storage address;
the computing resource is embodied by executing the executable file: and sending a data query request containing the storage address to the object storage service device, so that the object storage service device returns the configuration information to the computing resource.
15. The method of claim 10 or 11, wherein the computing resource further implements, by executing the executable file: mounting a file system built based on a plurality of storage devices; wherein the current blockchain node stores data through the file system.
16. The method of claim 15, wherein the configuration information comprises at least one of:
the storage protocol indication information is used for indicating a storage protocol required to be adopted when the current blockchain node stores data through the file system;
and the storage resource indication information is used for indicating the size of the storage resource occupied by the current block chain node when the current block chain node stores data through the file system.
17. The method according to claim 10 or 11, wherein triggering the computing resource to execute the executable file specifically comprises:
establishing a secure connection with the computing resource;
sending a control signal to the computing resource over the secure connection to cause the computing resource to execute the executable file.
18. The method of claim 10 or 11, further comprising:
receiving a block chain network deployment request from terminal equipment; the block chain network deployment request at least comprises the number of block chain link points contained in the block chain network.
19. An apparatus for automated deployment of a blockchain network, for implementing the method of any one of claims 10 to 18.
20. A computing device comprising a processor that when executing computer instructions/code stored in a memory implements the method of any of claims 10 to 18.
21. A computer readable storage medium having stored thereon computer instructions/code which, when executed in a computing device, performs the method of any of claims 10 to 18.
CN202110123803.6A 2021-01-29 2021-01-29 Method and device for automatically deploying block chain network and cloud computing platform Active CN112445865B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110123803.6A CN112445865B (en) 2021-01-29 2021-01-29 Method and device for automatically deploying block chain network and cloud computing platform
PCT/CN2021/133145 WO2022160904A1 (en) 2021-01-29 2021-11-25 Method and apparatus for automatic deployment of blockchain network, and cloud computing platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110123803.6A CN112445865B (en) 2021-01-29 2021-01-29 Method and device for automatically deploying block chain network and cloud computing platform

Publications (2)

Publication Number Publication Date
CN112445865A CN112445865A (en) 2021-03-05
CN112445865B true CN112445865B (en) 2021-05-18

Family

ID=74740160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110123803.6A Active CN112445865B (en) 2021-01-29 2021-01-29 Method and device for automatically deploying block chain network and cloud computing platform

Country Status (2)

Country Link
CN (1) CN112445865B (en)
WO (1) WO2022160904A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445865B (en) * 2021-01-29 2021-05-18 支付宝(杭州)信息技术有限公司 Method and device for automatically deploying block chain network and cloud computing platform
CN113674126A (en) * 2021-08-25 2021-11-19 上海卓繁信息技术股份有限公司 Block chain-based government affair information processing method and device and electronic equipment
CN114510540A (en) * 2022-04-19 2022-05-17 北京微芯感知科技有限公司 Data processing method, calculation storage separation system and block chain network architecture
CN114721832A (en) * 2022-05-12 2022-07-08 北京溪塔科技有限公司 Initialization method and device for block chain nodes
CN116010118A (en) * 2022-12-05 2023-04-25 杭州趣链科技有限公司 Deployment method and device of blockchain nodes and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037002A (en) * 2012-12-21 2013-04-10 中标软件有限公司 Method and system for arranging server cluster in cloud computing cluster environment
CN103200036A (en) * 2013-04-08 2013-07-10 国电南瑞科技股份有限公司 Automated configuration method of electrical power system cloud computing platform
CN108305072A (en) * 2018-01-04 2018-07-20 上海点融信息科技有限责任公司 Dispose method, equipment and the computer storage media of block chain network
CN110855791A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Block link point deployment method and related equipment
US20200342449A1 (en) * 2019-04-29 2020-10-29 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing an api gateway to authorize and charge a fee for a transaction between cloud computing customers using distributed ledger technologies (dlt)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045690B (en) * 2018-10-12 2023-04-28 阿里巴巴集团控股有限公司 Block chain node service deployment method, device, system, computing equipment and medium
CN109933338B (en) * 2019-01-29 2023-06-06 浙江数链科技有限公司 Block chain deployment method, device, computer equipment and storage medium
CN110011988B (en) * 2019-03-21 2021-08-10 平安科技(深圳)有限公司 Block chain-based certificate verification method and device, storage medium and electronic device
US20210029163A1 (en) * 2019-07-24 2021-01-28 International Business Machines Corporation Security layer for configuring blockchain
CN110995480B (en) * 2019-11-25 2022-09-20 百度在线网络技术(北京)有限公司 Block chain network deployment method, device, electronic equipment and medium
CN111181960A (en) * 2019-12-30 2020-05-19 北京握奇数据股份有限公司 Safety credit granting and signature system based on terminal equipment block chain application
CN112445865B (en) * 2021-01-29 2021-05-18 支付宝(杭州)信息技术有限公司 Method and device for automatically deploying block chain network and cloud computing platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037002A (en) * 2012-12-21 2013-04-10 中标软件有限公司 Method and system for arranging server cluster in cloud computing cluster environment
CN103200036A (en) * 2013-04-08 2013-07-10 国电南瑞科技股份有限公司 Automated configuration method of electrical power system cloud computing platform
CN108305072A (en) * 2018-01-04 2018-07-20 上海点融信息科技有限责任公司 Dispose method, equipment and the computer storage media of block chain network
US20200342449A1 (en) * 2019-04-29 2020-10-29 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing an api gateway to authorize and charge a fee for a transaction between cloud computing customers using distributed ledger technologies (dlt)
CN110855791A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Block link point deployment method and related equipment

Also Published As

Publication number Publication date
CN112445865A (en) 2021-03-05
WO2022160904A1 (en) 2022-08-04

Similar Documents

Publication Publication Date Title
CN112445865B (en) Method and device for automatically deploying block chain network and cloud computing platform
CN108809722B (en) Method, device and storage medium for deploying Kubernetes cluster
CN108763090B (en) Test environment deployment method, device, computer equipment and storage medium
JP6549787B2 (en) Method and apparatus for deploying network services
CN104734931B (en) Link establishing method and device between a kind of virtual network function
RU2683630C2 (en) Method for update of nsd network service descriptor and device
WO2014169870A1 (en) Virtual network element automatic loading and virtual machine ip address acquisition method and system, and storage medium
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN108769124B (en) Application deployment method, device, server and storage medium of PaaS platform
CN108628716B (en) Information receiving and managing system, method and device
CN110447208A (en) A kind of management method, unit and the system of network slice
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN115516840B (en) Information processing method, device, system, medium, chip and program product
CN111865629A (en) Method, apparatus and computer program product for configuring service instances
CN107547274B (en) Multi-network-port aggregation method and device
EP3261299A1 (en) Method and apparatus for establishing network service instance
CN104504587A (en) Advertisement monitoring method and device, electronic apparatus
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
CN113268254A (en) Cluster system installation method and device, electronic equipment and storage medium
CN108370329B (en) Management method and device for management function object
CN111427634A (en) Atomic service scheduling method and device
CN108712298B (en) Network equipment upgrading method and device, network equipment and storage medium
CN114615285B (en) Physical machine deployment method and device, electronic equipment and storage medium
CN110995756A (en) Method and device for calling service
KR20210043654A (en) Method, apparatus and storage medium for resource organization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40046887

Country of ref document: HK

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240923

Address after: Room 803, floor 8, No. 618 Wai Road, Huangpu District, Shanghai 200010

Patentee after: Ant blockchain Technology (Shanghai) Co.,Ltd.

Country or region after: China

Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province

Patentee before: Alipay (Hangzhou) Information Technology Co.,Ltd.

Country or region before: China

Patentee before: Ant blockchain Technology (Shanghai) Co.,Ltd.