Resource scheduling method, device, cluster, system, medium and program product

By setting up multiple independent member clusters in the distributed cloud system and realizing decentralized resource scheduling, the problem of system paralysis caused by abnormality of the central cluster is solved, the reliability and flexibility of the system are improved, and the system is protected under attack. normal operation of the system.

CN118779072APending Publication Date: 2024-10-15HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310796928.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-03
Filing Date
2023-06-30
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Abnormalities in the central member cluster in the distributed cloud system lead to low reliability of resource scheduling, which can easily lead to the paralysis of the entire system. Moreover, due to the limitation of the central cluster scale, the flexibility is poor.

Method used

Set up at least two independent member clusters in the distributed cloud system. Each cluster can independently schedule resources. Decentralized resource scheduling is achieved through distributed storage of reference information to ensure that the system can still function when a certain cluster is attacked. normal operation and reduce system limitations.

Benefits of technology

It improves the reliability and security of distributed cloud systems, avoids system paralysis, enhances the flexibility and disaster recovery capabilities of resource scheduling, and reduces dependence on the scale of the central cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779072A_ABST
    Figure CN118779072A_ABST
Patent Text Reader

Abstract

The invention discloses a resource scheduling method and device, a cluster, a system, a medium and a program product, and belongs to the technical field of cloud computing. In a plurality of member clusters included in the decentralized distributed cloud system, each of at least two first member clusters can obtain a resource scheduling request carrying resource demand information, and at least one reference member cluster is determined from the plurality of member clusters according to the resource demand information and reference information, and processing the resource scheduling request through the at least one reference member cluster. Wherein the reference information comprises at least one of resource supply information and feature information corresponding to each member cluster in the plurality of member clusters, and the reference information is stored on at least two second member clusters in the plurality of member clusters in a distributed manner. The at least two first member clusters capable of performing resource scheduling are arranged, and the reference information is subjected to distributed storage, so that the reliability of the distributed cloud system is improved, and the limitation is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese patent application No. 202310347322.2, filed on April 3, 2023, with invention name “Distributed management cloud system, computer equipment, storage medium and program product”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of cloud computing technology, and in particular to methods, devices, clusters, systems, media and program products for scheduling resources. Background Art

[0003] A distributed cloud system includes multiple member clusters, each of which can provide certain resources. During the operation of the distributed cloud system, it is often necessary to schedule the resources provided by each member cluster.

[0004] In the related art, one of the multiple member clusters is used as the central member cluster, and the other member clusters except the central member cluster are used as non-central member clusters. The non-central member cluster itself does not perform resource scheduling. When the non-central member cluster needs to perform resource scheduling, it sends a request to the central member cluster, and the central member cluster performs unified resource scheduling according to the request.

[0005] However, the central member cluster may have difficulty in resource scheduling due to abnormal situations, causing the entire distributed cloud system to be paralyzed. Therefore, the reliability of resource scheduling according to related technologies is low and relatively limited. Summary of the invention

[0006] The present application provides a method, device, cluster, system, medium and program product for scheduling resources to solve the problem of low reliability and limitation of resource scheduling according to related technologies. The technical solution provided by the present application includes the following aspects.

[0007] In a first aspect, a method for scheduling resources is provided, and the method is applied to each first member cluster of at least two first member clusters among multiple member clusters included in a distributed cloud system. In other words, in a distributed cloud system, there are at least two first member clusters that can respectively execute the method for scheduling resources provided in the present application. In this method, the first member cluster obtains a resource scheduling request, and the resource scheduling request carries resource demand information. Afterwards, the first member cluster determines at least one reference member cluster from multiple member clusters based on the resource demand information and reference information, so as to process the resource scheduling request through at least one reference member cluster. The reference information includes at least one of resource supply information and feature information corresponding to each member cluster in the multiple member clusters, and the reference information is distributed and stored on at least two second member clusters in the multiple member clusters.

[0008] The distributed cloud system in the present application belongs to a decentralized cloud system. On the one hand, at least two first member clusters are set up to perform resource scheduling separately. Even if a first member cluster is attacked, there is still an unattacked first member cluster that can continue to schedule resources, thereby avoiding the entire distributed cloud system from being paralyzed, so that the distributed cloud system has higher reliability and higher security. On the other hand, for the reference information needed in the process of resource scheduling, the reference information is distributed and stored on at least two second member clusters, thereby realizing the disaster recovery function for the reference information. Moreover, since this decentralized cloud system does not have a central cluster, it will not be limited by the scale of the central cluster, which reduces the limitations of the distributed cloud system and is conducive to flexible adjustment (such as expansion) of the architecture of the distributed cloud system, thereby improving the flexibility of resource scheduling.

[0009] In a possible implementation, in the reference information, at least one of the resource supply information and the feature information is indicated by a cluster identifier of a corresponding member cluster, and a cluster identifier is used to identify a member cluster in a distributed cloud system. Accordingly, before determining at least one reference member cluster from multiple member clusters based on the resource demand information and the reference information, the method further includes: becoming a member cluster of the distributed cloud system and obtaining a reference cluster identifier; generating reference information based on the reference cluster identifier, the reference information including the reference cluster identifier and at least one of the resource supply information and the feature information corresponding to the member cluster identified by the reference cluster identifier.

[0010] Among them, since at least one of the resource supply information and feature information in the reference information needs to be indicated by the cluster identifier of the corresponding member cluster, the first member cluster needs to first become a member cluster of the distributed cloud system, obtain the reference cluster identifier, and then use the reference cluster identifier to indicate at least one information corresponding to the first member cluster in the reference information. Indicating at least one information by the reference cluster identifier is conducive to quickly and accurately obtaining at least one information according to the reference cluster identifier, thereby improving the accuracy and efficiency of resource scheduling.

[0011] In one possible implementation, becoming a member cluster of a distributed cloud system and obtaining a reference cluster identifier include: sending a first request to a third member cluster, the first request being used to request becoming a member cluster of the distributed cloud system, the third member cluster being a member cluster already included in the distributed cloud system; upon receiving first confirmation information sent by a third member cluster greater than or equal to a first number in the third member clusters, becoming a member cluster of the distributed cloud system, the first confirmation information being used to allow becoming a member cluster of the distributed cloud system; and obtaining a reference cluster identifier based on the cluster identifier of the third member cluster.

[0012] In the case of receiving the first confirmation information sent by the third member clusters greater than or equal to the first number, it means that there are enough third member clusters in the distributed cloud system that agree that the first member cluster also becomes a member cluster of the distributed cloud system, so the first member cluster can actually become a member cluster of the distributed cloud system and obtain the reference cluster identifier accordingly. This process is equivalent to a simple and practical consensus mechanism.

[0013] In a possible implementation, obtaining a reference cluster identifier according to a cluster identifier of a third member cluster includes: when the third member cluster does not have a cluster identifier, using an initial value as the reference cluster identifier. Generating reference information according to the reference cluster identifier includes: using the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier as reference information.

[0014] In this implementation, since the third member cluster does not have a cluster identifier, there is no need to consider the third member cluster, and the initial value can be directly used as the reference cluster identifier of the first member cluster. In addition, since the third member cluster does not have a cluster identifier, there will be no at least one information corresponding to the third member cluster in the reference information (because at least one information in the reference information needs to be indicated by the cluster identifier of the corresponding cluster), so the reference cluster identifier and at least one information corresponding to the first member cluster can be directly used as reference information.

[0015] Alternatively, in another possible implementation, obtaining a reference cluster identifier according to a cluster identifier of a third member cluster includes: when the third member cluster has a cluster identifier, taking other values ​​except the value of the cluster identifier of the third member cluster as the reference cluster identifier. Generating reference information according to the reference cluster identifier includes: adding the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier to information corresponding to the third member cluster to obtain reference information, wherein the information corresponding to the third member cluster includes the cluster identifier of the third member cluster and at least one of resource supply information and feature information corresponding to the third member cluster.

[0016] In this implementation, since the third member cluster has occupied the cluster identifier, it is necessary to select the reference cluster identifier of the first member cluster from the cluster identifier not occupied by the third member cluster. In addition, since the third member cluster has a cluster identifier, there is at least one information corresponding to the third member cluster in the reference information (because at least one information in the reference information needs to be indicated by the cluster identifier of the corresponding cluster), then, it is necessary to add the reference cluster identifier and at least one information corresponding to the first member cluster on the basis of the at least one information corresponding to the third member cluster, so as to obtain the reference information.

[0017] In a possible implementation, taking values ​​other than the value of the cluster identifier of the third member cluster as the reference cluster identifier includes: determining a maximum value among the values ​​of the cluster identifier of the third member cluster, and taking the sum of the maximum value and the first value as the reference cluster identifier. The member cluster that joins the distributed cloud system later has a larger cluster identifier.

[0018] Alternatively, in another possible implementation, using other values ​​other than the value of the cluster identifier of the third member cluster as the reference cluster identifier includes: determining a minimum value among the values ​​of the cluster identifier of the third member cluster, and using the difference between the minimum value and the second value as the reference cluster identifier. The member cluster that joins the distributed cloud system later has a smaller cluster identifier.

[0019] No matter which of the above two implementation methods is used, the uniqueness of the reference cluster identifier can be guaranteed, and the member clusters and the cluster identifiers can correspond one to one, thereby ensuring the accuracy of the identifier.

[0020] In one possible implementation, the method also includes: receiving a second request sent by a non-member cluster, the second request being used to request to become a member cluster of the distributed cloud system; sending a second request to a fourth member cluster, the fourth member cluster being other member clusters included in the distributed cloud system; upon receiving second confirmation information sent by a fourth member cluster greater than or equal to the second number in the fourth member cluster, sending third confirmation information to the fourth member cluster, the second confirmation information being used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system, and the third confirmation information being used to indicate a determination to allow the non-member cluster to become a member cluster of the distributed cloud system; upon receiving third confirmation information sent by a fourth member cluster greater than or equal to the third number in the fourth member cluster, sending fourth confirmation information to the non-member cluster, the fourth confirmation information being used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system.

[0021] When the first member cluster has become a member cluster of the distributed cloud system, the first member cluster can also allow other non-member clusters to join the distributed cloud system through a consensus mechanism. This method is conducive to the flexible expansion of the architecture of the distributed cloud system, increasing the scale of the distributed cloud system, and improving the various capabilities of the distributed cloud system.

[0022] In a possible implementation, after processing a resource scheduling request through at least one reference member cluster, the method further includes: upon detecting that at least one of the corresponding resource supply information and feature information is updated, updating the reference information to obtain updated information, and using the updated information to process other resource scheduling requests.

[0023] By timely updating the reference information, the accuracy of the reference information is guaranteed, so that subsequent other resource scheduling requests can be accurately processed and the accuracy of resource scheduling can be guaranteed.

[0024] In one possible implementation, the reference information includes resource supply information and feature information corresponding to each member cluster in a plurality of member clusters, and at least one reference member cluster is determined from the plurality of member clusters based on the resource demand information and the reference information, including: determining a fifth member cluster from the plurality of member clusters based on the feature information corresponding to each member cluster in the plurality of member clusters; and determining at least one reference member cluster from the fifth member cluster based on the resource demand information and the resource supply information corresponding to the fifth member cluster.

[0025] In this implementation, the member clusters are first screened according to the feature information, that is, the fifth member cluster is screened. Then, the member clusters are screened according to the resource demand information and the resource supply information, so that at least one reference member cluster for supplying resources can be screened. This is conducive to screening reference member clusters according to actual needs, has high flexibility, and has a wide range of applications.

[0026] In a second aspect, a device for scheduling resources is provided, the device being applied to each first member cluster of at least two first member clusters among a plurality of member clusters included in a distributed cloud system, the device comprising:

[0027] An acquisition module is used to acquire a resource scheduling request, which carries resource demand information;

[0028] A determination module, configured to determine at least one reference member cluster from a plurality of member clusters according to resource demand information and reference information, wherein the reference information includes at least one of resource supply information and feature information corresponding to each member cluster in the plurality of member clusters, and the reference information is distributedly stored in at least two second member clusters in the plurality of member clusters;

[0029] The processing module is configured to process a resource scheduling request through at least one reference member cluster.

[0030] In one possible implementation, in the reference information, at least one of the resource supply information and the feature information is indicated by a cluster identifier of a corresponding member cluster, and a cluster identifier is used to identify a member cluster in a distributed cloud system; the device also includes: a generation module, which is used to become a member cluster of the distributed cloud system and obtain a reference cluster identifier; reference information is generated according to the reference cluster identifier, and the reference information includes the reference cluster identifier, and at least one of the resource supply information and the feature information corresponding to the member cluster identified by the reference cluster identifier.

[0031] In one possible implementation, a generation module is used to send a first request to a third member cluster, the first request is used to request to become a member cluster of the distributed cloud system, and the third member cluster is a member cluster already included in the distributed cloud system; upon receiving first confirmation information sent by a third member cluster greater than or equal to the first number in the third member cluster, the module becomes a member cluster of the distributed cloud system, and the first confirmation information is used to allow the module to become a member cluster of the distributed cloud system; and obtain a reference cluster identifier based on the cluster identifier of the third member cluster.

[0032] In a possible implementation, the generation module is used to use the initial value as the reference cluster identifier when the third member cluster does not have a cluster identifier; and use the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier as reference information.

[0033] In one possible implementation, a generation module is used to, when the third member cluster has a cluster identifier, use other values ​​except the value of the cluster identifier of the third member cluster as a reference cluster identifier; add the reference cluster identifier, and at least one of the resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier, to the information corresponding to the third member cluster to obtain reference information, wherein the information corresponding to the third member cluster includes the cluster identifier of the third member cluster, and at least one of the resource supply information and feature information corresponding to the third member cluster.

[0034] In a possible implementation manner, the generating module is configured to determine a maximum value among values ​​of the cluster identifier of the third member cluster, and use the sum of the maximum value and the first value as the reference cluster identifier.

[0035] In a possible implementation manner, the generating module is configured to determine a minimum value among values ​​of the cluster identifier of the third member cluster, and use a difference between the minimum value and the second value as a reference cluster identifier.

[0036] In a possible implementation, the device further includes:

[0037] A receiving module, used for receiving a second request sent by a non-member cluster, where the second request is used for requesting to become a member cluster of the distributed cloud system;

[0038] A sending module, configured to send a second request to a fourth member cluster, where the fourth member cluster is another member cluster included in the distributed cloud system;

[0039] The receiving module is further used to send third confirmation information to the fourth member cluster when receiving second confirmation information sent by fourth member clusters greater than or equal to the second number in the fourth member cluster, the second confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system, and the third confirmation information is used to indicate that it is determined to allow the non-member cluster to become a member cluster of the distributed cloud system;

[0040] The sending module is also used to send fourth confirmation information to the non-member cluster when receiving third confirmation information sent by fourth member clusters greater than or equal to the third number in the fourth member cluster, and the fourth confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system.

[0041] In a possible implementation, the device also includes: an update module, which is used to update the reference information when it is detected that at least one of the corresponding resource supply information and feature information is updated, to obtain updated information, and the updated information is used to process other resource scheduling requests.

[0042] In one possible implementation, the reference information includes resource supply information and feature information corresponding to each member cluster in a plurality of member clusters, and a determination module is used to determine a fifth member cluster from the plurality of member clusters based on the feature information corresponding to each member cluster in the plurality of member clusters; and to determine at least one reference member cluster from the fifth member cluster based on the resource demand information and the resource supply information corresponding to the fifth member cluster.

[0043] In a third aspect, a computer device cluster is provided, the computer device cluster comprising at least one computer device, each computer device comprising a processor and a memory, at least one computer instruction being stored in the memory; the at least one computer instruction stored in the memory of at least one computer device is loaded and executed by the processor of at least one computer device, so that the computer device cluster implements the method for scheduling resources provided by the first aspect or any possible implementation method of the first aspect.

[0044] Optionally, there are one or more processors and one or more memories.

[0045] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0046] According to a fourth aspect, a distributed cloud system is provided, wherein the distributed cloud system includes a plurality of computer device clusters provided by the third aspect.

[0047] In a fifth aspect, a computer-readable storage medium is provided, in which at least one computer instruction is stored. The at least one computer instruction is loaded and executed by a computer device cluster so that the computer device cluster implements the method for scheduling resources provided by the first aspect or any possible implementation method of the first aspect.

[0048] In a sixth aspect, a computer program or a computer program product is provided, wherein the computer program or the computer program product comprises at least one computer instruction, and the at least one computer instruction is executed by a computer device cluster so that the computer device cluster implements the method for scheduling resources provided by the first aspect or any possible implementation manner of the first aspect.

[0049] In a seventh aspect, a chip is provided, comprising a processor for calling and executing instructions stored in a memory, so that a computer device cluster equipped with the chip can implement the method for scheduling resources provided by the first aspect or any possible implementation of the first aspect.

[0050] In an eighth aspect, another chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, the processor is used to execute the code in the memory, and when the code is executed, a computer device cluster equipped with the chip implements the method for scheduling resources provided by the first aspect or any possible implementation method of the first aspect.

[0051] Optionally, the computer device cluster equipped with a chip includes at least one computer device. When the number of computer devices is one, the computer device is equipped with a chip. When the number of computer devices is multiple, one or more of the multiple computer devices are equipped with a chip.

[0052] It should be understood that the technical effects achieved by the technical solutions provided by the second to eighth aspects of the present application and any possible implementation of these aspects can refer to the technical effects achieved by the technical solutions provided by the first aspect and any possible implementation of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A structural diagram of a distributed cloud system in a related technology provided in an embodiment of the present application;

[0054] Figure 2 A structural diagram of a distributed cloud system in another related technology provided in an embodiment of the present application;

[0055] Figure 3 A structural diagram of a distributed cloud system in another related technology provided in an embodiment of the present application;

[0056] Figure 4 A structural diagram of a distributed cloud system provided in an embodiment of the present application;

[0057] Figure 5 A structural diagram of another distributed cloud system provided in an embodiment of the present application;

[0058] Figure 6 A structural diagram of another distributed cloud system provided in an embodiment of the present application;

[0059] Figure 7 A flowchart of a method for scheduling resources provided in an embodiment of the present application;

[0060] Figure 8 A schematic diagram of a member cluster of a distributed cloud system provided in an embodiment of the present application;

[0061] Fig. 9 A schematic diagram of another member cluster of a distributed cloud system provided in an embodiment of the present application;

[0062] Fig.10 A schematic diagram of obtaining a reference cluster identifier provided in an embodiment of the present application;

[0063] Fig.11 A schematic diagram of resource scheduling provided in an embodiment of the present application;

[0064] Fig.12 A schematic diagram of the structure of a device for scheduling resources provided in an embodiment of the present application;

[0065] Fig.13 A schematic diagram of the structure of a computer device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0067] A distributed cloud system refers to a cloud computing platform built on the basis of distributed computing, which has high availability, security, reliability and low latency. For example, a distributed cloud system includes but is not limited to systems such as container orchestration engines (Kubernetes, K8s). Figure 1 As shown, there is a central cluster in the centralized distributed cloud system, which is used to manage other clusters (such as Figure 1 Cluster A, Cluster B, Cluster C, and Cluster D are shown in the figure. For example, the central cluster stores information of all other clusters and schedules resources for other clusters.

[0068] For example, related technology 1 includes Karmada technology (a distributed management technology), and the technical framework of the Karmada technology is as follows: Figure 2 As shown. Figure 2In the process, the Karmada control plane is deployed on the central cluster. Then, the Karmada application programming interface (API) server, ETCD (an open source project), Karmada scheduler and Karmada controllers are deployed on the Karmada control plane. The clusters are connected to the Karmada control plane for unified management, such as scheduling resources for each cluster.

[0069] For example, the second related technology includes open cluster management (OCM) technology. The technical framework of OCM technology is as follows: Figure 3 As shown. Figure 3 In the process, the OCM control plane is deployed on the central cluster, and the cluster manager and management addons are deployed on the OCM control plane. After that, the cluster is connected to the OCM control plane for unified management, such as scheduling resources for each cluster by the OCM control plane.

[0070] However, since the above-mentioned technologies are only used by the central cluster for storage and resource scheduling, once the central cluster is attacked, the entire distributed cloud system will be paralyzed, with low reliability and high security difficulty. In addition, the scale of resource scheduling is limited by the scale of the central cluster, which is very limited.

[0071] like Figure 4 As shown, the embodiment of the present application provides a distributed cloud system, which includes multiple member clusters, each of which is also called a distributed cloud. Among them, multiple member clusters refer to at least two member clusters, and the embodiment of the present application does not limit the number of member clusters included in the distributed cloud system. Each member cluster includes at least one computer device, and the computer devices included in the same member cluster can communicate with each other. Figure 4 The computer devices and the communication connection relationship between different computer devices are not shown. The computer devices include but are not limited to computing nodes, storage nodes, and network nodes. Different member clusters can be connected to each other through the included computer devices. The communication connection relationship between different member clusters can be determined based on experience or actual needs and is not limited here. For example, Figure 4 In the figure, the straight lines show the communication connection between member cluster A, member cluster B, member cluster C and member cluster D.

[0072] In the distributed cloud system, at least two member clusters among the multiple member clusters form a distributed storage platform, and the multiple member clusters can realize information sharing through the distributed storage platform. Among them, the at least two member clusters used to form the distributed storage platform jointly store information, such as the union of the information stored by each member cluster of the at least two member clusters is equal to the information that needs to be stored. The distributed storage platform can provide an access interface, and the access interface can be located on at least one member cluster among the at least two member clusters, such as on a computer device included in the at least one member cluster. Thus, each member cluster among the multiple member clusters can obtain the information stored in the distributed storage platform by accessing the access interface, thereby realizing information sharing. For example, Figure 4 The arcs in FIG. 1 show that member cluster A, member cluster B, member cluster C and member cluster D form a distributed storage platform.

[0073] In the embodiment of the present application, the information that can be shared through the distributed storage platform includes but is not limited to reference information, and the reference information includes at least one of resource supply information and feature information corresponding to each member cluster in the multiple member clusters included in the distributed cloud system. The following method embodiment will explain the resource supply information and feature information in detail, which will not be repeated here.

[0074] Based on this reference information, in a distributed cloud system, at least two member clusters among the multiple member clusters include a scheduler and at least one controller among the first controller and the second controller. The first controller is used to maintain the resource supply information in the distributed storage platform. For example, when the resource supply information of the member cluster where the first controller is located is updated, the updated resource supply information is reported through the access interface of the distributed storage platform. For example, when the resource supply information of one or some member clusters needs to be used, the resource supply information to be used is obtained through the access interface of the distributed storage platform. The second controller is used to maintain feature information. For example, when the feature information of the member cluster where the first controller is located is updated, the updated feature information is reported through the access interface of the distributed storage platform. For example, when the feature information of one or some member clusters needs to be used, the feature information to be used is obtained through the access interface of the distributed storage platform. The controller is used to implement resource scheduling based on at least one of the resource supply information maintained by the first controller and the feature information maintained by the second controller, that is, the above-mentioned reference information.

[0075] See also Figure 5 , Figure 5 The figure shows the case where member clusters A to B all include a scheduler, a first controller, and a second controller. Figure 6 , Figure 6It shows a situation where member cluster A declares required resources to member clusters B, C and D respectively, so as to use the resources provided by member clusters B, C and D, thereby realizing resource scheduling.

[0076] Each member cluster capable of implementing resource scheduling can be considered as a management entry, and the distributed cloud system provided in the embodiment of the present application includes at least two management entries, thereby forming a decentralized distributed cloud system, which is jointly decided, operated and maintained by the member clusters capable of implementing resource scheduling. Among them, decentralization is a structure, which means that a member cluster can be free from the control of any centralized member cluster (also called a central entity), but can enjoy autonomous rights, that is, it can perform resource scheduling on its own, and different member clusters enjoy equal autonomous rights, that is, they can perform resource scheduling without interfering with each other. Compared with the centralized distributed cloud system provided by the related technology one and the related technology two, this decentralized distributed cloud system has a disaster recovery function due to the existence of a distributed storage platform, which improves the reliability and security of information. In addition, since there is no central entity available for attack, the problem of the entire distributed cloud system being paralyzed due to the attack on the central entity is avoided, which is more flexible. Since there are at least two management entries that can implement resource scheduling, even if a certain management entry is attacked and fails, other management entries can also perform resource scheduling normally, which improves the security of the distributed cloud system.

[0077] The embodiment of the present application provides a method for scheduling resources, which can be applied to each first member cluster of at least two first member clusters in a plurality of member clusters included in a distributed cloud system, or in other words, in a distributed cloud system, at least two first member clusters can respectively execute the method for scheduling resources provided in the embodiment of the present application. Figures 4 to 6 The member cluster in the distributed cloud system shown in FIG. Figure 7 As shown, the method for scheduling resources that each first member cluster needs to execute includes the following steps 701 to 703.

[0078] Step 701: Obtain a resource scheduling request, where the resource scheduling request carries resource demand information.

[0079] Among them, the first member cluster needs to obtain a resource scheduling request in order to determine how many resources are needed to process the resource scheduling request. For example, the first member cluster obtains the resource scheduling request through the controller included in the first member cluster. Exemplarily, since the first member cluster includes at least one computer device, the first member cluster can obtain the resource scheduling request through the at least one computer device. For example, when one of the at least one computer devices receives a resource scheduling request sent by other devices (including but not limited to user terminals), it can be considered that the first member cluster obtains the resource scheduling request. Of course, this method of obtaining a resource scheduling request is only an example, and the embodiment of the present application does not limit the method of obtaining a resource scheduling request.

[0080] The resource scheduling request carries resource demand information, which is used to describe the resources that need to be used. The first member cluster can determine how many resources need to be used according to the resource demand information. The embodiment of the present application does not limit the form of the resource demand information. The resource demand information can include one or more information according to actual needs, so as to describe the resources that need to be used from one or more dimensions. For example, the information included in the resource demand information is: the number of copies included in the application instance, the number of resources required for each copy, and at least one of the copy indication information. When the resource scheduling request is sent by other devices, the application instance is the application instance that the user of the other device wants to deploy through the member cluster. Among them, the resources that each copy needs to use include but are not limited to at least one resource of the processor, memory, and input / output operations per second (IOPS). The processor includes but is not limited to at least one of a central processing unit (CPU) and a graphics processing unit (GPU). The number of processors that need to be used may refer to the number of processors that need to be used, the number of memories that need to be used may refer to the capacity of the memory that needs to be used, and the unit of capacity is, for example, gigabyte (G), and the number of IOPS that need to be used may refer to the value of IOPS. In addition, the replica indication information is used to indicate whether different replicas can be deployed in the same member cluster. When the replica indication information is used to indicate that different replicas cannot be deployed in the same member cluster, the replica indication information is also called cluster anti-affinity.

[0081] For example, an exemplary resource requirement information may be expressed as follows:

[0082] [3,">=2U4G","cluster anti affinity='app1'"]

[0083] The application instance is represented as app1. 3 indicates that the application instance includes 3 replicas. >=2U4G indicates that the number of resources required for each of the 3 replicas is greater than or equal to 2U4G, where 2U represents 2 CPUs and 4G represents 4G memory. cluster anti affinity='app1' indicates that the replica indication information of the application instance is cluster anti-affinity, that is, the 3 replicas included in the application instance cannot be deployed in the same member cluster.

[0084] Step 702, determining at least one reference member cluster from multiple member clusters based on resource demand information and reference information, the reference information including at least one of resource supply information and feature information corresponding to each member cluster in the multiple member clusters, and the reference information is distributedly stored in at least two second member clusters in the multiple member clusters.

[0085] First, the reference information will be described.

[0086] For the resource supply information that may be included in the reference information, the resource supply information corresponding to each member cluster in the multiple member clusters is used to describe the resources that the member cluster can supply (or provide), and the resource supply information may include one or more information to facilitate describing the resources that the member cluster can supply from one or more dimensions. For example, the resource supply information includes the following information: the number of resources that each computer device in at least one computer device included in a member cluster can supply, and the resources include but are not limited to at least one of processors, memory, and IOPS. The processor is, for example, at least one of a CPU and a GPU. The number of processors that can be supplied may refer to the number of processors that can be supplied, the number of memories that can be supplied may refer to the capacity of the memories that can be supplied, and the number of IOPS that can be supplied may refer to the value of IOPS.

[0087] For the characteristic information that may be included in the reference information, the characteristic information corresponding to each member cluster in the multiple member clusters is used to describe the characteristics of the member cluster, and the characteristic information includes but is not limited to at least one of the following information: the scale of the member cluster (such as the number of computer devices included in the member cluster), the geographical location of the member cluster, the health status of the member cluster, etc. Among them, the health status is used to indicate whether the member cluster is healthy, or whether the member cluster has a fault or abnormal situation.

[0088] It should be understood that both resource supply information and feature information can be set according to experience or actual needs, and the embodiments of the present application do not limit this. Exemplarily, resource supply information and feature information can exist in various forms, such as information tables, information sets or views, etc. No matter what form the information is in, it can be regarded as structured data. Taking the view form as an example, the resource supply information corresponding to each member cluster in multiple member clusters is represented as a cluster resource view, and the feature information corresponding to each member cluster in multiple member clusters is represented as a cluster management view. The cluster resource views and cluster management views of all member clusters together constitute a global view, which is the reference information in the form of a view.

[0089] Next, a method of determining at least one reference member cluster from a plurality of member clusters according to the resource demand information and the reference information is described.

[0090] As mentioned above, the first controller included in the first member cluster is used to maintain resource supply information, and the second controller included in the first member cluster is used to maintain feature information. Therefore, the scheduler included in the first member cluster can obtain resource supply information through the first controller and obtain feature information through the second controller. Thus, the scheduler can obtain reference information, and thus can determine at least one reference member cluster from multiple member clusters based on resource demand information and reference information. Exemplarily, the embodiments of the present application provide at least the following three determination methods for determining at least one reference member cluster.

[0091] Determination method 1, the reference information includes resource supply information and characteristic information corresponding to each member cluster in the multiple member clusters. In the process of determining the reference member cluster, the first member cluster determines a fifth member cluster from the multiple member clusters based on the characteristic information corresponding to each member cluster in the multiple member clusters, and determines at least one reference member cluster from the fifth member cluster based on the resource demand information and the resource supply information corresponding to the fifth member cluster.

[0092] Among them, when the characteristic information includes the scale of the member cluster, the fifth member cluster determined according to the characteristic information may be a member cluster with a specified scale among multiple member clusters. When the characteristic information includes the geographical location of the member cluster, the fifth member cluster determined according to the characteristic information may be a member cluster located at a specified geographical location among multiple member clusters. When the characteristic information includes the health status of the member cluster, the fifth member cluster determined according to the characteristic information may be a member cluster with a healthy health status among multiple member clusters, that is, a member cluster with no abnormal or abnormal conditions. Here, an example is given in which the characteristic information includes one type of information. When the characteristic information includes more than two types of information, the fifth member cluster meets the requirements of more than two types of information. For example, when the characteristic information includes the scale and health status of the cluster, the fifth member cluster is a member cluster with a specified scale and a healthy health status among multiple member clusters. For other cases in which the characteristic information includes more than two types of information, they will not be repeated here.

[0093] After determining one or more fifth member clusters based on the characteristic information, at least one reference member cluster can be determined from the fifth member clusters based on the resource demand information and the resource supply information corresponding to the fifth member cluster, so that the resource supply information corresponding to the at least one reference member cluster meets the resource demand information.

[0094] In some embodiments, when the resource requirement information does not include replica indication information, or the replica indication information included in the resource requirement information indicates that different replicas can be deployed in the same member cluster, the total number of resources required to be used as described by the resource requirement information can be determined first, and then at least one reference member cluster can be selected from one or more fifth member clusters based on the total number of resources required to be used and the resource supply information corresponding to the fifth member cluster, so that the total number of resources that can be supplied as described by the resource supply information corresponding to at least one reference member cluster is greater than or equal to the total number of resources required to be used as described in the resource requirement information, and it is considered that the resource supply information corresponding to at least one reference member cluster satisfies the resource requirement information.

[0095] In other embodiments, when the replica indication information included in the resource demand information indicates that different replicas cannot be deployed in the same member cluster, the number of at least one reference member cluster is first determined based on the number of replicas included in the application instance, so that the number of at least one reference member cluster is greater than or equal to the number of replicas included in the application instance, thereby ensuring that different replicas can be deployed on different reference member clusters. On this basis, according to the number of resources required for each replica described in the resource demand information, a certain number (i.e., the number of replicas greater than or equal to the number of replicas included in the application instance determined above) of reference member clusters are selected from one or more fifth member clusters, so that the number of resources that can be supplied as described by the resource supply information corresponding to a reference member cluster is greater than or equal to the number of resources required to be used by a replica described in the resource demand information (i.e., a replica deployed on the reference member cluster), and it is considered that the resource supply information corresponding to at least one reference member cluster meets the resource demand information.

[0096] In the second determination method, the reference information only includes the resource supply information corresponding to each member cluster in the multiple member clusters, and does not include the feature information corresponding to each member cluster. Accordingly, in the process of determining the reference member cluster, the first member cluster directly determines at least one reference member cluster from the multiple member clusters based on the resource demand information and the resource supply information corresponding to each member cluster in the multiple member clusters, so that the resource supply information corresponding to the at least one reference member cluster satisfies the resource demand information.

[0097] Among them, the method for determining at least one reference member cluster from multiple member clusters based on the resource demand information and the resource supply information corresponding to each member cluster can be referred to the method for determining at least one reference member cluster from the fifth member cluster based on the resource demand information and the resource supply information corresponding to the fifth member cluster as described in the above determination method one, and will not be repeated here.

[0098] In determination method three, the reference information only includes characteristic information corresponding to each member cluster in the multiple member clusters, but does not include resource supply information corresponding to each member cluster. Accordingly, in the process of determining the reference member cluster, the first member cluster determines the sixth member cluster from the multiple member clusters based on the characteristic information corresponding to each member cluster in the multiple member clusters, and then determines at least one reference member cluster from the sixth member cluster based on the resource demand information.

[0099] Among them, the method for determining the sixth member cluster from multiple member clusters based on the characteristic information corresponding to each member cluster can be referred to as described in the above determination method one. The method for determining the fifth member cluster from multiple member clusters based on the characteristic information corresponding to each member cluster is not repeated here. The number of the sixth member clusters is one or more. After determining the sixth member cluster, select from the sixth member cluster according to the resource demand information to obtain at least one reference member cluster. For example, the first member cluster obtains the correspondence between the resource demand information and the member cluster, queries the correspondence according to the resource demand information, obtains the member cluster corresponding to the resource demand information, and uses the member cluster belonging to the sixth member cluster in the member cluster corresponding to the resource demand information as at least one reference member cluster.

[0100] It should be understood that when executing step 702, one or more of the above three determination methods can be selected for use according to actual needs. When multiple determination methods are selected, multiple determination methods can be switched and used, and one of the multiple determination methods is used each time, or multiple determination methods can be used simultaneously, and multiple determination methods are used each time. For example, at least one candidate member cluster is determined according to each of the multiple determination methods. If at least one candidate member cluster determined according to different determination methods is the same, at least one candidate member cluster is used as at least one reference member cluster. In addition, no matter what determination method is used to determine at least one reference member cluster, the embodiments of the present application do not limit the relationship between at least one reference member cluster and the first member cluster. For example, the at least one reference member cluster may have an intersection with the first member cluster (or at least one reference member cluster has the same member cluster as the first member cluster), or the at least one reference member cluster may not have an intersection with the first member cluster.

[0101] Then, the method of obtaining reference information is described.

[0102] Since the first member cluster needs to use the reference information in the process of executing step 702, the first member cluster needs to obtain the reference information before executing step 702. Exemplarily, in the reference information, at least one of the resource supply information and the feature information is indicated by the cluster identifier of the corresponding member cluster. In other words, for a member cluster, there is a mapping relationship between the cluster identifier of the member cluster and at least one of the resource supply information and the feature information corresponding to the member cluster. Among them, a cluster identifier is used to identify a member cluster in a distributed cloud system, and the cluster identifier is unique. The first member cluster obtains the reference information through the following steps 7021 and 7022.

[0103] Step 7021, becoming a member cluster of the distributed cloud system, and obtaining a reference cluster identifier.

[0104] Among them, since the cluster identifier is used to identify the member clusters in the distributed cloud system, if the first member cluster does not become a member cluster of the distributed cloud system (or the first member cluster is a non-member cluster), then the first member cluster does not have a reference cluster identifier. Since at least one of the resource supply information and feature information in the reference information needs to be indicated by the cluster identifier of the corresponding member cluster, when the first member cluster does not have a reference cluster identifier, at least one of the resource supply information and feature information corresponding to the first member cluster cannot be indicated by the reference cluster identifier corresponding to the first member cluster, and thus at least one of the resource supply information and feature information corresponding to the first member cluster cannot be added to the reference information. Therefore, the first member cluster needs to become a member cluster of the distributed cloud system and obtain a reference cluster identifier so that the mapping relationship between at least one of the resource supply information and feature information corresponding to the first member cluster itself and the reference cluster identifier can be added to the reference information.

[0105] In an exemplary embodiment, becoming a member cluster of a distributed cloud system and obtaining a reference cluster identifier include: a first member cluster sends a first request to a third member cluster, the first request is used to request to become a member cluster of the distributed cloud system; upon receiving first confirmation information sent by a third member cluster greater than or equal to a first number of the third member clusters, the cluster becomes a member cluster of the distributed cloud system, the first confirmation information is used to allow the cluster to become a member cluster of the distributed cloud system; and obtaining a reference cluster identifier based on the cluster identifier of the third member cluster.

[0106] Among them, the third member cluster is a member cluster already included in the distributed cloud system. In the embodiment of the present application, a consensus mechanism is adopted. In this consensus mechanism, after the first member cluster requests to become a member cluster of the distributed cloud system, if there are enough member clusters (i.e., third member clusters greater than or equal to the first number) in the member clusters already included in the distributed cloud system that allow the first member cluster to become a member cluster of the distributed cloud system, then the first member cluster can become a member cluster of the distributed cloud system. Exemplarily, the consensus mechanism includes but is not limited to the practical Byzantine fault tolerance (PBFT) algorithm, which is not limited here.

[0107] The embodiments of the present application do not limit the first number, and the first number can be a specified number (such as 5), a specified percentage (such as 90%), a specified proportion (such as 2 / 3), or a value determined based on the maximum number of faulty member clusters that the distributed cloud system can tolerate. For example, the maximum number of faulty member clusters that the distributed cloud system can tolerate is expressed as F, and the conditions that the distributed cloud system needs to meet are: at least (3F+1) third member clusters (excluding the first member cluster currently requesting to become a distributed cloud system), or in other words, the number of third member clusters included in the distributed cloud system needs to be greater than or equal to (3F+1), then the first number can be expressed as (F+1).

[0108] In implementation mode 1, the first member cluster sends a first request to each third member cluster respectively, and each third member cluster can receive the first request. In implementation mode 2, the first member cluster sends a first request to a third member cluster among the third member clusters (it can be a random third member cluster or a third member cluster that is closest to the first member cluster, and the embodiment of the present application does not limit the third member cluster used to receive the first request in this implementation mode). After receiving the first request, a third member cluster that receives the first request will forward (such as broadcast) the first request to other third member clusters that have not received the first request among all the third member clusters included in the distributed cloud system, so that each third member cluster can also receive the first request.

[0109] It can be seen that, whether it is implementation mode 1 or implementation mode 2, each third member cluster included in the distributed cloud system can receive the first request. Exemplarily, implementation mode 1 and implementation mode 2 perform the same steps after each third member cluster receives the first request, so next, see Figure 8 , implementation mode 2 is taken as an example for explanation, and implementation mode 1 is not described in detail.

[0110] 1. See Figure 8 In S1 and S2, a first member cluster sends a first request to a third member cluster, and a third member cluster that receives the first request forwards the first request to other third member clusters.

[0111] For example, see Fig. 9, the first member cluster is represented as the new cluster, and all third member clusters in the distributed cloud system are member cluster 0, member cluster 1, member cluster 2, and member cluster 3. In the request phase, the new cluster sends the first request to member cluster 0 (i.e., a third member cluster that receives the first request). In the pre-prepare phase, member cluster 0 forwards the first request to member cluster 1, member cluster 2, and member cluster 3 (i.e., other third member clusters that have not received the first request), so that member cluster 1, member cluster 2, and member cluster 3 can all receive the first request.

[0112] 2. See Figure 8 In S3, each third member cluster performs an operation according to the received first request.

[0113] (1) After each third member cluster receives the first request, if the first member cluster is allowed to become a member cluster of the distributed cloud system, the third member cluster sends confirmation information A to other third member clusters in the distributed cloud system except itself, where the confirmation information A is used to indicate that the third member cluster itself (i.e., the sender of the confirmation information A) allows the first member cluster to become a member cluster of the distributed cloud system.

[0114] For example, see Fig. 9 In the preparation phase, member cluster 0, member cluster 1, member cluster 2, and member cluster 3 all allow the first member cluster to become a member cluster of the distributed cloud system. Therefore:

[0115] Member cluster 0 sends confirmation information A to member cluster 1, member cluster 2, and member cluster 3;

[0116] Member cluster 1 sends confirmation information A to member cluster 0, member cluster 2, and member cluster 3;

[0117] Member cluster 2 sends confirmation information A to member cluster 0, member cluster 1 and member cluster 3;

[0118] Member cluster 3 sends confirmation information A to member cluster 0 , member cluster 1 , and member cluster 2 .

[0119] (2) If a third member cluster receives confirmation information A sent by other third member clusters that is greater than or equal to the second number, the third member cluster can determine that there are enough other third member clusters to allow the first member cluster to become a member cluster of the distributed cloud system, and thus the third member cluster sends confirmation information B to other third member clusters in the distributed cloud system, and the confirmation information B is used to indicate that the third member cluster (i.e., the sender of the confirmation information B) determines to allow the first member cluster to become a member cluster of the distributed cloud system.

[0120] The embodiments of the present application do not limit the second number, and the second number may be a specified number, a specified percentage, a specified proportion, or a value determined according to the maximum number of faulty member clusters that the distributed cloud system can tolerate. For example, F is still used to represent the maximum number of faulty clusters that the distributed cloud system can tolerate, and the second number may be (2F+1). For example, if the value of F is 1, and the number of third member clusters included in the distributed cloud system is 4, which is equal to (3F+1), and the conditions that the distributed cloud system needs to meet in the above description are met, then the second number may be 3. That is to say, when a third member cluster receives confirmation information A sent by greater than or equal to 3 other third member clusters, the third member cluster may send confirmation information B to other third member clusters.

[0121] For example, see Fig. 9 , in the commit phase:

[0122] Since member cluster 0 receives confirmation information A (equal to 3) sent by member cluster 1, member cluster 2 and member cluster 3, member cluster 0 can send confirmation information B to member cluster 1, member cluster 2 and member cluster 3;

[0123] Since member cluster 1 receives confirmation information A (equal to 3) sent by member cluster 0, member cluster 2 and member cluster 3, member cluster 1 can send confirmation information B to member cluster 0, member cluster 2 and member cluster 3;

[0124] Since member cluster 2 receives confirmation information A (equal to 3) sent by member cluster 0, member cluster 1 and member cluster 3, member cluster 2 can send confirmation information B to member cluster 0, member cluster 1 and member cluster 3;

[0125] Since member cluster 3 receives confirmation information A (equal to 3) sent by member cluster 0, member cluster 1 and member cluster 2, member cluster 3 can send confirmation information B to member cluster 0, member cluster 1 and member cluster 2.

[0126] In the embodiment of the present application, the reason why the second number is made (2F+1) is to ensure that at most only F member clusters among the N member clusters included in the distributed cloud system (that is, all member clusters) have errors, thereby ensuring the security and survivability of the distributed cloud system. Security means: if a request is confirmed to be valid, then the request is indeed valid and has not been tampered with. Survivability means: if enough member clusters can confirm a request, then the request can eventually be confirmed to be valid.

[0127] In the worst case, that is, when at most F member clusters have errors, the consensus mechanism can only be completed through (NF) member clusters. If the F member clusters with errors are all located in (NF) member clusters, then the number of member clusters without errors in the (NF) member clusters is (N-2F). Therefore, it is necessary to ensure that the number of member clusters without errors (N-2F) is greater than the number of member clusters with errors F, so as to avoid the member clusters with errors affecting the results of the consensus mechanism, so as to ensure the security and survivability of the distributed cloud system. Therefore, N needs to be greater than 3F, that is, the value of N should be at least (3F+1). Based on this, since at most F member clusters have errors in the (3F+1) member clusters, the number of other member clusters without errors (2F+1) can be used as the above-mentioned second number.

[0128] 3. See Figure 8 In S4, each third member cluster sends first confirmation information to the first member cluster according to actual conditions.

[0129] If a third member cluster receives confirmation information B sent by greater than or equal to a third number of other third member clusters, the third member cluster can determine that enough other third member clusters have determined to allow the first member cluster to become a member cluster of the distributed cloud system, then the third member cluster will send a first confirmation information to the first member cluster, and the first confirmation information is used to indicate that the first member cluster is allowed to become a member cluster of the distributed cloud system.

[0130] The embodiment of the present application does not limit the third number, and the third number may be the same as or different from the above-mentioned second number. The third number may be a specified number, a specified percentage, a specified proportion, or a value determined according to the maximum number of faulty member clusters that the distributed cloud system can tolerate. Still taking F as an example to represent the maximum number of faulty clusters that the distributed cloud system can tolerate, the third number may be (2F+1). For example, still when the value of F is 1, the value of the third number is 3. That is to say, when a third member cluster receives confirmation information B sent by greater than or equal to 3 other third member clusters, the third member cluster may send a first confirmation information to the first member cluster.

[0131] For example, see Fig. 9 , in the reply phase:

[0132] Since member cluster 0 receives confirmation information B (equal to 3) sent by member cluster 1, member cluster 2 and member cluster 3, member cluster 0 can send the first confirmation information to the first member cluster (ie, the new cluster);

[0133] Since member cluster 1 receives confirmation information B (equal to 3) sent by member cluster 0, member cluster 2, and member cluster 3, member cluster 1 can send the first confirmation information to the first member cluster;

[0134] Since member cluster 2 receives confirmation information B (equal to 3) sent by member cluster 0, member cluster 1, and member cluster 3, member cluster 2 can send the first confirmation information to the first member cluster;

[0135] Because member cluster 3 receives confirmation information B (equal to 3) sent by member cluster 0, member cluster 1, and member cluster 2, member cluster 3 can send the first confirmation information to the first member cluster.

[0136] 4. The first member cluster determines whether to become a member cluster of the distributed cloud system according to actual conditions.

[0137] Among them, if the first member cluster receives the first confirmation information sent by the third member clusters greater than or equal to the first number, the first member cluster becomes a member cluster of the distributed cloud system. As mentioned above, taking the maximum number of faulty member clusters that the distributed cloud system can tolerate as F as an example, the first number can be expressed as (F+1). For example, when the value of F is 1, the value of the first number is 2. That is, when a first member cluster receives the first confirmation information sent by greater than or equal to 2 third member clusters, the first member cluster can become a member cluster of the distributed cloud system.

[0138] For example, see Fig. 9 , because the first member cluster receives the first confirmation information sent by member cluster 0, member cluster 1, member cluster 2 and member cluster 3 through the reply phase (a total of 4 first confirmation information, which is greater than 2), the first member cluster can become a member cluster of the distributed cloud system. The member clusters of the distributed cloud system change from 4 to 5.

[0139] Above, through Figure 8 , Fig. 9 and 1 4 illustrate the process of the first member cluster becoming a member cluster of the distributed cloud system. After the first member cluster has become a member cluster of the distributed cloud system, it can continue to obtain the reference cluster identifier according to the cluster identifier of the third member cluster. In an exemplary embodiment, the embodiment of the present application provides at least the following two obtaining methods for the first member cluster to obtain the reference cluster identifier according to the cluster identifier of the third member cluster.

[0140] Acquisition method 1: When the third member cluster does not have a cluster identifier, the initial value is used as a reference cluster identifier.

[0141] Among them, although the third member cluster is already a member cluster included in the distributed cloud system, the third member cluster may not have obtained a cluster identifier, resulting in a situation where the third member cluster does not have a cluster identifier. In this acquisition method, the initial value can be directly used as a reference cluster identifier, and the embodiment of the present application does not limit the initial value.

[0142] Acquisition method 2: when the third member cluster has a cluster identifier, other values ​​except the value of the cluster identifier of the third member cluster are used as reference cluster identifiers.

[0143] Since the cluster identifier needs to be unique, when the third member has a cluster identifier, it is necessary to use other values ​​except the value of the cluster identifier of the third member cluster as the reference cluster identifier, or in other words, use the cluster identifier not occupied by the third member cluster as the reference cluster identifier. Exemplarily, using other values ​​except the value of the cluster identifier of the third member cluster as the reference cluster identifier may include the following method 1 and method 2.

[0144] Method 1, determine the maximum value of the cluster identifier of the third member cluster, and use the sum of the maximum value and the first value as the reference cluster identifier. The embodiment of the present application does not limit the value of the first value, and the first value is, for example, 1. For example, the values ​​of the cluster identifier of the third member cluster include 1, 2, and 3, and the maximum value is 3, then 4 can be used as the reference cluster identifier of the first member cluster.

[0145] Method 2, determine the minimum value among the values ​​of the cluster identifier of the third member cluster, and use the difference between the minimum value and the second value as the reference cluster identifier. The embodiment of the present application also does not limit the value of the second value, and the second value is, for example, 1. For example, the values ​​of the cluster identifier of the third member cluster include 20, 19, and 18, and the minimum value is 18, then 17 can be used as the reference cluster identifier of the first member cluster.

[0146] Step 7022: Generate reference information according to the reference cluster identifier, where the reference information includes the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier.

[0147] After the first member cluster becomes a member cluster of the distributed cloud system through the above step 7021 and obtains the reference cluster identifier, it can continue to execute step 7022 to generate reference information. Exemplarily, the embodiments of the present application provide at least the following two generation methods for the first member cluster to generate reference information according to the reference cluster identifier.

[0148] Generating method 1 corresponds to obtaining method 1 in step 7021, the first member cluster uses the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier as reference information.

[0149] Since the obtaining method 1 corresponding to the generating method 1 belongs to the case where the third member cluster does not have a cluster identifier, even if the third member cluster may correspond to at least one of the resource supply information and feature information, the at least one of the resource supply information and feature information corresponding to the third member cluster cannot be indicated by the cluster identifier corresponding to the third member cluster, and therefore there will be no mapping relationship between the cluster identifier of the third member cluster and the at least one of the resource supply information and feature information corresponding to the third member cluster in the reference information (hereinafter referred to as the information corresponding to the third member cluster). Precisely because there will be no information corresponding to the third member cluster in the reference information, when generating the reference information according to the generating method 1, the first member cluster does not need to consider the information corresponding to the third member cluster, but directly uses the reference cluster identifier of the first member cluster and at least one of the resource supply information and feature information corresponding to the first member cluster (i.e., the member cluster identified by the reference cluster identifier) ​​as reference information.

[0150] Among them, after generating reference information, the first member cluster can upload the generated reference information to the distributed storage platform through the access interface of the distributed storage platform, so that the distributed storage platform can store the reference information, and each member cluster included in the distributed cloud system can share reference information through the distributed storage platform.

[0151] Generation method two corresponds to acquisition method two in step 7021. The first member cluster adds the reference cluster identifier and at least one of the resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier to the information corresponding to the third member cluster to obtain reference information. The information corresponding to the third member cluster includes the cluster identifier of the third member cluster and at least one of the resource supply information and feature information corresponding to the third member cluster.

[0152] Since the second obtaining method corresponding to the second generating method belongs to the case where the third member cluster has a cluster identifier, and therefore the reference information contains information corresponding to the third member cluster, when generating the reference information according to the second generating method, the first member cluster needs to consider the information corresponding to the third member cluster, and thus the reference cluster identifier of the first member cluster and at least one of the resource supply information and feature information corresponding to the first member cluster (i.e., the member cluster identified by the reference cluster identifier) ​​are added to the information corresponding to the third member cluster (hereinafter referred to as the adding process) to obtain the reference information.

[0153] Among them, the first member cluster can first obtain the information corresponding to the third member cluster through the access interface of the distributed storage platform, then execute the joining process to obtain the reference information, and then upload the generated reference information to the distributed storage platform through the access interface of the distributed storage platform, so that the distributed storage platform can store the reference information, and each member cluster included in the distributed cloud system can share the reference information through the distributed storage platform. Exemplarily, during the upload process, the first member cluster can only upload the reference cluster identifier of the first member cluster and at least one of the resource supply information and feature information corresponding to the first member cluster to the distributed storage platform, then the uploaded content and the information corresponding to the original third member cluster in the distributed storage platform together constitute the reference information, so that the distributed storage platform can store the reference information. Alternatively, the first member cluster can upload the generated reference information to the distributed storage platform, then the uploaded reference information replaces the information corresponding to the original third member cluster in the distributed storage platform, so that the distributed storage platform can store the reference information.

[0154] It should be understood that after the first member cluster becomes a member cluster of the distributed cloud system, it needs to first determine whether the third member cluster has a cluster identifier and obtain a determination result so as to select the above-mentioned acquisition method one and generation method one according to the determination result, or select the above-mentioned acquisition method two and generation method two.

[0155] In an exemplary embodiment, the first member cluster attempts to obtain information corresponding to the third member cluster, and determines whether the third member cluster has a cluster identifier based on the acquisition result, thereby obtaining a determination result. When the acquisition result is that the information corresponding to the third member cluster has not been obtained, or when the information corresponding to the third member cluster has been obtained but the information is empty, the determination result obtained based on the acquisition result is: the third member cluster does not have a cluster identifier. Alternatively, when the acquisition result is that the information corresponding to the third member cluster has been obtained and the information is not empty, the determination result obtained based on the acquisition result is: the third member cluster has a cluster identifier.

[0156] Based on this, taking the global view represented by reference information as an example, combined with Fig.10, step 7021 and step 7022 are illustrated with examples. After the first member cluster becomes a member cluster of the distributed cloud system, the access interface is accessed to obtain a global view from the distributed storage platform. The global view at this time is the information corresponding to the third member cluster. If the global view is not obtained through the access or the obtained global view is empty, the above-mentioned obtaining method 1 is selected to obtain the reference cluster identifier, the above-mentioned generating method 1 is selected to generate the reference information, and the reference information is added to the global view to update the global view. If the global view obtained through the access is not empty, the above-mentioned obtaining method 2 is selected to obtain the reference cluster identifier, the above-mentioned generating method 2 is selected to generate the reference information, and the reference information is added to the global view to update the global view.

[0157] Furthermore, a method of distributively storing reference information is described.

[0158] As mentioned above, the reference information is distributedly stored on at least two second member clusters in the plurality of member clusters. The at least two second member clusters constitute a distributed storage platform, so that the distributed storage of the reference information can be realized through the distributed storage platform. The embodiment of the present application does not limit the relationship between the at least two first member clusters and the at least two second member clusters. Exemplarily, the first member cluster may be completely identical to the second member cluster, may be completely different from the second member cluster, or may be partially identical to the second member cluster. For example, taking the distributed cloud system including member cluster A, member cluster B, member cluster C and member cluster D as an example, the relationship between the first member cluster and the second member cluster is described. When the first member cluster includes member cluster A and member cluster B, and the second member cluster also includes member cluster A and member cluster B, the first member cluster and the second member cluster are considered to be completely identical. Alternatively, when the first member cluster is member cluster A and member cluster B, and the second member cluster is member cluster C and member cluster D, the first member cluster and the second member cluster are considered to be completely identical. Alternatively, when the first member cluster is member cluster A and member cluster B, and the second member cluster is member cluster B and member cluster C, the first member cluster and the second member cluster are considered to be partially identical. Of course, the embodiment of the present application does not limit the relationship between the at least one reference member cluster and the at least two second member clusters, which will not be described in detail here.

[0159] Exemplarily, in the embodiments of the present application, the requirements for the distributed storage platform include but are not limited to the following points.

[0160] (1) Security: The security of information (including but not limited to the above-mentioned reference information) when stored on a distributed storage platform, including confidentiality, integrity and availability of the information. For example, the security of the information is ensured by encrypting the information and distributing the information (for example, storing it in different member clusters).

[0161] (2) Reliability: The reliability of information stored on a distributed storage platform means that information can be accessed when it is needed, and the information will not be lost or destroyed. For example, the reliability of information is ensured by distributing the information.

[0162] (3) Scalability: The scalability of information storage through the distributed storage platform can change the storage capacity and processing power (such as the ability to provide corresponding information when the access interface is accessed) according to actual needs. Exemplarily, the storage capacity and processing power are expanded by changing the number of second member clusters and the number of computer devices included in the second member clusters.

[0163] (4) Transparency: Through the transparency of information stored on the distributed storage platform, the member cluster can accurately know the information stored on the distributed storage platform and the storage scheme of the distributed storage platform for storing information. Exemplarily, the second member cluster constituting the distributed storage platform can form a blockchain to ensure the transparency of the stored information through blockchain technology.

[0164] (5) Fairness: fairness in storing information through a distributed storage platform means that all member clusters can equally access the access interface of the distributed storage platform to obtain information. For example, fairness is ensured through a decentralized structure.

[0165] Based on the above requirements, the distributed storage platform in the embodiments of the present application includes but is not limited to: an interplanetary file system (IPFS), a platform based on Swarm technology, a platform based on Sia technology, or a platform based on Storj technology. Each distributed storage platform is described below.

[0166] (1) IPFS is a system for persistent, reliable, and distributed storage and distribution of information. When IPFS receives information that a member cluster needs to store, it stores the information in an address, generates a hash value for uniquely identifying the information, stores the address and hash value in a distributed hash table (DHT), and returns the hash value to the member cluster to facilitate the subsequent distribution of information through DHT. When the member cluster needs to obtain information, it provides the hash value to IPFS (for example, sending the hash value to IPFS through an access interface), IPFS queries the DHT based on the hash value to obtain the address corresponding to the hash value, obtains the stored information from the address, and then verifies the stored information through the hash value. If the verification passes, that is, the stored information has not been tampered with, the stored information is returned to the member cluster, thereby achieving information distribution.

[0167] Exemplarily, IPFS has at least the following characteristics.

[0168] (a) Freely accessible. Any member cluster can freely access IPFS to store information in IPFS or obtain stored information from IPFS.

[0169] (b) Credibility: IPFS uses DHT to distribute information, so that information can be distributed to multiple clusters, or replicated by multiple member clusters, improving the credibility of the information.

[0170] (c) Distributed storage: IPFS stores information in a distributed manner in multiple second member clusters (used to constitute IPFS), so that the failure of any single second member cluster will not affect the availability of information.

[0171] (d) Version control. IPFS supports version control by saving historical versions of information, such as rolling back from the current version to a historical version.

[0172] (e) Information integrity: IPFS uses hash values ​​to uniquely identify information, so that the integrity of the information can be guaranteed.

[0173] (f) High speed. When obtaining information, IPFS will automatically choose to obtain information from an address that is closer, thereby increasing the speed of obtaining information.

[0174] (g) Decentralization: IPFS does not require any centralized second member cluster, making information more difficult to attack.

[0175] (2) The platform based on Swarm technology is a decentralized storage platform. This storage platform belongs to a stack of Web 3.0. Through this storage platform, information can be stored on the public network, thereby improving the privacy, security and reliability of the stored information. In addition, this storage platform can be used to store various types of information, including but not limited to small files with small amounts of information and large decentralized application (dApp) code libraries with large amounts of information.

[0176] (3) The platform based on Sia technology is a decentralized storage platform that utilizes blockchain technology and can store information on multiple computer devices on the network. This storage platform can provide secure, reliable and efficient information storage.

[0177] (4) The Storj technology-based platform is a decentralized storage platform that uses blockchain technology to store information on computer devices around the world. This storage platform enables secure, efficient, reliable and private information storage.

[0178] Step 703: Process the resource scheduling request through at least one reference member cluster.

[0179] Since the first member cluster has determined at least one reference member cluster, the resource scheduling request can continue to be processed through the at least one reference member cluster. For example, the scheduler included in the first member cluster processes the resource scheduling request through the at least one reference member cluster. Since the at least one reference member cluster is obtained based on the resource demand information and the reference information, and each reference member cluster in the at least one reference member cluster can supply certain resources, the first member cluster can process the resource scheduling request through the resources supplied by each reference member cluster, and the resource supply information corresponding to the at least one reference member cluster can meet the resource demand information.

[0180] For example, in combination Fig.11 The process of performing resource scheduling in the embodiments of the present application is illustrated by way of example.

[0181] The first member cluster receives a resource scheduling request carrying resource demand information, where the resource demand is, for example, the resource demand information shown in the formula in step 701. Afterwards, the first member cluster obtains a global view (reference information in the form of a view) to select a member cluster whose number of resources that can be supplied is greater than or equal to 2U4G from all member clusters included in the distributed cloud system. If the number of selected member clusters is greater than 0, the three copies included in the application instance are sent to one of the selected member clusters respectively. Afterwards, if all three copies can run successfully, it means that the resource demand information can be met, and this resource scheduling process ends. However, if one or some of the three copies cannot run successfully, the global view can be re-acquired and the member cluster can be selected until the member cluster obtained after the reselection can meet the resource demand information, or the number of member clusters obtained after the reselection is equal to 0, and this resource scheduling process ends.

[0182] The resource scheduling process provided by the embodiment of the present application includes at least the following features.

[0183] (1) Elastic scaling: The reference member cluster can be adaptively determined according to actual needs, thereby changing the number of resources provided by the reference member cluster to achieve elastic scaling of resources.

[0184] (2) Multi-tenancy: The resources provided by the reference member cluster can be flexibly allocated according to resource scheduling requests. Since resource scheduling requests can be issued by user terminals, it is equivalent to allocating the resources provided by the reference member cluster to multiple user terminals, thus realizing multi-tenancy.

[0185] (3) Reliability: Application instances can be deployed in multiple member clusters to improve the reliability and fault tolerance of application instances.

[0186] (4) Flexibility: the ability to select appropriate reference member clusters based on actual needs to improve resource utilization efficiency and flexibility.

[0187] In an exemplary embodiment, after the first member cluster processes a resource scheduling request through at least one reference member cluster, the method further includes: upon detecting that at least one of the corresponding resource supply information and feature information is updated, the first member cluster updates the reference information to obtain updated information, and the updated information is used to process other resource scheduling requests.

[0188] Among them, during the operation of the distributed cloud system, there may be a variety of situations that cause at least one of the resource supply information and feature information corresponding to the first member cluster to be updated. For example, the service provider of the distributed cloud system adjusts the computer equipment inside the first member cluster, so that at least one information corresponding to the first member cluster is updated. For another example, the computer equipment inside the first member cluster fails or even breaks down, so that at least one information corresponding to the first member cluster is updated. For another example, the first member cluster consumes part of all resources that can be supplied to process resource scheduling requests, so that at least one information corresponding to the first member cluster is updated.

[0189] After obtaining at least one updated information through updating, the first member cluster can upload the at least one updated information to the distributed storage platform. For example, the scheduler included in the first member cluster sends the at least one updated information to the corresponding controller, such as sending the updated resource supply information to the first controller and sending the updated feature information to the second controller. Then, the first controller and the second controller can access the access interface provided by the distributed storage platform, and upload the at least one updated information to the distributed storage platform through the access interface. Thus, each member cluster in the distributed cloud system can obtain at least one updated information from the distributed storage platform, thereby processing other resource scheduling requests through the at least one updated information. By updating in a timely manner, the accuracy of the reference information stored in the distributed storage platform can be guaranteed, thereby ensuring the accuracy of resource scheduling requests processed by each member cluster.

[0190] In addition, in step 702 above, it is explained how the third member cluster included in the distributed cloud system makes the first member cluster become a member cluster of the distributed cloud system through a consensus mechanism when the first member cluster is a non-member cluster. Accordingly, after the first member cluster has become a member cluster of the distributed cloud system, the first member cluster can also make other non-member clusters become member clusters of the distributed cloud system through a consensus mechanism. Therefore, the method provided in the embodiment of the present application also includes the following steps 7031 to 7034.

[0191] Step 7031: The first member cluster receives a second request sent by a non-member cluster, where the second request is used to request to become a member cluster of the distributed cloud system.

[0192] The second request sent by the non-member cluster to the first member cluster is equivalent to the first request sent by the first member cluster to the third member cluster in the above description, and will not be described in detail here.

[0193] Step 7032: The first member cluster sends a second request to a fourth member cluster, where the fourth member cluster is another member cluster included in the distributed cloud system.

[0194] The first member cluster is equivalent to a third member cluster that received the first request in the above description, and the fourth member cluster is equivalent to the other third member cluster that did not receive the first request. The first member cluster forwards the second request to the fourth member cluster by broadcasting or other means, so that each member cluster in the distributed cloud system (i.e., the first member cluster and the fourth member cluster) can receive the second request, which will not be repeated here. For each member cluster, if a non-member cluster is allowed to become a member cluster of the distributed cloud system, a second confirmation message can be sent to other member clusters except itself. The second confirmation message is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system. The second confirmation message is equivalent to the confirmation message A in the above description, which will not be repeated here.

[0195] Step 7033: When the first member cluster receives second confirmation information sent by fourth member clusters greater than or equal to the second number in the fourth member cluster, a third confirmation information is sent to the fourth member cluster, where the third confirmation information is used to indicate a determination to allow the non-member cluster to become a member cluster of the distributed cloud system.

[0196] The third confirmation information is equivalent to the confirmation information B in the above description. In the case where the first member cluster receives the second confirmation information sent by the fourth member clusters greater than or equal to the second number in the fourth member clusters, the first member cluster can determine that there are enough fourth member clusters to allow non-member clusters to become member clusters of the distributed system, and the first member cluster sends the third confirmation information to the fourth member cluster. Of course, in the case where the fourth member cluster receives the second confirmation information sent by the member clusters greater than or equal to the second number in other member clusters other than itself, the fourth member cluster also sends the third confirmation information to the other member clusters other than itself.

[0197] Step 7034: When the first member cluster receives third confirmation information sent by fourth member clusters greater than or equal to the third number of fourth member clusters, it sends fourth confirmation information to the non-member cluster, where the fourth confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system.

[0198] In the case where the first member cluster receives the third confirmation information sent by the fourth member clusters greater than or equal to the third number in the fourth member clusters, the first member cluster can determine that there are enough fourth member clusters that have determined to allow the non-member cluster to become a member cluster of the distributed cloud system, and then the first member cluster sends the fourth confirmation information to the non-member cluster, and the fourth confirmation information is equivalent to the first confirmation information in the above description. Of course, in the case where the fourth member cluster receives the third confirmation information sent by the member clusters greater than or equal to the third number in other member clusters other than itself, the fourth member cluster also sends the fourth confirmation information to the other member clusters other than itself.

[0199] Thus, the non-member cluster may receive one or more fourth confirmation information, and when the non-member cluster receives the fourth confirmation information sent by the member clusters greater than or equal to the first number of member clusters included in the distributed cloud system, the non-member cluster can become a member cluster of the distributed cloud system. The first number, the second number, and the third number can all be referred to in the above description, and will not be repeated here.

[0200] In summary, the embodiments of the present application provide a decentralized distributed cloud system, so that the information of each member cluster in multiple member clusters is distributed and stored on at least two second member clusters, thereby realizing a disaster recovery function for information. In addition, there are at least two first member clusters in the distributed cloud system that can schedule resources. Even if a first member cluster is attacked, there are still unattacked first member clusters that can continue to schedule resources, thereby avoiding the entire distributed cloud system from being paralyzed. It can be seen that the decentralized distributed cloud system provided by the embodiments of the present application has high reliability and security. In addition, since this distributed cloud system does not have a centralized central entity, it will not be subject to the scale limit of the central entity, which reduces limitations and improves flexibility.

[0201] The above describes the method for scheduling resources provided by the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a device for scheduling resources. The device is applied to each first member cluster of at least two first member clusters in the multiple member clusters included in the distributed cloud system. The device is used to Fig.12 The modules shown above perform the Figure 7 The method of scheduling resources is shown in Fig.12 As shown, the device for scheduling resources provided in the embodiment of the present application includes the following modules.

[0202] An acquisition module 1201 is used to acquire a resource scheduling request, where the resource scheduling request carries resource demand information;

[0203] A determination module 1202 is used to determine at least one reference member cluster from multiple member clusters according to the resource demand information and the reference information, where the reference information includes at least one of resource supply information and feature information corresponding to each member cluster in the multiple member clusters, and the reference information is distributedly stored in at least two second member clusters in the multiple member clusters;

[0204] The processing module 1203 is configured to process a resource scheduling request through at least one reference member cluster.

[0205] In an exemplary embodiment, in the reference information, at least one of the resource supply information and the feature information is indicated by the cluster identifier of the corresponding member cluster, and a cluster identifier is used to identify a member cluster in the distributed cloud system; the device also includes: a generation module, which is used to become a member cluster of the distributed cloud system and obtain a reference cluster identifier; reference information is generated according to the reference cluster identifier, and the reference information includes the reference cluster identifier, and at least one of the resource supply information and the feature information corresponding to the member cluster identified by the reference cluster identifier.

[0206] In an exemplary embodiment, a generation module is used to send a first request to a third member cluster, the first request is used to request to become a member cluster of the distributed cloud system, and the third member cluster is a member cluster already included in the distributed cloud system; upon receiving first confirmation information sent by a third member cluster greater than or equal to the first number in the third member cluster, the module becomes a member cluster of the distributed cloud system, and the first confirmation information is used to allow the module to become a member cluster of the distributed cloud system; and obtain a reference cluster identifier based on the cluster identifier of the third member cluster.

[0207] In an exemplary embodiment, the generating module is used to use the initial value as the reference cluster identifier when the third member cluster does not have a cluster identifier; and use the reference cluster identifier and at least one of the resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier as reference information.

[0208] Exemplarily, a generation module is used to, when the third member cluster has a cluster identifier, use other values ​​except the value of the cluster identifier of the third member cluster as a reference cluster identifier; add the reference cluster identifier, and at least one of the resource supply information and characteristic information corresponding to the member cluster identified by the reference cluster identifier, to the information corresponding to the third member cluster to obtain reference information, wherein the information corresponding to the third member cluster includes the cluster identifier of the third member cluster, and at least one of the resource supply information and characteristic information corresponding to the third member cluster.

[0209] In an exemplary embodiment, the generating module is used to determine a maximum value among the values ​​of the cluster identifier of the third member cluster, and use the sum of the maximum value and the first value as the reference cluster identifier.

[0210] In an exemplary embodiment, the generating module is used to determine the minimum value among the values ​​of the cluster identifier of the third member cluster, and use the difference between the minimum value and the second value as the reference cluster identifier.

[0211] In an exemplary embodiment, the apparatus further comprises:

[0212] A receiving module, used for receiving a second request sent by a non-member cluster, where the second request is used for requesting to become a member cluster of the distributed cloud system;

[0213] A sending module, configured to send a second request to a fourth member cluster, where the fourth member cluster is another member cluster included in the distributed cloud system;

[0214] The receiving module is further used to send third confirmation information to the fourth member cluster when receiving second confirmation information sent by fourth member clusters greater than or equal to the second number in the fourth member cluster, the second confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system, and the third confirmation information is used to indicate that it is determined to allow the non-member cluster to become a member cluster of the distributed cloud system;

[0215] The sending module is also used to send fourth confirmation information to the non-member cluster when receiving third confirmation information sent by fourth member clusters greater than or equal to the third number in the fourth member cluster, and the fourth confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system.

[0216] Exemplarily, the device further includes: an updating module, which is used to update the reference information when it is detected that at least one of the corresponding resource supply information and feature information is updated, and obtain updated information, and the updated information is used to process other resource scheduling requests.

[0217] In an exemplary embodiment, the reference information includes resource supply information and characteristic information corresponding to each member cluster in a plurality of member clusters, and a determination module 1202 is used to determine a fifth member cluster from the plurality of member clusters based on the characteristic information corresponding to each member cluster in the plurality of member clusters; and to determine at least one reference member cluster from the fifth member cluster based on the resource demand information and the resource supply information corresponding to the fifth member cluster.

[0218] It should be understood that the above Fig.12 The device shown in the figure has the same technical effect as the Figure 7 The method for scheduling resources shown in the figure has the same technical effect. Fig.12When the device shown implements its functions, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0219] Exemplarily, an embodiment of the present application further provides a computer device cluster, the computer device cluster includes at least one computer device, each computer device includes a processor and a memory, and the memory stores at least one computer instruction; the at least one computer instruction stored in the memory of at least one computer device is loaded and executed by the processor of at least one computer device, so that the computer device cluster implements Figure 7 The method of scheduling resources shown.

[0220] For example, see Fig.13 , Fig.13 An exemplary computer device cluster of the present application is shown, and the computer device cluster includes at least one computer device 1300. The computer device 1300 includes at least one processor 1301, a memory 1303, and at least one network interface 1304.

[0221] Processor 1301 is, for example, a general-purpose CPU, a digital signal processor (DSP), a network processor (NP), a GPU, a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits or application-specific integrated circuits (ASICs) for implementing the solution of the present application, a programmable logic device (PLD), other general-purpose processors or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components, or any combination thereof. PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting an advanced RISC machines (ARM) architecture. It may implement or execute various logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.

[0222] Optionally, the computer device 1300 further includes a bus 1302. The bus 1302 is used to transmit information between the components of the computer device 1300. The bus 1302 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 1302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.

[0223] The memory 1303 is, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache.

[0224] By way of example but not limitation, many forms of ROM and RAM are available. For example, ROM is a compact disc read-only memory (CD-ROM). RAM includes, but is not limited to, static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).

[0225] The memory 1303 may also be other types of storage devices that can store static information and instructions. Or it may be other types of dynamic storage devices that can store information and instructions. Or it may be other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, blue-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by the computer, but is not limited to this. The memory 1303, for example, exists independently and is connected to the processor 1301 through the bus 1302. The memory 1303 may also be integrated with the processor 1301.

[0226] The network interface 1304 uses any transceiver-like device to communicate with other devices or communication networks, and the communication network can be Ethernet, radio access network (RAN) or wireless local area network (WLAN), etc. The network interface 1304 may include a wired network interface and may also include a wireless network interface. Specifically, the network interface 1304 may be an Ethernet interface, such as a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a WLAN interface, a cellular network interface or a combination thereof. The Ethernet interface may be an optical interface, an electrical interface or a combination thereof. In some embodiments of the present application, the network interface 1304 may be used for the computer device 1300 to communicate with other devices.

[0227] In a specific implementation, as some embodiments, the processor 1301 may include one or more CPUs, such as Fig.13 0 and CPU1 shown in FIG. Each of these processors may be a single-core processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0228] In a specific implementation, as some embodiments, the computer device 1300 may include multiple processors, such as Fig.13 1301 and processor 1305 shown in FIG. Each of these processors may be a single-core processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0229] In some implementations, the memory 1303 is used to store program instructions 1310 for executing the solution of the present application, and the processor 1301 can execute the program instructions 1310 stored in the memory 1303. That is, the computer device 1300 can use the processor 1301 and the program instructions 1310 in the memory 1303 to enable the computer device cluster to implement the method provided in the method embodiment, that is, Figure 7 The method for scheduling resources shown in the figure. The program instruction 1310 may include one or more software modules. Optionally, the processor 1301 itself may also store program instructions for executing the solution of the present application.

[0230] In the specific implementation process, the computer device 1300 of the present application may correspond to the computer device included in the first member cluster for executing the above method, and the processor 1301 in the computer device 1300 reads the instructions in the memory 1303, so that Fig.13 The computer device cluster shown is capable of executing all or part of the steps in the method embodiment.

[0231] Fig.13 The computer equipment cluster shown may also correspond to the above Fig.12 The device shown, Fig.12 Each functional module in the apparatus shown is implemented using software of the computer device 1300 included in the computer device cluster. In other words, Fig.12 The functional modules included in the illustrated apparatus are generated after the processor 1301 of the computer device 1300 reads the program instructions 1310 stored in the memory 1303 .

[0232] For example, for each computer device 1300 included in the computer device cluster, after the processor 1301 of the computer device 1300 reads the program instruction 1310 stored in the memory 1303, the following can be implemented: Fig.12 The apparatus shown in the figure includes the functions of at least one of the acquisition module, the determination module and the processing module. Moreover, after the processors 1301 of all computer devices 1300 included in the computer device cluster read the program instructions 1310 stored in the memory 1303, they can jointly implement Fig.12 The device shown includes the functionality of all modules.

[0233] in, Figure 7 Each step of the method shown is completed by an integrated logic circuit of hardware or software instructions in the processor of the computer device 1300. The steps of the method embodiment disclosed in the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method embodiment in combination with its hardware. To avoid repetition, it is not described in detail here.

[0234] In an exemplary embodiment, the present application provides a distributed cloud system, which includes multiple computer device clusters, such as Fig.13 A cluster of computer devices is shown.

[0235] Exemplarily, an embodiment of the present application provides a computer-readable storage medium, wherein at least one computer instruction is stored in the computer-readable storage medium, and the at least one computer instruction is loaded and executed by a computer device cluster to enable the computer device cluster to implement Figure 7 The method of scheduling resources shown.

[0236] In an exemplary embodiment, the present application provides a computer program or a computer program product, wherein the computer program or the computer program product comprises at least one computer instruction, and the at least one computer instruction is executed by a computer device cluster to enable the computer device cluster to implement Figure 7 The method of scheduling resources shown.

[0237] In an exemplary embodiment, the present application provides a chip, including a processor, for calling and executing instructions stored in a memory, so that a computer device cluster equipped with the chip can realize Figure 7 The method of scheduling resources shown.

[0238] Exemplarily, the embodiment of the present application provides another chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, a computer device cluster equipped with the chip implements Figure 7 The method of scheduling resources shown.

[0239] 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 instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. 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 disk).

[0240] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on the quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another element.

[0241] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0242] The term "at least one" in this application means one or more, and the term "plurality" in this application means two or more, for example, a plurality of member clusters means two or more member clusters. The terms "system" and "network" are often used interchangeably herein.

[0243] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0244] It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" is a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0245] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that ..." or "if [a stated condition or event] is detected" may be interpreted to mean "upon determining that ..." or "in response to determining that ..." or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.

[0246] The above description is only an embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

[0247] The above description is only an embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for scheduling resources, characterized in that: The method is applied to each first member cluster of at least two first member clusters among a plurality of member clusters included in a distributed cloud system, and the method includes: Obtaining a resource scheduling request, where the resource scheduling request carries resource demand information; Determine at least one reference member cluster from the multiple member clusters according to the resource demand information and reference information, wherein the reference information includes at least one of resource supply information and feature information corresponding to each member cluster in the multiple member clusters, and the reference information is distributedly stored in at least two second member clusters in the multiple member clusters; The resource scheduling request is processed by the at least one reference member cluster.

2. The method according to claim 1, characterized in that: In the reference information, at least one of the resource supply information and the feature information is indicated by a cluster identifier of a corresponding member cluster, and a cluster identifier is used to identify a member cluster in the distributed cloud system; Before determining at least one reference member cluster from the multiple member clusters according to the resource demand information and the reference information, the method further includes: Becoming a member cluster of the distributed cloud system and obtaining a reference cluster identifier; The reference information is generated according to the reference cluster identifier, and the reference information includes the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier.

3. The method according to claim 2, characterized in that The step of becoming a member cluster of the distributed cloud system and obtaining a reference cluster identifier includes: Sending a first request to a third member cluster, wherein the first request is used to request to become a member cluster of the distributed cloud system, and the third member cluster is a member cluster already included in the distributed cloud system; becoming a member cluster of the distributed cloud system upon receiving first confirmation information sent by third member clusters greater than or equal to the first number of the third member clusters, wherein the first confirmation information is used to allow becoming a member cluster of the distributed cloud system; The reference cluster identifier is obtained according to the cluster identifier of the third member cluster.

4. The method according to claim 3, characterized in that The obtaining the reference cluster identifier according to the cluster identifier of the third member cluster includes: In a case where the third member cluster does not have a cluster identifier, using an initial value as the reference cluster identifier; The generating the reference information according to the reference cluster identifier includes: The reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier are used as the reference information.

5. The method according to claim 3, characterized in that: The obtaining the reference cluster identifier according to the cluster identifier of the third member cluster includes: In the case where the third member cluster has a cluster identifier, taking other values ​​except the value of the cluster identifier of the third member cluster as the reference cluster identifier; The generating the reference information according to the reference cluster identifier includes: The reference cluster identifier, and at least one of the resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier, are added to the information corresponding to the third member cluster to obtain the reference information, wherein the information corresponding to the third member cluster includes the cluster identifier of the third member cluster, and at least one of the resource supply information and feature information corresponding to the third member cluster.

6. The method according to claim 5, characterized in that The taking other values ​​except the value of the cluster identifier of the third member cluster as the reference cluster identifier includes: A maximum value among the values ​​of the cluster identifier of the third member cluster is determined, and a sum of the maximum value and the first value is used as the reference cluster identifier.

7. The method according to claim 5, characterized in that The taking other values ​​except the value of the cluster identifier of the third member cluster as the reference cluster identifier includes: A minimum value among the values ​​of the cluster identifier of the third member cluster is determined, and a difference between the minimum value and the second value is used as the reference cluster identifier.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: receiving a second request sent by a non-member cluster, where the second request is used to request to become a member cluster of the distributed cloud system; Sending the second request to a fourth member cluster, where the fourth member cluster is another member cluster included in the distributed cloud system; In a case where second confirmation information sent by a fourth member cluster greater than or equal to the second number of the fourth member clusters is received, third confirmation information is sent to the fourth member cluster, where the second confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system, and the third confirmation information is used to indicate that it is determined to allow the non-member cluster to become a member cluster of the distributed cloud system; Upon receiving third confirmation information sent by fourth member clusters greater than or equal to the third number of the fourth member clusters, fourth confirmation information is sent to the non-member cluster, where the fourth confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system.

9. The method according to any one of claims 1 to 8, characterized in that: After processing the resource scheduling request by the at least one reference member cluster, the method further includes: When it is detected that at least one of the corresponding resource supply information and feature information is updated, the reference information is updated to obtain updated information, and the updated information is used to process other resource scheduling requests.

10. The method according to any one of claims 1 to 9, characterized in that: The reference information includes resource supply information and feature information corresponding to each member cluster in the multiple member clusters, and determining at least one reference member cluster from the multiple member clusters according to the resource demand information and the reference information includes: determining a fifth member cluster from the plurality of member clusters according to the feature information corresponding to each member cluster in the plurality of member clusters; The at least one reference member cluster is determined from the fifth member cluster according to the resource demand information and the resource supply information corresponding to the fifth member cluster.

11. A device for scheduling resources, characterized in that: The device is applied to each first member cluster of at least two first member clusters among a plurality of member clusters included in the distributed cloud system, and the device includes: An acquisition module, used to acquire a resource scheduling request, wherein the resource scheduling request carries resource demand information; a determination module, configured to determine at least one reference member cluster from the plurality of member clusters according to the resource demand information and reference information, wherein the reference information includes at least one of resource supply information and feature information corresponding to each member cluster in the plurality of member clusters, and the reference information is distributedly stored in at least two second member clusters in the plurality of member clusters; A processing module is configured to process the resource scheduling request through the at least one reference member cluster.

12. The device according to claim 11, characterized in that In the reference information, at least one of the resource supply information and the feature information is indicated by a cluster identifier of a corresponding member cluster, and a cluster identifier is used to identify a member cluster in the distributed cloud system; The device also includes: A generation module is used to become a member cluster of the distributed cloud system and obtain a reference cluster identifier; generate the reference information according to the reference cluster identifier, wherein the reference information includes the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier.

13. The device according to claim 12, characterized in that The generation module is used to send a first request to a third member cluster, the first request is used to request to become a member cluster of the distributed cloud system, and the third member cluster is a member cluster already included in the distributed cloud system; upon receiving first confirmation information sent by third member clusters greater than or equal to the first number among the third member clusters, become a member cluster of the distributed cloud system, the first confirmation information is used to allow becoming a member cluster of the distributed cloud system; obtain the reference cluster identifier based on the cluster identifier of the third member cluster.

14. The device according to claim 13, characterized in that The generation module is used to use an initial value as the reference cluster identifier when the third member cluster does not have a cluster identifier; and use the reference cluster identifier and at least one of resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier as the reference information.

15. The device according to claim 13, characterized in that The generation module is used to, when the third member cluster has a cluster identifier, use other values ​​except the value of the cluster identifier of the third member cluster as the reference cluster identifier; add the reference cluster identifier, and at least one of the resource supply information and feature information corresponding to the member cluster identified by the reference cluster identifier, to the information corresponding to the third member cluster to obtain the reference information, wherein the information corresponding to the third member cluster includes the cluster identifier of the third member cluster, and at least one of the resource supply information and feature information corresponding to the third member cluster.

16. The device according to claim 15, characterized in that The generating module is configured to determine a maximum value among values ​​of the cluster identifier of the third member cluster, and use the sum of the maximum value and the first value as the reference cluster identifier.

17. The device according to claim 15, characterized in that The generating module is used to determine a minimum value among the values ​​of the cluster identifier of the third member cluster, and use the difference between the minimum value and the second value as the reference cluster identifier.

18. The device according to any one of claims 11 to 17, characterized in that: The device also includes: A receiving module, configured to receive a second request sent by a non-member cluster, wherein the second request is used to request to become a member cluster of the distributed cloud system; A sending module, configured to send the second request to a fourth member cluster, where the fourth member cluster is another member cluster included in the distributed cloud system; The receiving module is further configured to, upon receiving second confirmation information sent by a fourth member cluster greater than or equal to a second number of the fourth member clusters, send third confirmation information to the fourth member cluster, wherein the second confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system, and the third confirmation information is used to indicate that it is determined to allow the non-member cluster to become a member cluster of the distributed cloud system; The sending module is further used to send fourth confirmation information to the non-member cluster upon receiving third confirmation information sent by fourth member clusters greater than or equal to the third number among the fourth member clusters, wherein the fourth confirmation information is used to indicate that the non-member cluster is allowed to become a member cluster of the distributed cloud system.

19. The device according to any one of claims 11 to 18, characterized in that: The device also includes: The updating module is used to update the reference information when it is detected that at least one of the corresponding resource supply information and feature information is updated, so as to obtain updated information, wherein the updated information is used to process other resource scheduling requests.

20. The device according to any one of claims 11 to 19, characterized in that: The reference information includes resource supply information and feature information corresponding to each of the multiple member clusters, and the determination module is used to determine a fifth member cluster from the multiple member clusters according to the feature information corresponding to each of the multiple member clusters; The at least one reference member cluster is determined from the fifth member cluster according to the resource demand information and the resource supply information corresponding to the fifth member cluster.

21. A computer equipment cluster, characterized in that: The computer device cluster includes at least one computer device, each computer device includes a processor and a memory, and the memory stores at least one computer instruction; The at least one computer instruction stored in the memory of the at least one computer device is loaded and executed by the processor of the at least one computer device, so that the computer device cluster implements the method for scheduling resources described in any one of claims 1-10.

22. A distributed cloud system, characterized in that: The distributed cloud system includes multiple computer device clusters as described in claim 21.

23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a computer device cluster, so that the computer device cluster implements the method for scheduling resources as described in any one of claims 1-10.

24. A computer program product, characterized in that The computer program product includes at least one computer instruction, and the at least one computer instruction is executed by a computer device cluster to enable the computer device cluster to implement the method for scheduling resources described in any one of claims 1-10.

Citation Information

Cited By

  • Routing configuration updating method and device, electronic equipment and storage medium

    CN119652811A