Path construction method and device

By obtaining and mapping the IP addresses of the scheduling unit in the cloud service and automatically establishing the transmission path, the problem of manual configuration of IP addresses in the prior art is solved, and the efficiency of establishing and managing data backup paths is improved.

CN119232746APending Publication Date: 2024-12-31HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311446337.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-29
Filing Date
2023-10-31
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

When establishing data backup paths between different regions, the prior art requires manual allocation of IP addresses and configuring routes, resulting in cumbersome processes, slow speed and low efficiency.

Method used

By receiving user-triggered construction instructions, obtaining the IP address of the scheduling unit in the cloud service, and establishing a transmission path according to the mapping relationship, avoiding manual configuration of IP addresses, improving the speed of IP address acquisition and configuration, and improving the efficiency of transmission path establishment.

Benefits of technology

It realizes the rapid establishment and management of data backup paths between different regions, improves the efficiency and ease of use of data backup, and reduces the cumbersomeness of manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232746A_ABST
    Figure CN119232746A_ABST
Patent Text Reader

Abstract

The invention discloses a path construction method and device, and relates to the field of computers. And the first computing device receives a construction instruction which is triggered by a user and carries an identifier of a first cloud service deployed in the first area and an identifier of a second cloud service deployed in the second area, and establishes communication connection between the first cloud service and the second cloud service. The first computing device obtains the IP address of each scheduling unit in the first cloud service and the second cloud service, indicates the first scheduling unit, and establishes a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit corresponding to the first scheduling unit in the mapping relation. The mapping relationship represents a corresponding relationship between the scheduling units for establishing the transmission path in the first cloud service and the second cloud service. Therefore, the speed of acquiring the IP address is accelerated under the condition that a user does not manually distribute the IP address and the route, and the efficiency of establishing the transmission path between the first scheduling unit and the second scheduling unit is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on June 29, 2023, with application number 202310786183.3 and application name “A method, device and other equipment for replicating paths”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of computers, and in particular to a path construction method and device. Background Art

[0003] Data backup refers to the process of copying data from a source location to a destination location to prevent data loss, damage, or unavailability. During the data backup process, a backup path needs to be established between the device at the source location and the device at the destination location. To establish a backup path for devices (such as physical machines) in different regions, usually, IP addresses are manually assigned to physical machines in different regions, routes are configured, and the connection relationship between physical machines in different regions is determined, and then a backup path is established between a physical machine in one region and a physical machine in another region. However, manual allocation of IP addresses and routing configuration is cumbersome and slow, which leads to low data backup efficiency. Summary of the invention

[0004] The present application provides a path construction method and device to solve the problem of low efficiency of data backup.

[0005] In a first aspect, the present application provides a path construction method. The path construction method can be applied to a computer system or a computing device applied to the computer system to implement the path construction method, such as a server. The path construction method includes: a first computing device receives a construction instruction triggered by a user and carrying an identifier of a first cloud service deployed in a first area and an identifier of a second cloud service deployed in a second area, and then establishes a communication connection between the first cloud service and the second cloud service. The first computing device obtains the IP address of each scheduling unit in the first cloud service and the second cloud service, and instructs the first scheduling unit in the first cloud service to establish a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit in the second cloud service corresponding to the first scheduling unit in the mapping relationship. The first scheduling unit is a scheduling unit in the first cloud service, and the second scheduling unit is one or more scheduling units in the second cloud service. The aforementioned mapping relationship represents the corresponding relationship between the scheduling units that establish the transmission path in the first cloud service and the second cloud service.

[0006] In the present application, since the IP address of the scheduling unit is constructed by the computing device running the scheduling unit when the scheduling unit is created, the first computing device can directly obtain the IP address of the scheduling unit in the first cloud service and the IP address of the scheduling unit in the second cloud service, thereby improving the speed of obtaining the IP address, and thus improving the efficiency of establishing the transmission path. The first computing device establishes a communication connection between the first cloud service and the second cloud service according to the identifiers of the first cloud service and the second cloud service indicated by the user, thereby providing a communication link for the first computing device to obtain the IP address of the scheduling unit under the second cloud service, thereby improving the efficiency of the first computing device to obtain the IP address of the scheduling unit under the second cloud service, and further improving the efficiency of establishing the transmission path between the first scheduling unit and the second scheduling unit. In addition, the first computing device instructs the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the second scheduling unit corresponding to the first scheduling unit indicated by the mapping relationship, thereby avoiding the manual configuration of the IP address of the second scheduling unit for the first scheduling unit, improving the configuration speed of the IP address of the second scheduling unit, and further improving the efficiency of establishing the transmission path between the first scheduling unit and the second scheduling unit.

[0007] In a possible implementation, the path construction method further includes: the first computing device establishes a mapping relationship between the IP address of the first scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service.

[0008] In the present application, the first computing device establishes a corresponding relationship between the first scheduling unit and the IP addresses of all scheduling units in the second cloud service to obtain a mapping relationship. In other words, the first computing device fully interconnects and matches the IP addresses of the scheduling units in the first cloud service with the IP addresses of the scheduling units in the second cloud service, so as to facilitate the subsequent first scheduling unit to send data to any scheduling unit in the second cloud service, reduce the time spent on establishing / configuring the transmission path before data transmission, and thus improve the efficiency of data transmission.

[0009] In one possible implementation, the above-mentioned path construction also includes: the first computing device establishes a mapping relationship between the IP address of the first scheduling unit and the IP addresses of one or more scheduling units in the second cloud service, and the label of the first scheduling unit is the same as the label of one or more scheduling units in the second cloud service.

[0010] In the present application, the mapping relationship only indicates the IP address of the first scheduling unit and the IP addresses of one or more scheduling units specified in the second cloud service, which reduces the number of IP addresses configured for the first scheduling unit, thereby speeding up the establishment of the transmission path and improving the efficiency of constructing the transmission path.

[0011] In a possible implementation, the first computing device obtains the IP address of the scheduling unit in the first cloud service, including: if the scheduling unit in the first cloud service is increased, the first computing device obtains the IP address of the scheduling unit in the first cloud service. The mapping relationship is used to indicate: the corresponding relationship between the scheduling unit added in the first cloud service and the scheduling unit in the second cloud service.

[0012] In the present application, if the number of scheduling units in the first cloud service increases, that is, when the first cloud service is expanded, the first computing device instructs the first scheduling unit to establish a transmission path with the second scheduling unit based on the constructed mapping relationship, so that when the first cloud service is expanded, the newly added scheduling unit can also establish a connection with the scheduling unit in the second cloud service in a timely manner, avoiding the need to manually configure the IP and establish the transmission path, which is cumbersome to operate, thereby speeding up the establishment of the transmission path when the first cloud service is expanded, and improving the efficiency of constructing the transmission path.

[0013] In a possible implementation, the first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device, including: if the scheduling unit in the second cloud service is increased, the first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device. The mapping relationship is used to indicate the corresponding relationship between the scheduling unit in the first cloud service and the scheduling unit added in the second cloud service.

[0014] In the present application, if the number of scheduling units in the second cloud service increases, that is, when the second cloud service is expanded, the first computing device instructs the first scheduling unit to establish a transmission path with the second scheduling unit based on the constructed mapping relationship, so that when the second cloud service is expanded, the newly added scheduling unit can also establish a connection with the scheduling unit in the first cloud service in a timely manner, avoiding the need to manually configure the IP and establish the transmission path, which is cumbersome to operate, thereby speeding up the establishment of the transmission path when the first cloud service is expanded, and improving the efficiency of constructing the transmission path.

[0015] In a possible implementation, the first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device, including: if the scheduling unit in the second cloud service is reduced, the first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device, and determines the IP address of the scheduling unit reduced by the second cloud service. Then, the first computing device instructs the first scheduling unit to delete the transmission path corresponding to the IP address of the reduced scheduling unit.

[0016] In the present application, if the number of scheduling units in the second cloud service is reduced, the first computing device will update the transmission path between the scheduling units in the first cloud service and the scheduling units in the second cloud service, thereby avoiding the need to manually delete the transmission path between the scheduling units when the second cloud service is reduced in capacity, which is cumbersome to operate. This speeds up the deletion of the transmission path when the second cloud service is reduced in capacity, reduces transmission errors caused by the unavailability of the IP addresses of some scheduling units due to the reduction in capacity of the second cloud service, and improves the availability and ease of use of data transmission between scheduling units.

[0017] In a possible implementation, two possible examples are provided below for the first computing device to establish a communication connection between the first cloud service and the second cloud service according to the identifiers of the first cloud service and the second cloud service.

[0018] Example 1: A first computing device establishes a connection between a first cloud service and a second cloud service through a virtual private network (VPN).

[0019] Example 2: The first computing device establishes a connection between the first cloud service and the second cloud service through a direct connection channel provided by the cloud computing platform.

[0020] In a possible implementation, a container orchestration and management system K8S is deployed in the cloud computing platform, and the scheduling unit is a container set Pod.

[0021] In a possible implementation, the first computing device obtains the IP address of the scheduling unit in the first cloud service, including: the first computing device subscribes to the Pod view information of the first area, and the Pod view information includes the IP address of the Pod in the first cloud service.

[0022] In the second aspect, the present application provides a path construction device. The path construction device is applied to a computer system or to a computing device that supports the computer system to implement a path construction method. The path construction device includes various modules for executing the positioning method in the first aspect or any optional implementation of the first aspect. The path construction device is applied to a computing device running a cloud computing platform. The computing devices are distributed in at least two areas. Each computing device is provided with at least one scheduling unit. Each scheduling unit is configured with a network protocol IP address by the computing device when creating each scheduling unit. The path construction device is deployed on a first computing device in the first area, and the second computing device belongs to the second area. By way of example, the path construction device includes: a receiving module, a communication establishment module, an acquisition module, and a path establishment module. Among them,

[0023] The receiving module is used to receive a construction instruction from a user, where the construction instruction carries an identifier of a first cloud service deployed in a first area and an identifier of a second cloud service deployed in a second area.

[0024] The communication establishing module is used to establish a communication connection between the first cloud service and the second cloud service according to the identifier of the first cloud service and the identifier of the second cloud service.

[0025] The acquisition module is used to acquire the IP address of each scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service sent by the second computing device.

[0026] A path establishment module is used to instruct the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit corresponding to the first scheduling unit in a mapping relationship; the first scheduling unit is a scheduling unit in the first cloud service, and the second scheduling unit is one or more scheduling units in the second cloud service. The mapping relationship is used to indicate the correspondence between the scheduling units that establish the transmission path in the first cloud service and the second cloud service.

[0027] In a possible implementation, the path construction module further includes a first relationship establishment module, which is used to establish a mapping relationship between the IP address of the first scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service.

[0028] In a possible implementation, the path construction module further includes a second relationship establishment module. The second relationship establishment module is used to establish a mapping relationship between the IP address of the first scheduling unit and the IP addresses of one or more scheduling units in the second cloud service. The label of the first scheduling unit is the same as the label of the one or more scheduling units in the second cloud service.

[0029] In a possible implementation, the acquisition module is specifically used to acquire the IP address of the scheduling unit in the first cloud service if the scheduling unit in the first cloud service is increased. The mapping relationship is used to indicate the corresponding relationship between the scheduling unit added in the first cloud service and the scheduling unit in the second cloud service.

[0030] In a possible implementation, the acquisition module is specifically used to acquire the IP address of the scheduling unit in the second cloud service sent by the second computing device if the scheduling unit in the second cloud service is increased. The mapping relationship is used to indicate the corresponding relationship between the scheduling unit in the first cloud service and the scheduling unit added in the second cloud service.

[0031] In one possible implementation, the above-mentioned acquisition module is specifically used to obtain the IP address of the scheduling unit in the second cloud service sent by the second computing device if the scheduling unit in the second cloud service is reduced, determine the IP address of the scheduling unit reduced in the second cloud service, and then instruct the first scheduling unit to delete the transmission path corresponding to the IP address of the reduced scheduling unit.

[0032] In a possible implementation, a container orchestration and management system K8S is deployed in the cloud computing platform, and the scheduling unit is a container set Pod.

[0033] In a possible implementation, the acquisition module is specifically used to subscribe to the Pod view information of the first area, where the Pod view information includes the IP address of the Pod in the first cloud service.

[0034] In a third aspect, the present application provides a chip, which includes: a processor and a power supply circuit; the power supply circuit is used to supply power to the processor, and the processor is used to execute the method in the first aspect or any possible implementation of the first aspect.

[0035] In a fourth aspect, the present application provides a computing device. The computing device includes a memory and a processor, the memory is used to store computer instructions; when the processor executes the computer instructions, the method in the first aspect or any possible implementation of the first aspect is implemented.

[0036] In a fifth aspect, the present application provides a computer-readable storage medium. The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by a processing device, the method in the first aspect or any possible implementation of the first aspect is implemented.

[0037] In a sixth aspect, the present application provides a computer program product. The computer program product includes a computer program or instructions, and when the computer program or instructions are executed by a processing device, the method in the first aspect or any possible implementation of the first aspect is implemented.

[0038] The beneficial effects of the second to sixth aspects above can refer to the description of the first aspect or any possible implementation of the first aspect, and will not be repeated here. Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 An application scenario diagram of a computer system provided for this application;

[0040] Figure 2 A schematic diagram of the process of the path construction method provided in this application;

[0041] Figure 3 A flow chart of a path construction method when a scheduling unit is added provided in the present application;

[0042] Figure 4 A flow chart of a path construction method when the scheduling unit is reduced provided in the present application;

[0043] Figure 5 A schematic diagram of the structure of a path construction device provided in this application Figure 1 ;

[0044] Figure 6 A schematic diagram of the structure of a path construction device provided in this application Figure 2 ;

[0045] Figure 7 A schematic diagram of the structure of a computing device provided for this application;

[0046] Figure 8 A schematic diagram of the structure of a computer cluster provided for this application;

[0047] Fig. 9 A schematic diagram of the connection between computing devices provided for this application. DETAILED DESCRIPTION

[0048] To facilitate understanding, the technical terms involved in this application are first introduced.

[0049] Cloud computing platform refers to a platform that provides computing resources and services through the Internet. Based on virtualization technology, cloud computing platform abstracts and aggregates computing, storage, network and other resources, allowing users to use these resources on demand without having to worry about the underlying physical hardware and infrastructure.

[0050] A virtual private cloud (VPC) is a logically isolated, user-specific virtual network environment created in a public cloud environment. VPC allows users to build their own virtual networks in the cloud platform and communicate securely and controllably with other resources (such as cloud servers, storage, databases, etc.).

[0051] In cloud computing, a region refers to a geographical area divided by a cloud service provider around the world. Each region is usually composed of one or more data centers that can provide a variety of cloud services, such as computing, storage, and databases.

[0052] Kubernetes (K8s) is an open source container orchestration and management system for automating the deployment, expansion, and management of containerized applications. The goal of K8s is to provide a reliable and scalable platform for deploying and managing containers on multiple hosts.

[0053] A scheduling unit (Pod) is the smallest schedulable unit in the container orchestration and management system. For example, a pod in K8s. A scheduling unit can include one or more containers that share network and storage resources and are scheduled and deployed together on the same host.

[0054] An Internet Protocol (IP) address is a digital label used to uniquely identify and locate a device on a network. IPv4 (internet protocol version 4) and IPv6 (internet protocol version 6) are two common versions of IP addresses.

[0055] As more and more businesses are deployed on cloud computing platforms, the types of businesses are also increasing. To meet business needs, cloud computing platforms can be optimized. For example, users' needs for disaster recovery or backup of data on cloud computing platforms are increasing. Therefore, it is necessary to configure backup paths between different regions to achieve cross-region data backup or disaster recovery.

[0056] In order to configure backup paths between different regions and perform cross-region data backup or disaster recovery, a replication cluster is usually deployed based on physical machines for cross-region interconnection. The above-mentioned deployment of a replication cluster based on physical machines for cross-region interconnection means that a network is planned for each physical machine, and a backup path for each physical machine is configured according to the network plan.

[0057] For example, the user manually assigns an IP address and configures a route for each physical machine in area a and area b, and creates an address pool a and an address pool b in area a and area b respectively, which include the IP addresses of the physical machines for which a backup path needs to be built. Then, the IP address in address pool b can be configured for the physical machine corresponding to the IP address in address pool a, so that the physical machine corresponding to the IP address in address pool a can establish a backup path with the physical machine corresponding to the IP address in address pool b according to the IP address in address pool b.

[0058] The IP address and route of the physical machine need to be manually configured by the user. When establishing a backup path, the user also needs to manually configure the IP address of the remote physical machine for the physical machine. Therefore, in the process of establishing a backup path, multiple manual operations are required, the configuration process is cumbersome, and the speed is slow. As a result, when the transmission rate is constant, the backup efficiency is low.

[0059] In order to solve the problem that the above-mentioned backup path needs to be manually established, the establishment process is cumbersome, resulting in a slow speed. The present application proposes a path construction method, which includes: a first computing device receives a construction instruction triggered by a user and carries an identifier of a first cloud service deployed in a first area, and an identifier of a second cloud service deployed in a second area, and then establishes a communication connection between the first cloud service and the second cloud service. The first computing device obtains the IP address of each scheduling unit in the first cloud service and the second cloud service, and instructs the first scheduling unit in the first cloud service to establish a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit in the second cloud service corresponding to the first scheduling unit in the mapping relationship. The aforementioned mapping relationship represents the corresponding relationship between the scheduling units that establish the transmission path in the first cloud service and the second cloud service.

[0060] In the present application, since the IP address of the scheduling unit is constructed by the computing device running the scheduling unit when the scheduling unit is created, the first computing device can directly obtain the IP address of the scheduling unit in the first cloud service and the IP address of the scheduling unit in the second cloud service, thereby improving the speed of obtaining the IP address, and thus improving the efficiency of establishing the transmission path. In addition, the first computing device instructs the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the second scheduling unit corresponding to the first scheduling unit indicated by the mapping relationship, thereby avoiding manual configuration of the IP address of the second scheduling unit for the first scheduling unit, improving the configuration speed of the IP address of the second scheduling unit, and further improving the efficiency of establishing the transmission path between the first scheduling unit and the second scheduling unit.

[0061] The path construction method provided in this application can be applied to Figure 1 The computer system shown in FIG. Figure 1 As shown, Figure 1 An application scenario diagram of a computer system provided in the present application. The computer system includes area A and area B. Area A and area B can communicate with each other by wire or by wireless. At least one cloud service is deployed in both area A and area B.

[0062] For example, cloud service a is deployed in region a, and cloud service b is deployed in region b.

[0063] The above-mentioned wired communication can be: Ethernet, optical fiber, cloud direct connect, and various peripheral component interconnect express (PCIe) buses set inside the computer system to connect area a and area b. Cloud direct connect refers to a physical dedicated line that directly connects the local network to the cloud service provider's data center or other regional networks to achieve high-speed, low-latency, secure and reliable connection.

[0064] The wireless communication may be: Internet, cloud connection, wireless fidelity (WIFI) and ultra wide band (UWB) technology, etc. Cloud connection refers to the technology and service of connecting a local network to other cloud service providers or other regional networks through the Internet.

[0065] In one possible scenario, computing devices such as servers are deployed in both area a and area b, and a cloud computing platform runs on the computing devices. For example, if the cloud computing platform has a container orchestration and management system (such as K8s), K8s runs on the computing devices.

[0066] In a possible example, the computer system may further include a terminal 110 , a terminal 120 , and a terminal 130 .

[0067] Terminal 110, terminal 120, and terminal 130 can be a mobile phone, a tablet computer, a handheld computer, a personal computer (PC), a cellular phone, a personal digital assistant (PDA), a wearable device (such as a smart watch), a smart home device (such as a television), a car computer, a game console, and an augmented reality (AR) / virtual reality (VR) device, etc. This application does not impose any special restrictions on the specific device forms of terminal 110, terminal 120, and terminal 130.

[0068] It should be noted that Figure 1 The illustrated computer system architecture is only an example, and the device type or number within the system can be configured according to actual needs, and the embodiments of the present application are not limited thereto. For example, the computer system may also include more terminals.

[0069] On the one hand, the present application provides a path construction method, which can be applied in Figure 1The computer system shown may be an infrastructure for providing cloud services, and a cloud computing platform runs on the infrastructure for providing cloud services. The infrastructure includes at least two areas, and computing devices are deployed in each of the at least two areas. The cloud services in each area are deployed on one or more computing devices, and at least one scheduling unit is provided in each computing device, that is, a cloud service includes multiple scheduling units, a first computing device belongs to a first area (area a), and a second computing device belongs to a second area (area b), and areas a and b are connected in communication. And a container orchestration and management system runs on the computing device.

[0070] Figure 2 The schematic diagram of the process of the path construction method provided by the present application is shown in FIG. 1 . The path construction method can be executed by a computing device 210, and the computing device 210 can be deployed at Figure 1 In the area a shown in FIG. 1 . In this embodiment, the first computing device may be referred to as computing device 210, the second computing device may be referred to as computing device 310 in area b, area a also includes computing device 220, computing device 220 is provided with scheduling unit 1 and scheduling unit 2, the first cloud service may be referred to as cloud service a, which is deployed in area a and cloud service a includes scheduling unit 1 and scheduling unit 2, that is, cloud service a is deployed on computing device 220. Area b also includes computing device 320, computing device 320 is provided with scheduling unit 3 and scheduling unit 4, the second cloud service may be referred to as cloud service b, which is deployed in area b and cloud service b includes scheduling unit 3 and scheduling unit 4, that is, cloud service b is deployed on computing device 320. As shown in FIG. Figure 2 As shown, the path construction method includes the following steps S210 to S250.

[0071] Step S210: The computing device 210 receives a construction instruction from a user.

[0072] The build instruction carries the identifier of cloud service a and the identifier of cloud service b.

[0073] Taking cloud service a of cloud service a and cloud service b as an example, two possible examples are provided below for the identification of cloud service a.

[0074] In example 1, the identifier of the cloud service a is the name of the cloud service a, such as the identifier of the cloud service a is “data storage-V2”.

[0075] Example 2: The identifier of cloud service b is the address of cloud service b, such as the identifier of cloud service b is "210.73.140.6".

[0076] In one possible implementation, the computing device 210 receives a construction instruction from a user, including: the computing device 210 displays a user interface, the user interface includes a control component for path construction, and receives a trigger operation of the control component by the user, and then obtains the identifiers of cloud service a and cloud service b in response to the trigger operation of the control component by the user.

[0077] In a possible example, the computing device 210 receiving the user's triggering operation on the control component may include: the computing device 210 obtains the user's operation on the control component on the user interface through various input devices (keyboard, mouse, touch screen, etc.). The input device is connected to the computing device 210.

[0078] For example, the computing device 210 obtains the identifiers of the cloud service a and the cloud service b input by the user in the control component through the keyboard.

[0079] Step S220: The computing device 210 establishes a communication connection between cloud service a and cloud service b according to the identifiers of cloud service a and cloud service b.

[0080] Regarding the content that the computing device 210 establishes a communication connection between cloud service a and cloud service b according to the identifiers of cloud service a and cloud service b, two possible implementation methods are provided below.

[0081] In a first possible implementation, the computing device 210 obtains the addresses of cloud service a and cloud service b, and configures VPN using the addresses of cloud service a and cloud service b. After the configuration is completed, cloud service a and cloud service b can communicate through the VPN tunnel.

[0082] It is worth noting that during the above configuration process, the computing device 210 will also configure VPN parameters, such as encryption algorithms, authentication protocols, and cloud service authentication credentials, such as user names and passwords.

[0083] In another possible implementation, the computing device 210 may establish a connection between cloud service a and cloud service b through a direct connection channel provided by the cloud computing platform.

[0084] For example, the computing device 210 uploads information such as the addresses of cloud service a and cloud service b to be connected through the management console or application programming interface (API) provided by the direct connection channel, thereby realizing the communication connection between cloud service a and cloud service b.

[0085] It is worth noting that when the above-mentioned cloud service identifier indicates the name of the cloud service, the computing device 210 can determine the addresses of cloud service a and cloud service b corresponding to the names of cloud service a and cloud service b based on the correspondence between the name of the cloud service and the address of the cloud service.

[0086] In the present application, the first computing device establishes a communication connection between the first cloud service and the second cloud service based on the identifiers of the first cloud service and the second cloud service indicated by the user, thereby providing a communication link for the first computing device to obtain the IP address of the scheduling unit under the second cloud service, thereby improving the efficiency of the first computing device in obtaining the IP address of the scheduling unit under the second cloud service, and further improving the efficiency of establishing a transmission path between the first scheduling unit and the second scheduling unit.

[0087] Step S230: The computing device 210 obtains the IP address of each scheduling unit in the cloud service a.

[0088] In the cloud computing scenario, when a scheduling unit is created, the computing device that creates or runs the scheduling unit automatically assigns an IP address to it. Therefore, the computing device 210 in cloud service a can obtain the IP addresses of all scheduling units in cloud service a, such as obtaining the IP addresses of scheduling unit 1 and scheduling unit 2.

[0089] In a possible example, the IP address of the scheduling unit is constructed by a computing device running the scheduling unit when the scheduling unit is created.

[0090] Network plug-ins such as calico, flannel, or cilium are run in each computing device. These plug-ins are used to assign IP addresses to scheduling units running in computing devices (worker nodes).

[0091] For example, when a scheduling unit is created and runs on a computing device, the first computing device instructs the computing device running the scheduling unit to use the network plug-in on the computing device to allocate an available IP address to the scheduling unit. The computing device can select an available IP address from a pre-allocated address pool and allocate the IP address to the scheduling unit.

[0092] In one possible example, the computing device 210 may obtain the IP address of the scheduling unit in the cloud service a through an application programming interface (API) of the container orchestration and management system and a corresponding command to obtain the IP address of the scheduling unit.

[0093] Exemplarily, if the container orchestration and management system is K8s, the computing device 210 may use the kubectl command to obtain the IP address of the scheduling unit in the scheduling unit view information.

[0094] For example, the computing device 210 may use the following command to obtain the IP address of the scheduling unit: kubectl get pods-ojsonpath='{.items[*].status.podIP}'.

[0095] In another possible example, the computing device 210 uses a monitoring tool such as Prometheus and Grafana to obtain the IP address of the scheduling unit.

[0096] In one possible scenario, the computing device 210 may periodically obtain the IP address of the scheduling unit in the cloud service a.

[0097] Step S240 , the computing device 210 obtains the IP address of the scheduling unit in the cloud service b sent by the computing device 310 .

[0098] The content of the computing device 310 obtaining the IP address of the scheduling unit in cloud service b can refer to the description of the computing device 210 obtaining the scheduling unit in cloud service a in step S230, which will not be repeated here.

[0099] For example, the computing device 310 obtains the IP addresses of the scheduling unit 3 and the scheduling unit 4 .

[0100] Due to the communication connection between cloud service a and cloud service b, computing device 310 sends the IP addresses of the scheduling units in cloud service b, such as sending the IP addresses of scheduling unit 3 and scheduling unit 4, to computing device 210 according to the communication connection channel between cloud service a and cloud service b.

[0101] Step S250: The computing device 210 instructs the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit corresponding to the first scheduling unit in the mapping relationship.

[0102] Among them, the first scheduling unit is a scheduling unit in cloud service a, and the second scheduling unit is one or more scheduling units in cloud service b. The mapping relationship is used to indicate the correspondence between the scheduling units that establish transmission paths in cloud service a and cloud service b.

[0103] The computing device 210 instructs the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the second scheduling unit. The computing device 210 sends the IP address of the second scheduling unit corresponding to the first scheduling unit to the first scheduling unit to instruct the first scheduling unit to establish a connection with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit, that is, to establish a transmission path.

[0104] In one possible implementation, the first scheduling unit establishes a connection with the second scheduling unit based on the IP address of the first scheduling unit and the IP address of the second scheduling unit, including: the first scheduling unit configures the IP address of the second scheduling unit, and sends the IP address of the first scheduling unit to the second scheduling unit based on the configured IP address of the second scheduling unit, so that the first scheduling unit establishes a connection with the second scheduling unit.

[0105] Exemplarily, the first scheduling unit hard-codes the IP address of the second scheduling unit into the configuration file or environment variable of the first scheduling unit, and then uses the IP address of the second scheduling unit to send the IP address of the first scheduling unit to the second scheduling unit. The second scheduling unit receives and configures the IP address of the first scheduling unit to establish a connection between the first scheduling unit and the second scheduling unit.

[0106] In another possible implementation, the first scheduling unit establishes a connection with the second scheduling unit based on the IP address of the first scheduling unit and the IP address of the second scheduling unit, including: the first scheduling unit configures the IP address of the second scheduling unit and the IP address of the first scheduling unit in the load balancer to establish a connection between the first scheduling unit and the second scheduling unit.

[0107] The above mapping relationship may be pre-configured in the computing device 210 .

[0108] In a possible embodiment, the computing device 210 establishes a mapping relationship according to the scheduling units in the cloud service a and the cloud service b that need to establish a transmission path.

[0109] In another possible embodiment, the computing device 210 establishes a mapping relationship between the acquired IP address of the scheduling unit in the cloud service a and the IP address of the scheduling unit in the cloud service b.

[0110] In one possible implementation, the computing device 210 establishes a mapping relationship between the IP address of the scheduling unit in cloud service a and the IP address of the scheduling unit in cloud service b, including: the computing device 210 establishes a mapping relationship between the IP address of the first scheduling unit and the IP addresses of all scheduling units in cloud service b.

[0111] Exemplarily, cloud service a includes scheduling unit 1 and scheduling unit 2, and cloud service b includes scheduling unit 3 and scheduling unit 4. The computing device 210 establishes a correspondence between the IP address of scheduling unit 1 and the IP address of scheduling unit 3 and the IP address of scheduling unit 4, and establishes a correspondence between the IP address of scheduling unit 2 and the IP address of scheduling unit 3 and the IP address of scheduling unit 4, so that the above mapping relationship can be obtained according to the above two correspondence relationships.

[0112] In the present application, the computing device 210 establishes a corresponding relationship between the first scheduling unit and the IP addresses of all scheduling units in cloud service b, thereby obtaining a mapping relationship. In other words, the IP address of the scheduling unit in cloud service a is fully interconnected and matched with the IP address of the scheduling unit in cloud service b, so as to facilitate the subsequent first scheduling unit to send data to any scheduling unit in cloud service b, reduce the time spent on establishing / configuring the transmission path before data transmission, and thus improve the efficiency of data transmission.

[0113] In another possible implementation, the computing device 210 establishes a mapping relationship between the IP address of the first scheduling unit and the IP addresses of one or more scheduling units specified in the cloud service b.

[0114] The following provides a possible example of determining the designated one or more scheduling units.

[0115] The computing device 210 obtains the tag of the scheduling unit in the cloud service a and the tag of the scheduling unit in the cloud service b sent by the computing device 310, and determines one or more tags of the scheduling unit in the cloud service b that are the same as the tag of the first scheduling unit. The scheduling unit in the cloud service b corresponding to the one or more tags is the one or more scheduling units specified above. The tag can be used to indicate the type of processing task of the scheduling unit, the configuration of the computing device where the scheduling unit is located, etc.

[0116] For example, the tags of the scheduling units in cloud service a are type a, type b, and type c, and the tags of the scheduling units in cloud service b are type b and type d. If the tag of the first scheduling unit is type b, then the scheduling unit corresponding to the tag type b in cloud service b is determined to be one of the above-specified scheduling units.

[0117] In one possible example, the computing device 210 determines, according to the tag correspondence policy, one or more scheduling units in cloud service b that are identical to or corresponding to the tag of the first scheduling unit, that is, the IP address of one or more scheduling units specified in cloud service b corresponding to the IP address of the first scheduling unit. The tag correspondence policy indicates the correspondence between the tag of the scheduling unit in cloud service a and the tag of the scheduling unit in cloud service b.

[0118] In the present application, the mapping relationship only indicates the IP address of the first scheduling unit and the IP addresses of one or more scheduling units specified in cloud service b, which reduces the number of IP addresses configured for the first scheduling unit, thereby speeding up the establishment of the transmission path and improving the efficiency of constructing the transmission path.

[0119] In a possible embodiment, the computing device 210 may receive a user's construction requirement, and determine, according to the construction requirement, whether the mapping relationship is constructed using any of the two possible implementation methods or a new label correspondence strategy. After determining the construction method of the mapping relationship, the computing device 210 executes the contents of the above steps S210-S250 to establish a transmission path between the scheduling unit in cloud service a and the scheduling unit in cloud service b.

[0120] With respect to the above-mentioned path construction method, a possible embodiment is provided below. In this embodiment, VPCs are created in region a and region b, respectively, and K8s is deployed in the VPCs in region a and region b. The VPC in region a is connected in communication with the VPC in region b, such as a cloud connection. The scheduling units (pods) running in K8s are divided into control load pods and workload pods. The control load pod in region a runs in computing device 210a, the workload in region a runs in computing device 210b, the control load pod in region b runs in computing device 310a, and the workload pod in region b runs in computing device 310b. The VPC may be referred to as a cloud service.

[0121] In a possible implementation, the computing device 210 obtains the IP address of the scheduling unit in the cloud service a, including: the computing device 210 subscribes to the Pod view information in the cloud service a, and the Pod view information indicates the IP address of the Pod in the cloud service a.

[0122] The computing device 210 can obtain the IP addresses of all Pods in cloud service a by subscribing to the Pod view information in the container orchestration and management system (such as K8s) deployed by cloud service a.

[0123] In the present application, the computing device 210 can directly obtain the IP address of the Pod by subscribing to the Pod view information, avoiding the need to pre-allocate IP addresses and configure routes for each physical machine, improving the convenience of obtaining IP addresses, speeding up the acquisition of IP addresses, and thus improving the efficiency of building a transmission path.

[0124] The content maintained in the Pod view information may include one or more of the following: the name of the Pod, the namespace or project to which the Pod belongs, the key-value pairs (labels) that identify and classify scheduling units, relevant information about the containers running in the Pod, such as the container name, image, status, IP address, the current status of the Pod, such as the scheduling status, container status, number of restarts, etc., the current condition and status of the Pod, such as whether it is schedulable, etc., important events and status changes related to the scheduling unit, such as creation, scheduling, startup, termination, etc., the resources required by the scheduling unit, such as computing resources, storage resources, network resources, etc., the configuration volumes and mount points used by the scheduling unit, etc.

[0125] Exemplarily, computing device 210a obtains the IP address of the workload pod in cloud service a through the above subscription method, and obtains the IP address of the workload pod in cloud service b sent by computing device 310a. Computing device 210a establishes a mapping relationship between the IP address of the workload pod in cloud service a and the IP address of the workload pod in cloud service b. Computing device 210a instructs the first workload Pod to establish a transmission path with the second workload Pod according to the IP address of the first workload pod and the IP address of the second workload pod corresponding to the IP address of the first workload pod indicated by the mapping relationship.

[0126] The first workload pod is any one of at least one workload pod included in cloud service a, and the second workload pod is deployed in cloud service b.

[0127] It is worth noting that the replication service framework (RSF) container and the network gateway control (NGC) container are running in the above-mentioned control load pod. The network gateway link (NGL) container is running in the above-mentioned workload pod. Among them, the RSF container is used to subscribe to the pod view information of K8s, and the NGC container is used to obtain the IP address of the workload pod based on the pod view information of the local K8s, and the IP address of the remote workload pod is obtained to build a mapping relationship, and send the mapping relationship to the NGL container. The NGL container is used to establish a transmission path with the remote workload pod based on the IP address of the remote workload pod indicated by the mapping relationship.

[0128] When the number of physical machines in cloud service a or cloud service b increases or decreases, that is, when cloud service a or cloud service b is expanded or reduced, the user needs to manually adjust the backup path. For example, when adding a physical machine in cloud service a, the user needs to manually assign an IP address to the added physical machine and configure the route, and configure an IP address in address pool b for the added physical machine so that the added physical machine can establish a backup path with the physical machine in cloud service b. Since manual configuration operations are also required when cloud service a or cloud service b is expanded or reduced, the network configuration is cumbersome and inflexible, resulting in a slow speed.

[0129] In one possible scenario, computing device 210 obtains the IP address of the scheduling unit in cloud service a and the IP address of the scheduling unit in cloud service b sent by the second computing device, including: if the scheduling unit in the above cloud service is increased, computing device 210 obtains the IP address of the scheduling unit in cloud service a, and computing device 210 obtains the IP address of the scheduling unit in cloud service b sent by computing device 310.

[0130] For the scenario where a scheduling unit is added to the above cloud service, the computing device 210 obtains the IP address of the scheduling unit in cloud service a and the content of the IP address of the scheduling unit in cloud service b. The contents of the above steps S230 and S240 may be referred to and will not be repeated here.

[0131] In order to solve the problem that manual configuration operations are required when expanding cloud service a or cloud service b, resulting in slow speed, the following provides an implementation method to solve the above technical problems. In the scenario where the scheduling unit is increased in the above cloud service, such as Figure 3 As shown, Figure 3 A flow chart of a path construction method when adding scheduling units provided in the present application. Figure 3 The content shown may include the following steps S310 to S330.

[0132] Step S310, the computing device 210 obtains the IP address of the scheduling unit in the cloud service a.

[0133] The computing device 210 obtains the IP address of the scheduling unit in the cloud service a in the current state.

[0134] For the content of step S310, reference may be made to the description of the above step S230, which will not be elaborated here.

[0135] Step S320 , the computing device 210 obtains the IP address of the scheduling unit in the cloud service b sent by the computing device 310 .

[0136] The computing device 310 obtains the IP address of the scheduling unit in the cloud service b in the current state, and then sends the IP address of the scheduling unit in the cloud service b to the computing device 210. For example, in the current state, the cloud service b includes scheduling units 3, 4, and 6.

[0137] For the content of step S320, reference may be made to the description of the above step S240, which will not be elaborated here.

[0138] Step S330: The computing device 210 instructs the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit corresponding to the first scheduling unit in the mapping relationship.

[0139] The first scheduling unit is a scheduling unit in cloud service a, and the second scheduling unit is one or more scheduling units in cloud service b.

[0140] If the scheduling unit in cloud service a is increased, the mapping relationship is used to indicate the corresponding relationship between the scheduling unit added in cloud service a and the scheduling unit in cloud service b.

[0141] If the scheduling unit in cloud service b is increased, the mapping relationship is used to indicate the corresponding relationship between the scheduling unit in cloud service a and the scheduling unit increased in cloud service b. Figure 3 As shown, the mapping relationship is used to indicate: the corresponding relationship between scheduling unit 1, scheduling unit 2 and scheduling unit 6.

[0142] If the scheduling units in both cloud service a and cloud service b are increased, the mapping relationship is used to indicate: the correspondence between the scheduling units added in cloud service a and the scheduling units in cloud service b, and the correspondence between the scheduling units in cloud service a and the scheduling units added in cloud service b.

[0143] The above mapping relationship may be a corresponding relationship between scheduling units, or may be a corresponding relationship between IP addresses corresponding to scheduling units.

[0144] For the content of the above step S330, reference may be made to the description of the above step S250, which will not be repeated here.

[0145] In the present application, the computing device 210 periodically obtains the IP address of the scheduling unit in the cloud service, and promptly determines whether the scheduling unit is updated. If the scheduling unit is increased, the transmission path between the scheduling unit in cloud service a and the scheduling unit in cloud service b is updated, thereby avoiding the need to manually establish the transmission path between the scheduling units when cloud service a or cloud service b is expanded, which is cumbersome to operate. This speeds up the establishment of the transmission path when cloud service a or cloud service b is expanded, improves the efficiency of building the transmission path, and improves the ease of data transmission between scheduling units.

[0146] In a possible embodiment, the above-mentioned path construction method when the scheduling unit is increased may further include: the computing device 210 constructs a mapping relationship.

[0147] A possible implementation manner in which the computing device 210 constructs a mapping relationship is provided below.

[0148] Scenario 1: The scheduling unit in cloud service a is increased. The following provides a possible implementation method for the computing device 210 to construct a mapping relationship.

[0149] The computing device 210 compares the IP address of the scheduling unit in cloud service a after the scheduling unit is added with the IP address of the scheduling unit in cloud service a before the scheduling unit is added to determine the IP address of the newly added scheduling unit in cloud service a. The computing device 210 uses the IP address of the scheduling unit added in cloud service a and the IP address of the scheduling unit in cloud service b to construct a mapping relationship. That is, the mapping relationship indicates the corresponding relationship between the scheduling unit added in cloud service a and the scheduling unit in cloud service b.

[0150] For example, the newly added scheduling unit in cloud service a is scheduling unit 5, and all scheduling units in cloud service b include scheduling unit 3 and scheduling unit 4. The computing device 210 establishes a correspondence between the IP address of scheduling unit 3 and the IP address of scheduling unit 4 and the IP address of scheduling unit 5, and then obtains a mapping relationship, that is, the IP address of scheduling unit 5 corresponds to the IP address of scheduling unit 3 and the IP address of scheduling unit 4.

[0151] In the present application, if the number of scheduling units in cloud service a increases, that is, when cloud service a is expanded, the computing device 210 instructs the first scheduling unit and the second scheduling unit to establish a transmission path based on the constructed mapping relationship, so that when cloud service a is expanded, the newly added scheduling unit can also establish a connection with the scheduling unit in cloud service b in a timely manner, avoiding the need to manually configure the IP and establish the transmission path, which is cumbersome to operate, thereby speeding up the establishment of the transmission path when cloud service a is expanded, and improving the efficiency of constructing the transmission path.

[0152] Scenario 2: the scheduling unit in cloud service b is increased. The following provides a possible implementation method for the computing device 210 to construct a mapping relationship.

[0153] The computing device 210 compares the IP address of the scheduling unit in cloud service b after the scheduling unit is added with the IP address of the scheduling unit in cloud service b before the scheduling unit is added to determine the IP address of the newly added scheduling unit in cloud service b. The computing device 210 uses the IP address of the scheduling unit in cloud service a and the IP address of the scheduling unit added in cloud service b to construct a mapping relationship. That is, the mapping relationship indicates the corresponding relationship between the IP address of the scheduling unit in cloud service a and the IP address of the scheduling unit added in cloud service b.

[0154] like Figure 3 As shown, the newly added scheduling unit in cloud service b is scheduling unit 6, and the scheduling units in cloud service a include scheduling unit 1 and scheduling unit 2. The computing device 210 establishes a corresponding relationship between the IP address of scheduling unit 6 and the IP address of scheduling unit 1 and the IP address of scheduling unit 2, and obtains a mapping relationship, that is, the IP address of scheduling unit 1 corresponds to the IP address of scheduling unit 6, and the IP address of scheduling unit 2 corresponds to the IP address of scheduling unit 6.

[0155] In the present application, if the number of scheduling units in cloud service b increases, that is, when cloud service b is expanded, the computing device 210 instructs the first scheduling unit and the second scheduling unit to establish a transmission path based on the constructed mapping relationship, so that when cloud service b is expanded, the newly added scheduling unit can also establish a connection with the scheduling unit in cloud service a in a timely manner, avoiding the need for manual configuration of IP and establishment of transmission paths, and the cumbersome operation, thereby speeding up the establishment of the transmission path when cloud service a is expanded, and improving the efficiency of constructing the transmission path.

[0156] In scenario 3, a scheduling unit is added to both cloud service a and cloud service b. The following provides a possible implementation method for a computing device 210 to construct a mapping relationship.

[0157] The computing device 210 compares the IP address of the scheduling unit in cloud service a after the scheduling unit is added with the IP address of the scheduling unit in cloud service a before the scheduling unit is added, and determines the IP address of the newly added scheduling unit in cloud service a. Also, the computing device 210 compares the IP address of the scheduling unit in cloud service b after the scheduling unit is added with the IP address of the scheduling unit in cloud service b before the scheduling unit is added, and determines the IP address of the newly added scheduling unit in cloud service b. That is, the mapping relationship indicates the corresponding relationship between the scheduling unit added in cloud service a and the scheduling unit in cloud service b, and the corresponding relationship between the IP addresses of the scheduling unit in cloud service a and the scheduling unit added in cloud service b.

[0158] The computing device 210 uses the IP address of the scheduling unit added in cloud service a and the IP address of the scheduling unit in cloud service b to build a mapping relationship. The computing device 210 uses the IP address of the scheduling unit in cloud service a and the IP address of the scheduling unit added in cloud service b to build a mapping relationship.

[0159] For example, before cloud service a and cloud service b add scheduling units, cloud service a includes scheduling unit 1 and scheduling unit 2, and cloud service b includes scheduling unit 3 and scheduling unit 4. The newly added scheduling unit in cloud service a is scheduling unit 5, and the newly added scheduling unit in cloud service b is scheduling unit 6. The computing device 210 establishes a correspondence between the IP address of scheduling unit 3, the IP address of scheduling unit 4, and the IP address of scheduling unit 6 and the IP address of scheduling unit 5, and obtains a correspondence between the IP address of scheduling unit 5 and the IP address of scheduling unit 3, the IP address of scheduling unit 4, and the IP address of scheduling unit 6. In addition, the computing device 210 establishes a correspondence between the IP address of scheduling unit 6 and the IP address of scheduling unit 1, the IP address of scheduling unit 2, and the IP address of scheduling unit 5, and obtains a correspondence between the IP address of scheduling unit 6 and the IP address of scheduling unit 1, the IP address of scheduling unit 2, and scheduling unit 5, and then the computing device 210 obtains a mapping relationship according to the aforementioned correspondence.

[0160] In the present application, if the number of scheduling units in cloud service a and cloud service b increases, that is, when cloud service a and cloud service b are expanded, the computing device 210 instructs the first scheduling unit and the second scheduling unit to establish a transmission path based on the constructed mapping relationship, so that when cloud service a and cloud service b are expanded, the newly added scheduling unit can also establish a connection with cloud service b or the scheduling unit in cloud service a in a timely manner, avoiding the need to manually configure IP and establish transmission paths, which is cumbersome to operate, thereby speeding up the establishment of the transmission path when cloud service a and cloud service b are expanded, and improving the efficiency of constructing the transmission path.

[0161] In another possible scenario, when the scheduling units in cloud service b are reduced (cloud service b is downsized), computing device 210 instructs the scheduling units in cloud service a to delete the transmission path between the scheduling units in cloud service b that have been reduced.

[0162] Regarding the above situation where if the scheduling units in cloud service b are reduced, the computing device 210 instructs the scheduling units in cloud service a to delete the content of the transmission path between the scheduling units reduced in cloud service b, a possible implementation method is provided below.

[0163] like Figure 4 As shown, Figure 4 A flowchart of a path construction method when the scheduling unit is reduced provided in the present application. Figure 4 The content shown may include the following steps S410 to S430.

[0164] Step S410 , the computing device 210 obtains the IP address of the scheduling unit in the cloud service b sent by the computing device 310 .

[0165] The computing device 310 may periodically obtain the IP address of the scheduling unit in the cloud service b.

[0166] For example, if K8s is deployed in the cloud computing platform, the computing device 310 can subscribe to the Pod view information in the cloud service b to periodically obtain the IP address of the Pod in the cloud service b. Thus, the computing device 310 sends the IP address of the Pod in the cloud service b to the computing device 210, and the computing device 210 obtains the IP address of the Pod in the cloud service b.

[0167] Step S420: The computing device 210 compares the IP address of the scheduling unit in cloud service b with the IP address of the scheduling unit in cloud service b before the scheduling unit is reduced, and determines the IP address of the scheduling unit reduced by cloud service b.

[0168] In one possible example, the computing device 210 determines the IP address of the reduced scheduling unit by comparing the IP address of the scheduling unit in cloud service b after the scheduling unit is reduced with the IP address of the scheduling unit in cloud service b before the scheduling unit is reduced.

[0169] For example, the computing device 210 determines, through comparison, that the IP address of the reduced scheduling unit is the IP address of the scheduling unit 4 .

[0170] Step S430: The computing device 210 instructs the first scheduling unit to delete the transmission path corresponding to the IP address of the reduced scheduling unit.

[0171] In one possible implementation, the computing device 210 instructs the first scheduling unit to delete the transmission path corresponding to the IP address of the reduced scheduling unit, including: the computing device 210 sends an instruction to delete the transmission path to the first scheduling unit to instruct the first scheduling unit to delete the transmission path corresponding to the IP address of the reduced scheduling unit.

[0172] Exemplarily, the instruction to delete the transmission path includes an IP address or a label of a reduced scheduling unit.

[0173] In a possible example, the first scheduling unit adjusts the IP address maintained in the configuration file or environment variable according to the IP address of the scheduling unit reduced in the instruction to delete the transmission path, such as deleting the IP address of the scheduling unit reduced, thereby deleting the transmission path corresponding to the IP address of the scheduling unit reduced.

[0174] In the present application, the computing device 210 periodically obtains the IP address of the scheduling unit in the cloud service and promptly determines whether the scheduling unit is updated. If the number of scheduling units in cloud service b is reduced, the computing device 210 updates the transmission path between the scheduling unit in cloud service a and the scheduling unit in cloud service b, avoiding the need to manually delete the transmission path between scheduling units when cloud service b is reduced in capacity, which is cumbersome to operate, thereby speeding up the deletion of the transmission path when cloud service b is reduced in capacity, reducing the transmission errors caused by the unavailability of the IP addresses of some scheduling units due to the reduction in capacity of cloud service b, and improving the availability and ease of use of data transmission between scheduling units.

[0175] Based on the above-mentioned embodiment of the path construction method, the present application also provides an embodiment of a data transmission method. In the data transmission method, after establishing a transmission path between the scheduling unit in the above-mentioned cloud service a and the scheduling unit in the cloud service b, the computing device 210 instructs the first scheduling unit to send data to the third scheduling unit through the transmission path between the first scheduling unit and the third scheduling unit according to the allocation strategy.

[0176] The allocation strategy is used to determine that the third scheduling unit is one or more scheduling units specified in the second scheduling unit.

[0177] In a possible scenario, the second scheduling unit is all scheduling units in cloud service b, that is, the first scheduling unit has established transmission paths with all scheduling units in cloud service b.

[0178] In one possible implementation, the computing device 210 instructs the first scheduling unit to send data to the third scheduling unit through the transmission path between the first scheduling unit and the third scheduling unit according to the allocation strategy, including: the computing device 210 uses the allocation strategy to determine the third scheduling unit in the second scheduling unit, and instructs the first scheduling unit to send data to the third scheduling unit through the transmission path between the first scheduling unit and the third scheduling unit.

[0179] The above allocation strategy can be used to indicate a balanced allocation algorithm or a shortest path algorithm. The balanced allocation strategy is used to indicate that allocation will be performed based on the load of each scheduling unit in cloud service b, so that the load of each scheduling unit in cloud service b is relatively consistent. The shortest path algorithm is used to indicate that the scheduling unit in cloud service b that is closest to the first scheduling unit in distance or weight is determined.

[0180] Two possible examples are provided below for the computing device 210 to determine the third scheduling unit in the second scheduling unit using the allocation strategy and to instruct the first scheduling unit to send data to the third scheduling unit through the transmission path between the first scheduling unit and the third scheduling unit.

[0181] Example 1: If the allocation strategy is used to indicate the shortest path algorithm, the computing device 210 uses the scheduling unit corresponding to the tag in cloud service b that is the same as or close to the tag of the first scheduling unit as the third scheduling unit according to the tag of the first scheduling unit. The computing device 210 instructs the first scheduling unit to send data to the third scheduling unit through the transmission path between the first scheduling unit and the third scheduling unit.

[0182] Example 2: If the classification strategy is used to indicate the balanced allocation algorithm, the computing device 210 determines that the scheduling unit 6 is the third scheduling unit according to the load of the scheduling unit in the cloud service b. The computing device 210 instructs the first scheduling unit to send data to the third scheduling unit through the transmission path between the first scheduling unit and the third scheduling unit.

[0183] In a possible scenario, the above data may be data to be backed up or data to be disaster-recovered.

[0184] In the present application, the computing device 210 instructs the first scheduling unit to perform output transmission through the transmission path between the first scheduling unit and the third scheduling unit according to the transmission path established above and the allocation strategy, thereby realizing cross-region data backup and disaster recovery replication, and improving data security.

[0185] In a possible embodiment, the data transmission method may also be executed by a computing device equipped with the first scheduling unit, that is, the computing device equipped with the first scheduling unit sends data to the third scheduling unit through the transmission path between the first scheduling unit and the third scheduling unit.

[0186] Combined with the above Figures 1 to 4 , describes in detail the path construction method provided by this application, and will be combined with Figure 5 , Figure 5 A schematic diagram of the structure of a path construction device provided in this application Figure 1 , describing the path construction device provided by the present application. The path construction device 500 can be used to implement the functions of the computing device 210 in the above method embodiment, and thus can also achieve the beneficial effects possessed by the above method embodiment.

[0187] like Figure 5 As shown, the path construction device 500 includes a receiving module 510, a communication establishment module 520, an acquisition module 530 and a path establishment module 540. The path construction device 500 is used to implement the above Figures 1 to 4 The function of the computing device 210 in the corresponding method embodiment. In a possible example, the specific process of the path construction device 500 for implementing the above path construction method includes the following process:

[0188] The receiving module 510 is used to receive a construction instruction from a user; the construction instruction carries an identifier of a first cloud service deployed in a first area and an identifier of a second cloud service deployed in a second area.

[0189] The communication establishing module 520 is used to establish a communication connection between the first cloud service and the second cloud service according to the identifier of the first cloud service and the identifier of the second cloud service.

[0190] The acquisition module 530 is used to acquire the IP address of each scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service sent by the second computing device.

[0191] The path establishment module 540 is used to instruct the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit corresponding to the first scheduling unit in the mapping relationship. The first scheduling unit is a scheduling unit in the first cloud service, and the second scheduling unit is one or more scheduling units in the second cloud service. The mapping relationship is used to indicate the corresponding relationship between the scheduling units in the first cloud service and the second cloud service that establish the transmission path.

[0192] To further achieve the above Figures 1 to 4 The present application also provides a path construction device, such as Figure 6 As shown, Figure 6 A schematic diagram of the structure of a path construction device provided in this application Figure 2 The path construction device 500 also includes a first relationship establishment module 550 and a second relationship establishment module 560.

[0193] The first relationship establishing module 550 is used to establish a mapping relationship between the IP address of the first scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service.

[0194] The second relationship establishing module 560 is used to establish a mapping relationship between the IP address of the first scheduling unit and the IP addresses of one or more scheduling units in the second cloud service. The label of the first scheduling unit is the same as the label of one or more scheduling units in the second cloud service.

[0195] Among them, the receiving module 510, the communication establishment module 520, the acquisition module 530, the path establishment module 540, the first relationship establishment module 550, and the second relationship establishment module 560 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the receiving module 510 is introduced below by taking the receiving module 510 as an example. Similarly, the implementation of the communication establishment module 520, the acquisition module 530, the path establishment module 540, the first relationship establishment module 550, and the second relationship establishment module 560 can refer to the implementation of the receiving module 510.

[0196] As an example of a software functional unit, the receiving module 510 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the receiving module 510 may include code running on multiple hosts / virtual machines / containers.

[0197] It should be noted that the multiple hosts / virtual machines / containers used to run the code can be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code can be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with similar geographical locations. Generally, a region can include multiple AZs.

[0198] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same VPC or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0199] As an example of a hardware functional unit, the receiving module 510 may include at least one computing device, such as a server, etc. Alternatively, the receiving module 510 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0200] The multiple computing devices included in the receiving module 510 can be distributed in the same region or in different regions. The multiple computing devices included in the receiving module 510 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the receiving module 510 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0201] It should be noted that, in other embodiments, the receiving module 510 can be used to execute any step in the path construction method, the communication establishment module 520 can be used to execute any step in the path construction method, the acquisition module 530 can be used to execute any step in the path construction method, and the path establishment module 540 can be used to execute any step in the path construction method. The steps that the receiving module 510, the communication establishment module 520, the acquisition module 530, and the path establishment module 540 are responsible for implementing can be specified as needed, and the full functions of the path construction device 500 are realized by the receiving module 510, the communication establishment module 520, the acquisition module 530, and the path establishment module 540 respectively implementing different steps in the path construction method.

[0202] It is worth noting that the computing device 210 of the aforementioned embodiment may correspond to the path construction device 500, and may correspond to executing the method according to the embodiment of the present application. Figures 2 to 4 The corresponding corresponding subjects, and the operations and / or functions of each module in the path construction device 500 are respectively to achieve Figures 2 to 4 For the sake of brevity, the corresponding processes of each method in the corresponding embodiment are not repeated here.

[0203] in addition, Figure 5, Figure 6 The path construction device 500 shown can also be implemented by a communication device, where the communication device may refer to the computing device 210 in the aforementioned embodiment, or, when the communication device is a chip or a chip system applied to a processing device, the path construction device can also be implemented by the chip or the chip system.

[0204] An embodiment of the present application also provides a chip system, which includes a control circuit and an interface circuit. The interface circuit is used to obtain a construction instruction, and the control circuit is used to implement the function of the processing device in the above method according to the construction instruction.

[0205] In a possible design, the chip system further includes a memory for storing program instructions and / or data. The chip system may be composed of a chip, or may include a chip and other discrete devices.

[0206] The present application also provides a computing device. Figure 7 As shown, Figure 7 The present application provides a schematic diagram of a computing device structure, the computing device 700 includes: a bus 702, a processor 704, a memory 706 and a communication interface 708. The processor 704, the memory 706 and the communication interface 708 communicate with each other through the bus 702. The computing device 700 can be a server or a terminal device, and the computing device 700 can be the first processing device 200 or the second processing device 300 mentioned above. It is worth noting that the present application does not limit the number of processors and memories in the computing device 700.

[0207] The bus 702 may be, but is not limited to: a PCIe bus, a universal serial bus (USB), or an inter-integrated circuit bus (I2C), an EISA bus, an UB, a CXL, a CCIX, etc. The bus 702 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The bus 702 may include a path for transmitting information between various components of the computing device 700 (eg, the memory 706, the processor 704, and the communication interface 708).

[0208] The processor 704 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0209] The memory 706 may include a volatile memory, such as a random access memory (RAM). The memory 706 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0210] The memory 706 stores executable program codes, and the processor 704 executes the executable program codes to respectively implement the functions of the aforementioned receiving module 510, the communication establishment module 520, the acquisition module 530, and the path establishment module 540, thereby implementing the aforementioned path construction method. That is, the memory 706 stores instructions for executing the path construction method.

[0211] Alternatively, the memory 706 stores executable codes, and the processor 704 executes the executable codes to respectively implement the functions of the aforementioned receiving module 510, the communication establishing module 520, the acquisition module 530, the path establishing module 540, the first relationship establishing module 550, and the second relationship establishing module 560, thereby implementing the path construction method. That is, the memory 706 stores instructions for executing the path construction method.

[0212] The communication interface 708 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 700 and other devices or communication networks.

[0213] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device, which can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0214] like Figure 8 As shown, Figure 8The schematic diagram of the structure of a computer cluster provided by the present application is as follows. The computing device cluster includes at least one computing device 700. The memory 706 in one or more computing devices 700 in the computing device cluster may store the same instructions for executing the path construction method.

[0215] In some possible implementations, the memory 706 of one or more computing devices 700 in the computing device cluster may also store partial instructions for executing the path construction method. In other words, the combination of one or more computing devices 700 may jointly execute instructions for executing the path construction method.

[0216] It should be noted that the memory 706 in different computing devices 700 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the path building device. That is, the instructions stored in the memory 706 in different computing devices 700 can implement the functions of one or more modules of the receiving module 510, the communication establishment module 520, the acquisition module 530, and the path establishment module 540.

[0217] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig. 9 A possible implementation is shown. Fig. 9 As shown, Fig. 9 A schematic diagram of a connection between computing devices provided in the present application, wherein two computing devices 700A and 700B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 706 in the computing device 700A stores instructions for executing the functions of the receiving module. At the same time, the memory 706 in the computing device 700B stores instructions for executing the functions of the communication establishment module 520, the acquisition module 530, and the path establishment module 540.

[0218] Fig. 9 The connection method between the computing device clusters shown can be considered to be that the path construction method provided in this application needs to store IP addresses, so it is considered to entrust the functions implemented by the communication establishment module 520, the acquisition module 530, and the path establishment module 540 to the computing device 100B for execution.

[0219] It should be understood that Fig. 9 The functions of the computing device 700A shown in FIG. 7 may also be completed by multiple computing devices 700. Similarly, the functions of the computing device 700B may also be completed by multiple computing devices 700.

[0220] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the path construction method.

[0221] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the path construction method.

[0222] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).

[0223] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A path construction method, characterized in that: The method is applied to computing devices running a cloud computing platform, the computing devices are distributed in at least two areas, each computing device is provided with at least one scheduling unit, each scheduling unit is configured with a network protocol IP address by the computing device when creating each scheduling unit, a first computing device belongs to a first area, and a second computing device belongs to a second area, the method includes: The first computing device receives a construction instruction from a user, the construction instruction carrying an identifier of a first cloud service deployed in a first region and an identifier of a second cloud service deployed in a second region; The first computing device establishes a communication connection between the first cloud service and the second cloud service according to the identifier of the first cloud service and the identifier of the second cloud service; The first computing device obtains the IP address of each scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service sent by the second computing device; The first computing device instructs the first scheduling unit to establish a transmission path with the second scheduling unit according to the IP address of the first scheduling unit and the IP address of the second scheduling unit corresponding to the first scheduling unit in a mapping relationship; the first scheduling unit is a scheduling unit in the first cloud service, and the second scheduling unit is one or more scheduling units in the second cloud service, and the mapping relationship is used to indicate the correspondence between the scheduling units that establish the transmission path in the first cloud service and the second cloud service.

2. The method according to claim 1, characterized in that The method further comprises: The first computing device establishes a mapping relationship between the IP address of the first scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service.

3. The method according to claim 1, characterized in that The method further comprises: The first computing device establishes a mapping relationship between the IP address of the first scheduling unit and the IP addresses of one or more scheduling units in the second cloud service, and the label of the first scheduling unit is the same as the label of one or more scheduling units in the second cloud service.

4. The method according to any one of claims 1 to 3, characterized in that The first computing device obtains the IP address of the scheduling unit in the first cloud service, including: If a scheduling unit is added in the first cloud service, the first computing device obtains the IP address of the scheduling unit in the first cloud service; wherein the mapping relationship is used to indicate: the correspondence between the scheduling unit added in the first cloud service and the scheduling unit in the second cloud service.

5. The method according to any one of claims 1 to 3, characterized in that The first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device, including: If a scheduling unit is added in the second cloud service, the first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device; wherein the mapping relationship is used to indicate: the correspondence between the scheduling unit in the first cloud service and the scheduling unit added in the second cloud service.

6. The method according to any one of claims 1 to 5, characterized in that The first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device, including: If the scheduling unit in the second cloud service is reduced, the first computing device obtains the IP address of the scheduling unit in the second cloud service sent by the second computing device, and determines the IP address of the scheduling unit reduced by the second cloud service; The first computing device instructs the first scheduling unit to delete a transmission path corresponding to the IP address of the reduced scheduling unit.

7. The method according to any one of claims 1 to 6, characterized in that The cloud computing platform is deployed with a container orchestration and management system K8S, and the scheduling unit is a container set Pod.

8. The method according to claim 7, characterized in that The first computing device obtains the IP address of the scheduling unit in the first cloud service, including: The first computing device subscribes to Pod view information of the first zone, where the Pod view information includes an IP address of a Pod in the first cloud service.

9. A path construction device, characterized in that: The device is applied to a computing device running a cloud computing platform, the computing devices are distributed in at least two areas, each computing device is provided with at least one scheduling unit, each scheduling unit is configured with a network protocol IP address by the computing device when creating each scheduling unit, the device is deployed in a first computing device in a first area, and a second computing device belongs to a second area, and the device includes: A receiving module, configured to receive a construction instruction from a user, wherein the construction instruction carries an identifier of a first cloud service deployed in a first region and an identifier of a second cloud service deployed in a second region; a communication establishing module, configured to establish a communication connection between the first cloud service and the second cloud service according to an identifier of the first cloud service and an identifier of the second cloud service; an acquisition module, configured to acquire an IP address of each scheduling unit in the first cloud service, and an IP address of each scheduling unit in the second cloud service sent by the second computing device; A path establishment module is used to instruct the first scheduling unit to establish a transmission path with the second scheduling unit based on the IP address of the first scheduling unit and the IP address of the second scheduling unit corresponding to the first scheduling unit in a mapping relationship; the first scheduling unit is a scheduling unit in the first cloud service, and the second scheduling unit is one or more scheduling units in the second cloud service, and the mapping relationship is used to indicate the correspondence between the scheduling units that establish the transmission path in the first cloud service and the second cloud service.

10. The device according to claim 9, characterized in that The device also includes: The first relationship establishing module is used to establish a mapping relationship between the IP address of the first scheduling unit in the first cloud service and the IP address of each scheduling unit in the second cloud service.

11. The device according to claim 9, characterized in that The device also includes: The second relationship establishment module is used to establish a mapping relationship between the IP address of the first scheduling unit and the IP addresses of one or more scheduling units in the second cloud service, and the label of the first scheduling unit is the same as the label of one or more scheduling units in the second cloud service.

12. The device according to any one of claims 9 to 11, characterized in that The acquisition module is specifically used to obtain the IP address of the scheduling unit in the first cloud service if a scheduling unit is added in the first cloud service; wherein the mapping relationship is used to indicate: the correspondence between the scheduling unit added in the first cloud service and the scheduling unit in the second cloud service.

13. The device according to any one of claims 9 to 11, characterized in that The acquisition module is specifically used to obtain the IP address of the scheduling unit in the second cloud service sent by the second computing device if a scheduling unit is added in the second cloud service; wherein the mapping relationship is used to indicate: the correspondence between the scheduling unit in the first cloud service and the scheduling unit added in the second cloud service.

14. The device according to any one of claims 9 to 13, characterized in that The acquisition module is specifically used to obtain the IP address of the scheduling unit in the second cloud service sent by the second computing device if the scheduling unit in the second cloud service is reduced, determine the IP address of the scheduling unit reduced in the second cloud service, and then instruct the first scheduling unit to delete the transmission path corresponding to the IP address of the reduced scheduling unit.

15. The device according to any one of claims 9 to 14, characterized in that The cloud computing platform is deployed with a container orchestration and management system K8S, and the scheduling unit is a container set Pod.

16. The device according to claim 15, characterized in that The acquisition module is specifically used to subscribe to the Pod view information of the first area, and the Pod view information includes the IP address of the Pod in the first cloud service.

17. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 8.

19. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 8.