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

CN110995480B - Block chain network deployment method, device, electronic equipment and medium - Google Patents

Block chain network deployment method, device, electronic equipment and medium Download PDF

Info

Publication number
CN110995480B
CN110995480B CN201911165576.2A CN201911165576A CN110995480B CN 110995480 B CN110995480 B CN 110995480B CN 201911165576 A CN201911165576 A CN 201911165576A CN 110995480 B CN110995480 B CN 110995480B
Authority
CN
China
Prior art keywords
target instance
block chain
instance
target
configuration file
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
CN201911165576.2A
Other languages
Chinese (zh)
Other versions
CN110995480A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911165576.2A priority Critical patent/CN110995480B/en
Publication of CN110995480A publication Critical patent/CN110995480A/en
Application granted granted Critical
Publication of CN110995480B publication Critical patent/CN110995480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a block chain network deployment method, a block chain network deployment device, electronic equipment and a block chain network deployment medium, and relates to the technical field of block chains, wherein the block chain network deployment method comprises the following steps: acquiring a plurality of target instances, wherein each target instance is obtained through equipment virtualization, and each equipment executing virtualization is controlled and authorized by an equipment controller; generating a node configuration file for each target instance, wherein the node configuration file is used for configuring the interaction function between the block chain link point to which the target instance belongs and other block chain link points; and sending an image file and a node configuration file to each target instance to add the block chain link point to which each target instance belongs to the block chain network, wherein the image file is used for initializing the node operating environment of each target instance. The embodiment of the application can realize the unified management of the equipment belonging to different equipment control sides and standardize the operation of deploying the block chain network by utilizing the equipment from different sources.

Description

Block chain network deployment method, device, electronic equipment and medium
Technical Field
The embodiments of the present application relate to computer technologies, and in particular, to a blockchain technology, and in particular, to a method, an apparatus, an electronic device, and a medium for deploying a blockchain network.
Background
At present, for a blockchain service provider, when providing services to a user, the service is preferably provided for the user based on a self-owned machine, and the operations of accessing, using, monitoring, managing and the like of the device are more convenient by using the self-owned device deployment service, and no operation authority limit exists. Therefore, the current blockchain network deployment is generally implemented based on the self-owned device of the service provider, which results in a very limited implementation manner of blockchain deployment.
Disclosure of Invention
The embodiment of the application discloses a block chain network deployment method, a block chain network deployment device, electronic equipment and a block chain network deployment medium, so that unified management of equipment belonging to different equipment control parties is realized, and further, operation of deploying the block chain network by using equipment from different sources is normalized.
In a first aspect, an embodiment of the present application discloses a method for deploying a blockchain network, including:
acquiring a plurality of target instances, wherein each target instance is obtained through equipment virtualization, and each equipment executing virtualization is controlled and authorized by an equipment controller;
generating a node configuration file for each target instance, wherein the node configuration file is used for configuring interaction functions between the block chain link point to which the target instance belongs and other block chain link points;
and sending an image file and the node configuration file to each target instance to add the block chain link point to which each target instance belongs to a block chain network, wherein the image file is used for initializing the node operating environment of each target instance.
One embodiment in the above application has the following advantages or benefits: by adopting the online management virtualization example mode, the unified management of the equipment belonging to different equipment controllers is realized, the effect of deploying the block chain network by utilizing the equipment from different sources is realized, and the operation standardization of deploying the block chain network by utilizing the equipment from different sources is improved by adopting the management example mode.
Optionally, the generating a node configuration file for each target instance includes:
and generating a node configuration file of each target instance based on the communication port number which is allocated to each target instance in advance.
Optionally, before the obtaining of the plurality of target instances, the method further includes:
controlling fully authorized equipment to perform virtualization to obtain at least one instance; and
sending an instance acquisition instruction to a non-fully-authorized device to instruct the non-fully-authorized device to return at least one instance obtained through virtualization;
and constructing an instance resource pool for recording the currently available instance resources based on the obtained instances.
One embodiment in the above application has the following advantages or benefits: centralized management of the instance resources is realized, and centralized management of the devices from different sources is realized.
Optionally, sending the image file and the node configuration file to each target instance includes:
if the target instance corresponds to a fully authorized device, sending the image file and the node configuration file to the target instance, and controlling the target instance to run the received file;
and if the target instance corresponds to the non-completely authorized equipment, sending a file receiving notice to the target instance to prompt the target instance to receive and run the image file and the node configuration file.
One embodiment in the above application has the following advantages or benefits: according to the authorization type of the device to which the target instance belongs, the operation of deploying the blockchain network based on the devices with different sources and different authorization types is further normalized by a mode of directly sending the file and sending a file receiving notice.
Optionally, after sending the image file and the node configuration file to each target instance, the method further includes:
and monitoring whether the block chain link point to which each target instance belongs is successfully added into the block chain network.
One embodiment in the above application has the following advantages or benefits: by executing the monitoring operation, the state of each blockchain node in the blockchain network deployment process can be determined, and the deployment process of the blockchain network is prevented from being influenced.
Optionally, the monitoring whether the segment link point to which each target instance belongs is successfully joined to the segment link network includes:
and determining whether the block chain link point to which each target instance belongs is successfully added into the block chain network or not by monitoring the running log of each target instance.
Optionally, the method further includes:
in the block chain network deployment process, marking the state of each target instance, wherein the marked state comprises deployment in progress, deployment success and deployment failure.
In a second aspect, an embodiment of the present application further discloses a device for deploying a blockchain network, including:
the device comprises a target instance acquisition module, a target instance acquisition module and a virtual machine module, wherein the target instance acquisition module is used for acquiring a plurality of target instances, each target instance is obtained through device virtualization, and each device executing virtualization is controlled and authorized by a device controller;
the node configuration file generation module is used for generating a node configuration file for each target instance, wherein the node configuration file is used for configuring interaction functions between the block chain link point to which the target instance belongs and other block chain link points;
and the file sending module is used for sending an image file and the node configuration file to each target instance so as to add the block chain link point to which each target instance belongs to the block chain network, wherein the image file is used for initializing the node operating environment of each target instance.
In a third aspect, an embodiment of the present application further discloses an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for block chain network deployment according to any one of the embodiments of the present application.
In a fourth aspect, the present application further discloses a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method for deploying a blockchain network according to any of the embodiments of the present application.
According to the technical scheme of the embodiment of the application, the target examples on the equipment of different equipment control sides are obtained, and the mode of managing the virtualized examples on line is adopted, so that the unified management of the equipment belonging to different equipment control sides is realized, and the limitation of region limitation is eliminated; the mirror image file and the node configuration file are sent to each target instance, so that the block chain link point to which each target instance belongs is added into the block chain network, the effect of deploying the block chain network by using equipment from different sources is achieved, and the operation standardization of deploying the block chain network by using the equipment from different sources is improved by means of managing the instances. Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flow chart of a method for block chain network deployment according to an embodiment of the present application;
fig. 2 is a flow chart of another block chain network deployment method disclosed in accordance with an embodiment of the present application;
fig. 3 is a flowchart of yet another block chain network deployment method disclosed in accordance with an embodiment of the present application;
fig. 4 is a schematic structural diagram of a block chain network deployment apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device disclosed according to an embodiment of the application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a method for deploying a blockchain network according to an embodiment of the present application, which may be applied to a situation where a blockchain network is deployed by using devices belonging to different device controllers, i.e., devices of different sources. The method of the embodiment may be performed by a blockchain network deployment apparatus, which may be implemented in software and/or hardware, and may be integrated on any electronic device with computing capability.
As shown in fig. 1, the method for deploying a blockchain network disclosed in this embodiment may include:
s101, obtaining a plurality of target instances, wherein each target instance is obtained through device virtualization, and each device executing virtualization is controlled and authorized by a device controller.
The target instance refers to an instance participating in the current blockchain network deployment based on the current blockchain network deployment requirement. Each instance obtained by virtualization of a device behaves as a virtual server. According to the configuration condition of the hardware of the device, one entity device can be virtualized into a plurality of instances. The plurality of target instances obtained in this embodiment may correspond to at least two device control parties.
A device controller is a party that has full control authority over the devices participating in the deployment of the blockchain network. For the electronic device for executing the technical solution of the present embodiment, for example, the blockchain deployment platform, according to the authorization permission of different device controllers, each device performing virtualization may have different control permissions, and for example, the device performing virtualization may be divided into a fully authorized device and a non-fully authorized device. The electronic device for executing the technical scheme of the embodiment can control the fully authorized device to execute any operation; however, only partially authorized devices can be subjected to operations, such as access to but not execution of data read/write operations, monitoring of device operation, and configurable communication interactions.
Through equipment virtualization, the equipment belonging to different equipment controllers can be managed in a unified manner in an online management example mode, and a foundation is laid for the equipment deployment block chain network based on different sources. The devices of different origins may comprise a local server and a cloud server.
S102, generating a node configuration file for each target instance, wherein the node configuration file is used for configuring interaction functions between the block chain link point to which the target instance belongs and other block chain link points.
In the deployment process of the blockchain network, node configuration files of each target instance are different from each other, and the node configuration files may include, but are not limited to, IP addresses of blockchain node devices to which the instances belong, communication port numbers of the instances, intelligent contracts, relevant blockchain data, and the like, so as to implement mutual discovery between nodes in the blockchain network. The specific contents of the node profile may vary according to the changing needs of the blockchain service.
Optionally, generating a node configuration file for each target instance includes: and generating a node configuration file of each target instance based on the communication port number which is allocated to each target instance in advance. The communication port number of each target instance has uniqueness. In the process of allocating the communication port number, according to the corresponding relationship between the instances and the devices, different communication port number allocation modes can be adopted, for example, if only one instance is virtualized on one device, that is, the case belongs to a single deployment, a fixed port number can be allocated to the instance; if multiple instances are virtualized on one device, that is, in the case of hybrid deployment, the multiple instances may be respectively allocated with communication port numbers in a port number random allocation manner. The format of the communication port number may be set according to actual situations, and this embodiment is not limited in particular.
S103, sending an image file and a node configuration file to each target instance to add the block chain link point to which each target instance belongs to the block chain network, wherein the image file is used for initializing the node running environment of each target instance.
The image files have differences aiming at different blockchain software versions and can be adaptively updated. After each target instance receives the mirror image file and the node configuration file, the block chain link point device to which the instance belongs is added to the block chain network, namely the block chain nodes are started by operating the mirror image file and the node configuration file. Specifically, if the image file and the node configuration file are successfully operated on the block link point device to which each target instance belongs, the block link point is successfully started, otherwise, the starting fails.
Optionally, after sending the image file and the node configuration file to each target instance, the method of this embodiment further includes: and monitoring whether the block chain link point to which each target instance belongs is successfully added into the block chain network. The on-line monitoring operation is executed according to the preset node monitoring mode, the state of each block chain node in the block chain network deployment process can be determined, and if block chain link points with failed deployment exist, corresponding relief measures can be taken timely, so that the deployment process of the block chain network is prevented from being influenced. The preset node monitoring mode may be flexibly set, and on the basis of confirming the present node monitoring, this embodiment is not particularly limited.
Illustratively, the monitoring whether the blockchain link point to which each target instance belongs successfully joins the blockchain network includes: and determining whether the block chain link point to which each target instance belongs successfully joins the block chain network or not by monitoring the running log of each target instance. Specifically, the running log may record a result of whether the block link point to which each target instance belongs is successfully added to the block link network, for example, the running log may respectively use different mark fields to distinguish successful addition from unsuccessful addition; or only aiming at the condition that the block chain network is not successfully added, writing a mark field in the running log; and after the running log is obtained, a monitoring result can be obtained by identifying the mark field.
According to the technical scheme of the embodiment of the application, the target examples on the equipment of different equipment control sides are obtained, and the mode of managing the examples on line is adopted, so that the unified management on the equipment belonging to different equipment control sides is realized, and the limitation of region limitation is eliminated; by sending the mirror image file and the node configuration file to each target instance, the block chain node to which each target instance belongs is added into the block chain network, the effect of deploying the block chain network by using equipment from different sources is achieved, the existing block chain network deployment modes are enriched, and the operation standardization of deploying the block chain network by using the equipment from different sources is improved by managing the instances.
Fig. 2 is a flowchart of another block chain network deployment method disclosed in the embodiment of the present application, which is further optimized and expanded based on the above technical solution, and can be combined with the above optional embodiments. In addition, the method and the device can be suitable for the scene that the demander needs to deploy the own device as the blockchain node but does not want to open all the permissions of the device to the blockchain service provider. As shown in fig. 2, the method may include:
s201, controlling the completely authorized equipment to perform virtualization to obtain at least one instance.
For the fully authorized device, the electronic device for executing the solution of the present embodiment has full control authority for the fully authorized device through authorization of the device controller, and therefore, the fully authorized device can be directly controlled to perform virtualization operation.
S202, sending an instance acquisition instruction to the non-fully authorized device to instruct the non-fully authorized device to return at least one instance obtained through virtualization.
For the incompletely authorized device, the electronic device for executing the scheme of the embodiment has partial control authority for the device through authorization of the device controller, and cannot directly control the incompletely authorized device to execute virtualization.
S203, constructing an instance resource pool for recording the current available instance resources based on the obtained instances.
By utilizing the instance resource pool, the acquired multiple instances can be managed in a centralized manner. In the instance resource pool, the addition, query and marking or modification of instance states of the instances are supported, and the instance states can comprise deployment in, deployment success, deployment failure and the like.
S204, acquiring a plurality of target instances from the instance resource pool.
The number of the obtained target instances may be determined according to the deployment requirement of the blockchain network, and this embodiment is not particularly limited.
And S205, generating a node configuration file for each target instance.
S206, if the target instance corresponds to the fully authorized device, sending the mirror image file and the node configuration file to the target instance, and controlling the target instance to run the received file.
And S207, if the target instance corresponds to the incompletely authorized equipment, sending a file receiving notice to the target instance to prompt the target instance to receive and run the mirror image file and the node configuration file.
Specifically, different online sending modes are adopted according to the authorization types of the devices to which the target instances belong, so that the image files and the node configuration files are deployed on each target instance, and the operations of deploying the blockchain network based on the devices with different sources and different authorization types are further normalized by the modes of directly sending the files and sending the file receiving notifications on the lines.
Optionally, the method of this embodiment further includes: in the block chain network deployment process, marking the state of each target instance, wherein the marked state comprises deployment in progress, deployment success and deployment failure. Illustratively, the state of each target instance can be marked in the resource pool, so as to realize effective management of each instance.
Fig. 3 is a flowchart illustrating a method for deploying a blockchain network according to the present embodiment, but should not be construed as a specific limitation to the present embodiment. As shown in fig. 3, device information may be collected first, and centralized management may be performed on the device information by using a device resource pool, where available devices include a non-fully authorized device and a fully authorized device according to different device controllers, and the available devices include a cloud server; according to the authorization permission condition of the equipment controller to the equipment, the equipment with different authorization types adopts different modes to execute virtualization, and then the example resource pool is utilized to carry out centralized management on each example; according to the block chain network deployment requirement, a plurality of target instances are obtained from an instance resource pool, namely the instance resource pool, the state of each target instance can be marked as deployment, and a node configuration file is generated for each target instance; according to the authorization type of the device to which the target instance belongs, node configuration files are deployed on different target instances in a mode of actively pushing files and sending file receiving notifications respectively, and it needs to be explained here that a blockchain image file, i.e., a code image, has universality and can be deployed before the node configuration files are deployed, for example, as shown in fig. 3, the block chain image file can be deployed for the block chain image file after the instance is obtained, and a communication port number can be pre-allocated for each instance in an instance resource pool; after the node configuration file is deployed, whether a block chain node to which each target instance belongs is added to a block chain network or not is determined through network monitoring, namely whether the block chain node is started successfully or not is determined, the target instance which is deployed successfully can be marked as used, and the instance which is deployed unsuccessfully is released; furthermore, a new instance can be searched from the instance resource pool to replace the target instance which fails to be deployed, and the deployment is carried out again; the deployment failure times of the instances can be counted in the resource pool, if the times exceed the set number, the instances are marked as faults, and the instance information is sent to an alarm system to inform the instance maintainer to process, such as confirming the reasons of the deployment failure of the instances, repairing the instances, and the like.
According to the technical scheme of the embodiment of the application, an instance resource pool is constructed to perform centralized management on instance resources by acquiring instances on fully authorized equipment and instances on non-fully authorized equipment; aiming at target instance resources obtained from an instance resource pool, according to the authorization type of equipment to which a target instance belongs, deployment of a mirror image file and a node configuration file is realized by adopting a mode of directly sending a file on line or sending a file receiving notice on line, and the operation flow of deploying a block chain network by utilizing equipment from different sources is further specified; moreover, for a demander who needs to deploy own equipment as a blockchain node but does not want to open all permissions of the equipment to a blockchain service provider, the scheme of the embodiment can well meet the deployment requirement of the demander and expand the implementation mode of blockchain network deployment.
Fig. 4 is a schematic structural diagram of a block chain network deployment apparatus according to an embodiment of the present application, where the embodiment may be applied to a case where a block chain network is deployed by using devices belonging to different device controllers. The device of the embodiment can be implemented by software and/or hardware, and can be integrated on any electronic equipment with computing capability.
As shown in fig. 4, the blockchain network deployment apparatus 300 disclosed in this embodiment may include a target instance obtaining module 301, a node configuration file generating module 302, and a file sending module 303, where:
a target instance obtaining module 301, configured to obtain multiple target instances, where each target instance is obtained through device virtualization, and each device that performs virtualization is controlled and authorized by a device controller to which the device belongs;
a node configuration file generating module 302, configured to generate a node configuration file for each target instance, where the node configuration file is used to configure an interaction function between a block link point to which the target instance belongs and other block link points;
the file sending module 303 is configured to send an image file and a node configuration file to each target instance, so as to add the block chain link point to which each target instance belongs to the block chain network, where the image file is used to initialize the node operating environment of each target instance.
Optionally, the node configuration file generating module 302 is specifically configured to:
and generating a node configuration file of each target instance based on the communication port number which is allocated to each target instance in advance.
Optionally, the apparatus of this embodiment further includes: an instance resource pool construction module to:
before the target instance obtaining module 301 performs an operation of obtaining a plurality of target instances, controlling a fully authorized device to perform virtualization to obtain at least one instance; and
sending an instance acquisition instruction to the non-fully authorized device to instruct the non-fully authorized device to return at least one instance obtained through virtualization;
and constructing an instance resource pool for recording the currently available instance resources based on the obtained instances.
Optionally, the file sending module 303 is specifically configured to:
if the target instance corresponds to the fully authorized equipment, sending the mirror image file and the node configuration file to the target instance, and controlling the target instance to run the received file;
and if the target instance corresponds to the non-fully authorized device, sending a file receiving notice to the target instance to prompt the target instance to receive and run the image file and the node configuration file.
Optionally, the apparatus in this embodiment further includes: a monitoring module to:
after the file sending module 303 executes an operation of sending the image file and the node configuration file to each target instance, it is monitored whether the blockchain link point to which each target instance belongs successfully joins the blockchain network.
Optionally, the monitoring module is specifically configured to:
and determining whether the block chain link point to which each target instance belongs successfully joins the block chain network or not by monitoring the running log of each target instance.
Optionally, the apparatus of this embodiment further includes: an instance state marking module to:
and marking the state of each target instance in the deployment process of the blockchain network, wherein the marked state comprises deployment in progress, deployment success and deployment failure.
The blockchain network deployment device 300 disclosed in the embodiment of the present application can execute the method for deploying blockchain networks disclosed in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the present application for details not explicitly described in this embodiment.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 5, fig. 5 is a block diagram of an electronic device for implementing the method for deploying a blockchain network in the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of embodiments of the application described and/or claimed herein.
As shown in fig. 5, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display Graphical information for a Graphical User Interface (GUI) on an external input/output device, such as a display device coupled to the Interface. In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations, e.g., as a server array, a group of blade servers, or a multi-processor system. In fig. 5, one processor 401 is taken as an example.
The memory 402 is a non-transitory computer readable storage medium provided by the embodiments of the present application. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the block chain network deployment method provided by the embodiments of the present application. The non-transitory computer readable storage medium of the embodiments of the present application stores computer instructions for causing a computer to execute the block chain network deployment method provided by the embodiments of the present application.
The memory 402, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the blockchain network deployment method in the embodiment of the present application, for example, the target instance obtaining module 301, the node configuration file generating module 302, and the file sending module 303 shown in fig. 4. The processor 401 executes the non-transitory software programs, instructions and modules stored in the memory 402 to execute various functional applications of the server and data processing, i.e., to implement the block chain network deployment method in the above method embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device of the block chain network deployment method, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 optionally includes memory located remotely from processor 401, which may be connected via a network to an electronic device implementing the blockchain network deployment method of the present embodiments. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for implementing the block chain network deployment method in this embodiment may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 5 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device used to implement the blockchain network deployment method of the present embodiment, such as an input device like a touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, or the like. The output device 404 may include a display device, an auxiliary lighting device such as a Light Emitting Diode (LED), a tactile feedback device, and the like; the tactile feedback device is, for example, a vibration motor or the like. The Display device may include, but is not limited to, a Liquid Crystal Display (LCD), an LED Display, and a plasma Display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be implemented in digital electronic circuitry, Integrated circuitry, Application Specific Integrated Circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs, also known as programs, software applications, or code, include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or Device for providing machine instructions and/or data to a Programmable processor, such as a magnetic disk, optical disk, memory, Programmable Logic Device (PLD), including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device for displaying information to a user, for example, a Cathode Ray Tube (CRT) or an LCD monitor; and a keyboard and a pointing device, such as a mouse or a trackball, by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here, or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the target examples on the equipment of different equipment control sides are obtained, and the mode of managing the examples on line is adopted, so that the unified management on the equipment belonging to different equipment control sides is realized, and the limitation of region limitation is eliminated; the mirror image file and the node configuration file are sent to each target instance, so that the block chain link point to which each target instance belongs is added into the block chain network, the effect of deploying the block chain network by using equipment from different sources is achieved, and the operation standardization of deploying the block chain network by using the equipment from different sources is improved by means of managing the instances.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for block chain network deployment, comprising:
acquiring a plurality of target instances, wherein each target instance is obtained through device virtualization, and each device for executing virtualization is controlled and authorized by the device controller; the devices performing virtualization include fully authorized devices and non-fully authorized devices; the target instance corresponds to at least two of the device controllers;
generating a node configuration file for each target instance, wherein the node configuration file is used for configuring interaction functions between the block chain link point to which the target instance belongs and other block chain link points;
and sending an image file and the node configuration file to each target instance so as to add the block chain link point to which each target instance belongs to a block chain network, wherein the image file is used for initializing the node operating environment of each target instance.
2. The method of claim 1, wherein generating a node profile for each target instance comprises:
and generating a node configuration file of each target instance based on the communication port number which is allocated to each target instance in advance.
3. The method of claim 1, wherein prior to said obtaining a plurality of target instances, the method further comprises:
controlling fully authorized equipment to perform virtualization to obtain at least one instance; and
sending an instance acquisition instruction to a non-fully-authorized device to instruct the non-fully-authorized device to return at least one instance obtained through virtualization;
and constructing an instance resource pool for recording the currently available instance resources based on the obtained instances.
4. The method of claim 1, wherein sending an image file and the node configuration file to the each target instance comprises:
if the target instance corresponds to a fully authorized device, sending the image file and the node configuration file to the target instance, and controlling the target instance to run the received file;
and if the target instance corresponds to the non-completely authorized equipment, sending a file receiving notice to the target instance to prompt the target instance to receive and run the image file and the node configuration file.
5. The method of claim 1, wherein after sending the image file and the node configuration file to each target instance, the method further comprises:
and monitoring whether the block chain link point to which each target instance belongs is successfully added into the block chain network.
6. The method of claim 5, wherein monitoring whether the blockchain node to which each target instance belongs successfully joins the blockchain network comprises:
and determining whether the block chain link point to which each target instance belongs is successfully added into the block chain network or not by monitoring the running log of each target instance.
7. The method of claim 1, further comprising:
and marking the state of each target instance in the deployment process of the blockchain network, wherein the marked state comprises deployment in progress, deployment success and deployment failure.
8. A blockchain network deployment apparatus, comprising:
the device comprises a target instance acquisition module, a target instance acquisition module and a virtual machine module, wherein the target instance acquisition module is used for acquiring a plurality of target instances, each target instance is obtained through device virtualization, and each device executing virtualization is controlled and authorized by a device controller; the devices performing virtualization include fully authorized devices and non-fully authorized devices; the target instance corresponds to at least two of the device controllers;
the node configuration file generation module is used for generating a node configuration file for each target instance, wherein the node configuration file is used for configuring interaction functions between the block chain link point to which the target instance belongs and other block chain link points;
and the file sending module is used for sending an image file and the node configuration file to each target instance so as to add the block chain link point to which each target instance belongs to the block chain network, wherein the image file is used for initializing the node operating environment of each target instance.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of block chain network deployment of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of block chain network deployment of any one of claims 1-7.
CN201911165576.2A 2019-11-25 2019-11-25 Block chain network deployment method, device, electronic equipment and medium Active CN110995480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911165576.2A CN110995480B (en) 2019-11-25 2019-11-25 Block chain network deployment method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911165576.2A CN110995480B (en) 2019-11-25 2019-11-25 Block chain network deployment method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110995480A CN110995480A (en) 2020-04-10
CN110995480B true CN110995480B (en) 2022-09-20

Family

ID=70086432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911165576.2A Active CN110995480B (en) 2019-11-25 2019-11-25 Block chain network deployment method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110995480B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641715A (en) * 2020-05-29 2020-09-08 深圳壹账通智能科技有限公司 Data processing method, device, equipment and medium based on block chain
CN111541788B (en) * 2020-07-08 2020-10-16 支付宝(杭州)信息技术有限公司 Hash updating method and device of block chain all-in-one machine
CN111541553B (en) 2020-07-08 2021-08-24 支付宝(杭州)信息技术有限公司 Trusted starting method and device of block chain all-in-one machine
CN111930392B (en) * 2020-07-09 2024-02-23 北京皮尔布莱尼软件有限公司 Application service deployment method, computing device and readable storage medium
CN112445865B (en) * 2021-01-29 2021-05-18 支付宝(杭州)信息技术有限公司 Method and device for automatically deploying block chain network and cloud computing platform
CN113259236B (en) * 2021-06-02 2021-09-14 支付宝(杭州)信息技术有限公司 Transaction forwarding method between block chain networks
CN116405598B (en) * 2023-03-06 2024-04-05 贝壳找房(北京)科技有限公司 Telephone deployment method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106796688A (en) * 2016-12-26 2017-05-31 深圳前海达闼云端智能科技有限公司 Permission control method, device and system of block chain and node equipment
WO2017143999A1 (en) * 2016-02-26 2017-08-31 中国移动通信集团公司 Resource authorization method for vnf deployment, vnfm and nfvo
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944881A (en) * 2014-03-19 2014-07-23 华存数据信息技术有限公司 Cloud resource authorizing method under cloud computing environment
US11256712B2 (en) * 2018-02-05 2022-02-22 Accenture Global Solutions Limited Rapid design, development, and reuse of blockchain environment and smart contracts
CN109194506B (en) * 2018-08-16 2021-10-15 北京京东尚科信息技术有限公司 Block chain network deployment method, platform and computer storage medium
CN109800056A (en) * 2019-01-16 2019-05-24 杭州趣链科技有限公司 A kind of block chain dispositions method based on container
CN110378691A (en) * 2019-06-18 2019-10-25 重庆金融资产交易所有限责任公司 Block chain dispositions method, device and computer equipment based on deployment center

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017143999A1 (en) * 2016-02-26 2017-08-31 中国移动通信集团公司 Resource authorization method for vnf deployment, vnfm and nfvo
CN106796688A (en) * 2016-12-26 2017-05-31 深圳前海达闼云端智能科技有限公司 Permission control method, device and system of block chain and node equipment
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application

Also Published As

Publication number Publication date
CN110995480A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN110995480B (en) Block chain network deployment method, device, electronic equipment and medium
CN111258609B (en) Upgrading method and device of Kubernetes cluster, electronic equipment and medium
JP2022008781A (en) Decentralized training method, system, device, storage medium and program
US20140137111A1 (en) Host naming application programming interface
CN111277647B (en) Block chain network member management method, device, equipment and medium
CN111221619A (en) Method, device and equipment for opening and arranging service
CN111858628B (en) Database-based management method, platform, electronic device and storage medium
US11941406B2 (en) Infrastructure (HCI) cluster using centralized workflows
US20140137073A1 (en) End to end modular information technology system
CN111506401B (en) Automatic driving simulation task scheduling method and device, electronic equipment and storage medium
US10791021B1 (en) Storage and retrieval of parameters for infrastructure-as-code computing services
CN112153167B (en) Internet interconnection protocol management method, device, electronic equipment and storage medium
CN111614490A (en) Management system and method for managed container cluster based on top-level container cluster
CN112328296B (en) Method, device, equipment and medium for updating software aiming at cross-platform application
US10341181B2 (en) Method and apparatus to allow dynamic changes of a replica network configuration in distributed systems
CN111290768A (en) Updating method, device, equipment and medium for containerization application system
CN111625195A (en) Method and device for server capacity expansion
US10536407B1 (en) Converting shared files to message attachments
CN114721686A (en) Configuration data updating method and device, electronic equipment and storage medium
CN112084000B (en) Container cluster testing method and device
CN111782357B (en) Label control method and device, electronic equipment and readable storage medium
CN112527368B (en) Cluster kernel version updating method and device, electronic equipment and storage medium
CN115576565A (en) Application program deployment method and device, electronic equipment and storage medium
CN112148429B (en) Information processing method and device for managing container orchestration engine cluster
CN113051122B (en) Performance data acquisition method, device, electronic equipment and medium

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