CN110224854A - Dispositions method, device and the storage medium of block chain node - Google Patents

Dispositions method, device and the storage medium of block chain node Download PDF

Info

Publication number
CN110224854A
CN110224854A CN201910371483.9A CN201910371483A CN110224854A CN 110224854 A CN110224854 A CN 110224854A CN 201910371483 A CN201910371483 A CN 201910371483A CN 110224854 A CN110224854 A CN 110224854A
Authority
CN
China
Prior art keywords
node
block chain
deployment
chain node
back end
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.)
Granted
Application number
CN201910371483.9A
Other languages
Chinese (zh)
Other versions
CN110224854B (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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910371483.9A priority Critical patent/CN110224854B/en
Publication of CN110224854A publication Critical patent/CN110224854A/en
Application granted granted Critical
Publication of CN110224854B publication Critical patent/CN110224854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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/0893Assignment of logical groups to network elements
    • 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

Abstract

The present invention relates to block chain technologies, provide dispositions method, device and the computer readable storage medium of a kind of block chain node.This method comprises: obtaining the configuration file of each block chain node, the block chain node includes common recognition node, back end and client node;The common recognition node, back end and client node are successively disposed and started according to the configuration file;During disposing and starting the common recognition node, back end and client node, when occurring the error message of preset kind in the log of block chain node, suspend the deployment and starting of the common recognition node, back end or client node, delete the corresponding block chain node of the error message configuration file and all processes, redeploy block chain node corresponding with this is started.Using the present invention, the deployment difficulty of block chain node can be reduced, improves the deployment efficiency of block chain node.

Description

Dispositions method, device and the storage medium of block chain node
Technical field
The present invention relates to block chain technical field more particularly to a kind of dispositions method, device and the calculating of block chain node Machine readable storage medium storing program for executing.
Background technique
Block chain is generally understood as a distributed account book, it is substantially also a distributed computing and storage system System.Often node is numerous due to block catenary system, each node may cross-region distribution, the deployment of block chain node especially joins The deployment of alliance's catenary system node often seems abnormal cumbersome, once the node of discovery deployment mistake, it may be necessary to it redeploys a large amount of Interdependent node.
Summary of the invention
For these reasons, it is necessary to which the dispositions method, device and computer-readable storage of a kind of block chain node are provided Medium reduces the deployment difficulty of block chain node, improves the deployment efficiency of block chain node, in the block chain of discovery deployment mistake When node, without redeploying other block chain nodes.
To achieve the above object, the present invention provides a kind of dispositions method of block chain node, is applied to electronic device, the party Method includes:
Configuration file obtaining step: the configuration file of each block chain node is obtained, wherein the block chain node includes Common recognition node, back end and client node;
Common recognition node deployment step: the common recognition node is disposed and started according to the configuration file of each common recognition node;
Back end deploying step: after all common recognition node deployment successes, according to the configuration of each back end The back end is disposed and started to file;And
Client node deploying step: after all back end deployment success, according to each client node The client node is disposed and started to configuration file.
Preferably, the configuration file obtaining step includes:
A unique node identification is distributed for each block chain node;
Obtain corresponding with node identification configuration information, the configuration information includes node identity information, node IP Location and node port information;And
The configuration information is written in the configuration file of each block chain node.
Preferably, this method further include:
The deployment of the common recognition node, back end and client node is monitored using the log of block chain node and is opened It is dynamic;
When occurring the error message of preset kind in the log, suspend the common recognition node, back end or client The deployment and starting of end node, delete the corresponding block chain node of the error message configuration file and all processes, again Dispose block chain node corresponding with this is started.
Preferably, the deployment and starting of same type of block chain node concurrently carry out.
Preferably, by the way that concurrent deployment threshold limiting concurrent deployment is arranged and starts same type of block chain node most Big number of concurrent.
The present invention also provides a kind of electronic device, which includes memory and processor, is wrapped in the memory The deployment program of block chain node is included, the deployment program of the block chain node realizes following steps when being executed by the processor:
Configuration file obtaining step: the configuration file of each block chain node is obtained, wherein the block chain node includes Common recognition node, back end and client node;
Common recognition node deployment step: the common recognition node is disposed and started according to the configuration file of each common recognition node;
Back end deploying step: after all common recognition node deployment successes, according to the configuration of each back end The back end is disposed and started to file;And
Client node deploying step: after all back end deployment success, according to each client node The client node is disposed and started to configuration file.
Preferably, the configuration file obtaining step includes:
A unique node identification is distributed for each block chain node;
Obtain corresponding with node identification configuration information, the configuration information includes node identity information, node IP Location and node port information;And
The configuration information is written in the configuration file of each block chain node.
Preferably, following steps are realized when the deployment program of the block chain node is executed by the processor:
The deployment of the common recognition node, back end and client node is monitored using the log of block chain node and is opened It is dynamic;
When occurring the error message of preset kind in the log, suspend the common recognition node, back end or client The deployment and starting of end node, delete the corresponding block chain node of the error message configuration file and all processes, again Dispose block chain node corresponding with this is started.
Preferably, the deployment and starting of same type of block chain node concurrently carry out.
The present invention also provides a kind of computer readable storage medium, block chain is stored in the computer readable storage medium The deployment program of the deployment program of node, the block chain node realizes following steps when being executed by the processor:
Configuration file obtaining step: the configuration file of each block chain node is obtained, wherein the block chain node includes Common recognition node, back end and client node;
Common recognition node deployment step: the common recognition node is disposed and started according to the configuration file of each common recognition node;
Back end deploying step: after all common recognition node deployment successes, according to the configuration of each back end The back end is disposed and started to file;And
Client node deploying step: after all back end deployment success, according to each client node The client node is disposed and started to configuration file.
Dispositions method, device and the computer readable storage medium of block chain node provided by the invention, it is every by obtaining Then block chain common recognition node, block are successively disposed according to the configuration file and started to the configuration file of a block chain node Chain back end and block chain client node, and disposing and starting the block chain common recognition node, back end and visitor During the end node of family, the process is monitored using the log of block chain node, when the default class of appearance in the log When the error message of type, suspends the deployment and starting of the common recognition node, back end or client node, delete the mistake The configuration file of the corresponding block chain node of information and all processes redeploy block chain node corresponding with this is started, so The deployment and starting of the common recognition node, back end or client node are continued to execute afterwards.Because according to common recognition node, data Node, the sequential placement of client node and starting block chain link point, when disposing the back end, the common recognition node is Successful deployment and starting, so the common recognition node is not interfered with, likewise, working as when the back end disposes mistake When the client node deployment mistake, the common recognition node and the back end are not interfered with.Because of each area The configuration file of block chain node is self-existent, so not interfering with other when a block chain node deployment mistake Node.In conclusion the deployment difficulty of block chain node can be reduced using the present invention, in the node of discovery deployment mistake, Other nodes need not be redeployed.Because same type of block chain node can be disposed concurrently, using the present invention, may be used also To improve the deployment efficiency of block chain node.
Detailed description of the invention
Fig. 1 is the schematic diagram of one embodiment of electronic device of the present invention;
Fig. 2 is the Program modual graph of one embodiment of deployment program of block chain node in Fig. 1;
Fig. 3 is the flow chart of one embodiment of dispositions method of block chain node of the present invention;
Fig. 4 is the refinement flow diagram of step S310 in Fig. 3.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Understand to make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with several attached drawings and reality Example is applied, the present invention is further described in detail.It should be understood that specific embodiment described herein is only used to It explains the present invention, is not intended to limit the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
The present invention provides a kind of electronic device.It is the schematic diagram of 1 one embodiment of electronic device of the present invention shown in referring to Fig.1. In this embodiment, electronic device 1 can be connected by network with block chain node (not shown), the electronic device 1 Can be server, smart phone, tablet computer, portable computer, desktop PC etc. has storage and calculation function Terminal device.In one embodiment, when electronic device 1 is server, which can be rack-mount server, blade The one or more of formula server, tower server or Cabinet-type server etc..
The electronic device 1 includes memory 11, processor 12 and network interface 13.
Wherein, memory 11 includes the readable storage medium storing program for executing of at least one type.The readable of at least one type is deposited Storage media can be the non-volatile memory medium of such as flash memory, hard disk, multimedia card, card-type memory.In some embodiments, The readable storage medium storing program for executing can be the internal storage unit of the electronic device 1, such as the hard disk of the electronic device 1.Another In some embodiments, the readable storage medium storing program for executing is also possible to the external memory of the electronic device 1, such as electronics dress Set the plug-in type hard disk being equipped on 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..
In the present embodiment, the readable storage medium storing program for executing of the memory 11 is used for the deployment program 10 of memory block chain node And the data generated during block chain node deployment, such as configuration information, the configuration information of each block chain node With the corresponding relationship etc. of block chain node identification.The memory 11, which can be also used for temporarily storing, have been exported or will The data of output.
Processor 12 can be a central processing unit (Central Processing Unit, CPU), microprocessor or its His data processing chip, program code or processing data for being stored in run memory 11, such as execute the block chain The deployment program 10 of node.
Network interface 13 may include standard wireline interface and wireless interface (such as WI-FI interface).Commonly used in the electricity Between sub-device 1 and other electronic equipments establish communication connection, such as with certificate authority (Certificate Authority, CA) and block chain the foundation communication connection such as common recognition node, back end and client node.
Fig. 1 illustrates only the electronic device 1 with component 11-13, it should be understood that being not required for implementing all show Component out, the implementation that can be substituted is more or less component.
Optionally, which can also include input unit such as keyboard (Keyboard), speech input device ratio The equipment that such as microphone (Microphone) has speech identifying function.The input unit and input unit can be used for pair The deployment program 10 of the block chain node carries out editor and additions and deletions.
Optionally, which can also include display, be referred to as display screen or display unit.Some It can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and Organic Light Emitting Diode (Organic in embodiment Light-Emitting Diode, OLED) display etc..Display for show the information handled in the electronic apparatus 1 and For showing visual user interface.
The electronic device 1 can also include radio frequency (Radio Frequency, RF) circuit, sensor, voicefrequency circuit, have Line interface and wireless interface etc., details are not described herein.
In the above-described embodiments, the block chain node includes common recognition node, back end and client node, it is assumed that Through being installed the software environment of all block chain nodes using the prior art, i.e., the operating system of each block chain node and answer It has been installed with software, the processor 12 executes the deployment journey of the block chain node stored in the memory 11 Following steps may be implemented when sequence 10:
Configuration file obtaining step: the configuration file of each block chain node is obtained, wherein the block chain node includes Common recognition node, back end and client node;
Common recognition node deployment step: the common recognition node is disposed and started according to the configuration file of each common recognition node;
Back end deploying step: after all common recognition node deployment successes, according to the configuration of each back end The back end is disposed and started to file;And
Client node deploying step: after all back end deployment success, according to each client node The client node is disposed and started to configuration file.
About being discussed in detail for above-mentioned steps, deployment program 10 embodiment of following Fig. 2 about block chain node is please referred to Explanation about the flow chart of the dispositions method embodiment of block chain node of Program modual graph and Fig. 3, Fig. 4.
In other embodiments, the deployment program 10 of the block chain node can be divided into multiple modules, multiple Module is stored in memory 12, and is executed by processor 13, to complete the present invention.The so-called module of the present invention is to refer to Complete the series of computation machine program instruction section of specific function.
It is the Program modual graph of 10 1 embodiment of deployment program of block chain node in Fig. 1 referring to shown in Fig. 2.In this reality It applies in example, the deployment program 10 of the block chain node can be divided into: configuration module 110, deployment module 120, monitoring mould Block 130 and removing module 140.
The configuration module 110 obtains and the section for distributing a unique node identification for each block chain node The corresponding configuration information of point identification, and the configuration information is written in the configuration file of each block chain node.Wherein, The block chain node includes common recognition node, back end and client node.The client node is used for the data Node sends request, and the back end is used to receive the request that the client is sent and the request is endorsed and simulated The request is executed, the common recognition node is used to carry out common recognition processing to request implementing result and generates block.The configuration information Including node identity information, node IP address and node port information.In the present embodiment, the node identity information include by Predetermined CA is the digital certificate of the proof block chain node legal identity of block chain node granting.The node identification can With use corresponding block chain node node IP address or other be capable of the identifier of the unique identification block chain node, it is described The format of configuration file can be XML or JSON etc., and which is not limited by the present invention.
The deployment module 120, for block chain common recognition node, block successively to be disposed and started according to the configuration file Chain back end and block chain client node.In the present embodiment, the deployment module 120 includes common recognition node deployment list Member 121, back end deployment unit 122 and client node deployment module 123.The common recognition node deployment unit 121 is used In disposing and starting the common recognition node according to the configuration file of each common recognition node, the back end deployment unit 122 is used In after all common recognition node deployment successes, the data section is disposed and started according to the configuration file of each back end Point, the client node deployment module 123 is used for after all back end deployment success, according to each client's end segment The client node is disposed and started to the configuration file of point.
In the present embodiment, the deployment and starting of the common recognition node, back end and client node can be distinguished Concurrently carry out, so as to improve the deployment efficiency of the deployment efficiency of block chain node, especially back end and client node, because A large amount of back end and client node are generally included for block catenary system.Specifically, the deployment module 120 can be passed through Concurrent deployment threshold is set, the maximum number of concurrent of same kind block chain node is disposed and started with this limiting concurrent.It is described simultaneously The setting of hair deployment threshold is influenced by 1 performance of electronic device, and electronic device 1 can create how many for block chain link The process of point deployment and starting, can be arranged great concurrent deployment threshold.For example, it is assumed that electronic device 1 can create 1000 A process for disposing and starting block chain link point, be responsible for disposing and start a block chain node by each process, then it is described simultaneously Hair deployment threshold can be set to 1000.By concurrently disposing same type of block chain node, block chain can be greatly improved The deployment efficiency of node.
The monitoring module 130, for monitoring the deployment of the common recognition node, back end and client node and opening It is dynamic.In the present embodiment, the portion of the common recognition node, back end and client node is monitored using the log of block chain node Administration and starting, for example, the error message of preset kind can be monitored by setting alarm keyword (such as " error "), such as Starting failure, operation exception etc..When disposing and starting the block chain node, if gone out in the log of the block chain node The existing alarm keyword then illustrates abnormality occur in the deployment and start-up course, it is abnormal to need to redeploy appearance The block chain node of state.
The removing module 140, for when the monitoring module 130 notes abnormalities state, suspend the common recognition node, The deployment and starting of back end and client node, delete the corresponding block chain node of the abnormality configuration file and The block chain node is transferred to the configuration module 110 and the deployment module 120 by all processes (including container and mirror image), Reacquisition and loading configuration file simultaneously re-start deployment and starting.
In addition, the present invention also provides a kind of dispositions methods of block chain node.It is block chain of the present invention referring to shown in Fig. 3 The flow chart of one embodiment of dispositions method of node.The block that the processor 12 of electronic device 1 stores in executing memory 11 The following steps of the dispositions method of block chain node are realized when the deployment program 10 of chain node:
Step S300 obtains the configuration file of each block chain node using the configuration module 110.Wherein, the area Block chain node includes common recognition node, back end and client node, includes matching for each block chain node in the configuration file Confidence breath, such as node identity information, node IP address and node port information etc..
Specifically, each block chain node possesses a unique node identification, the node identification of each block chain and its There are predetermined corresponding relationship, the node identification can be used node IP address or other can uniquely mark configuration information Know the identifier of block chain node, the configuration information can be obtained from predetermined configuration center.For example, in the configuration The heart can obtain the digital certificate for indicating the node identity information of each block chain node from least one predetermined CA, The CA that different blocks chain node is used to obtain node identity information may be the same or different.The configuration center can root According to node identification or the specified CA for providing digital certificate of node type.The configuration center can also by order " ifconfig | Grep broadcast | awk'{ print 2 } ' " obtain the node IP address of each block chain node, the node port information It can be and made an appointment, can also obtain by similar methods, details are not described herein.Configuration module 110 obtain with it is every After the corresponding configuration information of a node identification, the configuration information can be written in the configuration file of each block chain node, be supplied Deployment module 120 uses.
Common recognition node, data section are successively disposed according to the configuration file and started to step S310, the deployment module 120 Point and client node.Specifically, deployment module 120 should first complete the concurrently deployment and starting of the common recognition node, then The concurrently deployment and starting for completing the back end, finally concurrently dispose again and start the client node.Assuming that described Know together node whole deployment success and starting, do not occur abnormality, then illustrate all common recognition node deployments successfully, will start into The deployment and starting of the row back end.When starting the back end, each back end will be with the common recognition node Connection is established, if being successfully established connection and normal operation, illustrates the back end deployment success, if failing to establish connection or operation Occur abnormal, it is abnormal to illustrate that the back end exists, need to exclude the exception of the back end and to the back end again into Row deployment and starting.Likewise, it is assumed that all common recognition nodes and all back end whole deployment success and starting, do not occur different Normal state then illustrates all common recognition nodes and all back end deployment success, will start to carry out the portion of the client node Administration and starting.When starting the client node, each client node will be established with back end described at least one to be connected It connects, if being successfully established connection and normal operation, illustrates the client node deployment success, if failing to establish connection or operation appearance It is abnormal, it is abnormal to illustrate that the client node exists, need to exclude the exception of the client node and to the client node again It is disposed and is started.
In other embodiments, the configuration information of block chain node can also include the time threshold that connection is established in request, Connection is established when failing between block chain node corresponding in the time threshold.
Block chain link point is disposed according to the sequencing of common recognition node, back end and client node, be for Guarantee will not to have an impact the node formerly disposed in the node of deployment, when discovery has abnormal block chain node When, the abnormality of the block chain node need to be only excluded, the block chain node is redeployed and start, without redeploying Other block chain nodes.
In the present embodiment, the concurrent of same kind block chain node is disposed by the way that concurrent deployment threshold limiting concurrent is arranged Number.Each process that electronic device 1 creates can be responsible for disposing and starting a block chain node.By concurrently disposing same type The block chain node of type, can greatly improve the deployment efficiency of block chain node.
Step S320 monitors the portion of the common recognition node, back end and client node using the monitoring module 130 Administration and starting, when note abnormalities state when, the deployment and starting of subsequent block chain link point are (without interrupting just in pause step S310 In the block chain node disposed and started), the corresponding block chain node of the abnormality is deleted using the removing module 140 Configuration file and all processes, redeploy and start the block chain node, after the block chain node deployment success, continue Execute step S310.Specifically, the deployment and starting that can use the log monitoring block chain link point of block chain node, by setting Alarm keyword (such as " error ") is set, when occurring the alarm keyword in the log, section of knowing together described in automatic pause The deployment and starting of point, back end or client node, according to block chain link belonging to the log for the alarm keyword occur There is abnormal block chain node in point, positioning, according to row information where the alarm keyword, determine the exception of the block chain node State then excludes the abnormality, for example, (can be wrapped by the configuration file and all processes for deleting the block chain node Include container and mirror image), it then redeploys and starts the block chain node to exclude abnormality.Determining the block chain node After deployment success, the step S310 is continued to execute.
It is the refinement flow diagram of the step S310 of the dispositions method of block chain node of the present invention, institute referring to shown in Fig. 4 State step S310 the following steps are included:
Step S311, the common recognition node deployment unit 121 is disposed according to the configuration file of each common recognition node and starting The common recognition node.Because the quantity for node of knowing together is often less, electronic device 1 can be created and required deployment and starting The identical process of quantity of common recognition node be responsible for the deployment and starting of the common recognition node, each process is responsible for disposing and open Move a common recognition node.After determining all common recognition node deployment successes, step S312 is executed.
Step S312, the back end deployment unit 122 are disposed and are started according to the configuration file of each back end The back end.Because the quantity of back end is often more, electronic device 1 can be created according to the quantity of back end It builds or creates number of processes in batches no more than the process of the concurrent deployment threshold to be responsible for the deployment of the back end and open Dynamic, each process is responsible for disposing and starting a back end.After determining all back end deployment success, step is executed Rapid S313.
Step S312, the client node deployment unit 123 according to the configuration file of each client node deployment and Start the client node.Because the quantity of client node is often very much, electronic device 1 can be according to client's end segment The quantity of point creates number of processes in batches and is not more than the process of the concurrent deployment threshold to be responsible for the portion of the client node Administration and starting, each process are responsible for disposing and starting a client node.
It can judge whether the common recognition node, back end and client node are deployed to according to the log of block chain node Function specifically please refers to the above-mentioned related introduction about Fig. 3, and details are not described herein.
In addition, the computer readable storage medium can be firmly the present invention also provides a kind of computer readable storage medium Disk, multimedia card, SD card, flash card, SMC, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), just Take any one in formula aacompactadisk read onlyamemory (CD-ROM), USB storage etc. or several any combination.
The deployment program of block chain node is stored in the computer readable storage medium of the present invention, the block chain node Deployment program realizes following steps when being executed by the processor:
Configuration file obtaining step: the configuration file of each block chain node is obtained, wherein the block chain node includes Common recognition node, back end and client node;
Common recognition node deployment step: the common recognition node is disposed and started according to the configuration file of each common recognition node;
Back end deploying step: after all common recognition node deployment successes, according to the configuration of each back end The back end is disposed and started to file;And
Client node deploying step: after all back end deployment success, according to each client node The client node is disposed and started to configuration file.
The specific embodiment of the dispositions method and electronic device 1 of its specific embodiment and above-mentioned block chain node is substantially It is identical, please refer to schematic diagram and Fig. 3, Fig. 4 deployment about block chain node of the above-mentioned Fig. 1 about 1 embodiment of electronic device The flow chart of embodiment of the method is discussed in detail, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.It in addition, the technical solution between each embodiment can be combined with each other, but must be with ordinary skill people Based on member can be realized, this technical solution will be understood that when the combination of technical solution appearance is conflicting or cannot achieve Combination be not present, also not the present invention claims protection scope within.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium, used including some instructions so that electronic device executes method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of dispositions method of block chain node is applied to electronic device, which is characterized in that this method comprises:
Configuration file obtaining step: the configuration file of each block chain node is obtained, wherein the block chain node includes common recognition Node, back end and client node;
Common recognition node deployment step: the common recognition node is disposed and started according to the configuration file of each common recognition node;
Back end deploying step: after all common recognition node deployment successes, according to the configuration file of each back end Dispose and start the back end;And
Client node deploying step: after all back end deployment success, according to the configuration of each client node The client node is disposed and started to file.
2. the dispositions method of block chain node as described in claim 1, which is characterized in that the configuration file obtaining step packet It includes:
A unique node identification is distributed for each block chain node;
Obtain corresponding with node identification configuration information, the configuration information include node identity information, node IP address and Node port information;And
The configuration information is written in the configuration file of each block chain node.
3. the dispositions method of block chain node as claimed in claim 1 or 2, which is characterized in that this method further include:
The deployment and starting of the common recognition node, back end and client node are monitored using the log of block chain node;
When occurring the error message of preset kind in the log, suspend the common recognition node, back end or client's end segment Point deployment and starting, delete the corresponding block chain node of the error message configuration file and all processes, redeploy With the starting corresponding block chain node.
4. the dispositions method of block chain node as claimed in claim 3, which is characterized in that same type of block chain node The deployment and starting concurrently carry out.
5. the dispositions method of block chain node as claimed in claim 4, which is characterized in that limited by the way that concurrent deployment threshold is arranged The maximum number of concurrent of same type of block chain node is concurrently disposed and started to system.
6. a kind of electronic device, including memory and processor, which is characterized in that including block chain node in the memory The deployment program of deployment program, the block chain node realizes following steps when being executed by the processor:
Configuration file obtaining step: the configuration file of each block chain node is obtained, wherein the block chain node includes common recognition Node, back end and client node;
Common recognition node deployment step: the common recognition node is disposed and started according to the configuration file of each common recognition node;
Back end deploying step: after all common recognition node deployment successes, according to the configuration file of each back end Dispose and start the back end;And
Client node deploying step: after all back end deployment success, according to the configuration of each client node The client node is disposed and started to file.
7. electronic device as claimed in claim 6, which is characterized in that the configuration file obtaining step includes:
A unique node identification is distributed for each block chain node;
Obtain corresponding with node identification configuration information, the configuration information include node identity information, node IP address and Node port information;And
The configuration information is written in the configuration file of each block chain node.
8. electronic device as claimed in claims 6 or 7, which is characterized in that the deployment program of the block chain node is described Processor also realizes following steps when executing:
The deployment and starting of the common recognition node, back end and client node are monitored using the log of block chain node;
When occurring the error message of preset kind in the log, suspend the common recognition node, back end or client's end segment Point deployment and starting, delete the corresponding block chain node of the error message configuration file and all processes, redeploy With the starting corresponding block chain node.
9. electronic device as claimed in claim 8, which is characterized in that the deployment of same type of block chain node and open It is dynamic concurrently to carry out.
10. a kind of computer readable storage medium, which is characterized in that include block chain link in the computer readable storage medium The deployment program of point, the deployment program of the block chain node are performed realization as described in any one of claim 1 to 5 The step of dispositions method of block chain node.
CN201910371483.9A 2019-05-06 2019-05-06 Block chain node deployment method and device and storage medium Active CN110224854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910371483.9A CN110224854B (en) 2019-05-06 2019-05-06 Block chain node deployment method and device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910371483.9A CN110224854B (en) 2019-05-06 2019-05-06 Block chain node deployment method and device and storage medium
PCT/CN2019/120650 WO2020224238A1 (en) 2019-05-06 2019-11-25 Blockchain node depolyment method, device and equipment, and storage medium

Publications (2)

Publication Number Publication Date
CN110224854A true CN110224854A (en) 2019-09-10
CN110224854B CN110224854B (en) 2022-04-12

Family

ID=67820472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910371483.9A Active CN110224854B (en) 2019-05-06 2019-05-06 Block chain node deployment method and device and storage medium

Country Status (2)

Country Link
CN (1) CN110224854B (en)
WO (1) WO2020224238A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN110855791A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Block link point deployment method and related equipment
CN111245910A (en) * 2019-12-31 2020-06-05 杭州趣链科技有限公司 Block chain light node multi-copy deployment method
WO2020224238A1 (en) * 2019-05-06 2020-11-12 深圳壹账通智能科技有限公司 Blockchain node depolyment method, device and equipment, and storage medium
CN112398908A (en) * 2020-10-20 2021-02-23 杭州云象网络技术有限公司 Block chain network node deleting method, system, storage medium and device
WO2021253761A1 (en) * 2020-06-16 2021-12-23 杭州溪塔科技有限公司 Blockchain consensus node state monitoring method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188335A (en) * 2011-12-28 2013-07-03 英业达股份有限公司 Node deployment method and server system using by same
US20180123779A1 (en) * 2016-11-01 2018-05-03 Jiangang Zhang Flexible Blockchain Smart-Contract Deployment
CN108881476A (en) * 2018-07-16 2018-11-23 众安信息技术服务有限公司 Block chain dispositions method and system
CN108964982A (en) * 2018-06-13 2018-12-07 众安信息技术服务有限公司 For realizing the method, apparatus and storage medium of the deployment of the multinode of block chain

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763302A (en) * 2018-04-19 2018-11-06 深圳市网心科技有限公司 Block chain common recognition processing method, electronic device and computer readable storage medium
CN108769258B (en) * 2018-06-29 2021-05-07 上海点融信息科技有限责任公司 Method and apparatus for hosting blockchain network to blockchain application platform
CN109218079B (en) * 2018-08-16 2021-09-10 北京京东尚科信息技术有限公司 Block chain network, deployment method and storage medium
CN110224854B (en) * 2019-05-06 2022-04-12 深圳壹账通智能科技有限公司 Block chain node deployment method and device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188335A (en) * 2011-12-28 2013-07-03 英业达股份有限公司 Node deployment method and server system using by same
US20180123779A1 (en) * 2016-11-01 2018-05-03 Jiangang Zhang Flexible Blockchain Smart-Contract Deployment
CN108964982A (en) * 2018-06-13 2018-12-07 众安信息技术服务有限公司 For realizing the method, apparatus and storage medium of the deployment of the multinode of block chain
CN108881476A (en) * 2018-07-16 2018-11-23 众安信息技术服务有限公司 Block chain dispositions method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020224238A1 (en) * 2019-05-06 2020-11-12 深圳壹账通智能科技有限公司 Blockchain node depolyment method, device and equipment, and storage medium
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN110855791A (en) * 2019-11-18 2020-02-28 腾讯科技(深圳)有限公司 Block link point deployment method and related equipment
CN111245910A (en) * 2019-12-31 2020-06-05 杭州趣链科技有限公司 Block chain light node multi-copy deployment method
WO2021253761A1 (en) * 2020-06-16 2021-12-23 杭州溪塔科技有限公司 Blockchain consensus node state monitoring method and apparatus
CN112398908A (en) * 2020-10-20 2021-02-23 杭州云象网络技术有限公司 Block chain network node deleting method, system, storage medium and device

Also Published As

Publication number Publication date
CN110224854B (en) 2022-04-12
WO2020224238A1 (en) 2020-11-12

Similar Documents

Publication Publication Date Title
CN110224854A (en) Dispositions method, device and the storage medium of block chain node
US20170005858A1 (en) Log processing method and client
CN107451147A (en) A kind of method and apparatus of kafka clusters switching at runtime
CN111831563A (en) Automatic interface test method and device and storage medium
CN106650490B (en) The login method and device of cloud account
CN110674440A (en) Buried point data processing method, system, computer device and readable storage medium
CN108376110A (en) A kind of automatic testing method, system and terminal device
CN110149363A (en) A kind of information push method, device and storage medium
CN110347571A (en) A kind of crash log acquisition method, analysis method and relevant apparatus
WO2021169124A1 (en) Method and apparatus for installing software package to target host, and computer device
CN107357619B (en) Method, device, equipment and storage medium for generating card configuration file
CN111767173A (en) Network equipment data processing method and device, computer equipment and storage medium
WO2021072861A1 (en) Application service processing method and apparatus, and terminal and storage medium
CN106934272B (en) Application information verification method and device
CN113448862B (en) Software version testing method and device and computer equipment
CN109684155A (en) Monitor configuration method, device, equipment and readable storage medium storing program for executing
CN109032685A (en) A kind of method and terminal accelerating Android system starting
CN112445874A (en) Node information checking method, device, equipment and storage medium
CN102053862B (en) Method and device for inspecting material files in instant messenger
CN108924270B (en) Method for updating terminal contact information, server and storage medium
CN108616668B (en) Method for monitoring dialing task, electronic device and computer readable storage medium
CN109828797A (en) Capture service processes management method and relevant device
CN109976833A (en) Firmware loading method, electronic equipment and the server for storing firmware configuration data
CN110647739A (en) Software installation detection method, device, terminal and storage medium
CN113286014B (en) Dynamic configuration method and device of basic domain name and related equipment

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