WO2020199598A1 - 区块链节点管理方法、电子装置、系统及可读存储介质 - Google Patents

区块链节点管理方法、电子装置、系统及可读存储介质 Download PDF

Info

Publication number
WO2020199598A1
WO2020199598A1 PCT/CN2019/117765 CN2019117765W WO2020199598A1 WO 2020199598 A1 WO2020199598 A1 WO 2020199598A1 CN 2019117765 W CN2019117765 W CN 2019117765W WO 2020199598 A1 WO2020199598 A1 WO 2020199598A1
Authority
WO
WIPO (PCT)
Prior art keywords
proxy server
target proxy
target
blockchain node
baas platform
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.)
Ceased
Application number
PCT/CN2019/117765
Other languages
English (en)
French (fr)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2020199598A1 publication Critical patent/WO2020199598A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • 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/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Definitions

  • This application relates to the technical field of block structure improvement, in particular to a blockchain node management method, electronic device, system and readable storage medium.
  • the existing blockchain system is completely decentralized, and the control authority is in each block chain node itself, that is, all control authority is the node itself, and no organization or node can control the blockchain.
  • the nodes for unified management. If a centralized management interface is established for the blockchain system, it will violate the concept of decentralization.
  • the purpose of this application is to provide a blockchain node management method, electronic device, system, and readable storage medium, so as to solve the existing technical problem that the blockchain nodes cannot be uniformly and efficiently managed.
  • a blockchain node management method including the following steps: receiving a control instruction input by a user through a BaaS platform, wherein the control instruction carries target proxy server information, and the target proxy The server information includes the IP address; according to the target proxy server information, the target proxy server is determined from the multiple proxy servers interacting with the BaaS platform, and each proxy server corresponds to a blockchain node; The control instruction is transmitted to the target proxy server to realize the management operation of the blockchain node corresponding to the target proxy server.
  • an electronic device including a memory and a processor, wherein the memory is used to store a blockchain node management system executable by the processor, and the blockchain node
  • the management system includes: a first receiving module, configured to receive a control instruction input by a user through the BaaS platform, wherein the control instruction carries target proxy server information, and the target proxy server information includes an IP address; a first determining module, It is used to determine the target proxy server from the multiple proxy servers interacting with the BaaS platform according to the target proxy server information, and each proxy server corresponds to a blockchain node; the management module is used to pass HTTP The control instruction is transmitted to the target proxy server to implement management operations on the blockchain node corresponding to the target proxy server.
  • a blockchain node management system including: a BaaS platform for providing a user management interface to receive user control instructions; a proxy server that interacts with the BaaS platform via HTTP , Where each proxy server user creates a blockchain node and manages the corresponding blockchain node according to the control instructions from the BaaS platform.
  • a computer device including: a memory and a processor, wherein the processor is configured to execute the steps of the following method: receiving a control instruction input by a user through a BaaS platform, wherein the control The instruction carries target proxy server information, and the target proxy server information includes an IP address; according to the target proxy server information, a target proxy server is determined from multiple proxy servers interacting with the BaaS platform, and each The proxy server corresponds to a blockchain node; the control instruction is transmitted to the target proxy server via HTTP, so as to realize the management operation of the blockchain node corresponding to the target proxy server.
  • a non-volatile computer-readable storage medium having computer instructions stored thereon, and the instructions execute the steps of the following method: receiving a control instruction input by a user through a BaaS platform, wherein: The control instruction carries target proxy server information, and the target proxy server information includes an IP address; according to the target proxy server information, the target proxy server is determined from multiple proxy servers interacting with the BaaS platform, Each proxy server corresponds to a blockchain node; the control instruction is transmitted to the target proxy server through HTTP, so as to realize the management operation of the blockchain node corresponding to the target proxy server.
  • the positive progress effect of this application is that the administrator can input control instructions through the Bass platform, and then because the BaaS platform and the proxy server can exchange data, because the control instructions can be transmitted to the corresponding proxy server, because each proxy server corresponds to one Blockchain nodes can realize the management and control of the corresponding blockchain nodes.
  • Figure 1 is a method flowchart of a blockchain node management method according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of the architecture of a blockchain node management system according to an embodiment of the present application
  • Fig. 3 is a block diagram of a block chain node management device according to an embodiment of the present application.
  • Fig. 4 is a schematic diagram of an optional hardware architecture of an electronic device according to an embodiment of the present application.
  • the BaaS platform controls each agent proxy server to create a blockchain node, and then For registration on the platform, users can control each blockchain node through the agent proxy server through the management interface provided by the BaaS platform, thus realizing effective control of the blockchain nodes.
  • a blockchain node management method, electronic equipment and system are provided, which are suitable for managing nodes in a decentralized blockchain.
  • the method and electronic equipment are specifically described as follows:
  • a method for managing blockchain nodes is provided, as shown in Figure 1, which may include the following steps:
  • Step 101 Receive a control instruction input by a user through the BaaS platform, where the control instruction carries target proxy server information, and the target proxy server information includes an IP address;
  • Step 102 According to the target proxy server information, determine a target proxy server from multiple proxy servers interacting with the BaaS platform, and each proxy server corresponds to a blockchain node;
  • Step 103 Transmit the control instruction to the target proxy server via HTTP, so as to realize the management operation of the blockchain node corresponding to the target proxy server.
  • the BaaS platform can provide a user interaction interface, and the BaaS platform and the Agent service can exchange data through HTTP. That is, the control information entered by the user on the interactive interface can be transmitted to the agent service via HTTP.
  • HTTP HyperText Transfer Protocol
  • HTTP HyperText Transfer Protocol
  • All WWW documents must comply with this standard.
  • HTTP is a standard (TCP) for client and server requests and responses.
  • the client is the end user, and the server is the website.
  • the client initiates an HTTP request to a specified port (the default port is 80) on the server.
  • the responding server stores (some) resources, such as HTML files and images.
  • this response server is the origin server.
  • TCP/IP protocol is the most popular application on the Internet, the HTTP protocol does not specify that it must be used and (based on) the layers it supports. In fact, HTTP can be implemented on any other Internet protocol, or on other networks. HTTP only assumes (provided by its underlying protocol) reliable transmission, and any protocol that can provide this guarantee can be used by it.
  • the HTTP client initiates a request to establish a TCP connection to the server's designated port (the default is port 80).
  • the HTTP server listens for requests sent by the client on that port. Once the request is received, the server sends back a status line (to the client), such as "HTTP/1.1 200 OK", and a (response) message.
  • the message body of the message may be the requested file, error message, or some other information.
  • Resources requested via HTTP or HTTPS protocols are identified by Uniform Resource Identifiers (or, more accurately, URLs).
  • the administrator can input control instructions through the BaaS platform, and then because the BaaS platform and the proxy server can exchange data, because the control instructions can be sent to the corresponding proxy server, because each proxy server corresponds to a blockchain Nodes, which can realize the management and control of the corresponding blockchain nodes, solve the existing technical problems of the inability to manage the blockchain nodes in a unified and effective manner, and achieve the technology of centralized and unified management of the blockchain nodes. effect.
  • the proxy server can be characterized as normal, so that the effective management of each blockchain node can be realized through the BaaS platform. For this reason, It is possible to receive heartbeat data uploaded by the target proxy server every predetermined time period; determine whether the heartbeat data uploaded by the target proxy server is received within the predetermined time period; determine whether the heartbeat data uploaded by the target proxy server is received within the predetermined time period In the case of data, it is determined that the target proxy server is working normally; in the case of determining that the heartbeat data uploaded by the target proxy server is not received within a predetermined time period, it is determined that the target proxy server is abnormal. That is, the proxy server periodically uploads heartbeat data to indicate that the data connection between itself and the BaaS platform is always valid, that is, it is always in a normal working state.
  • the proxy server can be registered on the BaaS platform. After the registration and installation are successful, data interaction with the BaaS platform can be realized. For this reason, according to the target proxy server information, from and Among the multiple proxy servers that the BaaS platform interacts with, before the target proxy server is determined, the BaaS platform can receive the proxy server's installation request; in response to the installation request, establish the data interaction between the proxy server and the BaaS platform to The installation of the proxy server is completed; after the installation is completed, the proxy server information reported by the proxy server is received and stored, where the proxy server information includes: IP address and port.
  • the Agent agent service is installed on the server, and the Agent agent server installed on the server provides an interface for creating, starting, stopping, and deleting Docker containers.
  • the above-mentioned server is a blockchain management system
  • the blockchain management system may include a BaaS platform and multiple proxy servers (ie, Agent proxy services).
  • the BaaS platform can provide a user interaction interface
  • the BaaS platform and the Agent service conduct data interaction through HTTP. That is, the control information entered by the user on the interactive interface can be transmitted to the agent service via HTTP.
  • each Agent service corresponds to a blockchain node, and a blockchain node is a docker container.
  • the Agent service can operate on its corresponding blockchain node (ie, Docker container), where the operation can include: create, start, stop, delete, etc.
  • the management operation when the management operation is: creating a blockchain node, the control instruction is transmitted to the target proxy server through HTTP, so as to realize the block corresponding to the target proxy server.
  • the chain node management operation may include: when the target proxy server receives the creation instruction, assemble and create the Docker container; use the created Docker container as the created blockchain node; after the creation is successful, write the creation result In the cache, for users to query through the BaaS platform.
  • the technical solution of the present application includes a blockchain node management system and method, which is suitable for managing nodes in a decentralized blockchain.
  • a blockchain node management system may include: a BaaS platform 201, used to provide a user management interface to receive user control instructions; multiple proxy servers 202, through HTTP Interacting with the BaaS platform, wherein each proxy server user creates a blockchain node and performs management operations on the corresponding blockchain node according to the control instructions from the BaaS platform.
  • the BaaS platform controls each Agent proxy server to create blockchain nodes, and registers on the platform. Users can use the Agent proxy server through the management interface provided by the BaaS platform The control of each blockchain node realizes effective control of the blockchain node.
  • a BaaS platform In order to realize the unified management of blockchain nodes, a BaaS platform is provided.
  • the BaaS platform can interact with proxy servers.
  • the BaaS platform interacts with proxy servers via HTTP.
  • Each proxy server is used to create a blockchain node.
  • blockchain nodes can be created by creating Docker containers.
  • users can manage blockchain nodes through the interface provided by the BaaS platform.
  • the blockchain node management system can be established according to the following steps:
  • S1 Install the Agent service on the server.
  • the Agent server installed on the server provides an interface for creating, starting, stopping, and deleting Docker containers.
  • the above-mentioned server is a blockchain management system
  • the blockchain management system may include a BaaS platform and multiple proxy servers (ie, Agent proxy services).
  • the BaaS platform can provide a user interaction interface
  • the BaaS platform and the Agent service conduct data interaction through HTTP. That is, the control information entered by the user on the interactive interface can be transmitted to the Agent service via HTTP.
  • each Agent service corresponds to a blockchain node, and a blockchain node is a Docker container.
  • the Agent service can operate its corresponding blockchain node (ie, docker container), where the operation can include: create, start, stop, delete, etc.
  • the operation interface provided by the Agent is the function of the proxy server of this application.
  • the Agent service only needs to obtain the control information input by the user from the BaaS, and can control Docker based on this information.
  • the BaaS platform After the Agent service is installed, the BaaS platform provides an interface to report the agent service information. This information can include: IP, port, and the Agent agent service reports heartbeat data at regular intervals. The Baas platform judges the agent based on the heartbeat data. Whether the service is working properly.
  • the heartbeat data is to send a small data packet to the other interconnected party at regular intervals, and the communication link between the interconnected parties is judged by the response of the other party.
  • every fixed time is a condition that is difficult to achieve. Therefore, it is generally not more than a certain time interval.
  • the Baas platform If it exceeds the predetermined time interval and the Baas platform does not receive the heartbeat data sent by the Agent service, it indicates that the link between the Agent service and the Baas platform is interrupted, and it is determined that the Agent service is not working properly. If it is received within the predetermined time interval When the heartbeat data is reached, the Baas platform can determine that the agent service is working normally.
  • the BaaS platform creates a blockchain node. Specifically, the BaaS platform selects the IP address to select the proxy server. Then, the BaaS platform assembles the parameter information required to create the blockchain node (ie, Docker container). Then, the BaaS platform passes The selected ip address calls the creation interface of the selected proxy service, and sends a container creation command to the selected proxy service. After receiving the creation command, the proxy server immediately returns the received information. The BaaS platform calls the query result interface provided by the proxy service to query the creation result. After receiving the creation command, the proxy server creates the blockchain node. Regardless of whether the creation succeeds or fails, the result is written into the cache to For BaaS platform query.
  • the proxy server creates the blockchain node. Regardless of whether the creation succeeds or fails, the result is written into the cache to For BaaS platform query.
  • each agent service has its own corresponding address, which is carried in the agent service information, therefore, for the BaaS platform, when creating a blockchain node, you can select an IP address first, and then select the IP address So choose the Agent service. Therefore, the BaaS platform selects the proxy server by selecting the IP address.
  • the BaaS platform provides services such as stop, start, and delete through proxy services. Specifically, the agent service performs operations such as stopping, starting, and deleting the corresponding Docker container (ie, the blockchain node created based on the Docker container), and the Agent server returns the operation result to the BaaS platform after the agent operation is completed information.
  • the agent service performs operations such as stopping, starting, and deleting the corresponding Docker container (ie, the blockchain node created based on the Docker container), and the Agent server returns the operation result to the BaaS platform after the agent operation is completed information.
  • the above example takes into account the decentralized characteristics of the blockchain, not only distributed, but also distribution of permissions. Therefore, a centralized management node system is implemented based on the agent service and BaaS platform, thereby solving the difficulty of distributed system management The problem also avoids the problem of excessive authority of the centralized management system.
  • conditional restrictions and constraints can be imposed on the above-mentioned blockchain node management system to solve the problem of difficult management of distributed systems and avoid the problem of excessive authority of the centralized management system:
  • the blockchain resource management system has a central service component (that is, the BaaS platform mentioned above) and several resource download servers to provide unified resource download, and the central service component provides a web interface to facilitate user resource management;
  • the blockchain resource management system uses the agent service (that is, the above-mentioned Agent service) installed on the resources of each node to control the creation, start, stop, deletion, monitoring and other operations of the blockchain node on the node;
  • agent service that is, the above-mentioned Agent service
  • the blockchain resource management system has a complete account authority management mechanism to limit the problem of excessive authority in the centralized system
  • the proxy service will generate a globally unique resource ID from the node resource information and register it to the central service component of the blockchain resource management system;
  • Agent service can only manage their own node resources. After the agent service is installed, it can only be started or stopped through the registered account, or the resource owner can log in to his node directly to start or stop the agent service freely to achieve decentralization The purpose of
  • Different organization accounts can authorize resources of other organization accounts to meet resource usage rights sharing, but authorized accounts cannot delete or exit resources, and authorized accounts can only create new blockchain node operations on authorized resources;
  • the proxy service When the proxy service is registered, the corresponding account password can be provided for verification by the blockchain resource management system to prevent malicious registration attacks of illegal nodes.
  • the central service component also needs to provide a unique identifier to operate the proxy service to prevent the proxy service from being Malicious operation.
  • FIG. 3 shows an optional structural block diagram of the blockchain node management system
  • the blockchain node management system is divided into one or more program modules, and one or more program modules are stored in a storage medium and executed by one or more processors to complete this application.
  • the program module referred to in this application refers to a series of computer program instruction segments that can complete specific functions. It is more suitable than the program itself to describe the execution process of the blockchain node management system in the storage medium. The following description will specifically introduce each of this embodiment The function of the program module:
  • the blockchain node management system 30 may include:
  • the first receiving module 301 is configured to receive a control instruction input by a user through the BaaS platform, wherein the control instruction carries target proxy server information, and the target proxy server information includes an IP address;
  • the first determining module 302 is configured to determine a target proxy server from multiple proxy servers interacting with the BaaS platform according to the target proxy server information, and each proxy server corresponds to a blockchain node;
  • the management module 303 is configured to transmit the control instruction to the target proxy server via HTTP, so as to implement management operations on the blockchain node corresponding to the target proxy server.
  • the above-mentioned blockchain node management system 30 may further include: a second receiving module, configured to receive heartbeat data uploaded by the target proxy server every predetermined time; a second determining module, configured to determine Whether the heartbeat data uploaded by the target proxy server is received within the predetermined period of time; the third determining module is used to determine that the target proxy server is normal when the heartbeat data uploaded by the target proxy server is determined to be received within the predetermined period of time Work; the fourth determining module is used to determine that the target proxy server is abnormal in the case where it is determined that the heartbeat data uploaded by the target proxy server is not received within a predetermined period of time.
  • the BaaS platform may receive the proxy server installation request; in response to the The installation request is to establish data interaction between the proxy server and the BaaS platform to complete the installation of the proxy server; after the installation is completed, receive and store the proxy server information reported by the proxy server, where the proxy server information includes: IP address And port.
  • the aforementioned management operations may include but are not limited to at least one of the following: create, start, stop, and delete.
  • the management operation when the management operation is: when a blockchain node is created, the control instruction is transmitted to the target proxy server via HTTP, so as to realize the block chain node corresponding to the target proxy server.
  • the management operation may include: when the target proxy server receives the creation instruction, assemble and create the Docker container; use the created Docker container as the created blockchain node; after the creation is successful, write the creation result into the cache , For users to query through the BaaS platform.
  • the BaaS platform provides a control interface through which the administrator can input control instructions, and then because the BaaS platform and the proxy server can exchange data, because the control instructions can be sent to the corresponding agent Server, because each proxy server corresponds to a block chain node, it can realize the management control of the corresponding block chain node.
  • FIG. 4 is a schematic diagram of the hardware architecture of an embodiment of the electronic device according to the present application.
  • the electronic device 2 is a device that can automatically perform numerical calculation and/or information processing according to pre-set or stored instructions.
  • it can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server or a server cluster composed of multiple servers).
  • the electronic device 2 at least includes but is not limited to: a memory 21, a processor 22, a network interface 23, and a blockchain node management system 30 that can communicate with each other through a system bus. among them:
  • the memory 21 includes at least one type of computer-readable storage medium.
  • the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), and static random access memory.
  • SRAM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • PROM programmable read-only memory
  • magnetic memory magnetic disk, optical disk, etc.
  • the memory 21 may be an internal storage module of the electronic device 2, such as a hard disk or a memory of the electronic device 2.
  • the memory 21 may also be an external storage device of the electronic device 2, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (Secure Digital, SMC) equipped on the electronic device 2. SD card, Flash Card, etc.
  • the memory 21 may also include both an internal storage module of the electronic device 2 and an external storage device thereof.
  • the memory 21 is generally used to store the operating system and various application software installed in the electronic device 2, such as the program code of the blockchain node management system 30.
  • the memory 21 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 22 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments.
  • the processor 22 is generally used to control the overall operation of the electronic device 2, for example, perform data interaction or communication-related control and processing with the electronic device 2.
  • the processor 22 is used to run program codes or process data stored in the memory 21, such as the running blockchain node management system 30.
  • the network interface 23 may include a wireless network interface or a wired network interface, and the network interface 23 is generally used to establish a communication connection between the electronic device 2 and other electronic devices.
  • the network interface 23 is used to connect the electronic device 2 with an external terminal through a network, and establish a data transmission channel and a communication connection between the electronic device 2 and the external terminal.
  • the network can be corporate intranet (Intranet), Internet (Internet), Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Wireless or wired networks such as Bluetooth and Wi-Fi.
  • FIG. 4 only shows an electronic device with components 21-23, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
  • the blockchain node management system 30 stored in the memory 21 can also be divided into one or more program modules, one or more program modules are stored in the memory 21, and are composed of one or more The processor (the processor 22 in this embodiment) is executed to complete the application.
  • This embodiment also provides a computer-readable storage medium, and a blockchain node management system is stored in the computer-readable storage medium.
  • the blockchain node management system can be executed by at least one processor, so that the at least one processor executes The steps of the blockchain node management method in the first embodiment.
  • the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc.
  • the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device.
  • the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (Secure Digital) equipped on the computer device. , SD) card, flash card (Flash Card), etc.
  • the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device.
  • the computer-readable storage medium is generally used to store the operating system and various application software installed in the computer device, such as the program code of the blockchain node management system of the second embodiment.
  • the computer-readable storage medium can also be used to temporarily store various types of data that have been output or will be output.
  • modules or steps of the above-mentioned embodiments of the application can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed among multiple computing devices.
  • they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device for execution by the computing device, and in some cases, can be different from here
  • the steps shown or described are executed in the order of, or they are respectively fabricated into individual integrated circuit modules, or multiple modules or steps of them are fabricated into a single integrated circuit module to achieve. In this way, the embodiments of the present application are not limited to any specific hardware and software combination.

Landscapes

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

Abstract

本申请公开了一种区块链节点管理方法、电子装置、系统及可读存储介质,其中,该方法包括:接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。通过上述方式解决了现有的无法对区块链节点进行统一有效管理的技术问题,达到了对区块链节点进行集中统一管理的技术效果。

Description

区块链节点管理方法、电子装置、系统及可读存储介质
相关申请的交叉引用
本申请申明享有2019年04月04日递交的申请号为CN 201910270953.2、名称为“区块链节点管理方法、电子装置、系统及可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及区块结构改进技术领域,具体涉及一种区块链节点管理方法、电子装置、系统及可读存储介质。
背景技术
现有的区块链系统是完全去中心化运行的,控制权限都在每个区块链节点自身,即,所有的控制权限都是节点自身的,没有什么组织或者节点可以对区块链中的节点进行统一的管理。如果为区块链系统建立中心化管理界面,就会违背去中心化的理念。
针对现有的无法对整个区块链中的节点进行有效管理的问题,目前尚未提出有效的解决方案。
申请内容
本申请的目的在于提供一种区块链节点管理方法、电子装置、系统及可读存储介质,进而解决现有的无法对区块链节点进行统一高效管理的技术问题。
本申请是通过下述技术方案来解决上述技术问题:
根据本申请的一个方面,提供了一种区块链节点管理方法,包括如下步骤:接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
根据本申请的另一个方面,提供了一种电子装置,包括存储器和处理器,其中,所述存储器用于存储可被所述处理器执行的区块链节点管理系统,所述区块链节点管理系统包括:第一接收模块,用于接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;第一确定模块,用于根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;管理模块,用于通过HTTP将所 述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
根据本申请的又一个方面,提供了一种区块链节点管理系统,包括:BaaS平台,用于提供用户管理界面,以接收用户的控制指令;代理服务器,通过HTTP与所述BaaS平台进行交互,其中,每个代理服务器用户创建一个区块链节点,并根据来自BaaS平台的控制指令对对应的区块链节点进行管理操作。
根据本申请的又一个方面,提供了一种计算机设备,包括:存储器和处理器,其中,所述处理器用于执行如下方法的步骤:接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
根据本申请的又一个方面,提供了一种非易失性计算机可读存储介质,其上存储有计算机指令,所述指令执行如下方法的步骤:接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
本申请的积极进步效果在于:管理者可以通过Bass平台输入控制指令,然后因BaaS平台与代理服务器之间可以进行数据交互,因为控制指令可以传送至对应的代理服务器,因为每个代理服务器对应一个区块链节点,从而可以实现对应的区块链节点的管理控制,通过上述方式解决了现有的无法对区块链节点进行统一有效管理的技术问题,达到了对区块链节点进行集中统一管理的技术效果。
附图说明
图1是根据本申请实施例的区块链节点管理方法的方法流程图;
图2是根据本申请实施例的区块链节点管理系统的架构示意图;
图3是根据本申请实施例的区块链节点管理装置的结构框图;
图4是根据本申请实施例的电子装置的一种可选的硬件架构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前 提下所获得的所有其他实施例,都属于本申请保护的范围。
考虑到现有的无法对区块链节点进行统一有效的管理的问题,在本例中通过设置BaaS平台和多个agent代理服务器,由BaaS平台控制各个agent代理服务器创建区块链节点,并在平台上进行登记,用户可通过BaaS平台提供的管理界面通过agent代理服务器对各区块链节点进行控制,实现了对区块链节点的有效控制。
实施例1
为此,在本例中提供了一种区块链节点管理方法、电子设备和系统,适用于对去中心化的区块链中的节点进行管理。下面对该方法和电子设备进行具体说明如下:
在本例中提供了一种区块链节点管理方法,如图1所示,可以包括如下步骤:
步骤101:接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;
步骤102:根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;
步骤103:通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
即,BaaS平台可以提供用户交互界面,BaaS平台与Agent服务之间可以通过HTTP进行数据交互。即,用户在交互界面上输入的控制信息,可以通过HTTP传输至agent代理服务。其中,超文本传输协议(HTTP,HyperText Transfer Protocol)是互联网上应用最为广泛的一种网络协议。所有的WWW文件都必须遵守这个标准。
HTTP是一个客户端和服务器端请求和应答的标准(TCP)。客户端是终端用户,服务器端是网站。通过使用Web浏览器、网络爬虫或者其它的工具,客户端发起一个到服务器上指定端口(默认端口为80)的HTTP请求。(我们称这个客户端)叫用户代理(user agent)。应答的服务器上存储着(一些)资源,比如HTML文件和图像。(我们称)这个应答服务器为源服务器(origin server)。在用户代理和源服务器中间可能存在多个中间层,比如代理,网关,或者隧道(tunnels)。尽管TCP/IP协议是互联网上最流行的应用,HTTP协议并没有规定必须使用它和(基于)它支持的层。事实上,HTTP可以在任何其他互联网协议上,或者在其他网络上实现。HTTP只假定(其下层协议提供)可靠的传输,任何能够提供这种保证的协议都可以被其使用。
通常,由HTTP客户端发起一个请求,建立一个到服务器指定端口(默认是80端口)的TCP连接。HTTP服务器则在那个端口监听客户端发送过来的请求。一旦收到请求,服务器(向客户端)发回一个状态行,比如"HTTP/1.1 200OK",和(响应的)消息,消息的消息体可能是请求的文件、错误消息、或者其它一些信息。通过HTTP或者HTTPS协议请 求的资源由统一资源标示符(Uniform Resource Identifiers)(或者,更准确一些,URLs)来标识。
在上例中,管理者可以通过BaaS平台输入控制指令,然后因BaaS平台与代理服务器之间可以进行数据交互,因为控制指令可以传送至对应的代理服务器,因为每个代理服务器对应一个区块链节点,从而可以实现对应的区块链节点的管理控制,通过上述方式解决了现有的无法对区块链节点进行统一有效管理的技术问题,达到了对区块链节点进行集中统一管理的技术效果。
进一步的,考虑到BaaS平台与代理服务器之间数据交互链路的实时有效性,才能表征代理服务器是正常工作的,这样才能通过BaaS平台实现对每个区块链节点的有效管理,为此,可以接收所述目标代理服务器每隔预定时长上传的心跳数据;确定在所述预定时长内是否接收到目标代理服务器上传的心跳数据;在确定在预定时长内接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器正常工作;在确定在预定时长内未接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器异常。即,代理服务器周期性上传心跳数据,以表明自身与BaaS平台之间的数据连接是一直有效的,也就是说,自身一直处于正常工作状态。
对于BaaS平台和代理服务器之间,代理服务器可以在BaaS平台进行注册的,在注册安装成功之后,才能实现与BaaS平台之间的数据交互,为此,在根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器之前,BaaS平台可以接收代理服务器的安装请求;响应于所述安装请求,建立该代理服务器与BaaS平台之间的数据交互,以完成该代理服务器的安装;在安装完成之后,接收并存储该代理服务器上报的代理服务器信息,其中,代理服务器信息包括:IP地址和端口。
即,在服务器上安装Agent代理服务,通过服务器上安装的Agent代理服务器提供对Docker容器进行创建、启动、停止、删除等操作的接口。
其中,上述服务器为区块链管理系统,在该区块链管理系统中可以有:BaaS平台和多个代理服务器(即,Agent代理服务)。其中,BaaS平台可以提供用户交互界面,BaaS平台与Agent服务之间通过HTTP进行数据交互。即,用户在交互界面上输入的控制信息,可以通过HTTP传输至agent代理服务。
对于Agent服务而言,每个Agent服务对应一个区块链节点,一个区块链节点是一个docker容器。Agent服务可以对其对应的区块链节点(即,Docker容器)进行操作,其中,操作可以包括:创建、启动、停止、删除等。
在实际实现的时候,在所述管理操作为:创建区块链节点的情况下,通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节 点进行管理操作,可以包括:所述目标代理服务器接收到创建指令的情况下,组装创建Docker容器;将创建的Docker容器作为创建的区块链节点;在创建成功之后,将创建结果写入缓存中,以供用户通过BaaS平台查询。
本申请的技术方案包括一种区块链节点管理系统和方法,适用于对去中心化的区块链中的节点进行管理。
下面结合一个具体实施例对上述方法进行说明,然而,值得注意的是,该具体实施例仅是为了更好的说明本申请,并不构成对本申请的不当限定。
如图2所示,在本例中提供了一种区块链节点管理系统,可以包括:BaaS平台201,用于提供用户管理界面,以接收用户的控制指令;多个代理服务器202,通过HTTP与所述BaaS平台进行交互,其中,每个代理服务器用户创建一个区块链节点,并根据来自BaaS平台的控制指令对对应的区块链节点进行管理操作。
在本例中,通过设置BaaS平台和多个Agent代理服务器,由BaaS平台控制各个Agent代理服务器创建区块链节点,并在平台上进行登记,用户可通过BaaS平台提供的管理界面通过Agent代理服务器对各区块链节点进行控制,实现了对区块链节点的有效控制。
为了实现对区块链节点的统一管理,提供了一种BaaS平台,该BaaS平台可以与代理服务器进行交互,BaaS平台通过HTTP与代理服务器进行交互,每个代理服务器用于创建一个区块链节点,具体的,可以通过创建Docker容器的方式创建区块链节点。进一步的,用户可通过BaaS平台提供的界面对区块链节点进行管理。
具体的,可以按照如下步骤建立该区块链节点管理系统:
S1:在服务器上安装Agent代理服务,通过服务器上安装的Agent代理服务器提供对Docker容器进行创建、启动、停止、删除等操作的接口。
其中,上述服务器为区块链管理系统,在该区块链管理系统中可以有:BaaS平台和多个代理服务器(即,Agent代理服务)。其中,BaaS平台可以提供用户交互界面,BaaS平台与Agent服务之间通过HTTP进行数据交互。即,用户在交互界面上输入的控制信息,可以通过HTTP传输至Agent代理服务。
对于Agent服务而言,每个Agent服务对应一个区块链节点,一个区块链节点是一个Docker容器。Agent服务可以对其对应的区块链节点(即,docker容器)进行操作,其中,操作可以包括:创建、启动、停止、删除等。
Agent所提供的操作接口就是本申请代理服务器所具备的功能,Agent服务只需要获取到来自BaaS的用户输入的控制信息,就可以基于这些信息,对Docker进行控制。
S2:在Agent代理服务安装后,由BaaS平台提供接口上报代理服务信息,该信息可以包括:IP、端口,且Agent代理服务每隔一段时间进行心跳数据上报,Baas平台通过心跳 数据来判断该代理服务是否正常工作。
其中,心跳数据是每隔一段时间向互联的另一方发送一个很小的数据包,通过对方回复情况判断互联的双方之间的通讯链路。在实际实现的过程中,因此,每隔固定时间是很难达到的一个条件,因此,一般是不超过某个时间间隔。
如果超出预定时间间隔,Baas平台未收到Agent服务发送的心跳数据,那么就表明Agent服务与Baas平台之间的链接中断了,也就确定Agent服务并未正常工作,如果在预定时间间隔内收到了心跳数据,则Baas平台可以确定agent服务是正常工作的。
S3:BaaS平台创建区块链节点,具体的,BaaS平台选择IP地址来选择代理服务器,然后,BaaS平台组装创建区块链节点(即,Docker容器)所需的参数信息,然后,BaaS平台通过选择的ip地址调用所选的代理服务的创建接口,向选择的代理服务发送容器创建命令,代理服务器在接收到创建命令之后,立刻返回收到信息。BaaS平台调用该代理服务所提供的查询结果接口进行创建结果的查询,代理服务器在接收到创建命令后,进行区块链节点的创建,无论创建成功或者失败,都将结果写入缓存中,以供BaaS平台查询。
因为每个agent服务都有一个自身对应的地址,这是携带在代理服务信息中,因此,对于BaaS平台而言,在创建区块链节点的时候,可以先选择一个IP地址,选择了IP地址就选择了Agent服务。因此,BaaS平台通过选择IP地址来选择代理服务器。
S4:BaaS平台通过代理服务提供停止、启动、删除等服务。具体的,由agent服务执行对其对应的Docker容器(即,基于Docker容器创建的区块链节点)的停止、启动、删除等操作,且Agent服务器在代理操作完成之后,向BaaS平台返回操作结果信息。
上例是考虑到区块链去中心化的特性,不仅仅是分布式,还有权限分布,因此,基于代理服务和BaaS平台实现了中心化管理节点系统,从而解决了分布式系统管理难的问题,也避免了中心化管理系统的权限过大的问题。
具体的,可以对上述区块链节点管理系统进行如下的条件限制和约束,以解决分布式系统管理难的问题,避免中心化管理系统的权限过大的问题:
1)区块链资源管理系统拥有一个中心服务组件(即上述的BaaS平台)和若干资源下载服务器提供统一资源下载,中心服务组件提供web界面以方便用户进行资源管理;
2)区块链资源管理系统是利用分布安装在各个节点资源上的代理服务(即上述的Agent代理服务)控制节点上的区块链节点的创建、启动、停止、删除、监控等操作;
3)区块链资源管理系统拥有完善的账号权限管理机制,用来限制中心化系统中权限过大问题;
4)组织账号登陆后通过安装代理服务到自己的节点资源,代理服务会将节点资源信息生成全局唯一的资源ID注册到区块链资源管理系统中心服务组件;
5)不同组织账号只能管理自己的节点资源,代理服务安装完成后仅能通过注册账号进行启动或停止,或者资源拥有者可以直接登录自己的节点来自由启动或停止代理服务,以达到去中心化的目的;
6)不同组织账号可对其他组织账号进行资源授权,以满足资源使用权限共享,但是被授权账号不能删除或退出资源,被授权账号仅能在授权资源上创建新的区块链节点操作;
7)代理服务注册时,可以提供相应的账号密码以供区块链资源管理系统进行验证,以防止非法节点恶意注册攻击,同样中心服务组件也需要提供唯一标识来操作代理服务以防止代理服务被恶意操作。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。
实施例2
基于上述实施例一中提供的区块链节点管理方法,本实施例中提供一种区块链节点管理系统,具体地,图3示出了该区块链节点管理系统的可选的结构框图,该区块链节点管理系统被分割成一个或多个程序模块,一个或者多个程序模块被存储于存储介质中,并由一个或多个处理器所执行,以完成本申请。本申请所称的程序模块是指能够完成特定功能的一系列计算机程序指令段,比程序本身更适合描述区块链节点管理系统在存储介质中的执行过程,以下描述将具体介绍本实施例各程序模块的功能:
如图3所示,区块链节点管理系统30可以包括:
第一接收模块301,用于接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;
第一确定模块302,用于根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;
管理模块303,用于通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
在一个实施方式中,上述区块链节点管理系统30还可以包括:第二接收模块,用于接收所述目标代理服务器每隔预定时长上传的心跳数据;第二确定模块,用于确定在所述预定时长内是否接收到目标代理服务器上传的心跳数据;第三确定模块,用于在确定在预定时长内接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器正常工作;第四确定模块,用于在确定在预定时长内未接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器异常。
在一个实施方式中,在根据所述目标代理服务器信息,从与所述BaaS平台交互的多个 代理服务器中,确定出目标代理服务器之前,BaaS平台可以接收代理服务器的安装请求;响应于所述安装请求,建立该代理服务器与BaaS平台之间的数据交互,以完成该代理服务器的安装;在安装完成之后,接收并存储该代理服务器上报的代理服务器信息,其中,代理服务器信息包括:IP地址和端口。
在一个实施方式中,上述管理操作可以包括但不限于以下至少之一:创建、启动、停止、删除。
在一个实施方式中,在所述管理操作为:创建区块链节点时,通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作,可以包括:所述目标代理服务器接收到创建指令的情况下,组装创建Docker容器;将创建的Docker容器作为创建的区块链节点;在创建成功之后,将创建结果写入缓存中,以供用户通过BaaS平台查询。
关于上述实施例中的装置,其中各个单元、模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
在本实施例的各个实施方式中,BaaS平台提供控制界面,管理者可以通过该控制界面输入控制指令,然后因BaaS平台与代理服务器之间可以进行数据交互,因为控制指令可以传送至对应的代理服务器,因为每个代理服务器对应一个区块链节点,从而可以实现对应的区块链节点的管理控制,通过上述方式解决了现有的无法对区块链节点进行统一有效管理的技术问题,达到了对区块链节点进行集中统一管理的技术效果。
实施例3
在本申请优选的实施例三中提供一种电子装置。图4是根据本申请电子装置一实施例的硬件架构示意图。本实施例中,电子装置2是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。例如,可以是智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。如图所示,电子装置2至少包括但不限于:可通过系统总线相互通信连接存储器21、处理器22、网络接口23、以及区块链节点管理系统30。其中:
存储器21至少包括一种类型的计算机可读存储介质,可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器21可以是电子装置2的内部存储模块,例如该电子装置2的硬盘或内存。在另一些实施例中,存储器21也可以是电子装置2的外部存储设备,例如该电子装置2上配备的插接式硬盘, 智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器21还可以既包括电子装置2的内部存储模块也包括其外部存储设备。本实施例中,存储器21通常用于存储安装于电子装置2的操作系统和各类应用软件,例如区块链节点管理系统30的程序代码等。此外,存储器21还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器22在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器22通常用于控制电子装置2的总体操作,例如执行与电子装置2进行数据交互或者通信相关的控制和处理等。本实施例中,处理器22用于运行存储器21中存储的程序代码或者处理数据,例如运行的区块链节点管理系统30等。
网络接口23可包括无线网络接口或有线网络接口,该网络接口23通常用于在电子装置2与其他电子装置之间建立通信连接。例如,网络接口23用于通过网络将电子装置2与外部终端相连,在电子装置2与外部终端之间的建立数据传输通道和通信连接等。网络可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,GSM)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi等无线或有线网络。
需要指出的是,图4仅示出了具有部件21-23的电子装置,但是应理解的是,并不要求实施所有示出的部件,可以替代的实施更多或者更少的部件。
在本实施例中,存储于存储器21中的区块链节点管理系统30还可以被分割为一个或者多个程序模块,一个或者多个程序模块被存储于存储器21中,并由一个或多个处理器(本实施例为处理器22)所执行,以完成本申请。
实施例4
本实施例还提供一种计算机可读存储介质,计算机可读存储介质内存储有区块链节点管理系统,区块链节点管理系统可被至少一个处理器所执行,以使至少一个处理器执行如实施例一的区块链节点管理方法的步骤。
本实施例中,计算机可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,计算机可读存储介质可以是计算机设备的内部存储单元,例如该计算机设备的硬盘或内存。在另一些实施例中,计算机可读存储介质也可以是计算机设备的外部存储设备,例如该计算机设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。 当然,计算机可读存储介质还可以既包括计算机设备的内部存储单元也包括其外部存储设备。本实施例中,计算机可读存储介质通常用于存储安装于计算机设备的操作系统和各类应用软件,例如实施例2的区块链节点管理系统的程序代码等。此外,计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的各类数据。
显然,本领域的技术人员应该明白,上述的本申请实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请实施例不限制于任何特定的硬件和软件结合。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种区块链节点管理方法,其中,包括如下步骤:
    接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;
    根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;
    通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
  2. 根据权利要求1所述的方法,其中,还包括:
    接收所述目标代理服务器每隔预定时长上传的心跳数据;
    确定在所述预定时长内是否接收到目标代理服务器上传的心跳数据;
    在确定在预定时长内接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器正常工作;
    在确定在预定时长内未接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器异常。
  3. 根据权利要求1所述的方法,其中,在根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器之前,所述方法还包括:
    接收代理服务器的安装请求;
    响应于所述安装请求,建立该代理服务器与BaaS平台之间的数据交互,以完成该代理服务器的安装;
    在安装完成之后,接收并存储该代理服务器上报的代理服务器信息,其中,代理服务器信息包括:IP地址和端口。
  4. 根据权利要求1所述的方法,其中,所述管理操作包括以下至少之一:创建、启动、停止、删除。
  5. 根据权利要求4所述的方法,其中,在所述管理操作为:创建区块链节点时,通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作,包括:
    所述目标代理服务器接收到创建指令的情况下,组装创建Docker容器;
    将创建的Docker容器作为创建的区块链节点;
    在创建成功之后,将创建结果写入缓存中,以供用户通过BaaS平台查询。
  6. 一种电子装置,包括存储器和处理器,其中,所述存储器用于存储可被所述处理器执行的区块链节点管理系统,所述区块链节点管理服务器包括:
    第一接收模块,用于接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;
    第一确定模块,用于根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;
    管理模块,用于通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
  7. 根据权利要求6所述的装置,其中,还包括:
    第二接收模块,用于接收所述目标代理服务器每隔预定时长上传的心跳数据;
    第二确定模块,用于确定在所述预定时长内是否接收到目标代理服务器上传的心跳数据;
    第三确定模块,用于在确定在预定时长内接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器正常工作;
    第四确定模块,用于在确定在预定时长内未接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器异常。
  8. 根据权利要求6所述的装置,其中,所述电子装置还用于在根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器之前,接收代理服务器的安装请求;响应于所述安装请求,建立该代理服务器与BaaS平台之间的数据交互,以完成该代理服务器的安装;在安装完成之后,接收并存储该代理服务器上报的代理服务器信息,其中,代理服务器信息包括:IP地址和端口。
  9. 根据权利要求6所述的装置,其中,所述管理操作包括以下至少之一:创建、启动、停止、删除。
  10. 根据权利要求9所述的装置,其中,在所述管理操作为:创建区块链节点时,通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作,包括:
    所述目标代理服务器接收到创建指令的情况下,组装创建Docker容器;
    将创建的Docker容器作为创建的区块链节点;
    在创建成功之后,将创建结果写入缓存中,以供用户通过BaaS平台查询。
  11. 一种区块链节点管理系统,包括:
    BaaS平台,用于提供用户管理界面,以接收用户的控制指令;
    代理服务器,通过HTTP与所述BaaS平台进行交互,其中,每个代理服务器用户创建一个区块链节点,并根据来自BaaS平台的控制指令对对应的区块链节点进行管理操作。
  12. 一种计算机设备,包括:存储器和处理器,其中,所述处理器用于执行如下方法:
    接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;
    根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;
    通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
  13. 根据权利要求12所述的计算机设备,其中,所述方法还包括:
    接收所述目标代理服务器每隔预定时长上传的心跳数据;
    确定在所述预定时长内是否接收到目标代理服务器上传的心跳数据;
    在确定在预定时长内接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器正常工作;
    在确定在预定时长内未接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器异常。
  14. 根据权利要求12所述的计算机设备,其中,在根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器之前,所述方法还包括:
    接收代理服务器的安装请求;
    响应于所述安装请求,建立该代理服务器与BaaS平台之间的数据交互,以完成该代理服务器的安装;
    在安装完成之后,接收并存储该代理服务器上报的代理服务器信息,其中,代理服务器信息包括:IP地址和端口。
  15. 根据权利要求12所述的计算机设备,其中,所述管理操作包括以下至少之一:创建、启动、停止、删除。
  16. 根据权利要求15所述的计算机设备,其中,在所述管理操作为:创建区块链节点时,通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作,包括:
    所述目标代理服务器接收到创建指令的情况下,组装创建Docker容器;
    将创建的Docker容器作为创建的区块链节点;
    在创建成功之后,将创建结果写入缓存中,以供用户通过BaaS平台查询。
  17. 一种非易失性计算机可读存储介质,其上存储有计算机指令,其中,所述指 令被执行时实现如下方法:
    接收用户通过BaaS平台输入的控制指令,其中,所述控制指令中携带有目标代理服务器信息,所述目标代理服务器信息包括IP地址;
    根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器,每个所述代理服务器对应一个区块链节点;
    通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作。
  18. 根据权利要求17所述的非易失性计算机可读存储介质,其中,所述方法还包括:
    接收所述目标代理服务器每隔预定时长上传的心跳数据;
    确定在所述预定时长内是否接收到目标代理服务器上传的心跳数据;
    在确定在预定时长内接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器正常工作;
    在确定在预定时长内未接收到所述目标代理服务器上传的心跳数据的情况下,确定所述目标代理服务器异常。
  19. 根据权利要求17所述的非易失性计算机可读存储介质,其中,在根据所述目标代理服务器信息,从与所述BaaS平台交互的多个代理服务器中,确定出目标代理服务器之前,所述方法还包括:
    接收代理服务器的安装请求;
    响应于所述安装请求,建立该代理服务器与BaaS平台之间的数据交互,以完成该代理服务器的安装;
    在安装完成之后,接收并存储该代理服务器上报的代理服务器信息,其中,代理服务器信息包括:IP地址和端口。
  20. 根据权利要求17所述的非易失性计算机可读存储介质,其中,所述管理操作包括以下至少之一:创建、启动、停止、删除;在所述管理操作为:创建区块链节点时,通过HTTP将所述控制指令传送至所述目标代理服务器,以实现对所述目标代理服务器所对应的区块链节点进行管理操作,包括:
    所述目标代理服务器接收到创建指令的情况下,组装创建Docker容器;
    将创建的Docker容器作为创建的区块链节点;
    在创建成功之后,将创建结果写入缓存中,以供用户通过BaaS平台查询。
PCT/CN2019/117765 2019-04-04 2019-11-13 区块链节点管理方法、电子装置、系统及可读存储介质 Ceased WO2020199598A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910270953.2 2019-04-04
CN201910270953.2A CN110138586A (zh) 2019-04-04 2019-04-04 区块链节点管理方法、电子装置、系统及可读存储介质

Publications (1)

Publication Number Publication Date
WO2020199598A1 true WO2020199598A1 (zh) 2020-10-08

Family

ID=67569405

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117765 Ceased WO2020199598A1 (zh) 2019-04-04 2019-11-13 区块链节点管理方法、电子装置、系统及可读存储介质

Country Status (2)

Country Link
CN (1) CN110138586A (zh)
WO (1) WO2020199598A1 (zh)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395358A (zh) * 2020-11-19 2021-02-23 京东数科海益信息科技有限公司 档案管理方法、装置、电子设备和存储介质
CN112702200A (zh) * 2020-12-21 2021-04-23 杭州趣链科技有限公司 联盟链节点管理系统、方法、装置、电子设备和存储介质
CN112866359A (zh) * 2021-01-05 2021-05-28 卓望数码技术(深圳)有限公司 数据上链方法、装置、电子设备及存储介质
CN113377738A (zh) * 2021-04-28 2021-09-10 南京欣网互联网络科技有限公司 一种基于PaaS平台和EOS框架搭建BaaS架构的方法
CN113553374A (zh) * 2021-06-25 2021-10-26 北京八分量信息科技有限公司 一种去中心化分布式大数据区块链信息存储系统
CN114416490A (zh) * 2022-01-24 2022-04-29 平安国际智慧城市科技股份有限公司 基于区块链的监控报警方法、装置、电子设备及存储介质
CN114448965A (zh) * 2021-12-22 2022-05-06 天翼云科技有限公司 一种大数据组件的管理方法、装置、系统及可读存储介质
CN115314374A (zh) * 2022-07-06 2022-11-08 京东科技信息技术有限公司 区块链节点的部署方法、设备、存储介质及程序产品
CN116244314A (zh) * 2022-12-02 2023-06-09 杭州趣链科技有限公司 区块链即服务中记录操作的方法、系统、装置及存储介质
CN116634001A (zh) * 2023-06-12 2023-08-22 中国光大银行股份有限公司 一种区块链联盟建立方法及装置

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138586A (zh) * 2019-04-04 2019-08-16 平安科技(深圳)有限公司 区块链节点管理方法、电子装置、系统及可读存储介质
CN110516007B (zh) * 2019-08-30 2022-07-29 北京百度网讯科技有限公司 一种区块链网络的部署控制方法、装置、设备和介质
CN110519281B (zh) * 2019-08-30 2022-06-07 北京百度网讯科技有限公司 一种区块链网络的运行实现方法、装置、设备和介质
CN110602236B (zh) * 2019-09-20 2021-12-14 腾讯科技(深圳)有限公司 节点控制方法、节点控制设备及存储介质
CN110650193B (zh) * 2019-09-20 2021-06-25 腾讯科技(深圳)有限公司 节点管理方法、集群管理设备及存储介质
CN110601906B (zh) * 2019-09-29 2021-05-25 腾讯科技(深圳)有限公司 一种基于区块链的数据传输方法及装置
CN110620695B (zh) * 2019-09-29 2022-11-15 重庆小雨点小额贷款有限公司 一种数据处理方法及相关设备
CN110855784A (zh) * 2019-11-15 2020-02-28 深圳市网心科技有限公司 代理服务器节点选择方法、电子设备、系统及介质
CN111464394B (zh) * 2020-03-31 2022-04-15 腾讯科技(深圳)有限公司 一种节点监控方法、装置以及存储介质
CN111641715A (zh) * 2020-05-29 2020-09-08 深圳壹账通智能科技有限公司 基于区块链的数据处理方法、装置、设备及介质
CN113852655B (zh) * 2020-06-28 2024-11-01 北京金山云网络技术有限公司 信息管理方法、装置及区块链服务系统
CN112398908B (zh) * 2020-10-20 2023-04-07 杭州云象网络技术有限公司 一种区块链网络节点删除方法、系统、存储介质和装置
CN112565203B (zh) * 2020-11-19 2023-02-03 深信服科技股份有限公司 一种集中管理平台
CN112636981B (zh) * 2020-12-28 2023-02-17 杭州趣链科技有限公司 区块链主机及其代理方法、装置及存储介质
CN112632192A (zh) * 2020-12-31 2021-04-09 杭州趣链科技有限公司 节点维护方法、装置、计算机设备及介质
CN113315826B (zh) * 2021-05-24 2023-03-24 网易(杭州)网络有限公司 区块链的管理方法、装置、管理服务节点及存储介质
CN114328745B (zh) * 2021-12-31 2025-03-25 杭州趣链科技有限公司 资源管理方法、资源管理系统、电子装置和存储介质
CN114385364B (zh) * 2022-01-13 2025-07-15 北京京东乾石科技有限公司 容器的处理方法、区块链节点和系统
CN114979099B (zh) * 2022-04-14 2024-02-23 天津车之家软件有限公司 一种目标服务访问方法、模块及系统
CN116166433A (zh) * 2023-02-09 2023-05-26 杭州趣链科技有限公司 区块链节点管理方法、服务器及计算机可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145605A (zh) * 2017-06-07 2017-09-08 北京天德科技有限公司 一种基于区块链统一接口(obcc)的许可链应用系统
US20170330180A1 (en) * 2016-05-16 2017-11-16 Coinplug, Inc. Method for using and revoking authentication information and blockchain-based server using the same
CN107832139A (zh) * 2017-09-26 2018-03-23 上海点融信息科技有限责任公司 用于管理区块链节点的计算资源的方法、设备和系统
CN107911421A (zh) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 用于配置区块链中跨网络通信的方法、设备和计算机存储介质
CN108804879A (zh) * 2017-05-03 2018-11-13 思科技术公司 用于内容和服务共享的方法和系统
CN110138586A (zh) * 2019-04-04 2019-08-16 平安科技(深圳)有限公司 区块链节点管理方法、电子装置、系统及可读存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487587B1 (en) * 1999-03-01 2002-11-26 Sun Microsystems, Inc. Method and system for data processing by proxy
CN107579951B (zh) * 2017-07-14 2020-06-19 创新先进技术有限公司 一种业务数据处理方法、业务处理方法及设备
CN107317730B (zh) * 2017-08-21 2020-09-04 上海点融信息科技有限责任公司 用于监控区块链节点状态的方法、设备和系统
CN109040227B (zh) * 2018-07-27 2021-08-03 江西贪玩信息技术有限公司 基于区块链的业务请求响应方法、装置和计算机设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170330180A1 (en) * 2016-05-16 2017-11-16 Coinplug, Inc. Method for using and revoking authentication information and blockchain-based server using the same
CN108804879A (zh) * 2017-05-03 2018-11-13 思科技术公司 用于内容和服务共享的方法和系统
CN107145605A (zh) * 2017-06-07 2017-09-08 北京天德科技有限公司 一种基于区块链统一接口(obcc)的许可链应用系统
CN107832139A (zh) * 2017-09-26 2018-03-23 上海点融信息科技有限责任公司 用于管理区块链节点的计算资源的方法、设备和系统
CN107911421A (zh) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 用于配置区块链中跨网络通信的方法、设备和计算机存储介质
CN110138586A (zh) * 2019-04-04 2019-08-16 平安科技(深圳)有限公司 区块链节点管理方法、电子装置、系统及可读存储介质

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395358A (zh) * 2020-11-19 2021-02-23 京东数科海益信息科技有限公司 档案管理方法、装置、电子设备和存储介质
CN112702200A (zh) * 2020-12-21 2021-04-23 杭州趣链科技有限公司 联盟链节点管理系统、方法、装置、电子设备和存储介质
CN112866359B (zh) * 2021-01-05 2023-05-09 卓望数码技术(深圳)有限公司 数据上链方法、装置、电子设备及存储介质
CN112866359A (zh) * 2021-01-05 2021-05-28 卓望数码技术(深圳)有限公司 数据上链方法、装置、电子设备及存储介质
CN113377738A (zh) * 2021-04-28 2021-09-10 南京欣网互联网络科技有限公司 一种基于PaaS平台和EOS框架搭建BaaS架构的方法
CN113377738B (zh) * 2021-04-28 2024-03-22 南京欣网互联网络科技有限公司 一种基于PaaS平台和EOS框架搭建BaaS架构的方法
CN113553374A (zh) * 2021-06-25 2021-10-26 北京八分量信息科技有限公司 一种去中心化分布式大数据区块链信息存储系统
CN114448965A (zh) * 2021-12-22 2022-05-06 天翼云科技有限公司 一种大数据组件的管理方法、装置、系统及可读存储介质
CN114416490A (zh) * 2022-01-24 2022-04-29 平安国际智慧城市科技股份有限公司 基于区块链的监控报警方法、装置、电子设备及存储介质
CN115314374A (zh) * 2022-07-06 2022-11-08 京东科技信息技术有限公司 区块链节点的部署方法、设备、存储介质及程序产品
CN115314374B (zh) * 2022-07-06 2024-02-06 京东科技信息技术有限公司 区块链节点的部署方法、设备、存储介质及程序产品
CN116244314A (zh) * 2022-12-02 2023-06-09 杭州趣链科技有限公司 区块链即服务中记录操作的方法、系统、装置及存储介质
CN116634001A (zh) * 2023-06-12 2023-08-22 中国光大银行股份有限公司 一种区块链联盟建立方法及装置

Also Published As

Publication number Publication date
CN110138586A (zh) 2019-08-16

Similar Documents

Publication Publication Date Title
WO2020199598A1 (zh) 区块链节点管理方法、电子装置、系统及可读存储介质
US8117258B2 (en) Distributed computing by carrier-hosted agent
CN112035215A (zh) 节点集群的节点自治方法、系统、装置及电子设备
US11632247B2 (en) User security token invalidation
CN111262839A (zh) 一种漏洞扫描方法、管理设备、节点和存储介质
WO2019100605A1 (zh) 平台即服务paas容器平台的构建方法、服务器、系统及存储介质
CN110493184B (zh) 在客户端中登录页面的处理方法、装置、电子装置
CN107181779B (zh) 访问请求的处理方法、装置和系统
CN112311788A (zh) 一种访问控制方法、装置、服务器及介质
CN109391673A (zh) 一种管理更新文件的方法、系统及终端设备
CN105871838A (zh) 一种第三方账号的登录控制方法及用户中心平台
CN110493308B (zh) 分布式一致性系统会话方法、装置及存储介质、服务器
US11968238B2 (en) Policy management system to provide authorization information via distributed data store
JP2007538302A (ja) クライアント−サーバ間データ実行フロー
CN111680328A (zh) 一种数据处理方法、装置、服务器及计算机可读存储介质
WO2025251669A1 (zh) 应用网关的访问控制方法、装置、设备、介质及程序产品
CN110661673B (zh) 一种心跳检测的方法及装置
CN106161592B (zh) 一种实现远程命令执行的方法及装置
CN110545453A (zh) 内容分发网络的内容发布方法、装置和系统
CN113051035A (zh) 一种远程控制方法、装置、系统及宿主机
CN112068929A (zh) 一种多架构云平台接入第三方web服务的统一管理方法
CN115473730B (zh) 一种交换机远程管理的方法、系统及存储介质
CN115174341B (zh) 一种智慧社区中设备的升级方法、装置以及设备
CN112953951B (zh) 一种基于国产cpu的用户登录验证和安全性检测方法及系统
CN111722901B (zh) 基于云端编辑的电子信息集中管控系统及其方法

Legal Events

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

Ref document number: 19922661

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19922661

Country of ref document: EP

Kind code of ref document: A1