Distributed cluster service scheduling method, device, equipment, program product and medium
By obtaining service metadata information and dynamic scheduling mechanism, the problem of service invocation across Kubernetes service clusters is solved, high service availability and elastic resource expansion and contraction are achieved, and the problems of low service scheduling and resource utilization efficiency in the existing technology are solved.
Patent Information
- Application Number
- CN202410986275.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technology is difficult to effectively solve the problem of distributed system service invocation across Kubernetes service clusters, especially in terms of service scheduling, automatic expansion and contraction of Pods, and service high availability.
By obtaining the metadata information in the service call request, dynamically obtain the IP address of the target node, and send the service call request between the first cluster and the second cluster to realize cross-cluster service calls; at the same time, use heartbeat packets, expansion and contraction Capacity request mechanism to ensure high service availability and resource elasticity.
It realizes service calls across Kubernetes service clusters, ensures high service availability and elastic expansion and contraction of resources, reduces operation and maintenance burden, and avoids the need for additional registration centers.
Smart Images

Figure CN118740936A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cluster service scheduling, and in particular to a distributed cluster service scheduling method, device, equipment, program product and medium. Background Art
[0002] With the continuous development of cloud-native technology, cloud services have become the choice of many enterprises. Containers are a barrier that cannot be bypassed when migrating services to the cloud, and Kubernetes has become the preferred container orchestration system for various companies or manufacturers due to its superior performance and good open source ecology.
[0003] The existing technology solves the problem of calling different services in the same Kubernetes cluster through the idea of hierarchical scheduling, but the problem of calling services in distributed systems across Kubernetes service clusters still needs to be solved. Summary of the invention
[0004] The purpose of the present invention is to provide a distributed cluster service scheduling method, device, equipment, program product and medium, which solves the problem of calling services between distributed systems across Kubernetes service clusters.
[0005] To achieve the above object, an embodiment of the present invention provides a distributed cluster service scheduling method, which is applied to a first node in a first cluster, and includes:
[0006] Acquire metadata information of the first service according to the acquired first service call request, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet Protocol (IP) address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to the second cluster, and the second cluster and the first cluster are distributedly deployed clusters;
[0007] According to the IP address of the at least one second node, a second service call request is sent to a first target node among the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
[0008] Optionally, before acquiring metadata information of the first service according to the acquired first service call request, the method further includes:
[0009] receiving a service registration request sent by the second node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service;
[0010] The metadata information of the first service is stored.
[0011] Optionally, the method further comprises:
[0012] If a heartbeat packet corresponding to the first service sent by the second target node is not obtained within a first preset time period, a first creation request is sent to the cluster where the second target node is located, wherein the second target node is any one of the at least one second node corresponding to the first service, the heartbeat packet includes metadata information of the first service, and the first creation request is used to request to create a Pod for the first service.
[0013] Optionally, the method further comprises at least one of the following:
[0014] When the value of the target counter corresponding to the first service is greater than or equal to a first preset value, sending a capacity expansion request to at least one target cluster corresponding to a node that can provide the first service, the capacity expansion request is used to request the target cluster to create at least one target Pod for the first service, and the value of the target counter is related to the number of times the first service is requested to be called;
[0015] When the value of the target counter corresponding to the first service is equal to the second preset value, a reduction request is sent to at least one target cluster corresponding to the node that can provide the first service, where the reduction request is used to request the target cluster to delete the target Pod.
[0016] Optionally, the method further comprises:
[0017] Obtaining the number of times the first service is requested to be called within a second preset time period;
[0018] When the ratio of the number of times to the total number of Pods corresponding to the first service is greater than or equal to a third preset value, the value of the target counter is increased by one;
[0019] When the ratio of the number of times to the total number of Pods corresponding to the first service is less than a third preset value, the value of the target counter is reduced by one.
[0020] To achieve the above object, an embodiment of the present invention provides a distributed cluster service scheduling method, which is applied to a second node and includes:
[0021] receiving a second service invocation request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service invocation request is used to request to invoke the first service;
[0022] The first service is called according to the second service calling request.
[0023] Optionally, the method further comprises:
[0024] A service registration request is sent to the first node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service.
[0025] To achieve the above object, an embodiment of the present invention provides a distributed cluster service scheduling device, which is applied to a first node in a first cluster, including:
[0026] a first processing module, configured to obtain metadata information of the first service according to an acquired first service call request, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to a second cluster, and the second cluster and the first cluster are distributedly deployed clusters;
[0027] The second processing module is used to send a second service call request to a first target node among the at least one second node according to the IP address of the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
[0028] Optionally, the device further comprises:
[0029] A first receiving module, configured to receive a service registration request sent by the second node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service;
[0030] An information storage module is used to store metadata information of the first service.
[0031] Optionally, the device further comprises:
[0032] The first sending module is used to send a first creation request to the cluster where the second target node is located if the heartbeat packet corresponding to the first service sent by the second target node is not obtained within a first preset time period, wherein the second target node is any one of the at least one second node corresponding to the first service, the heartbeat packet includes metadata information of the first service, and the first creation request is used to request to create a Pod for the first service.
[0033] Optionally, the device further comprises at least one of the following:
[0034] An expansion module, configured to send an expansion request to at least one target cluster corresponding to a node that can provide the first service when the value of a target counter corresponding to the first service is greater than or equal to a first preset value, wherein the expansion request is used to request the target cluster to create at least one target Pod for the first service, and the value of the target counter is related to the number of times the first service is requested to be called;
[0035] A shrinking module is used to send a shrinking request to at least one target cluster corresponding to a node that can provide the first service when the value of the target counter corresponding to the first service is equal to a second preset value, wherein the shrinking request is used to request the target cluster to delete the target Pod.
[0036] Optionally, the device further comprises:
[0037] A first acquisition module, used to acquire the number of times the first service is requested to be called within a second preset time period;
[0038] A first counting module, configured to increase the value of the target counter by one when a ratio of the number of times to the total number of Pods corresponding to the first service is greater than or equal to a third preset value;
[0039] The second counting module is used to reduce the value of the target counter by one when the ratio of the number of times to the total number of Pods corresponding to the first service is less than a third preset value.
[0040] To achieve the above object, an embodiment of the present invention provides a distributed cluster service scheduling device, which is applied to a second node and includes:
[0041] a request receiving module, configured to receive a second service calling request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service calling request is used to request to call the first service;
[0042] The service calling module is used to call the first service according to the second service calling request.
[0043] Optionally, the device further comprises:
[0044] The second sending module is used to send a service registration request to the first node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service.
[0045] To achieve the above objective, an embodiment of the present invention provides a device, which is a first node in a first cluster, and includes a processor and a transceiver, wherein the processor is used to:
[0046] According to the obtained first service call request, metadata information of the first service is obtained, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to the second cluster, and the second cluster and the first cluster are distributedly deployed clusters;
[0047] According to the IP address of the at least one second node, a second service call request is sent to a first target node among the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
[0048] Optionally, the transceiver is further used to: receive a service registration request sent by the second node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service;
[0049] The processor is further configured to: store metadata information of the first service.
[0050] Optionally, the processor is further configured to:
[0051] If a heartbeat packet corresponding to the first service sent by the second target node is not obtained within a first preset time period, a first creation request is sent to the cluster where the second target node is located, wherein the second target node is any one of the at least one second node corresponding to the first service, the heartbeat packet includes metadata information of the first service, and the first creation request is used to request to create a Pod for the first service.
[0052] Optionally, the processor is further configured to perform at least one of the following:
[0053] When the value of the target counter corresponding to the first service is greater than or equal to a first preset value, sending a capacity expansion request to at least one target cluster corresponding to a node that can provide the first service, the capacity expansion request is used to request the target cluster to create at least one target Pod for the first service, and the value of the target counter is related to the number of times the first service is requested to be called;
[0054] When the value of the target counter corresponding to the first service is equal to the second preset value, a reduction request is sent to at least one target cluster corresponding to the node that can provide the first service, where the reduction request is used to request the target cluster to delete the target Pod.
[0055] Optionally, the processor is further configured to:
[0056] Obtaining the number of times the first service is requested to be called within a second preset time period;
[0057] When the ratio of the number of times to the total number of Pods corresponding to the first service is greater than or equal to a third preset value, the value of the target counter is increased by one;
[0058] When the ratio of the number of times to the total number of Pods corresponding to the first service is less than a third preset value, the value of the target counter is reduced by one.
[0059] To achieve the above objective, an embodiment of the present invention provides a device, wherein the device is a second node, comprising a processor and a transceiver, wherein the transceiver is used to receive a second service call request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to the second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service call request is used to request to call the first service;
[0060] The processor is used for calling the first service according to the second service calling request.
[0061] Optionally, the transceiver is further used for:
[0062] A service registration request is sent to the first node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service.
[0063] To achieve the above-mentioned purpose, an embodiment of the present invention provides a device, including a transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the processor executes the program or instruction, it implements the distributed cluster service scheduling method applied to the first node as above, or implements the distributed cluster service scheduling method applied to the second node as above.
[0064] To achieve the above-mentioned purpose, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the steps of the distributed cluster service scheduling method applied to the first node as above, or implement the steps of the distributed cluster service scheduling method applied to the second node as above.
[0065] To achieve the above-mentioned purpose, an embodiment of the present invention provides a readable storage medium having a program or instruction stored thereon, which, when executed by a processor, implements the steps in the distributed cluster service scheduling method applied to the first node as above, or the steps in the distributed cluster service scheduling method applied to the second node as above.
[0066] The beneficial effects of the above technical solution of the present invention are as follows:
[0067] The method of the embodiment of the present invention can obtain metadata information of the first service according to the obtained first service call request, and the metadata information of the first service includes the IP address of at least one second node corresponding to the first service. In this way, according to the IP address of at least one second node, a second service call request can be sent to a first target node in at least one second node where the first service is in an available state, so as to call the first service on the first target node. The second node can be a node in the first cluster or a node in another cluster, thereby realizing service calls across kubernetes service clusters. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A flowchart of a distributed cluster service scheduling method according to an embodiment of the present invention;
[0069] Figure 2 A schematic diagram of a cross-cluster distributed system service call framework according to an embodiment of the present invention;
[0070] Figure 3 A schematic diagram of the process of service registration and metadata management in an embodiment of the present invention;
[0071] Figure 4 A schematic diagram of the process of distributed service calling and cross-cluster calling according to an embodiment of the present invention;
[0072] Figure 5 A schematic diagram of a multi-node hot standby service with high availability according to an embodiment of the present invention;
[0073] Figure 6 A schematic diagram of multi-machine hot standby and elastic capacity expansion according to an embodiment of the present invention;
[0074] Figure 7 A schematic diagram of the elastic expansion and contraction process of an embodiment of the present invention;
[0075] Figure 8 A flowchart of a distributed cluster service scheduling method according to another embodiment of the present invention;
[0076] Fig. 9 A structural diagram of a distributed cluster service scheduling device according to an embodiment of the present invention;
[0077] Fig.10 A structural diagram of a distributed cluster service scheduling device according to another embodiment of the present invention;
[0078] Fig.11 is a structural diagram of a device according to an embodiment of the present invention;
[0079] Fig.12 This is a structural diagram of a device according to another embodiment of the present invention. DETAILED DESCRIPTION
[0080] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0081] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0082] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes 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 invention.
[0083] Additionally, the terms "system" and "network" are often used interchangeably herein.
[0084] In the embodiments provided in the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0085] In the process of cloud services, there are many problems that need to be solved in the distributed system cloud. For example, the IP addresses of pods of different services in different clusters may be the same; services in cluster A cannot be correctly routed to services in cluster B; and a node failure in a cluster may cause service failure. Therefore, problems such as cross-Kubernetes cluster service calls, automatic expansion and contraction of service pods, and high availability of services need to be solved urgently.
[0086] like Figure 1 As shown, a distributed cluster service scheduling method according to an embodiment of the present invention is applied to a first node in a first cluster, including:
[0087] Step 101: Obtain metadata information of the first service based on an acquired first service call request, wherein the first service call request is used to request calling the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, and the second node belongs to the first cluster or belongs to the second cluster, and the second cluster and the first cluster are distributedly deployed clusters.
[0088] Here, the first cluster can be a cluster in a distributed system, and the distributed system can also include other clusters such as the second cluster, wherein the first node can specifically be a master node (also known as the main node) in the first cluster, and the first node stores metadata information of various services, such as Kubernetes (k8s for short) cluster information where different services are located, node (Node) information in the k8s cluster where the service is located, pod information and service status (used to indicate whether the service is available), to facilitate the first node to call the service.
[0089] Specifically, the metadata information of a service may include at least one of the following: the IP address of the node where the service is located (NodeIp), the IP address of the Pod corresponding to the container where the service is located (PodIp), the service port (Nodeport), the container mapping port (PodPort), the path (path), the parameters (params), and Desc (description). Desc may specifically include the service description (serverDesc) and the method description (methodDesc).
[0090] Among them, Nodeport is the port exposed by the cluster node (Node) to the outside; PodPort is the port exposed by the service container Pod, and the PodPort corresponds to the NodePort one-to-one; Path is the service request uniform resource identifier (Uniform Resource Identifier, URI), and the URI corresponds to Desc one-to-one. In the implementation of the present invention, the Desc corresponding to the URI can be found through logical judgment; Params is the parameter carried by the master node when initiating a service call, and Params is used in combination with Desc; Desc describes the class and method of the service, which is used for reverse proxy and batch generation of services, that is, Desc is needed when the master node initiates a service call. Through Desc and NodePort, NodeIp will index to a node in a cluster.
[0091] It should be noted that a cluster may include one or more nodes, each Node may include one or more Pods, and the same service may have copies on multiple Nodes. Therefore, the first node can obtain the NodeIp of the Node and the PodIp of the Pod that can provide the first service and the service status that indicates whether the first service is available by querying the metadata information of the first service, so as to find the appropriate Node and Pod for service calls.
[0092] In some optional embodiments, before step 101, the method further includes: receiving a service registration request sent by the second node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service; and storing the metadata information of the first service.
[0093] It should be noted that when a service in a distributed system is started, its information (including metadata information) will be registered with the master node in the first cluster, so that the master node can store the metadata information of the service. In a specific embodiment, the master node in the first cluster (i.e., the first node) includes a service manager, a metadata storage device, and a service scheduler. When the service is started, its information will be registered with the service manager of the master node in the first cluster. The service manager will store the metadata information of the service in the metadata storage device. For example, the metadata information (MetaData) of the service is represented as: MetaData{NodeIp, PodIp, Nodeport, PodPort, path, params, serverDesc, methodDesc}. Among them, NodeIp represents the IP address of the node where the service is located, PodIp represents the IP address of the Pod of the container where the service is located, Nodeport represents the service port, PodPort represents the container mapping port, path represents the path, params represents the parameters, serverDesc represents the service description, and methodDesc represents the method description.
[0094] Step 102: Send a second service call request to a first target node among the at least one second node according to the IP address of the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
[0095] In step 102, the service scheduler of the first node can select a pod of a suitable node (e.g., the first target node) to initiate a service call based on the first service call request, the metadata information of the first service, and the dynamic load balancing algorithm. Specifically, the second service call request can be sent to the Pod corresponding to the first service on the first target node.
[0096] In this embodiment, the metadata information of the first service can be obtained by querying the obtained first service call request, and the metadata information of the first service includes the IP address of at least one second node corresponding to the first service. In this way, the second service call request can be sent to the first target node where the first service is available in at least one second node according to the IP address of the at least one second node, so as to call the first service on the first target node. The second node can be a node in the first cluster or a node in another cluster, thus realizing service calls across kubernetes service clusters.
[0097] like Figure 2 As shown, an embodiment of the present invention provides a cross-cluster distributed system service call framework based on a container orchestration environment. Among them, the External System Application Interface is the interface exposed by the distributed system to the outside for external traffic to enter; the Internal System Application Interface is the interface called internally by the distributed system, which can be used for mutual calls between services or by the service scheduler. The service manager and metadata manager only exist in the first cluster (i.e. Figure 2 In the cluster A shown in FIG, the service manager is used to manage services, implement service registration and heartbeat keep-alive mechanisms, etc. The metadata manager is used to store metadata information (ie, tuple MetaData) of all services in the distributed system.
[0098] like Figure 3 As shown, after the service is started, the service metadata is registered with the master node of the first cluster of the distributed system. Specifically, the Node providing the service sends a service registration request to the first node to request registration of the service, and the first node stores the metadata information of the service. After the service registration is successful, the Node providing the service sends a service heartbeat packet to the first node so that the first node knows whether the service is available.
[0099] In an embodiment of the present invention, when external traffic (i.e., the first service call request) enters the distributed system through the External System Application Interface, the traffic will first enter the master node (i.e., the first node) of the first cluster in the k8s cluster. The master node will query the metadata information of the service (e.g., the first service) (such as the cluster where the service is located, the nodes and pods in the cluster, etc.) according to the first service call request, and select the appropriate service Pod or k8s cluster node from multiple service copies of the service through calculation to initiate the service call and complete the service request, thereby realizing the service call function within the cluster and across clusters. In this way, high availability of services can be achieved through multi-node hot standby.
[0100] It should be noted that in a distributed system, the number of services is related to the complexity of the distributed system. A highly complex distributed system may have hundreds or thousands of services. It would be difficult for the service scheduler to develop scheduling functions for each service separately. Figure 4 As shown, in an embodiment of the present invention, the service scheduler in the first node can first call the service request to the corresponding k8s cluster through a dynamic proxy method based on the request information (i.e., the first service call request) collected by the External System Application Interface and the service information (serverInfo) and method information (methodInfo) generated by the query based on the MetaData in the metadata manager, and then perform related service scheduling. In this way, service calls are implemented through a single service scheduling layer and dynamic proxy technology in each k8s cluster, and calls between distributed system services across kubernetes service clusters are implemented, and there is no need to set up additional registration centers such as nacos and eureka, reducing the burden of operation and maintenance.
[0101] In addition, the service manager of the master node will regularly perform heartbeat interactions with the service (i.e., the Node providing the service continuously sends heartbeat packets to the service manager of the master node). The master node uses the service management function to add new service information to the metadata storage in the master node and regularly update the relevant metadata information of the service. Figure 5 As shown in the figure, the heartbeat packet of server1-pod2 sent by Node3 in cluster B to Node1 in cluster A (that is, the master node of cluster A) can be:
[0102] [Node2Ip,pod2Ip,Node2Port,pod2Port,path,params,serverDes,methodDes].
[0103] In some embodiments, the method also includes: when a heartbeat packet corresponding to the first service sent by the second target node is not obtained within a first preset time period, sending a first creation request to the cluster where the second target node is located, wherein the second target node is any one of the at least one second nodes corresponding to the first service, the heartbeat packet includes metadata information of the first service, and the first creation request is used to request to create a Pod for the first service.
[0104] It should be noted that if the first node (master node) of the first cluster does not obtain the heartbeat packet corresponding to the first service sent by the second target node within the first preset time, it means that the second target node or the Pod corresponding to the first service on the second target node may be down, and the Pod corresponding to the first service needs to be scheduled to a new node. Here, a first creation request can be sent to the cluster where the second target node is located, so that the scheduling service of the cluster where the second target node is located (usually deployed on the master node of the cluster, that is, the service scheduler on the master node of the cluster) will select a node other than the second target node in the cluster where the second target node is located to create a Pod for the first service, restart the first service, and send a heartbeat packet to the master so that the master can update the metadata information of the first service.
[0105] like Figure 5 As shown, in one embodiment, if server1-pod2 on Node2 in cluster B goes down, Node2 will no longer send the heartbeat packet of server1 to Node1 in cluster A (that is, the first node of the first cluster), and Node1 in cluster A will reschedule the pod to Node3 in cluster B. The specific process is as follows:
[0106] (1) The server1-pod2 service on Node2 in cluster B goes down, and the heartbeat between Node2 and Node1 in cluster A (that is, the master node of cluster A) is lost.
[0107] (2) If Node1 of cluster A does not receive the heartbeat packet of server1-pod2 sent by Node2 in cluster B within the first preset time, it is considered that the server1-pod2 service on Node2 is unavailable, and Node1 of cluster A initiates a request to add a new pod for server1 (i.e., the first creation request).
[0108] (3) The service scheduler in cluster B (usually deployed on the master node of cluster B) receives the first creation request sent by Node1 of cluster A (i.e., the master node of cluster B) through the application interface, and creates a new server1-pod instance on a new node in cluster B (e.g., Node3 in cluster B). The instance may have the same name as server1-pod2, or may have a different name.
[0109] (4) The new service instance sends a heartbeat packet to Node1 of cluster A.
[0110] (5) Node1 of cluster A updates the metadata information corresponding to server1 based on the received heartbeat packet. If the name of the newly created server1-pod instance for server1 in cluster B is still server1-pod2, the NodeIp in the metadata information corresponding to server1 is updated; otherwise, a new metadata information is added for server1.
[0111] Optionally, the method further includes: if the first node fails to obtain a heartbeat packet of the pod corresponding to the first service sent by the second target node within a third preset time (e.g., 3 seconds), deleting information of the pod stored in the metadata storage on the first node.
[0112] In some embodiments, the method further comprises at least one of the following:
[0113] (I) Capacity expansion:
[0114] When the value of the target counter corresponding to the first service is greater than or equal to a first preset value, a capacity expansion request is sent to at least one target cluster corresponding to a node that can provide the first service, where the capacity expansion request is used to request the target cluster to create at least one target Pod for the first service, and the value of the target counter is related to the number of times the first service is requested to be called.
[0115] It should be noted that the first preset value (expressed by ε) is an empirical value, and its size can be set according to the specific situation, or it can be adjusted dynamically, and is not specifically limited here. In addition, the master node (i.e., the first node) can determine how many target Pods to request to be created according to the actual situation. As an optional embodiment, the number of target Pods requested to be created by the master node can be determined according to the formula: N = m / (third preset value-srv_pod_num+1), where N represents the number of newly added target Pods requested by the master node, m represents the number of times the first service is requested to be called within the second preset duration (such as the number of requests received by the master node per second to call the first service), srv_pod_num represents the number of existing pods of the first service (that is, the total number of Pods corresponding to the first service), and the initial value of srv_pod_num is 1, that is, the cluster initialization service has one Pod; the second preset duration and the third preset value can be set according to the specific situation, such as the second preset duration can be 1 second, and for another example, assuming that the traffic (that is, the service call request) that each Pod can handle is 1000qps, then the third preset value can be set to 900.
[0116] In some optional embodiments, the method further includes: obtaining the number of times the first service is requested to be called within a second preset time period; when the ratio of the number to the total number of Pods corresponding to the first service is greater than or equal to a third preset value, adding one to the value of the target counter; when the ratio of the number to the total number of Pods corresponding to the first service is less than the third preset value, subtracting one from the value of the target counter.
[0117] like Figure 6 As shown in the figure, assume that the traffic (that is, service call requests) that each Pod can handle is 1000qps. Figure 6 The master node (i.e., the first node) in cluster A) shown in the figure maintains a QpsMap[server,count] key-value pair. When the traffic of the first service (taking server2 as an example) enters (that is, when the first cluster receives a request to call server2), count is incremented by 1, and the value of m (i.e., the number of times the first service is requested to be called within the second preset time length) is calculated through the sliding window. For example, m can take the value of count within 1 second.
[0118] When m / (srv_pod_num)≥the third preset value (for example, 900), qps_greater++ (that is, the value of the target counter is increased by one), and the initial value of qps_greater is 0; when m / (srv_pod_num)<the third preset value (for example, 900), qps_greater-- (that is, the value of the target counter is reduced by one). Among them, srv_pod_num represents the total number of Pods corresponding to the first service.
[0119] When qps_greater<ε, the master node (through the service scheduler) can initiate a normal scheduling request; when qps_greater≥ε, the master node initiates a request to add a new Pod (that is, an expansion request). Here, the first preset value (i.e., ε) can be set according to the specific situation, for example, it can be set to 5.
[0120] by Figure 6 Taking the situation shown as an example, after receiving the capacity expansion request through the application interface of cluster B, the scheduling service of cluster B where server2 is located (usually deployed on the master node of cluster B, that is, the service scheduler on the master node of cluster B) will find a suitable node (such as Node1) in cluster B to create a new Pod (such as server2 pod) to complete the capacity expansion.
[0121] It should be noted that in the distributed system in this application, a service scheduler can be set on each k8s cluster. Its role is to initiate service calls, be responsible for scheduling service pods on different nodes, and perform elastic expansion and contraction, etc., to provide guarantee for high availability of services in the distributed system.
[0122] (II) Reduction in capacity:
[0123] When the value of the target counter corresponding to the first service is equal to the second preset value, a reduction request is sent to at least one target cluster corresponding to the node that can provide the first service, where the reduction request is used to request the target cluster to delete the target Pod.
[0124] Here, the specific value of the second preset value can be set according to actual conditions, for example, it can be set to 0. Figure 7 As shown in the figure, when the value of the target counter is 0 (i.e., qps_greater = 0), the master node initiates a scaling-down request. In this way, the target cluster deletes the target Pod corresponding to the first service according to the scaling-down request initiated by the master node. Figure 6Take the situation shown in the figure as an example. Assume that the first service is server2, and the server2 pod on Node1 in cluster B is the pod generated by cluster B for server2 expansion. Then the target cluster is cluster B that provides server2 service. You can select one of the target Pods corresponding to the first service (for example Figure 6 In the example shown in FIG. 1 , server2 pod on Node1 in cluster B is deleted to release resources in time. It should be noted that this deletion operation can be performed by the scheduling service (that is, the service scheduler) of cluster B.
[0125] In this embodiment, a target counter related to the number of times the first service is requested to be called is set, and by monitoring the value of the target counter, the service pod can be expanded or reduced at an appropriate time. In this way, when the distributed system encounters a service traffic peak, the distributed system can expand itself, and after the peak, the distributed system can gradually delete the expanded service pods, thereby realizing the function of elastic expansion and contraction of the distributed system.
[0126] In the above embodiments, high availability of services and elastic expansion and contraction of service resources in a container orchestration environment can be achieved through multi-machine hot standby, expansion and contraction algorithms, and scheduling mechanisms.
[0127] In the distributed cluster service scheduling method of this embodiment, the first node of the first cluster can obtain metadata information of the first service when it needs to call the first service. The metadata information of the first service includes the IP address of at least one second node corresponding to the first service. In this way, a second service call request can be sent to the first target node in the at least one second node where the first service is available according to the IP address of the at least one second node, so as to call the first service on the first target node. The second node can be a node in the first cluster or a node in another cluster, thus realizing service calls across kubernetes service clusters.
[0128] like Figure 8 As shown, a distributed cluster service scheduling method according to an embodiment of the present invention is applied to a second node, including:
[0129] Step 801: receive a second service call request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service call request is used to request to call the first service.
[0130] Here, the first cluster may be a cluster in a distributed system, and the distributed system may also include other clusters such as a second cluster, wherein the first node may specifically be a master node (also known as the main node) in the first cluster, and the first node stores metadata information of various services to facilitate the first node to call services.
[0131] Step 802: Call the first service according to the second service call request.
[0132] In this embodiment, after receiving the second service call request sent by the first node, the second node can call the first service according to the second service call request. The second node can be a node in the first cluster or a node in another cluster, thus realizing service calls across kubernetes service clusters.
[0133] Optionally, the method further includes: sending a service registration request to the first node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service.
[0134] Specifically, the metadata information of a service may include at least one of the following: the IP address of the node where the service is located (NodeIp), the IP address of the Pod corresponding to the container where the service is located (PodIp), the service port (Nodeport), the container mapping port (PodPort), the path (path), the parameters (params), and Desc (description). Desc may specifically include the service description (serverDesc) and the method description (methodDesc).
[0135] In the distributed cluster service scheduling method of this embodiment, the second node can send the metadata information of the first service to the first node through service registration, so that the first node can make a service call to the first service on the second node according to the metadata information of the first service; after receiving the second service call request sent by the first node, the second node can call the first service according to the second service call request. The second node can be a node in the first cluster or a node in another cluster, realizing service calls across kubernetes service clusters.
[0136] like Fig. 9 As shown, a distributed cluster service scheduling device according to an embodiment of the present invention is applied to a first node in a first cluster, including:
[0137] A first processing module 910 is configured to obtain metadata information of the first service according to an acquired first service call request, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to the second cluster, and the second cluster and the first cluster are distributedly deployed clusters;
[0138] The second processing module 920 is used to send a second service call request to a first target node among the at least one second node according to the IP address of the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
[0139] In this embodiment, the metadata information of the first service can be obtained by querying the obtained first service call request, and the metadata information of the first service includes the IP address of at least one second node corresponding to the first service. In this way, the second service call request can be sent to the first target node where the first service is available in at least one second node according to the IP address of the at least one second node, so as to call the first service on the first target node. The second node can be a node in the first cluster or a node in another cluster, thus realizing service calls across kubernetes service clusters.
[0140] Optionally, the device further comprises:
[0141] A first receiving module, configured to receive a service registration request sent by the second node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service;
[0142] An information storage module is used to store metadata information of the first service.
[0143] Optionally, the device further comprises:
[0144] The first sending module is used to send a first creation request to the cluster where the second target node is located if the heartbeat packet corresponding to the first service sent by the second target node is not obtained within a first preset time period, wherein the second target node is any one of the at least one second node corresponding to the first service, the heartbeat packet includes metadata information of the first service, and the first creation request is used to request to create a Pod for the first service.
[0145] Optionally, the device further comprises at least one of the following:
[0146] An expansion module, configured to send an expansion request to at least one target cluster corresponding to a node that can provide the first service when the value of a target counter corresponding to the first service is greater than or equal to a first preset value, wherein the expansion request is used to request the target cluster to create at least one target Pod for the first service, and the value of the target counter is related to the number of times the first service is requested to be called;
[0147] A shrinking module is used to send a shrinking request to at least one target cluster corresponding to a node that can provide the first service when the value of the target counter corresponding to the first service is equal to a second preset value, wherein the shrinking request is used to request the target cluster to delete the target Pod.
[0148] Optionally, the device further comprises:
[0149] A first acquisition module, used to acquire the number of times the first service is requested to be called within a second preset time period;
[0150] A first counting module, configured to increase the value of the target counter by one when a ratio of the number of times to the total number of Pods corresponding to the first service is greater than or equal to a third preset value;
[0151] The second counting module is used to reduce the value of the target counter by one when the ratio of the number of times to the total number of Pods corresponding to the first service is less than a third preset value.
[0152] It should be noted here that the above-mentioned distributed cluster service scheduling device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned distributed cluster service scheduling method embodiment of the first node application, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0153] like Fig.10 As shown, a distributed cluster service scheduling device according to an embodiment of the present invention is applied to a second node, including:
[0154] The request receiving module 1010 is used to receive a second service calling request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service calling request is used to request to call the first service;
[0155] The service calling module 1020 is used to call the first service according to the second service calling request.
[0156] In this embodiment, after receiving the second service call request sent by the first node, the second node can call the first service according to the second service call request. The second node can be a node in the first cluster or a node in another cluster, thus realizing service calls across kubernetes service clusters.
[0157] Optionally, the device further comprises:
[0158] The second sending module is used to send a service registration request to the first node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service.
[0159] It should be noted here that the above-mentioned distributed cluster service scheduling device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned distributed cluster service scheduling method embodiment applied to the second node, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0160] like Fig.11 As shown, a device 1100 according to an embodiment of the present invention includes a processor 1110 and a transceiver 1120, wherein the processor 1110 is configured to:
[0161] According to the obtained first service call request, metadata information of the first service is obtained, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to the second cluster, and the second cluster and the first cluster are distributedly deployed clusters;
[0162] According to the IP address of the at least one second node, a second service call request is sent to a first target node among the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
[0163] In this embodiment, the metadata information of the first service can be obtained by querying the obtained first service call request, and the metadata information of the first service includes the IP address of at least one second node corresponding to the first service. In this way, the second service call request can be sent to the first target node where the first service is available in at least one second node according to the IP address of the at least one second node, so as to call the first service on the first target node. The second node can be a node in the first cluster or a node in another cluster, thus realizing service calls across kubernetes service clusters.
[0164] Optionally, the transceiver is further used to: receive a service registration request sent by the second node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service;
[0165] The processor 1110 is further configured to store metadata information of the first service.
[0166] Optionally, the processor 1110 is further configured to:
[0167] If a heartbeat packet corresponding to the first service sent by the second target node is not obtained within a first preset time period, a first creation request is sent to the cluster where the second target node is located, wherein the second target node is any one of the at least one second node corresponding to the first service, the heartbeat packet includes metadata information of the first service, and the first creation request is used to request to create a Pod for the first service.
[0168] Optionally, the processor 1110 is further configured to perform at least one of the following:
[0169] When the value of the target counter corresponding to the first service is greater than or equal to a first preset value, sending a capacity expansion request to at least one target cluster corresponding to a node that can provide the first service, the capacity expansion request is used to request the target cluster to create at least one target Pod for the first service, and the value of the target counter is related to the number of times the first service is requested to be called;
[0170] When the value of the target counter corresponding to the first service is equal to the second preset value, a reduction request is sent to at least one target cluster corresponding to the node that can provide the first service, where the reduction request is used to request the target cluster to delete the target Pod.
[0171] Optionally, the processor 1110 is further configured to:
[0172] Obtaining the number of times the first service is requested to be called within a second preset time period;
[0173] When the ratio of the number of times to the total number of Pods corresponding to the first service is greater than or equal to a third preset value, the value of the target counter is increased by one;
[0174] When the ratio of the number of times to the total number of Pods corresponding to the first service is less than a third preset value, the value of the target counter is reduced by one.
[0175] It should be noted here that the above-mentioned device provided by the embodiment of the present invention can implement all the method steps implemented by the above-mentioned distributed cluster service scheduling method embodiment applied to the first node, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0176] A device according to an embodiment of the present invention may be structured as follows: Fig.11 The structure shown is the same as the first node, including a processor and a transceiver, wherein the transceiver is used to receive a second service call request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service call request is used to request to call the first service;
[0177] The processor is used for calling the first service according to the second service calling request.
[0178] In this embodiment, after receiving the second service call request sent by the first node, the second node can call the first service according to the second service call request. The second node can be a node in the first cluster or a node in another cluster, thus realizing service calls across kubernetes service clusters.
[0179] Optionally, the transceiver is further used for:
[0180] A service registration request is sent to the first node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service.
[0181] It should be noted here that the above-mentioned device provided by the embodiment of the present invention can implement all the method steps implemented by the above-mentioned distributed cluster service scheduling method embodiment applied to the second node, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0182] A device according to another embodiment of the present invention, such as Fig.12As shown, it includes a transceiver 1210, a processor 1200, a memory 1220, and a program or instruction stored in the memory 1220 and executable on the processor 1200; when the processor 1200 executes the program or instruction, it implements the above-mentioned distributed cluster service scheduling method applied to the first node or the second node.
[0183] The transceiver 1210 is used to receive and send data under the control of the processor 1200.
[0184] Among them, Fig.12 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1200 and various circuits of memory represented by memory 1220 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1210 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 may store data used by the processor 1200 when performing operations.
[0185] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 1 or Figure 8 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0186] A computer-readable storage medium according to an embodiment of the present invention stores a program or instruction thereon, and when the program or instruction is executed by a processor, the steps in the distributed cluster service scheduling method described above are implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0187] It should be further explained that the terminals described in this specification include but are not limited to smart phones, tablet computers, etc., and many of the functional components described are called modules in order to more particularly emphasize the independence of their implementation methods.
[0188] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0189] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0190] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0191] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present invention will be perfect and complete, and the scope of the present invention will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0192] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A distributed cluster service scheduling method, characterized in that: Applied to a first node in a first cluster, comprising: According to the obtained first service call request, metadata information of the first service is obtained, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to the second cluster, and the second cluster and the first cluster are distributedly deployed clusters; According to the IP address of the at least one second node, a second service call request is sent to a first target node among the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
2. The method according to claim 1, characterized in that Before acquiring metadata information of the first service according to the acquired first service call request, the method further includes: receiving a service registration request sent by the second node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service; The metadata information of the first service is stored.
3. The method according to claim 1, characterized in that The method further comprises: If a heartbeat packet corresponding to the first service sent by the second target node is not obtained within a first preset time period, a first creation request is sent to the cluster where the second target node is located, wherein the second target node is any one of the at least one second node corresponding to the first service, the heartbeat packet includes metadata information of the first service, and the first creation request is used to request to create a Pod for the first service.
4. The method according to claim 1, characterized in that: The method further comprises at least one of the following: When the value of the target counter corresponding to the first service is greater than or equal to a first preset value, sending a capacity expansion request to at least one target cluster corresponding to a node that can provide the first service, the capacity expansion request is used to request the target cluster to create at least one target Pod for the first service, and the value of the target counter is related to the number of times the first service is requested to be called; When the value of the target counter corresponding to the first service is equal to the second preset value, a reduction request is sent to at least one target cluster corresponding to the node that can provide the first service, where the reduction request is used to request the target cluster to delete the target Pod.
5. The method according to claim 4, characterized in that The method further comprises: Obtaining the number of times the first service is requested to be called within a second preset time period; When the ratio of the number of times to the total number of Pods corresponding to the first service is greater than or equal to a third preset value, the value of the target counter is increased by one; When the ratio of the number of times to the total number of Pods corresponding to the first service is less than a third preset value, the value of the target counter is reduced by one.
6. A distributed cluster service scheduling method, characterized in that: Applied to the second node, including: receiving a second service invocation request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service invocation request is used to request to invoke the first service; The first service is called according to the second service calling request.
7. The method according to claim 6, characterized in that The method further comprises: A service registration request is sent to the first node, wherein the service registration request is used to request registration of the first service, and the service registration request carries metadata information of the first service.
8. A distributed cluster service scheduling device, characterized in that: Applied to a first node in a first cluster, comprising: a first processing module, configured to obtain metadata information of the first service according to an acquired first service call request, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to a second cluster, and the second cluster and the first cluster are distributedly deployed clusters; The second processing module is used to send a second service call request to a first target node among the at least one second node according to the IP address of the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
9. A distributed cluster service scheduling device, characterized in that: Applied to the second node, including: a request receiving module, configured to receive a second service calling request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service calling request is used to request to call the first service; The service calling module is used to call the first service according to the second service calling request.
10. A device, the device being a first node in a first cluster, characterized in that: include: transceivers and processors; The processor is used to: According to the obtained first service call request, metadata information of the first service is obtained, wherein the first service call request is used to request to call the first service, and the metadata information of the first service includes an Internet interconnection protocol IP address of at least one second node corresponding to the first service, the second node belongs to the first cluster or belongs to the second cluster, and the second cluster and the first cluster are distributedly deployed clusters; According to the IP address of the at least one second node, a second service call request is sent to a first target node among the at least one second node, wherein the second service call request is used to request to call the first service, and the first target node is any node among the at least one second node where the first service is in an available state.
11. A device, the device being a second node, characterized in that: include: transceivers and processors; The transceiver is used to receive a second service invocation request sent by a first node in a first cluster, wherein the second node belongs to the first cluster or belongs to a second cluster, the second cluster and the first cluster are distributedly deployed clusters, and the second service invocation request is used to request to invoke the first service; The processor is used for calling the first service according to the second service calling request.
12. A device comprising: A transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; characterized in that when the processor executes the program or instruction, it implements the distributed cluster service scheduling method as described in any one of claims 1-5, or implements the distributed cluster service scheduling method as described in any one of claims 6-7.
13. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the distributed cluster service scheduling method as described in any one of claims 1 to 5, or implement the steps of the distributed cluster service scheduling method as described in any one of claims 6 to 7.
14. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by the processor, the steps in the distributed cluster service scheduling method according to any one of claims 1 to 5 or the steps in the distributed cluster service scheduling method according to any one of claims 6 to 7 are implemented.
