CN109189334B - Block chain network service platform, capacity expansion method thereof and storage medium - Google Patents

Block chain network service platform, capacity expansion method thereof and storage medium Download PDF

Info

Publication number
CN109189334B
CN109189334B CN201810935953.5A CN201810935953A CN109189334B CN 109189334 B CN109189334 B CN 109189334B CN 201810935953 A CN201810935953 A CN 201810935953A CN 109189334 B CN109189334 B CN 109189334B
Authority
CN
China
Prior art keywords
service platform
network service
resource
resources
physical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810935953.5A
Other languages
Chinese (zh)
Other versions
CN109189334A (en
Inventor
王帅俭
马超
杨业飞
张全志
孙东凯
王哲
位博
石玉凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810935953.5A priority Critical patent/CN109189334B/en
Publication of CN109189334A publication Critical patent/CN109189334A/en
Application granted granted Critical
Publication of CN109189334B publication Critical patent/CN109189334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a block chain network service platform, a capacity expansion method thereof and a storage medium, wherein the block chain network service platform comprises: a resource layer, the resource layer comprising physical resources and a container cluster; the resource layer is used for mounting physical resources to a network disk and mapping the network disk to obtain a container; wherein the container is used for running codes supporting a block chain network, and the container cluster comprises a plurality of containers.

Description

Block chain network service platform, capacity expansion method thereof and storage medium
Technical Field
The present invention relates to communications technologies, and in particular, to a block chain network service platform, a capacity expansion method thereof, and a storage medium.
Background
Block chaining techniques and their applications are subverting existing traffic patterns. Various industries are actively exploring the implementation of their own services in blockchain networks, including financial institutions, government agencies, traditional enterprises, internet companies, and the like. However, the blockchain technology has a high technical threshold, the architecture of the blockchain network is too complex, and the implementation mode of the blockchain network is very different from the bottom layer to the upper layer.
An enterprise-level blockchain network service platform, namely a blockchain as a service (BaaS) platform, provides a quick solution for quickly deploying blockchain networks to users in different industries and deploying applications supporting services in the blockchain networks.
When the storage resources of the blockchain network are insufficient, the blockchain network needs to be shut down first, and then a physical disk is manually added for capacity expansion; therefore, the blockchain network service platform cannot run normally.
Disclosure of Invention
The embodiment of the invention provides a block chain network service platform, a capacity expansion method thereof and a storage medium, which aim to solve the problem that in the prior art, when the storage resources of a block chain network are insufficient, the block chain network needs to be shut down firstly, and then a physical disk is manually added for capacity expansion; therefore, the block chain network service platform cannot run normally.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a blockchain network service platform, where the blockchain network service platform includes: a resource layer comprising physical resources and a container cluster;
the resource layer is used for mounting the physical resources to a network disk and mapping the network disk to obtain a container; wherein the container is configured to run code that supports a blockchain network, and the container cluster includes a plurality of the containers.
Optionally, the resource layer is further configured to increase a physical disk mapped to the network disk when the usage of the physical resource of the block chain network service platform meets a preset capacity expansion condition.
Optionally, the resource layer is further configured to determine that the usage of the physical resource of the blockchain network service platform meets a first preset capacity expansion condition if the usage of the physical resource of the blockchain network service platform reaches a first preset threshold; the preset expansion condition comprises the first preset expansion condition.
Optionally, the blockchain network service platform further includes an interface layer; the resource layer is further configured to send the usage amount of the physical resource of the blockchain network service platform to the interface layer if the usage amount of the physical resource of the blockchain network service platform reaches a second preset threshold; receiving a state notification sent by the interface layer; the state notification is used for notifying the resource layer that the use condition of the physical resource of the block chain network service platform meets the second preset capacity expansion condition;
the interface layer is configured to receive the usage amount of the physical resource of the blockchain network service platform sent by the resource layer, and provide the usage amount of the physical resource of the blockchain network service platform to a user;
the interface layer is further configured to determine that the usage of the physical resources of the blockchain network service platform meets a second preset expansion condition and send the state notification to the resource layer if an expansion operation performed by a user for the usage of the physical resources of the blockchain network service platform is received; and the preset expansion condition comprises a second preset expansion condition.
Optionally, the resource layer further includes: a public cloud resource and a private cloud resource,
the resource layer is also used for increasing public cloud network resources corresponding to the public cloud resources;
and the resource layer is also used for increasing a physical disk mapped to the container corresponding to the private cloud resource.
Optionally, the resource layer further includes public cloud resources and private cloud resources,
the resource layer is further configured to increase public cloud network resources corresponding to the public cloud resources, and store first data in the block chain network service platform to the public cloud resources;
the resource layer is further configured to add a physical disk mapped to a container corresponding to the private cloud resource, and store second data in the blockchain network service platform to the private cloud resource;
wherein the first data has a higher requirement for security than the second data.
In a second aspect, an embodiment of the present invention provides a method for expanding a block chain network service platform, where the method includes:
mounting the physical resources of the block chain network service platform to a network disk, and mapping the network disk to obtain a container; wherein the container is to run code to support a blockchain network;
and when the use condition of the physical resources of the block chain network service platform meets a preset capacity expansion condition, adding a physical disk mapped to the network disk through a resource layer of the block chain network service platform.
Optionally, when the usage of the physical resource of the blockchain network service platform meets a preset capacity expansion condition, before the physical disk mapped to the network disk is added by the resource layer of the blockchain network service platform, the method includes:
detecting the usage amount of physical resources of the block chain network service platform through the resource layer;
if the usage amount of the physical resources of the block chain network service platform reaches a first preset threshold value, determining that the usage condition of the physical resources of the block chain network service platform meets a first preset capacity expansion condition through the resource layer; the preset expansion condition comprises the first preset expansion condition.
Optionally, when the usage of the physical resource of the blockchain network service platform meets a preset capacity expansion condition, before adding the physical disk mapped to the network disk by the resource layer of the blockchain network service platform, the method includes:
detecting the usage amount of physical resources of the block chain network service platform through the resource layer;
if the usage amount of the physical resources of the blockchain network service platform reaches a second preset threshold value, providing the usage amount of the physical resources of the blockchain network service platform to a user through an interface layer of the blockchain network service platform;
if capacity expansion operation executed by a user aiming at the use amount of the physical resources of the block chain network service platform is received, determining that the use condition of the physical resources of the block chain network service platform meets a second preset capacity expansion condition through an interface layer; and the preset expansion condition comprises a second preset expansion condition.
Optionally, the resource layer further includes public cloud resources and private cloud resources, and the method further includes:
increasing public cloud network resources corresponding to the public cloud resources through the resource layer;
and adding a physical disk mapped to the container corresponding to the private cloud resource through the resource layer.
Optionally, the resource layer further includes public cloud resources and private cloud resources, and the method further includes:
increasing public cloud network resources corresponding to the public cloud resources through the resource layer, and storing first data in the block chain network service platform to the public cloud resources;
adding a physical disk mapped to a container corresponding to the private cloud resource through the resource layer, and storing second data in the block chain network service platform to the private cloud resource;
wherein the first data has a higher requirement for security than the second data.
In a third aspect, an embodiment of the present invention provides a storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the steps of the above capacity expansion method for a blockchain network service platform.
The embodiment of the invention is applied to realize the following beneficial effects: the block chain network service platform realizes dynamic capacity expansion by adding a physical disk mapped to a network disk; the method comprises the steps of dividing resources of a block chain network into physical resources, public cloud resources and private cloud resources, and setting different expansion strategies aiming at different resources so as to ensure that a user does not feel when expanding the capacity of the resources of the block chain network and improve the interaction experience between the user and a block chain network service platform; meanwhile, the intelligence of the block chain network service platform is improved.
Because the physical resources in the block chain network service platform are mounted to the network disk, the network disk is mapped to obtain the container, and only the technical means of the physical disk mapped to the network disk is needed to be added when the capacity of the physical resources of the block chain network service platform is expanded, the problem that in the related technology, when the storage resources of the block chain network are insufficient, the block chain network needs to be shut down firstly, and then the physical disk is manually added for the capacity expansion is overcome; therefore, the technical problem that the block chain network service platform cannot normally operate is solved, the user cannot sense when the capacity of the resources of the block chain network is expanded, and the interaction experience between the user and the block chain network service platform is improved; meanwhile, the intelligent technical effect of the block chain network service platform is improved.
Drawings
Fig. 1 is a schematic functional architecture diagram of a blockchain network service platform according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a resource layer constructed as a container cluster by deploying a containerization management system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a developer accessing a blockchain network service platform 100 through a terminal 300 according to an embodiment of the present invention;
fig. 4A to 4Q are schematic diagrams illustrating various function management pages of a blockchain network service platform according to an embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating a method for expanding a block chain network service platform according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of another capacity expansion method for a blockchain network service platform according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a method for expanding a block chain network service platform according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a block chain network service platform according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) Transaction (Transaction), equivalent to the computer term "thing", includes three different Transaction types: deployment (deployment), invocation (Invoke) and Query (Query). The present invention is directed to a method and system for deploying transactions for installing a specified chain code to a node of a blockchain network, invoking and querying a type of transaction for invoking a chain code of a deployment number to implement operations on relevant data of a target account in an ledger, including adding, looking up, modifying data in the form of Key-Value pairs in the account, or adding a new account in the ledger, not simply a transaction in a business context, which is followed by embodiments of the present invention in view of the convention that "transactions" are colloquially used in blockchain technology.
2) A Block (Block) recording a data structure of the ledger data updated by the exchange within a period of time, marked with a timestamp and a unique mark (e.g. a digital fingerprint) of a previous Block, and after the Block is subjected to consensus verification by nodes in the Block chain network, the Block is appended to the end of the Block chain to become a new Block.
3) A chain of blocks (Blockchain), a chain of data structures in which blocks are assembled in a sequentially contiguous manner, in each block referencing a hash value of a previous block or a subset thereof, thereby cryptographically securing the recorded transaction as being non-tamperable and non-forgeable.
4) A blockchain network incorporates new blocks into a set of centerless nodes of the blockchain in a consensus manner.
5) The account book (Legger) is the sum of data recorded by taking an account as a dimension in a block chain network, and comprises the elements of the account book data, the state of the account book, the state certification of the account book, a block index and the like.
6) The ledger data, the actual block data storage, i.e. the record of a series of ordered and non-falsifiable transactions recorded in the block chain, may be expressed in the form of a file system, and the update of the data in the account/account is realized when an intelligent contract called in the transaction is executed.
7) The ledger state, also referred to as state data, i.e. the state of the ledger data, may be in the form of key-value pairs in a database, where the real-time ledger state is used to represent the latest record of key-value pairs updated by the agreed-upon exchange and the historical ledger state is used to represent the historical record of key-value pairs.
8) Consensus (Consensus), a process in a blockchain network, is used to agree on transaction results among multiple nodes involved, and the mechanisms for achieving Consensus include Proof of workload (PoW), Proof of rights and interests (PoS, Proof of stamp), Proof of equity authority (DPoS), Proof of Elapsed Time (PoET, Proof of Elapsed Time), and so on.
9) Intelligent Contracts (Smart Contracts), also called chain codes (chaincodes), are deployed in the blockchain network, and trigger the execution of programs according to conditions, and are used for operating the ledger through query, addition and modification so as to realize query or update of the ledger.
10) Container orchestration, scheduling of containers and clustering techniques provide a basic mechanism for container-based application extensibility, using containers to provide services and orchestration to decide how to interact between containers.
An exemplary functional architecture of a blockchain network service platform for implementing the embodiment of the present invention is described below, referring to fig. 1 and fig. 1, a functional architecture schematic diagram of a blockchain network service platform provided in the embodiment of the present invention is shown, where a blockchain network service platform 100 includes a resource layer 110, a blockchain layer 120, a service layer 130, an interface layer 140 and an application layer 150, which are described below respectively.
The resource layer 110 encapsulates various types of resources such as computing resources, storage resources, and network resources on a machine, and is used for a blockchain network deployed by a developer according to business requirements, and the types of the resources may include various machines, such as physical machines such as a physical host, a server, or a cluster, or virtual machines such as a public cloud or a private cloud, or both.
The computing resources include various forms of processors such as a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), and a Field-Programmable Gate Array (FPGA).
The storage resources include various types of storage media such as various volatile memories and nonvolatile memories. The nonvolatile Memory may be a Read Only Memory (ROM) or a Programmable Read-Only Memory (PROM). Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory.
The network resources include various chips for implementing wired/wireless network communication, such as a wired communication processor, a wireless communication processor, and the like.
The resource layer 110 is constructed as a cluster composed of a series of nodes running with containers by deploying a management system (e.g., kubernets) with a container cluster, and shields the difference of the bottom layer resources in the resource layer 110 to provide a uniform interface to the outside, so that various complex calls are not needed; applications of the blockchain network (including the various code implementing the blockchain network) run in an isolated manner in containers that encapsulate the dependencies of the application run so that they can be easily scheduled (e.g., when a node fails, or when an application needs to be migrated to a new machine) to run on any node of the cluster.
Referring to fig. 2, a schematic structural diagram of a resource layer configured as a container cluster by deploying a containerization management system according to an embodiment of the present invention is shown, a machine providing resources to the resource layer forms two types of nodes, namely, a management node (Master Server) and a service node 300 by deploying corresponding components of the containerization management system, the management node is configured to manage scheduling and running of containers in the service node, the service node is mainly configured to run various containers, and provides an isolated running environment for various applications in a block chain network, for example, a chain code container for running a chain code, a node container for running a node (i.e., a code of various types of nodes in the block chain network) code, and the following description is separately given.
The management node (Master Server) is responsible for managing the cluster, and externally provides resource data access entries of the cluster in the form of services (Service), and the management node comprises several exemplary components.
1) A state component (etcd) for saving the state of the entire cluster.
2) An application program interface service (API Server) component for providing a unique entry for resource operations and providing mechanisms for authentication, authorization, access control, API registration and discovery, and the like.
3) And the scheduling (Scheduler) component is used for being responsible for scheduling the resources and scheduling the container to a proper service node to run according to a preset scheduling strategy. For an application of a blockchain network, the container group (Pod) of the same group of resources in a shared machine (that is, a machine on which a service node component is deployed) in a container run by a service node is a minimum unit of invocation, and can be implemented by one or more container groups, where the resources shared by the containers in the container group include: application namespace, network namespace, hostname, and storage Volume (Volume).
Taking the shared storage volume as an example, when a shared File System component is deployed on a service node, such as a Network File System (NFS), a cluster File System (GlusterFS), or a ceph File System (Cephfs), the scheduling component can easily schedule (mount) a container group mounted on the storage volume to a storage volume of another machine (service node).
4) And the control management (Controller Manager) component is used for monitoring/maintaining the state of the cluster, monitoring the current state of each resource object of the whole cluster in real time through an interface provided by the application program interface service component, and restoring the current state to the expected state when the system state changes due to various faults.
5) A copy Controller (RC) component for controlling the running of a certain number of Pod copies in a certain time; for example, if the running Pod copy exceeds the set value, closing part of Pod copies; if the Pod copy is less than the set value, a new Pod copy is created.
6) And the Deployment Controller (Deployment Controller) component is used for managing and maintaining a resource object-Deployment (Deployment) object in the container cluster, associating the Deployment object with the replica Controller, and providing declarative updates for the container group and the replica Controller in the Deployment object, wherein the declarative updates are used for declaring the target states of the container group and the replica Controller, so that when the Deployment object is updated, the update of the replica Controller and the container group is controlled and realized.
The service node includes the following exemplary components.
1) And the container engine (noted as Docker) is used for taking charge of all specific image downloading and container operation.
2) The daemon component (denoted as Kubelet) is responsible for maintaining the life cycle of the container (creation, start and stop), and also for the management of the storage volume and the Container Network Interface (CNI).
Taking management of a storage volume as an example, a daemon component mounts each container in a container group to the same storage volume through a component of a shared File System deployed in a service node, such as a Network File System (NFS), a cluster File System (GlusterFS), and a ceph File System (Cephfs), so that each container uses the same storage volume to store data produced in the operation process, and the data in the storage volume can be accessed by any container in the same container group.
3) And the load balancing component (denoted as Proxy) is responsible for providing Service with Service discovery and load balancing inside the cluster.
Based on the cluster shown in fig. 2, an exemplary process of deploying an image of an application of a blockchain network to a container group (referred to as a target Pod in the following example) and running on a service Node (referred to as a target Node in the following example) is as follows.
Firstly, a management tool (Kubectl) of a container cluster submits a request for creating a copy Controller (RC), wherein the request includes a definition of a target Pod; the number of copies that the target Pod needs to run; target Pod label (label) to be monitored, and the like.
Then, the request is written into the etcd through the API Server, and at this time, the Controller Manager monitors the RC event through the interface of the API Server for monitoring resource change, finds that there is no Pod instance corresponding to the RC in the current cluster, generates a Pod object according to the Pod template definition in the RC, and writes into the etcd through the API Server.
Immediately after the RC event is discovered by the Scheduler, it immediately executes a scheduling procedure: and selecting a service Node of the drop for the new Pod, writing the result into the etcd through the API Server, monitoring the new Pod through the API Server by a Kubelet process running on the target Node, and starting the new Pod according to the definition of the new Pod until the life of the Pod is finished.
Subsequently, Kubectl submits a new Service creation request mapped to the target Pod, Controller Manager queries the associated Pod instance through Label, then generates endpoint (Endpoints) information (including addresses and ports) of Service, and writes the endpoint information into etcd through API Server; and Proxy processes running on all nodes in the container cluster inquire through an API (application program interface) Server, monitor the Service object and the corresponding endpoint information, and establish a load balancer in a software mode to realize the flow forwarding function from the Service access to the backend Pod.
The description is continued to implement other functional structures of the blockchain network service platform implementing the embodiment of the invention as shown in fig. 1.
The block layer 120 encapsulates different solutions that implement blockchain networks, such as hyper book (Fabric), Stellar, Ethereum, self-developed JD Chain, etc.; these solutions specify the architecture to implement the blockchain network and the mechanism to implement consensus, which can be provided in the blockchain network service platform 100 as an application in an application store to support rapid deployment by developers on demand.
The service layer 130 encapsulates various services of the blockchain network service platform, and the characteristic services include rapid deployment of blockchain networks, account authentication, enterprise and deployment, unified authentication, microservice and development interfaces; the contract management comprises uploading verification, contract deployment, contract upgrading, a contract list, a contract library and a contract template; the operation and maintenance monitoring comprises node management, service upgrading, transaction management, block browsing, account auditing and account management.
The Interface layer 140 provides a way for developers to access the blockchain network service platform 100 for deployment and management of blockchain networks, including a network (Web) oriented way for developer browsers, a way to build Software Development Kit (SDK)/Application Program Interface (API) in clients.
The application layer 150 encapsulates applications supporting different services (including traceability, public welfare, evidence storage, electronic invoices, mobile asset assessment, transaction calculation, digital rights, and the like), provides modular and reusable applications in an application store, and supports developers to select and deploy in a blockchain network according to requirements so as to record various data produced in different service processes.
In combination with the above, the blockchain network service platform implementing the embodiment of the present invention is implemented by deploying a container cluster in a resource layer and running a container encapsulated with a blockchain network application, and thus, the blockchain network implementing the embodiment of the present invention may be provided in the form of a memory and a processor, where executable instructions are stored in the memory, and when the executable instructions are executed by the processor, the container cluster is established on a plurality of physical machines running the processor and the memory, and the method for expanding capacity in the blockchain network service platform according to the embodiment of the present invention is implemented by running the encapsulated application in the container.
The blockchain network service platform for implementing the embodiment of the present invention is connected to a developer in various ways, and provides various graphical ways to deploy and manage the blockchain network, which is described below.
Referring to fig. 3, fig. 3 is a schematic diagram of a developer accessing a blockchain network service platform 100 through a terminal 300 through a network 400 according to an embodiment of the present invention, an SDK/Web 320 of the developer terminal 300 interfaces a corresponding SDE/Web interface of an interface layer 140 in the blockchain network service platform 100, supports local deployment of a blockchain network supporting a specific service at the developer terminal 300 in a remote manner, and displays management pages of various functions of the blockchain network service platform 100 in a graphical interface 310 of the terminal 300, including creation of a container cluster and access of a new container cluster, management of storage resources, one-key deployment of the blockchain network, chain code management (running state view), application store management, and the like.
Fig. 4A to 4Q are schematic display diagrams of various function management pages of the blockchain network service platform according to an embodiment of the present invention, and the function management pages displayed in the image interface 310 of the developer terminal 300 in fig. 3 will be exemplarily described with reference to fig. 4A to 4Q.
Fig. 4A shows a status view page of the blockchain network service platform 100, in which the running status of the blockchain network, such as CPU usage, memory usage, and resource (node) usage, is shown.
Fig. 4B shows a console page of one-key deployment of the blockchain network service platform 100, which supports developers to set basic information (including blockchain domain name, version number) and organization (including organization name, node number, user number, etc.) of the blockchain network, and to set advanced options with default values, including sorting node type, channel name, and chain code name, etc.
Fig. 4C illustrates a console page of resource management of the resource layer 110 of the blockchain web services platform 100, wherein related information of the cluster that can be deployed by the developer through the blockchain web services platform 100, including the status of whether to connect, the CPU/memory usage, and the like, is displayed.
Supporting the addition of a container cluster for supporting a block chain network in fig. 4D, and entering a cluster name; the create page will be entered after the create cluster functionality option is triggered.
Fig. 4E shows a console page of the query cluster of the blockchain network service platform 100, and when a function button of the query cluster is triggered, the query cluster will enter a cluster list page to support operations of adding a cluster, querying a cluster, deleting a cluster, and editing a cluster.
In fig. 4F, a console page of storage management of the blockchain network service platform 100 is shown, and when a function button of storage management is triggered, a storage management list page is entered to display the created storage items in the cluster, including the storage query and delete function.
A console page of the blockchain network services platform 100 is shown in fig. 4G for storing details, which are shown in fig. 4H and support dynamic storage space expansion for storage.
A console page of the blockchain network service platform 100 for adding storage is shown in fig. 4I, supporting setting of storage name and node for adding, adding a node to a container cluster according to the setting, and displaying detailed information after adding storage, including a list of nodes of the container cluster, in fig. 4J.
A console page of the super ledger of blockchain network services platform 100 is shown in fig. 4K, showing information of the name, network version, status and creation time of the super ledger used to deploy the blockchain network.
In fig. 4L, a console page of one-touch deployment of a super ledger of the blockchain network service platform 100 is shown, which provides configuration items of basic information for super ledger deployment, and advanced configuration items adopting default values, such as sorting node type, channel, default chain code, and initialization parameters.
In fig. 4M/N, a console page of upload/installation of a chain code of the blockchain network service platform 100 is shown, in which setting items of a chain code name and a version number are provided; chain code versions, initialization parameters, configuration items for the organization and nodes are provided in the installed console page.
Fig. 4O shows a console page of the network details of the blockchain network service platform 100, which supports viewing of information such as organization members, height of a block, transaction amount, and contract amount of different channels, and may also display information such as organization names, intra-channel node names, and intra-channel chain code names of the viewed channels.
Fig. 4P shows a console page for chain code query of the blockchain network service platform 100, which supports matching query of chain codes by using network names, chain code parameters, account book names, and chain code functions, and the query dimensions include states, messages, and data.
In fig. 4Q, a console page of an application store of the blockchain network service platform 100 is shown, which supports a developer to select an application to be deployed, and once an application is determined to be deployed to the blockchain network, rapid deployment of a container cluster to the resource layer 100 is completed by multiplexing images of the application.
According to the foregoing embodiments, an embodiment of the present invention provides a blockchain network service platform, and referring to fig. 1, a blockchain network service platform 100 includes: a resource layer 110, the resource layer 110 including container clusters and physical resources;
the resource layer 110 is configured to mount physical resources to a network disk, and map the network disk to obtain a container.
Wherein the container is used for running codes supporting a block chain network, and the container cluster comprises a plurality of containers. And the type of the resource corresponding to the physical resource is a physical machine.
The physical resources include physical disks already deployed in the blockchain network service platform 100. Illustratively, referring to FIG. 1, the computing resources, storage resources, and network resources in the resource layer 110 may be resources in physical disks encapsulated by the resource layer 110.
In the embodiment of the present invention, after a container is obtained, a resource control program allocates a reasonable capacity from a storage resource through a Logical Volume Manager (LVM) service, the network storage service manages the capacity to obtain a storage mount location, an operating system mounts the capacity to a corresponding path in the container by using a network storage service custom storage format, various resources such as network resources are loaded below the path, and a start service program is run, so that the container is started.
In the embodiment of the present invention, the resource layer 110 in the block chain network service platform 100 mounts the physical resource to the network disk, maps the network disk to obtain a container, and runs a code supporting the block chain network in the container; however, the blockchain network service platform in the related art directly maps physical resources to containers; therefore, the embodiment of the present invention is different from the related art in the way that the container is obtained by the blockchain network service platform. Further, based on the manner of obtaining the container in the embodiment of the present invention, when capacity expansion is performed on physical resources of the blockchain network service platform, only the physical disk mapped to the network disk needs to be added through the resource layer 110, and accordingly, computing resources, storage resources, and network resources in the resource layer 110 will be added without performing shutdown processing on the blockchain network, which is completely different from how capacity expansion is performed by manually adding a physical disk after shutdown processing is performed on the blockchain network in the related art, thereby achieving user-unaware capacity expansion.
According to the foregoing embodiments, an embodiment of the present invention provides a blockchain network service platform, and referring to fig. 1, a blockchain network service platform 100 includes: a resource layer 110, the resource layer 110 including container clusters and physical resources.
The resource layer 110 is configured to mount a physical resource to a network disk, and map the network disk to obtain a container.
Wherein the container is used for running codes supporting a block chain network, and the container cluster comprises a plurality of containers.
In this embodiment of the present invention, the resource layer 110 is further configured to increase a physical disk mapped to the network disk when the usage of the physical resource of the blockchain network service platform meets a preset capacity expansion condition.
The physical disk mapped to the network disk may be a redundant physical disk existing in a blockchain network service platform; the resource layer 110 may allocate unused redundant physical disks to different users during the process of expanding the physical resources of the blockchain network service platform. In the embodiment of the present invention, the Volume expansion of the physical resource may also be realized by expanding the Volume Group (VG) through the LVM service.
In the embodiment of the invention, when the physical resources of the block chain network service platform are expanded, the dynamic expansion of the network disk can be realized only by increasing the physical disk mapped to the network disk through the resource layer, so that the capacity of the network disk is dynamically increased according to the capacity of the physical resources on the mounted disk identifier, and the capacity of a container which has a mapping relation with the network disk is also dynamically increased; therefore, when capacity expansion is carried out in the mode, shutdown processing on the block chain network is not needed, capacity expansion of physical resources of the block chain network service platform can be realized only by increasing the physical disks mapped to the network disks, and normal operation of the block chain network is further ensured.
In the embodiment of the present invention, the expansion of the physical resources of the blockchain network service platform may be triggered in the following two ways.
In the first manner, the resource layer 110 is further configured to determine that the usage of the physical resource of the blockchain network service platform meets a first preset capacity expansion condition if the usage of the physical resource of the blockchain network service platform reaches a first preset threshold.
The preset expansion condition comprises a first preset expansion condition.
Wherein the usage of the physical resource comprises usage of the physical resource of each container in the container cluster.
In this embodiment of the present invention, the resource layer 110 may periodically detect the usage amount of the physical resource of the blockchain network service platform.
In the embodiment of the present invention, the resource layer 110 may detect the usage amount of the physical resource of the block chain network service platform in real time.
For example, the resource layer 110 may periodically detect a usage amount of the physical resource of the blockchain network service platform, compare the usage amount with a first preset threshold, and determine that the usage condition of the physical resource of the blockchain network service platform meets a first preset capacity expansion condition once it is determined that the usage amount reaches the first preset threshold, even if the usage amount is greater than or equal to the first preset usage amount; at this time, the resource layer 110 may be triggered to perform capacity expansion operation on the physical resources of the blockchain network service platform; therefore, in the embodiment of the present invention, once it is detected that the usage amount of the physical resource reaches the preset threshold, the resource layer may be triggered to automatically expand the physical resource of the blockchain network service platform by increasing the physical disk mapped to the network disk, where the physical disk to be increased may be a redundant physical disk in the blockchain network service platform 100; therefore, stable and efficient operation of the block chain network service platform is ensured.
In the second way, the blockchain network service platform 100 further includes an interface layer; the resource layer 110 is further configured to send the usage amount of the physical resource of the blockchain network service platform to the interface layer if the usage amount of the physical resource of the blockchain network service platform reaches a second preset threshold.
When determining that the usage amount of the physical resource of the blockchain network service platform reaches the second preset threshold, the resource layer 110 sends the usage amount to the interface layer to notify the user of the usage amount of the physical resource through the interface layer, and the user determines whether to expand the capacity of the physical resource.
The interface layer 140 is configured to receive the usage amount of the physical resource of the blockchain network service platform sent by the resource layer, and provide the usage amount of the physical resource of the blockchain network service platform to the user.
The interface layer 140 is further configured to determine that the usage of the physical resource of the blockchain network service platform meets a second preset expansion condition if an expansion operation performed by a user on the usage of the physical resource of the blockchain network service platform is received, and send a status notification to the resource layer.
The preset expansion condition comprises a second preset expansion condition. The state notification is used for notifying that the use condition of the physical resource of the resource layer blockchain network service platform meets a second preset capacity expansion condition.
Further, the resource layer 110 is further configured to receive a status notification sent by the interface layer 140, so as to trigger a capacity expansion operation.
The preset expansion condition comprises a second preset expansion condition. The first preset threshold and the second preset threshold may be the same.
For example, the resource layer 110 may periodically detect the usage amount of the physical resource of the block chain network service platform, and compare the usage amount with a second preset threshold; once the resource layer 110 determines that the usage amount reaches the second preset threshold, the usage amount is sent to the interface layer even if the usage amount is greater than or equal to the second preset usage amount; and the interface layer provides the usage to the user, for example, the usage is displayed to the user through a web page of the interface layer, and the user confirms whether to perform capacity expansion. When a user determines that the capacity of the physical resource of the blockchain network service platform needs to be expanded based on the usage amount, the interface layer 140 receives the capacity expansion operation executed by the user for the usage amount, and further determines that the usage condition of the physical resource of the blockchain network service platform meets a second preset capacity expansion condition; at this time, the interface layer 140 notifies the resource layer 110 of the state that the use condition of the physical resource of the blockchain network service platform meets the second preset capacity expansion condition, so as to trigger the resource layer 110 to perform capacity expansion operation on the physical resource of the blockchain network service platform; therefore, in the embodiment of the invention, once the usage amount of the physical resource is detected to reach the preset threshold, the block chain network service platform gives the permission of capacity expansion to the user, and the user confirms whether to perform capacity expansion; therefore, the interactivity between the block chain network service platform and the user is improved, and the physical resources of the block chain network service platform are ensured to be expanded according to the actual requirements of the user, so that the operation of the block chain network service platform is more stable and efficient.
According to the foregoing embodiments, an embodiment of the present invention provides a blockchain network service platform, and referring to fig. 1, a blockchain network service platform 100 includes: a resource layer 110, the resource layer 110 including container clusters and physical resources;
the resource layer 110 is configured to mount a physical resource to a network disk, and map the network disk to obtain a container. Wherein the container is used for running codes supporting a block chain network, and the container cluster comprises a plurality of containers.
The resource layer 110 further includes public cloud resources and private cloud resources, and the resource layer 110 is further configured to add public cloud network resources corresponding to the public cloud resources.
And the type of the resource corresponding to the public cloud resource is the public cloud. Illustratively, referring to fig. 1, the computing resources, storage resources, and network resources in resource layer 110 may be resources of a public cloud encapsulated by resource layer 110.
The resource layer 110 is further configured to add public cloud network resources corresponding to the public cloud resources, and may be implemented in the following manner:
the resource layer 110 is further configured to increase a public cloud network resource corresponding to the public cloud resource when it is determined that the usage amount of the public cloud resource reaches a third preset usage amount; accordingly, computing resources, storage resources, and network resources in the resource layer 110 will increase.
In the embodiment of the present invention, the public cloud resource may be a resource provided by a third party platform. When the resource layer 110 determines that the usage amount of the public cloud resource reaches the third preset usage amount, the public cloud network resource corresponding to the public cloud resource may be increased, and the capacity of the public cloud resource is expanded to ensure normal use of the public cloud resource in the blockchain network.
And the resource layer 110 is further configured to add a physical disk mapped to a container corresponding to the private cloud resource.
And the type of the resource corresponding to the private cloud resource is a private cloud. Illustratively, referring to fig. 1, the computing resources, storage resources, and network resources in resource layer 110 may be resources of a private cloud encapsulated by resource layer 110.
The resource layer 110 is further configured to add a physical disk mapped to a container corresponding to the private cloud resource, and may be implemented in the following manner:
the resource layer 110 is further configured to increase a physical disk mapped to a container corresponding to the private cloud resource when it is determined that the usage amount of the private cloud resource reaches a fourth preset usage amount; accordingly, computing resources, storage resources, and network resources in the resource layer 110 will increase. In the embodiment of the present invention, the fourth preset usage amount may be the same as the third preset usage amount; the fourth predetermined usage amount may be different from the third predetermined usage amount.
In the embodiment of the present invention, the private cloud resource may be a resource of a cloud platform created by the user. When the resource layer 110 determines that the usage amount of the private cloud resource reaches the fourth preset usage amount, the physical disk mapped to the container corresponding to the private cloud resource is added to expand the private cloud resource, so as to ensure normal use of the private cloud resource in the block chain network.
According to the foregoing embodiments, an embodiment of the present invention provides a blockchain network service platform, and referring to fig. 1, a blockchain network service platform 100 includes: a resource layer 110, the resource layer 110 including container clusters and physical resources;
the resource layer 110 is configured to mount a physical resource to a network disk, and map the network disk to obtain a container.
Wherein the container is used for running codes supporting a block chain network, and the container cluster comprises a plurality of containers.
The resource layer 110 further includes public cloud resources and private cloud resources, and the resource layer 110 is further configured to add public cloud network resources corresponding to the public cloud resources and store the first data in the blockchain network service platform in the public cloud resources.
During the process of capacity expansion of the public cloud resources, the resource layer 110 may further store the first data in the block chain network service platform to the public cloud resources; the first data has a first attribute, and the first attribute can represent that the first data belongs to one type of data with low requirements on data security in multiple types of data in the block chain network service platform. In the embodiment of the invention, when the first data is known by others, the first data does not have adverse effect on the user who stores the first data to the blockchain network service platform, for example, the personal and property of the user are not threatened.
The resource layer 110 is further configured to add a public cloud network resource corresponding to the public cloud resource, and store the second data in the blockchain network service platform in the private cloud resource.
Wherein the first data has a higher requirement for security than the second data.
In the process of expanding the private cloud resources, the resource layer 110 may further store second data in the blockchain network service platform into the private cloud resources, where the second data has a second attribute, and the second attribute may represent that the second data belongs to a type of data with a higher requirement on data security among the types of data in the blockchain network service platform. In the embodiment of the present invention, once the second data is known by others, the second data may have an adverse effect on the user who stores the second data in the blockchain network service platform, for example, a threat may be generated to the person and property of the user.
As can be seen from the above, in the process of expanding the capacity of the resource layer 110 for the public cloud resources and the private cloud resources, data with different attributes can be stored in different positions, so that compared with the case that all data are stored in the private cloud resources, the space in the private cloud resources is saved for the user, and the intelligence of the block chain network service platform is further improved.
According to the foregoing embodiment, an embodiment of the present invention provides a method for expanding a blockchain network service platform, where the method is applied to the blockchain network service platform in the foregoing embodiment, and as shown in fig. 5, the method includes:
step 501, mounting physical resources of the block chain network service platform to a network disk, and mapping the network disk to obtain a container.
Wherein the container is used to run code that supports a blockchain network.
The physical resources comprise physical disks which are already deployed in the block chain network service platform.
In the embodiment of the invention, a block chain network service platform mounts physical resources to a network disk, maps the network disk to obtain a container, and runs a code supporting a block chain network in the container; however, the blockchain network service platform in the related art directly maps physical resources to containers; therefore, the embodiment of the present invention is different from the related art in the way that the container is obtained by the blockchain network service platform. Further, based on the manner of obtaining the container in the embodiment of the present invention, when capacity expansion is performed on physical resources of the blockchain network service platform, only the physical disk mapped to the network disk needs to be added, and the blockchain network does not need to be shut down.
Step 502, when the service condition of the resource of the blockchain network service platform meets a preset capacity expansion condition, adding a physical disk mapped to the network disk through a resource layer of the blockchain network service platform.
The physical disk mapped to the network disk may be a redundant physical disk existing in a block chain network service platform; in the process of expanding the capacity of the physical resources of the blockchain network service platform, the blockchain network service platform can allocate incompatible redundant physical disks to different users.
In the embodiment of the invention, when the physical resources of the block chain network service platform are expanded, the dynamic expansion of the network disk can be realized only by increasing the physical disk mapped to the network disk through the resource layer; therefore, when capacity expansion is carried out in the mode, shutdown processing is not needed to be carried out on the block chain network, and only the physical disk which is shot to the network disk is needed to be added to carry out capacity expansion on the physical resources of the block chain network service platform, so that normal operation of the block chain network is ensured.
According to the foregoing embodiment, an embodiment of the present invention provides a method for expanding a block chain network service platform, where the method is applied to the block chain network service platform in the foregoing embodiment, and as shown in fig. 6, the method includes:
step 601, mounting physical resources of the block chain network service platform to a network disk, and mapping the network disk to obtain a container.
Wherein the container is used to run code that supports a blockchain network.
Step 602, detecting the usage amount of the physical resource of the block chain network service platform through the resource layer.
It should be noted that, after the step 602 detects the usage amount of the physical resource of the block chain network service platform through the resource layer, the steps 603 or 604 to 605 may be optionally executed.
Step 603, if the usage amount of the physical resource of the blockchain network service platform reaches a first preset threshold, determining that the usage condition of the physical resource of the blockchain network service platform meets a first preset capacity expansion condition through the resource layer.
The preset expansion condition comprises a first preset expansion condition.
Wherein the usage of the physical resource comprises usage of the physical resource of each container in the container cluster.
In the embodiment of the present invention, the blockchain network service platform may periodically detect the usage amount of the physical resource of the blockchain network service platform through the resource layer.
In the embodiment of the present invention, the block chain network service platform may detect the usage amount of the physical resource of the block chain network service platform in real time through the resource layer.
For example, the block chain network service platform may detect, in real time, a usage amount of a physical resource of the block chain network service platform through the resource layer, and compare the usage amount with a first preset threshold, where the first preset threshold represents a first preset usage amount of the physical resource, and once it is determined that the usage amount reaches the first preset threshold, even if the usage amount is greater than or equal to the first preset usage amount, it is determined that the usage condition of the physical resource of the block chain network service platform meets a first preset capacity expansion condition; at this time, the resource layer can be triggered to perform capacity expansion operation on the physical resources of the block chain network service platform; the physical disk to be added can be a redundant physical disk in a block chain network service platform; therefore, stable and efficient operation of the block chain network service platform is ensured.
Step 604, if the usage amount of the physical resource of the blockchain network service platform reaches a second preset threshold, providing the usage amount of the physical resource of the blockchain network service platform to the user through an interface layer of the blockchain network service platform.
When the block chain network service platform determines that the usage reaches a preset threshold, the usage is sent to an interface layer through a resource layer; and then the use amount is provided to the user through the interface layer, and the user confirms whether to carry out capacity expansion or not.
Step 605, if receiving a capacity expansion operation executed by a user for the usage amount of the physical resource of the block chain network service platform, determining, by the interface layer, that the usage condition of the physical resource of the block chain network service platform meets a second preset capacity expansion condition.
The preset expansion condition comprises a second preset expansion condition.
If receiving an operation of determining capacity expansion executed by a user aiming at the usage amount, determining that the usage condition of physical resources of the block chain network service platform meets a second preset capacity expansion condition through the interface layer, and sending a state notification to the resource layer; the state notification is used for notifying that the use condition of the physical resource of the resource layer blockchain network service platform meets a second preset capacity expansion condition.
For example, the blockchain network service platform may detect the usage amount of the physical resource of the blockchain network service platform in real time, and compare the usage amount with a second preset threshold, where the second preset threshold represents a second preset usage amount of the physical resource, and once it is determined that the usage amount reaches the second preset threshold, even if the usage amount is greater than or equal to the second preset usage amount, the usage amount is provided to the user through the interface layer, for example, the usage amount is displayed to the user through a webpage of the interface layer, and the user determines whether to perform capacity expansion. The first preset usage amount and the second preset usage amount may be the same. When a user determines that the physical resources of the blockchain network service platform need to be expanded based on the usage amount, the blockchain network service platform receives an operation of determining expansion, which is executed by the user according to the usage amount, and further determines that the usage condition of the physical resources of the blockchain network service platform meets a second preset expansion condition; at this time, the operation of expanding the physical resources of the block chain network service platform can be triggered; therefore, in the embodiment of the invention, once the usage amount of the physical resource is detected to reach the preset threshold, the block chain network service platform gives the permission of capacity expansion to the user, and the user confirms whether to perform capacity expansion; therefore, the interactivity between the block chain network service platform and the user is improved, and the physical resources of the block chain network service platform are ensured to be expanded according to the actual requirements of the user, so that the operation of the block chain network service platform is more stable and efficient.
Step 606, when the use condition of the physical resource of the blockchain network service platform meets the preset capacity expansion condition, adding the physical disk mapped to the network disk through the resource layer of the blockchain network service platform.
In the embodiment of the invention, the block chain network service platform can expand the capacity of public cloud resources and private cloud resources in the block chain network in different modes, and ensures that a user does not sense the capacity expansion, thereby improving the intelligence of the block chain network service platform.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
According to the foregoing embodiment, an embodiment of the present invention provides a method for expanding a block chain network service platform, where the method is applied to the block chain network service platform in the foregoing embodiment, and as shown in fig. 7, the method includes:
step 701, mounting physical resources of the block chain network service platform to a network disk, and mapping the network disk to obtain a container.
Wherein the container is used to run code that supports a blockchain network.
Step 702, when the usage of the physical resources of the blockchain network service platform meets a preset capacity expansion condition, adding a physical disk mapped to the network disk through a resource layer of the blockchain network service platform.
And 703, adding public cloud network resources corresponding to the public cloud resources through the resource layer.
In this embodiment of the present invention, in the process that the block chain network service platform performs step 703 and adds the public cloud network resource corresponding to the public cloud resource through the resource layer, the following steps may also be performed: and storing the first data in the block chain network service platform to the public cloud resource.
The block chain network service platform can periodically detect the usage amount of the public cloud resources, and when the usage amount of the public cloud resources reaches a third preset usage amount, the public cloud network resources corresponding to the public cloud resources are increased through the resource layer to expand the public cloud resources. Further, in the process of expanding the public cloud resources, the blockchain network service platform may further store the first data in the blockchain network service platform into the public cloud resources. The first data has a first attribute, and the first attribute can represent that the first data belongs to one type of data with low requirements on data security in multiple types of data in the block chain network service platform.
And 704, adding a physical disk mapped to the container corresponding to the private cloud resource through the resource layer.
In this embodiment of the present invention, in the process that the block chain network service platform performs step 704 and adds the physical disk mapped to the container corresponding to the private cloud resource through the resource layer, the following steps may also be performed: and saving the second data in the blockchain network service platform to the private cloud resources.
And the first security requirement corresponding to the first data is higher than the second security requirement corresponding to the second data.
The block chain network service platform can periodically detect the usage amount of the private cloud resources, and when the usage amount of the private cloud resources reaches a fourth preset usage amount, a physical disk mapped to a container corresponding to the private cloud resources is added to a resource layer of the block chain network service platform through the resource layer to expand the private cloud resources. Further, in the process of expanding the private cloud resources by the blockchain network service platform, second data in the blockchain network service platform may also be stored in the private cloud resources, where the second data has a second attribute, and the second attribute may represent that the second data belongs to a type of data with a higher requirement on data security among multiple types of data in the blockchain network service platform. In the embodiment of the invention, once the second data is known by others, the second data can have adverse effects on the user storing the second data to the blockchain network service platform, such as threats to the person and property of the user.
Therefore, in the process of expanding the capacity of the block chain network service platform for the public cloud resources and the private cloud resources, the data with different attributes can be stored to different positions, so that compared with the case that all the data are stored in the private cloud resources, the space in the private cloud resources is saved for a user, and the intelligence of the block chain network service platform is improved.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
In summary, the embodiment of the invention has the following beneficial effects: the block chain network service platform realizes dynamic capacity expansion by adding a physical disk mapped to a network disk; the method comprises the steps of dividing resources of a block chain network into physical resources, public cloud resources and private cloud resources, and setting different expansion strategies aiming at different resources so as to ensure that a user does not feel when expanding the capacity of the resources of the block chain network and improve the interaction experience between the user and a block chain network service platform; meanwhile, the intelligence of the block chain network service platform is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides a blockchain network service platform, which can be applied to the capacity expansion method of a blockchain network service platform provided in the embodiments corresponding to fig. 5 to 7, where referring to fig. 8, the blockchain network service platform 8 (the blockchain network service platform 8 corresponds to the blockchain network service platform 100) includes: a processor 81, a memory 82, and a communication bus 83, wherein:
the communication bus 83 is used to realize a communication connection between the processor 81 and the memory 82.
The processor 81 is configured to execute a capacity expansion program of the blockchain network service platform stored in the memory 82, so as to implement the following steps:
mounting physical resources of a block chain network service platform to a network disk, and mapping the network disk to obtain a container; wherein the container is used for running codes supporting a block chain network;
and when the use condition of the physical resources of the block chain network service platform meets a preset capacity expansion condition, increasing the physical disk mapped to the network disk through a resource layer of the block chain network service platform.
In other embodiments of the present invention, the processor 81 is configured to execute a capacity expansion program of the blockchain network service platform stored in the memory 82 to implement the following steps:
detecting the use amount of physical resources of the block chain network service platform through a resource layer;
if the usage amount of the physical resources of the block chain network service platform reaches a first preset threshold value, determining that the usage condition of the physical resources of the block chain network service platform meets a first preset capacity expansion condition through a resource layer; the preset expansion condition comprises a first preset expansion condition.
In other embodiments of the present invention, the blockchain network service platform includes an interface layer, and the processor 81 is configured to execute a capacity expansion program of the blockchain network service platform stored in the memory 82 to implement the following steps:
detecting the use amount of physical resources of the block chain network service platform through a resource layer;
if the usage amount of the physical resources of the blockchain network service platform reaches a second preset threshold value, providing the usage amount of the physical resources of the blockchain network service platform to a user through an interface layer of the blockchain network service platform;
if capacity expansion operation executed by a user aiming at the use amount of the physical resources of the block chain network service platform is received, determining that the use condition of the physical resources of the block chain network service platform meets a second preset capacity expansion condition through an interface layer; the preset expansion condition comprises a second preset expansion condition.
In other embodiments of the present invention, the resource layer further includes public cloud resources and private cloud resources, and the processor 81 is configured to execute a capacity expansion program of the blockchain network service platform stored in the memory 82, so as to implement the following steps:
public cloud network resources corresponding to the public cloud resources are added through the resource layer;
and adding a physical disk mapped to the container corresponding to the private cloud resource through the resource layer.
In other embodiments of the present invention, the resource layer further includes public cloud resources and private cloud resources, and the processor 81 is configured to execute a capacity expansion program of the blockchain network service platform stored in the memory 82, so as to implement the following steps:
public cloud network resources corresponding to the public cloud resources are added through the resource layer, and first data in the block chain network service platform are stored to the public cloud resources;
adding a physical disk mapped to a container corresponding to the private cloud resource through a resource layer, and storing second data in the block chain network service platform to the private cloud resource;
wherein the first data has a higher requirement for security than the second data.
It should be noted that, in the embodiment, a specific implementation process of the step executed by the processor may refer to an implementation process in the capacity expansion method of the block chain network service platform provided in the embodiment corresponding to fig. 5 to 7, and details are not described here.
Based on the foregoing embodiments, an embodiment of the present invention provides a storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
mounting physical resources of a block chain network service platform to a network disk, and mapping the network disk to obtain a container; wherein the container is used for running codes supporting a block chain network;
and when the use condition of the physical resources of the block chain network service platform meets a preset capacity expansion condition, adding the physical disk mapped to the network disk through a resource layer of the block chain network service platform.
In other embodiments of the invention, the one or more programs are executable by the one or more processors to perform the steps of:
detecting the use amount of physical resources of the block chain network service platform through a resource layer;
if the usage amount of the physical resources of the block chain network service platform reaches a first preset threshold value, determining that the usage condition of the physical resources of the block chain network service platform meets a first preset capacity expansion condition through a resource layer; the preset expansion condition comprises a first preset expansion condition.
In other embodiments of the invention, the one or more programs are executable by the one or more processors to perform the steps of:
detecting the use amount of physical resources of the block chain network service platform through a resource layer;
if the usage amount of the physical resources of the block chain network service platform reaches a second preset threshold value, the usage amount of the physical resources of the block chain network service platform is provided for a user through an interface layer of the block chain network service platform;
if capacity expansion operation executed by a user aiming at the use amount of the physical resources of the block chain network service platform is received, determining that the use condition of the physical resources of the block chain network service platform meets a second preset capacity expansion condition through an interface layer; the preset expansion condition comprises a second preset expansion condition.
In other embodiments of the invention, the resource layer further comprises public cloud resources and private cloud resources, the one or more programs being executable by the one or more processors to implement the steps of:
public cloud network resources corresponding to the public cloud resources are added through the resource layer;
and adding a physical disk mapped to the container corresponding to the private cloud resource through the resource layer.
In other embodiments of the invention, the resource layer further comprises public cloud resources and private cloud resources, the one or more programs being executable by the one or more processors to implement the steps of:
public cloud network resources corresponding to the public cloud resources are added through the resource layer, and first data in the block chain network service platform are stored to the public cloud resources;
adding a physical disk mapped to a container corresponding to the private cloud resource through a resource layer, and storing second data in the block chain network service platform to the private cloud resource;
wherein the first data has a higher requirement for security than the second data.
It should be noted that, in the embodiment, a specific implementation process of the step executed by the processor may refer to an implementation process in the capacity expansion method of the block chain network service platform provided in the embodiment corresponding to fig. 5 to 7, and details are not described here.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A blockchain network service platform, the blockchain network service platform comprising: a resource layer comprising physical resources and a container cluster;
the resource layer is used for mounting the physical resources to a network disk and mapping the network disk to obtain a container; wherein the container is configured to run code that supports a blockchain network, the cluster of containers comprising a plurality of the containers; the capacity of the network disk is dynamically increased according to the capacity of the mounted physical resource, and the capacity of the container is dynamically increased according to the capacity of the network disk;
and the resource layer is further used for increasing the physical disk mapped to the network disk when the use condition of the physical resource of the block chain network service platform meets a preset capacity expansion condition.
2. The blockchain network service platform of claim 1,
the resource layer is further configured to determine that the usage of the physical resources of the blockchain network service platform meets a first preset capacity expansion condition if the usage of the physical resources of the blockchain network service platform reaches a first preset threshold; the preset expansion condition comprises the first preset expansion condition.
3. The blockchain network service platform of claim 1, wherein the blockchain network service platform further comprises an interface layer;
the resource layer is further configured to send the usage amount of the physical resource of the blockchain network service platform to the interface layer if the usage amount of the physical resource of the blockchain network service platform reaches a second preset threshold; receiving a state notification sent by the interface layer; the state notification is used for notifying the resource layer that the use condition of the physical resource of the block chain network service platform meets a second preset capacity expansion condition;
the interface layer is configured to receive the usage amount of the physical resource of the blockchain network service platform sent by the resource layer, and provide the usage amount of the physical resource of the blockchain network service platform to a user;
the interface layer is further configured to determine that the usage of the physical resources of the blockchain network service platform meets the second preset expansion condition and send the state notification to the resource layer if an expansion operation performed by a user for the usage of the physical resources of the blockchain network service platform is received; and the preset expansion condition comprises the second preset expansion condition.
4. The block chain web services platform of claim 1, wherein the resource layer further comprises: a public cloud resource and a private cloud resource,
the resource layer is also used for increasing public cloud network resources corresponding to the public cloud resources;
and the resource layer is also used for increasing a physical disk mapped to the container corresponding to the private cloud resource.
5. The blockchain network services platform of claim 1, wherein the resource layer further includes public cloud resources and private cloud resources,
the resource layer is further configured to increase public cloud network resources corresponding to the public cloud resources, and store first data in the block chain network service platform to the public cloud resources;
the resource layer is further configured to add a physical disk mapped to a container corresponding to the private cloud resource, and store second data in the blockchain network service platform to the private cloud resource;
wherein the first data has a higher requirement for security than the second data.
6. A method for expanding a blockchain network service platform, wherein the method is applied to the blockchain network service platform according to any one of claims 1 to 5, and the method comprises:
mounting the physical resources of the block chain network service platform to a network disk, and mapping the network disk to obtain a container; wherein the container is to run code to support a blockchain network; the capacity of the network disk is dynamically increased according to the capacity of the mounted physical resource, and the capacity of the container is dynamically increased according to the capacity of the network disk;
and when the use condition of the physical resources of the block chain network service platform meets a preset capacity expansion condition, adding a physical disk mapped to the network disk through a resource layer of the block chain network service platform.
7. The method according to claim 6, wherein before the physical disk mapped to the network disk is added by the resource layer of the blockchain network service platform when the usage of the physical resource of the blockchain network service platform meets a preset capacity expansion condition, the method includes:
detecting the usage amount of physical resources of the block chain network service platform through the resource layer;
if the usage amount of the physical resources of the block chain network service platform reaches a first preset threshold value, determining that the usage condition of the physical resources of the block chain network service platform meets a first preset capacity expansion condition through the resource layer; the preset expansion condition comprises the first preset expansion condition.
8. The method according to claim 6, wherein when the usage of the physical resources of the blockchain network service platform meets a preset capacity expansion condition, before adding the physical disk mapped to the network disk by the resource layer of the blockchain network service platform, the method includes:
detecting the usage amount of physical resources of the block chain network service platform through the resource layer;
if the usage amount of the physical resources of the blockchain network service platform reaches a second preset threshold value, providing the usage amount of the physical resources of the blockchain network service platform to a user through an interface layer of the blockchain network service platform;
if capacity expansion operation executed by a user aiming at the use amount of the physical resources of the block chain network service platform is received, determining that the use condition of the physical resources of the block chain network service platform meets a second preset capacity expansion condition through an interface layer; and the preset expansion condition comprises a second preset expansion condition.
9. The method of claim 6, wherein the resource layer further comprises public cloud resources and private cloud resources, the method further comprising:
increasing public cloud network resources corresponding to the public cloud resources through the resource layer;
and adding a physical disk mapped to the container corresponding to the private cloud resource through the resource layer.
10. The method of claim 6, wherein the resource layer further comprises public cloud resources and private cloud resources, the method further comprising:
increasing public cloud network resources corresponding to the public cloud resources through the resource layer, and storing first data in the block chain network service platform to the public cloud resources;
adding a physical disk mapped to a container corresponding to the private cloud resource through the resource layer, and storing second data in the block chain network service platform to the private cloud resource;
wherein the first data has a higher requirement for security than the second data.
11. A blockchain network service platform, the blockchain network service platform comprising:
a memory for storing executable instructions;
a processor, configured to execute the executable instructions stored in the memory, and implement the capacity expansion method of the blockchain network service platform according to any one of claims 6 to 10.
12. A storage medium storing executable instructions for causing a processor to perform the method for capacity expansion of a blockchain network service platform according to any one of claims 6 to 10 when the executable instructions are executed.
CN201810935953.5A 2018-08-16 2018-08-16 Block chain network service platform, capacity expansion method thereof and storage medium Active CN109189334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810935953.5A CN109189334B (en) 2018-08-16 2018-08-16 Block chain network service platform, capacity expansion method thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810935953.5A CN109189334B (en) 2018-08-16 2018-08-16 Block chain network service platform, capacity expansion method thereof and storage medium

Publications (2)

Publication Number Publication Date
CN109189334A CN109189334A (en) 2019-01-11
CN109189334B true CN109189334B (en) 2022-06-07

Family

ID=64918496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810935953.5A Active CN109189334B (en) 2018-08-16 2018-08-16 Block chain network service platform, capacity expansion method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN109189334B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666034A (en) * 2019-03-05 2020-09-15 北京京东尚科信息技术有限公司 Container cluster disk management method and device
CN109831526B (en) * 2019-03-12 2022-02-11 中国联合网络通信集团有限公司 Cloud service and network service cooperative processing method, system and storage medium
CN110347689A (en) * 2019-07-12 2019-10-18 全链通有限公司 Date storage method, equipment and computer readable storage medium
CN110489129B (en) * 2019-08-27 2023-09-05 中国工商银行股份有限公司 Public cloud product package generation method and server in blockchain hybrid cloud
CN113506110A (en) * 2019-10-28 2021-10-15 腾讯科技(深圳)有限公司 Data processing method and equipment
CN111913665B (en) * 2020-07-30 2023-11-24 北京星辰天合科技股份有限公司 Storage volume mounting method and device and electronic equipment
CN111966757B (en) * 2020-10-20 2021-04-27 支付宝(杭州)信息技术有限公司 Method and device for managing storage space of intelligent contract account
CN114500553A (en) * 2020-10-23 2022-05-13 中移(苏州)软件技术有限公司 Processing method and system of block chain network, electronic equipment and storage medium
CN112506444A (en) * 2020-12-28 2021-03-16 南方电网深圳数字电网研究院有限公司 Kubernetes cluster-based expansion and contraction capacity control method and device and electronic equipment
CN112685420A (en) * 2020-12-31 2021-04-20 北京存金所贵金属有限公司 Method, device, scheduling controller and system for expanding block chain data

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10574734B2 (en) * 2015-04-09 2020-02-25 Rambus Inc. Dynamic data and compute management
CN106326226B (en) * 2015-06-16 2019-05-07 苏宁易购集团股份有限公司 The method and system of log-on data library service in a kind of public cloud
US10135712B2 (en) * 2016-04-07 2018-11-20 At&T Intellectual Property I, L.P. Auto-scaling software-defined monitoring platform for software-defined networking service assurance
CN106446275A (en) * 2016-10-21 2017-02-22 国云科技股份有限公司 Method for achieving container supporting file system expansion
CN108023742B (en) * 2016-10-31 2021-08-27 阿里巴巴集团控股有限公司 Application capacity expansion method, device and system
CN106897947A (en) * 2017-01-04 2017-06-27 上海易谷网络科技有限公司 A kind of multi-tenant service quick deployment method based on cloud platform
CN106933508B (en) * 2017-02-14 2020-05-12 深信服科技股份有限公司 Application container migration method and device
CN107301022A (en) * 2017-06-27 2017-10-27 北京溢思得瑞智能科技研究院有限公司 A kind of storage access method and system based on container technique
CN107402727A (en) * 2017-08-08 2017-11-28 郑州云海信息技术有限公司 A kind of memory management method and device
CN107426034B (en) * 2017-08-18 2020-09-01 国网山东省电力公司信息通信公司 Large-scale container scheduling system and method based on cloud platform
CN107688322A (en) * 2017-08-31 2018-02-13 天津中新智冠信息技术有限公司 A kind of containerization management system
CN107579931B (en) * 2017-09-08 2019-09-10 杭州云象网络技术有限公司 A kind of block chain, that is, Service Source adaptation method based on Kubernetes
CN107832139A (en) * 2017-09-26 2018-03-23 上海点融信息科技有限责任公司 For the method, apparatus and system for the computing resource for managing block chain link point
CN107704310B (en) * 2017-09-27 2021-06-29 郑州云海信息技术有限公司 Method, device and equipment for realizing container cluster management

Also Published As

Publication number Publication date
CN109189334A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109189334B (en) Block chain network service platform, capacity expansion method thereof and storage medium
CN108965468B (en) Block chain network service platform, chain code installation method thereof and storage medium
CN109194506B (en) Block chain network deployment method, platform and computer storage medium
CN109344000B (en) Block chain network service platform, recovery tool, fault processing method thereof and storage medium
US11700296B2 (en) Client-directed placement of remotely-configured service instances
US9971823B2 (en) Dynamic replica failure detection and healing
JP6599448B2 (en) System and method for providing an end-to-end lifecycle in a multi-tenant application server environment
JP6611798B2 (en) System and method for using global runtime in a multi-tenant application server environment
US9462056B1 (en) Policy-based meta-data driven co-location of computation and datasets in the cloud
EP2186012B1 (en) Executing programs based on user-specified constraints
US7062516B2 (en) Methods, systems, and articles of manufacture for implementing a runtime logging service storage infrastructure
JP5352890B2 (en) Computer system operation management method, computer system, and computer-readable medium storing program
US9648084B2 (en) System and method for providing an in-memory data grid application container
CN111989903B (en) Data caching for cloud services
US10452387B2 (en) System and method for partition-scoped patching in an application server environment
US11991094B2 (en) Metadata driven static determination of controller availability
CN111400036A (en) Cloud application management system, method, device and medium based on server cluster
CN114706690B (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
CN116028163A (en) Method, device and storage medium for scheduling dynamic link library of container group
CN115086166A (en) Computing system, container network configuration method, and storage medium
US20210067599A1 (en) Cloud resource marketplace
CN115103012B (en) Geospatial information microservice integration system and method
CN113485830A (en) Micro-service automatic capacity expansion method for power grid monitoring system
US20240135014A1 (en) Method and system for automatic data protection for limited access cloud data
US20240137360A1 (en) Method and system for performing authentication and object discovery for on-premises cloud service providers

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