CN116016134A - Cross-cluster communication deployment method and device and computer equipment - Google Patents

Cross-cluster communication deployment method and device and computer equipment Download PDF

Info

Publication number
CN116016134A
CN116016134A CN202211686244.0A CN202211686244A CN116016134A CN 116016134 A CN116016134 A CN 116016134A CN 202211686244 A CN202211686244 A CN 202211686244A CN 116016134 A CN116016134 A CN 116016134A
Authority
CN
China
Prior art keywords
cluster
standby
main
forwarding node
configuration
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.)
Pending
Application number
CN202211686244.0A
Other languages
Chinese (zh)
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.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank 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 Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202211686244.0A priority Critical patent/CN116016134A/en
Publication of CN116016134A publication Critical patent/CN116016134A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application relates to a cross-cluster communication deployment method, a cross-cluster communication deployment device, computer equipment, a storage medium and a computer program product. The cross-cluster communication deployment method comprises the following steps: receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information; determining a main cluster and a standby cluster from at least two clusters according to the cluster labels; according to the address information and the port information contained in the configuration information, the cross-cluster communication configuration is carried out on the main cluster and the standby cluster respectively, and through the configuration, the cluster configuration of the main cluster and the standby cluster can be completed at one time, so that the configuration efficiency of a plurality of clusters is improved, the operation is simple, and the efficiency is extremely high.

Description

Cross-cluster communication deployment method and device and computer equipment
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a cross-cluster communication deployment method, apparatus, computer device, storage medium, and computer program product.
Background
With the advent of the technological age and the development of the mobile internet, the pace of network revolution is also faster, the information fusion in the same field or multiple fields is realized, and the process of providing an omnibearing informatization scheme for clients is also faced with new challenges of improving the architecture, supporting the center of gravity transfer and the like. Thus, blockchain technology, a specific implementation of a distributed ledger, by virtue of its natural advantages of storing and managing data, is becoming the preferred way of storing data and transacting data in various fields.
At present, the blockchain application is in a middle-stage exploration stage, the deployment of a plurality of alliance chain networks is in a single-cluster deployment mode, if a cluster service is in a problem, the alliance chain network is likely to fail, and further the service can not be provided outside any more, and the requirements of high availability and large-scale application of the subsequent blockchain application can not be guaranteed, so the high availability deployment of the distributed multi-cluster is a trend, however, the existing alliance chain network needs to log in configuration websites of each cluster in the alliance chain network respectively to perform cluster configuration, the operation is complex, and the efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a cross-cluster communication deployment method, apparatus, computer device, storage medium, and computer program product that can improve the efficiency of configuring multiple clusters.
In a first aspect, the present application provides a method for deployment of cross-cluster communication, including:
receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information;
determining a main cluster and a standby cluster from at least two clusters according to the cluster labels;
and performing cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information.
In one embodiment, the configuration instruction includes a forwarding node label corresponding to the primary cluster and a forwarding node label corresponding to the backup cluster; each cluster comprises at least one node;
after determining the main cluster and the standby cluster from at least two clusters according to the cluster label, the method further comprises:
determining forwarding nodes corresponding to the main clusters from the nodes contained in the main clusters according to the forwarding node labels corresponding to the main clusters, and determining forwarding nodes corresponding to the standby clusters from the nodes contained in the standby clusters according to the forwarding node labels corresponding to the standby clusters; the forwarding node is used for realizing cross-cluster communication.
In one embodiment, the performing cross-cluster communication configuration on the primary cluster and the backup cluster according to the address information included in the configuration information includes:
configuring an address corresponding to a main cluster contained in the address information as an access address of a forwarding node corresponding to the main cluster; configuring a port corresponding to a main cluster contained in the port information as an access port of a forwarding node corresponding to the main cluster;
configuring an address corresponding to a standby cluster contained in the address information as an access address of a forwarding node corresponding to the standby cluster; and configuring a port corresponding to the standby cluster contained in the port information as an access port of the forwarding node corresponding to the standby cluster.
In one embodiment, the method further comprises:
storing signature keys corresponding to the backup clusters into the main clusters;
and storing the signing key corresponding to the main cluster into the standby cluster.
In one embodiment, the method further comprises:
acquiring a data acquisition request sent by the cluster; the data acquisition request comprises a node identifier;
according to the node identification, matching the forwarding nodes of each cluster with corresponding target forwarding nodes;
and controlling the target forwarding node to send target data corresponding to the data acquisition request to the forwarding node of the cluster sending the data acquisition request.
In one embodiment, the controlling the target forwarding node to send the target data corresponding to the data acquisition request to the forwarding node of the cluster that sends the data acquisition request includes:
signing the target data by adopting a signing key stored in the cluster where the target forwarding node is located;
and controlling the target forwarding node to send the signed target data to the forwarding node of the cluster sending the data acquisition request.
In a second aspect, the present application further provides a cross-cluster communication deployment apparatus, including:
the receiving module is used for receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information;
the determining module is used for determining a main cluster and a standby cluster from at least two clusters according to the cluster labels;
and the configuration module is used for carrying out cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the cross-cluster communication deployment method according to any one of the above embodiments.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the cross-cluster communication deployment method of any of the above embodiments.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which when executed by a processor implements the cross-cluster communication deployment method according to any of the above embodiments.
According to the cross-cluster communication deployment method, device, computer equipment, storage medium and computer program product, the deployment of the multi-cluster environment-based alliance chain network is beneficial to realizing high availability and interoperability of the multi-alliance chain network, ensuring large-scale effective landing and stable operation of the application, and the deployment of the cross-cluster alliance chain network is rapidly and automatically completed through integral configuration deployment, so that the large-scale landing speed of the application is greatly increased, the deployment difficulty of a block chain bottom layer is reduced, and the cluster deployment efficiency is accelerated.
Drawings
FIG. 1 is an application environment diagram of a cross-cluster communication deployment method in one embodiment;
FIG. 2 is a flow diagram of a method of cross-cluster communication deployment in one embodiment;
FIG. 3 is a flow diagram of a method of cross-cluster communication deployment in one embodiment;
FIG. 4 is a flow diagram of a method of cross-cluster communication deployment in one embodiment;
FIG. 5 is a block diagram of an architecture of a cross-cluster communication deployment apparatus in one embodiment;
FIG. 6 is a block diagram of a cross-cluster communication deployment apparatus in one embodiment;
FIG. 7 is a block diagram of the configuration modules in a cross-cluster communication deployment apparatus in one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The cross-cluster communication deployment method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network.
For example, the cross-cluster communication deployment method is applied to the terminal 102, and after receiving the configuration instruction, the terminal 102 determines a main cluster and a standby cluster from at least two clusters according to the cluster tag carried by the configuration instruction; and performing cross-cluster communication configuration on the main cluster and the standby cluster according to address information and port information contained in configuration information carried by the configuration instruction, wherein the terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be an intelligent sound box, an intelligent television, an intelligent air conditioner, intelligent vehicle-mounted equipment and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers. The terminal 102 and the server 104 may be connected directly or indirectly through wired or wireless communication means, for example, through a network connection.
For another example, the memory data access method is applied to the server 104, after receiving the configuration instruction, the terminal 102 sends the configuration instruction to the server 104, and the server 104 determines a main cluster and a standby cluster from at least two clusters according to the cluster tag carried by the configuration instruction; and performing cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information carried by the configuration instruction. It will be appreciated that the data storage system may be a stand-alone storage device, or the data storage system may be located on a server, or the data storage system may be located on another terminal.
In one embodiment, a cross-cluster communication deployment method is provided, where the cross-cluster communication deployment method is applied to a processor for illustration, and it is understood that the processor may be located on a terminal or a server. As shown in fig. 2, the cross-cluster communication deployment method includes:
step 202, receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information.
Specifically, the configuration instruction is sent by the terminal, and the configuration instruction refers to a configuration request initiated by a user aiming at a plurality of clusters which want to establish connection.
In this embodiment, the processor receives a configuration instruction sent by a user.
And 204, determining a main cluster and a standby cluster from at least two clusters according to the cluster labels.
The cluster tag refers to an identifier carried by a current configuration instruction, the identifier may be at least one of letters, characters or numbers, and the identifier is used for uniquely identifying a corresponding cluster.
The number of the labels corresponding to the main clusters can be one, and the number of the labels corresponding to the standby clusters can be multiple. As an example, all clusters in the embodiment deploy the organization and the alliance chain network sequentially, the cluster information is preconfigured through the configuration file, and the cluster information includes information such as a master-slave relationship and addresses of all clusters, for example, the cluster with a prime_cluster field is the master cluster, and the other clusters are the slave clusters.
In this embodiment, the processor extracts the label of the primary cluster and the label of the backup cluster included in the configuration instruction, and matches the label of the primary cluster and the label of the backup cluster to the primary cluster and the backup cluster from at least two clusters according to the label of the primary cluster and the label of the backup cluster.
And 206, performing cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information.
In this embodiment, the processor extracts the address information and the port information included in the configuration instruction, and configures the address information and the port information into the main cluster and the standby cluster, so as to complete cross-level group communication configuration, so that the main cluster and the standby cluster can realize communication.
In the cross-cluster communication deployment method, the processor is beneficial to realizing high availability and interoperability of the multi-cluster environment-based alliance chain network by deploying the multi-cluster environment-based alliance chain network, guaranteeing large-scale effective landing and stable operation of the application, and rapidly and automatically completing cross-cluster alliance chain network deployment by integral configuration deployment, so that the large-scale landing speed of the application is greatly increased, the bottom deployment difficulty of the block chain is reduced, and the cluster deployment efficiency is accelerated.
In some alternative embodiments, the federated chain network has the following federated chain network structure: alliance chain organization: an entity representing a service object participating in a blockchain service network; alliance chain alliance: representing a collection of all organizations participating in a blockchain-based business collaboration or business transaction network, a federation typically contains multiple organizations, and non-federation-organization nodes may not be available; federation chain organization nodes: nodes organized in the alliance chain network comprise a peer node and an orderer node, and the number of each type of nodes can be multiple, so that the nodes can be designated by a user during deployment; alliance chain code gateway: and the unified entry service is used for calling the bottom layer block chain node service.
In this embodiment, when any access port receives the incoming data, the processor firstly checks the incoming data, after the check is successful, performs logic check on the incoming data to determine whether a coalition chain network structure corresponding to the incoming data exists, if so, performs library checking, if not, creates new coalition chain network structure information, and determines whether the access port receiving the incoming data is an access port of the main cluster, if so, stores the main cluster, and if not, stores the standby cluster. After the new alliance chain network structure information is successfully created, the new alliance chain network structure authority information is created, and a task is created to start a separate cooperative program to complete the creation of the new alliance chain network structure, wherein the process comprises the generation of a signing key of the new alliance chain network structure and the state monitoring of the new alliance chain network structure.
In some optional embodiments, the database crossing the clusters adopts master-slave synchronization and automatic fault switching, so that the access of alliance (network) metadata, organization metadata and account data on the chains can be realized in multiple clusters in sequence; and Kubernetes containerized deployment is adopted, so the deployment environment crossing the clusters in the embodiment needs to be the Kubernetes clusters; while the clusters use shared storage, such as NAS.
As shown in fig. 3, in some alternative embodiments, the configuration instruction includes a forwarding node label corresponding to the primary cluster and a forwarding node label corresponding to the backup cluster; each cluster comprises at least one node; after step 204, the method further includes: step 205, determining forwarding nodes corresponding to the main cluster from the nodes contained in the main cluster according to the forwarding node labels corresponding to the main cluster, and determining forwarding nodes corresponding to the standby cluster from the nodes contained in the standby cluster according to the forwarding node labels corresponding to the standby cluster; the forwarding node is used for realizing cross-cluster communication.
Only forwarding nodes (orderer nodes) are needed to communicate among the clusters, and the embodiment realizes the intercommunication of the orderer nodes among the clusters by deploying ExternalIP type nodes and services.
The forwarding node label refers to another identifier carried by the current configuration instruction, and the identifier can be at least one of letters, characters or numbers, and is used for uniquely identifying the nodes in the corresponding cluster.
The processor matches the corresponding node from the main cluster to the corresponding node as the orderer node of the main cluster and matches the corresponding node from the standby cluster to the corresponding node as the orderer node of the standby cluster according to the forwarding node label corresponding to the main cluster and the forwarding node label corresponding to the standby cluster contained in the configuration instruction.
As shown in fig. 4, in some alternative embodiments, step 206 includes: step 2061, configuring an address corresponding to the main cluster contained in the address information as an access address of a forwarding node corresponding to the main cluster; configuring a port corresponding to a main cluster contained in the port information as an access port of a forwarding node corresponding to the main cluster; step 2062, configuring the address corresponding to the backup cluster contained in the address information as the access address of the forwarding node corresponding to the backup cluster; and configuring the port corresponding to the standby cluster contained in the port information as an access port of the forwarding node corresponding to the standby cluster.
In this embodiment, the processor sequentially deploys the orderer node, the peer node and the chain code gateway service in the main cluster and the standby cluster according to the specified parameters, and the types of Kubernetes resources required to be deployed by the alliance network include statefulset, secret (including tls and msp) and service, endpoints, configmap.
As an example, when the processor configures the main cluster idc1. Clusterin 1, the cluster only deploys statefulset resources of the orderer node, that is, only configures the orderer node that provides the actual service, the processor modifies the orderer address, the service address and the port in the configuration file of the orderer node according to the address corresponding to the main cluster and the port corresponding to the main cluster included in the port information, which are included in the address information, and then performs the actual access forwarding through the corresponding end (for storing the access address), where the end type of the orderer node of the present cluster is inter ip, and the end type of the orderer node that can access the main cluster idc1. Clusterin 1 through the internal+internal port is Externalip, and the end type of the orderer node of the non-main cluster idc1. Clusterin 1 is Externalip, and then can access to the other cluster nodes through the virtual machine ip) +external exposed port of the other cluster nodes (for storing the access address), so that the end type of the end node of the present cluster is the service 1. Clusterin 1.
In this embodiment, each cluster deploys a coalition chain management service, and when deployment, deployment and management of coalition chains of all clusters can be completed only by calling the coalition chain management service of the cluster in one cluster, and service can automatically and sequentially call the coalition chain management service of the corresponding cluster in the master and slave clusters through a cluster configuration file to complete deployment and management of the coalition chains.
In some alternative embodiments, the cross-cluster communication deployment method further comprises: storing signature keys corresponding to each backup cluster into a main cluster; and storing the signing key corresponding to the main cluster into the standby cluster.
In this embodiment, the processor first configures the main cluster, stores the root certificate and the certificate private key in the database of the main cluster, then sequentially deploys in the standby cluster, pulls the CA root certificate and the certificate private key from the database, and creates the same organization. The Kubernetes resource types required to be deployed by the organization are statefulset, secret (including tls and msp), service, endpoints.
In some alternative embodiments, the cross-cluster communication deployment method further comprises: acquiring a data acquisition request sent by a cluster; the data acquisition request contains a node identifier; according to the node identification, matching the forwarding nodes of each cluster with corresponding target forwarding nodes; and controlling the target forwarding node to send target data corresponding to the data acquisition request to the forwarding node of the cluster sending the data acquisition request.
The data acquisition request refers to a data call request across clusters.
The node identifier refers to an identifier carried by the current data acquisition request, the identifier can be at least one of letters, characters or numbers, and the identifier is used for uniquely identifying the corresponding forwarding node.
In some optional embodiments, the step of controlling the target forwarding node to send the target data corresponding to the data acquisition request to the forwarding node of the cluster that sent the data acquisition request includes: signing the target data by adopting a signing key stored in the cluster where the target forwarding node is located; and the control target forwarding node sends the signed target data to the forwarding node of the cluster sending the data acquisition request.
In this embodiment, the processor encrypts the data by using the signing key stored in the main cluster or the standby cluster, so as to implement encrypted communication of the data and ensure data transmission security.
In the cross-cluster communication deployment method, the processor can realize node intercommunication among a plurality of clusters, and can complete cluster configuration of the main cluster and the standby cluster at one time, so that the configuration efficiency of the plurality of clusters is improved, the operation is simple, and the efficiency is extremely high.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a memory data access device for realizing the cross-cluster communication deployment method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more cross-cluster communication deployment devices provided below may refer to the limitation of the cross-cluster communication deployment method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 5, there is provided a cross-cluster communication deployment apparatus 500 comprising: a receiving module 502, a determining module 504, and a configuring module 506, wherein: the receiving module 502 is configured to receive a configuration instruction, where the configuration instruction carries a cluster tag and configuration information; the determining module 504 is configured to determine a primary cluster and a backup cluster from at least two clusters according to the cluster label; the configuration module 506 is configured to perform cross-cluster communication configuration on the primary cluster and the backup cluster according to the address information and the port information included in the configuration information.
As shown in fig. 6, in some alternative embodiments, the configuration instruction includes a forwarding node label corresponding to the primary cluster and a forwarding node label corresponding to the backup cluster; each cluster comprises at least one node; the cross-cluster communication deployment apparatus 500 further includes: the node determining module 505 is configured to determine, according to a forwarding node label corresponding to the primary cluster, a forwarding node corresponding to the primary cluster from nodes included in the primary cluster, and determine, according to a forwarding node label corresponding to the backup cluster, a forwarding node corresponding to the backup cluster from nodes included in the backup cluster; the forwarding node is used for realizing cross-cluster communication.
As shown in fig. 7, in some alternative embodiments, the configuration module 506 includes: a first configuration unit 5061, configured to configure an address corresponding to a primary cluster included in the address information as an access address of a forwarding node corresponding to the primary cluster; configuring a port corresponding to a main cluster contained in the port information as an access port of a forwarding node corresponding to the main cluster; a second configuration unit 5062, configured to configure an address corresponding to the backup cluster included in the address information as an access address of a forwarding node corresponding to the backup cluster; and configuring the port corresponding to the standby cluster contained in the port information as an access port of the forwarding node corresponding to the standby cluster.
In some alternative embodiments, cross-cluster communication deployment apparatus 500 is further configured to: storing signature keys corresponding to each backup cluster into a main cluster; and storing the signing key corresponding to the main cluster into the standby cluster.
In some alternative embodiments, cross-cluster communication deployment apparatus 500 is further configured to: acquiring a data acquisition request sent by a cluster; the data acquisition request contains a node identifier; according to the node identification, matching the forwarding nodes of each cluster with corresponding target forwarding nodes; and controlling the target forwarding node to send target data corresponding to the data acquisition request to the forwarding node of the cluster sending the data acquisition request.
In some alternative embodiments, cross-cluster communication deployment apparatus 500 is further configured to: signing the target data by adopting a signing key stored in the cluster where the target forwarding node is located; and the control target forwarding node sends the signed target data to the forwarding node of the cluster sending the data acquisition request.
The modules in the cross-cluster communication deployment device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a cross-cluster communication deployment method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information;
determining a main cluster and a standby cluster from at least two clusters according to the cluster labels;
and performing cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information.
In some alternative embodiments, the configuration instruction includes a forwarding node label corresponding to the primary cluster and a forwarding node label corresponding to the backup cluster; each cluster comprises at least one node;
the computer program when executed by the processor further performs the steps of:
determining forwarding nodes corresponding to the main clusters from the nodes contained in the main clusters according to the forwarding node labels corresponding to the main clusters, and determining forwarding nodes corresponding to the standby clusters from the nodes contained in the standby clusters according to the forwarding node labels corresponding to the standby clusters; the forwarding node is used for realizing cross-cluster communication.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
configuring an address corresponding to a main cluster contained in the address information as an access address of a forwarding node corresponding to the main cluster; configuring a port corresponding to a main cluster contained in the port information as an access port of a forwarding node corresponding to the main cluster;
the address corresponding to the standby cluster contained in the address information is configured as the access address of the forwarding node corresponding to the standby cluster; and configuring the port corresponding to the standby cluster contained in the port information as an access port of the forwarding node corresponding to the standby cluster.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
storing signature keys corresponding to each backup cluster into a main cluster;
and storing the signing key corresponding to the main cluster into the standby cluster.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
acquiring a data acquisition request sent by a cluster; the data acquisition request contains a node identifier;
according to the node identification, matching the forwarding nodes of each cluster with corresponding target forwarding nodes;
and controlling the target forwarding node to send target data corresponding to the data acquisition request to the forwarding node of the cluster sending the data acquisition request.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
signing the target data by adopting a signing key stored in the cluster where the target forwarding node is located;
and the control target forwarding node sends the signed target data to the forwarding node of the cluster sending the data acquisition request.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information;
determining a main cluster and a standby cluster from at least two clusters according to the cluster labels;
and performing cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information.
In some alternative embodiments, the configuration instruction includes a forwarding node label corresponding to the primary cluster and a forwarding node label corresponding to the backup cluster; each cluster comprises at least one node;
the computer program when executed by the processor further performs the steps of:
determining forwarding nodes corresponding to the main clusters from the nodes contained in the main clusters according to the forwarding node labels corresponding to the main clusters, and determining forwarding nodes corresponding to the standby clusters from the nodes contained in the standby clusters according to the forwarding node labels corresponding to the standby clusters; the forwarding node is used for realizing cross-cluster communication.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
configuring an address corresponding to a main cluster contained in the address information as an access address of a forwarding node corresponding to the main cluster; configuring a port corresponding to a main cluster contained in the port information as an access port of a forwarding node corresponding to the main cluster;
the address corresponding to the standby cluster contained in the address information is configured as the access address of the forwarding node corresponding to the standby cluster; and configuring the port corresponding to the standby cluster contained in the port information as an access port of the forwarding node corresponding to the standby cluster.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
storing signature keys corresponding to each backup cluster into a main cluster;
and storing the signing key corresponding to the main cluster into the standby cluster.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
acquiring a data acquisition request sent by a cluster; the data acquisition request contains a node identifier;
according to the node identification, matching the forwarding nodes of each cluster with corresponding target forwarding nodes;
and controlling the target forwarding node to send target data corresponding to the data acquisition request to the forwarding node of the cluster sending the data acquisition request.
In some alternative embodiments, the computer program when executed by the processor further performs the steps of:
signing the target data by adopting a signing key stored in the cluster where the target forwarding node is located;
and the control target forwarding node sends the signed target data to the forwarding node of the cluster sending the data acquisition request.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method for deployment of cross-cluster communication, comprising:
receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information;
determining a main cluster and a standby cluster from at least two clusters according to the cluster labels;
and performing cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information.
2. The method of claim 1, wherein the configuration instruction includes a forwarding node label corresponding to the primary cluster and a forwarding node label corresponding to the backup cluster; each cluster comprises at least one node;
after determining the main cluster and the standby cluster from at least two clusters according to the cluster label, the method further comprises:
determining forwarding nodes corresponding to the main clusters from the nodes contained in the main clusters according to the forwarding node labels corresponding to the main clusters, and determining forwarding nodes corresponding to the standby clusters from the nodes contained in the standby clusters according to the forwarding node labels corresponding to the standby clusters; the forwarding node is used for realizing cross-cluster communication.
3. The method according to claim 2, wherein the performing cross-cluster communication configuration on the primary cluster and the backup cluster according to address information included in the configuration information includes:
configuring an address corresponding to a main cluster contained in the address information as an access address of a forwarding node corresponding to the main cluster; configuring a port corresponding to a main cluster contained in the port information as an access port of a forwarding node corresponding to the main cluster;
configuring an address corresponding to a standby cluster contained in the address information as an access address of a forwarding node corresponding to the standby cluster; and configuring a port corresponding to the standby cluster contained in the port information as an access port of the forwarding node corresponding to the standby cluster.
4. The method according to claim 1, wherein the method further comprises:
storing signature keys corresponding to the backup clusters into the main clusters;
and storing the signing key corresponding to the main cluster into the standby cluster.
5. The method according to claim 4, wherein the method further comprises:
acquiring a data acquisition request sent by the cluster; the data acquisition request comprises a node identifier;
according to the node identification, matching the forwarding nodes of each cluster with corresponding target forwarding nodes;
and controlling the target forwarding node to send target data corresponding to the data acquisition request to the forwarding node of the cluster sending the data acquisition request.
6. The method according to claim 5, wherein the controlling the target forwarding node to send the target data corresponding to the data acquisition request to the forwarding node of the cluster that sent the data acquisition request includes:
signing the target data by adopting a signing key stored in the cluster where the target forwarding node is located;
and controlling the target forwarding node to send the signed target data to the forwarding node of the cluster sending the data acquisition request.
7. A cross-cluster communication deployment apparatus, comprising:
the receiving module is used for receiving a configuration instruction, wherein the configuration instruction carries a cluster tag and configuration information;
the determining module is used for determining a main cluster and a standby cluster from at least two clusters according to the cluster labels;
and the configuration module is used for carrying out cross-cluster communication configuration on the main cluster and the standby cluster according to the address information and the port information contained in the configuration information.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the cross-cluster communication deployment method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the cross-cluster communication deployment method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program when executed by a processor implements the steps of the cross-cluster communication deployment method of any of claims 1 to 6.
CN202211686244.0A 2022-12-27 2022-12-27 Cross-cluster communication deployment method and device and computer equipment Pending CN116016134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211686244.0A CN116016134A (en) 2022-12-27 2022-12-27 Cross-cluster communication deployment method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211686244.0A CN116016134A (en) 2022-12-27 2022-12-27 Cross-cluster communication deployment method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN116016134A true CN116016134A (en) 2023-04-25

Family

ID=86020419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211686244.0A Pending CN116016134A (en) 2022-12-27 2022-12-27 Cross-cluster communication deployment method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN116016134A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527507A (en) * 2020-12-21 2021-03-19 武汉联影医疗科技有限公司 Cluster deployment method and device, computer equipment and storage medium
CN114157668A (en) * 2020-08-17 2022-03-08 中国电信股份有限公司 Multi-tenant cross-cluster networking method, communication system and readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157668A (en) * 2020-08-17 2022-03-08 中国电信股份有限公司 Multi-tenant cross-cluster networking method, communication system and readable storage medium
CN112527507A (en) * 2020-12-21 2021-03-19 武汉联影医疗科技有限公司 Cluster deployment method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111213340B (en) Selecting attestation delegation for cryptographic functions and making it secure
US11728992B2 (en) Cryptlet binding key graph
US10833858B2 (en) Secure cryptlet tunnel
US10740455B2 (en) Encave pool management
US20200067726A1 (en) Iot provisioning service
CN111930851B (en) Control data processing method, device, medium and electronic equipment of block chain network
US10528722B2 (en) Enclave pool shared key
US20220239496A1 (en) Blockchain consensus method, device and system
CN113711536A (en) Extracting data from a blockchain network
JP2019200580A (en) Decentralized ledger system, decentralized ledger subsystem, and decentralized ledger node
US10664591B2 (en) Enclave pools
US10324701B1 (en) Rapid deployment of computing instances
US12069146B2 (en) Management services for distributed computing architectures using rolling changes
CN102917012A (en) Storage and communication de-duplication
CN105095103A (en) Storage device management method and device used for cloud environment
CN113839814A (en) Decentralized Kubernetes cluster federal implementation method and system
CN114996053A (en) Remote volume replication transmission method, system, device and storage medium
CN118051344A (en) Method and device for distributing hardware resources and hardware resource management system
WO2024045552A1 (en) Data processing method and related devices
CN116401222A (en) File synchronization method, device, system, equipment and storage medium
CN116016134A (en) Cross-cluster communication deployment method and device and computer equipment
CN116389502B (en) Cross-cluster scheduling system, method, device, computer equipment and storage medium
CN116662016B (en) Port switching method, device, computer equipment, storage medium and program product
US11405364B1 (en) Privacy-preserving endorsements in blockchain transactions
CN118433257A (en) Node resource processing method, device, equipment and storage medium based on block chain

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