Heterogeneous cluster management method and device, equipment and storage medium
By compiling and deploying executable files or images according to the hardware architecture of each machine, the problems of heterogeneous cluster deployment and management are solved, unified management of heterogeneous clusters and heterogeneous deployment of applications are realized, improving management convenience and Resource utilization efficiency.
Patent Information
- Application Number
- CN202311421418.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2024-09-27
AI Technical Summary
Existing technology does not support the deployment and unified management of heterogeneous clusters. As a result, machines with multiple architectures can only deploy multiple independent K8S clusters, resulting in the dispersion and isolation of computing resources.
By compiling the corresponding executable files or images according to the hardware architecture of each machine, and deploying and starting these files or images on the machine, cluster nodes are created to achieve unified management of heterogeneous clusters and heterogeneous deployment of applications.
It realizes the formation of a unified heterogeneous cluster by multiple machines with different hardware architectures, provides support for unified management of heterogeneous clusters and heterogeneous deployment of applications, and reduces operation and maintenance costs and usage complexity.
Smart Images

Figure CN118708284A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of cluster management, and in particular to a heterogeneous cluster management method, apparatus, device and storage medium. Background Art
[0002] With the popularization of heterogeneous computing power, the demand for heterogeneous cluster deployment is becoming more and more common.
[0003] However, existing technologies do not support the deployment of heterogeneous clusters, and therefore cannot support the unified management of heterogeneous clusters and heterogeneous deployment of applications. For example, the official Kubernetes / K8S distribution only provides deployment and operation of a single architecture. If there are machines with multiple architectures, only multiple independent K8S clusters can be deployed. For users, they need to submit tasks in multiple distributed Kubernetes clusters, which results in the dispersion and isolation of computing resources.
[0004] Therefore, a solution that supports the deployment of heterogeneous clusters is needed to provide support for unified management of heterogeneous clusters and heterogeneous deployment of applications. Summary of the invention
[0005] A technical problem to be solved by the present disclosure is how to design a solution to support the deployment of heterogeneous clusters.
[0006] According to a first aspect of the present disclosure, a heterogeneous cluster management method is provided, comprising: for any one of a plurality of machines, according to the hardware architecture of the machine, obtaining an executable file corresponding to the hardware architecture of the machine by compiling, wherein the hardware architectures of the plurality of machines are not completely the same; deploying an executable file or an image corresponding to the hardware architecture of the machine on the machine; and creating a cluster node on the machine by starting a service provided by the executable file or the image.
[0007] Optionally, the heterogeneous cluster includes at least one management node and at least one working node, and the executable file or image corresponding to the management node is used to provide cluster management services; the executable file or image corresponding to the working node is used to provide cluster computing services.
[0008] Optionally, the method further includes: for each of the working nodes, recording taint information related to the hardware architecture of the machine where the working node is located.
[0009] Optionally, the cluster management service provided by the executable file or image corresponding to the management node includes a first scheduling service, and the first scheduling service is used to schedule the cluster application to be scheduled to a working node whose taint information matches the hardware architecture supported by the cluster application to be scheduled.
[0010] Optionally, the first scheduling service adds tolerance information to the cluster application to be scheduled according to the hardware architecture supported by the cluster application to be scheduled, and the tolerance information is used to characterize the hardware architecture supported by the cluster application to be scheduled; the first scheduling service schedules the cluster application to be scheduled to a working node whose taint information matches the tolerance information.
[0011] Optionally, the first scheduling service downloads the corresponding image and deploys the image to the scheduled working node according to the image address of the cluster application to be scheduled, wherein the image address is used to represent the download address of the image corresponding to each hardware architecture supported by the cluster application to be scheduled.
[0012] Optionally, the cluster management service provided by the executable file or image corresponding to the management node includes a second scheduling service, and the second scheduling service is used to schedule the non-cluster application to be scheduled to a working node or a machine where the working node is located, whose taint information matches the hardware architecture supported by the cluster application to be scheduled and meets the resource requirements, according to the hardware architecture and resource requirements supported by the non-cluster application to be scheduled.
[0013] Optionally, the method further includes: for any one of the multiple machines, according to the hardware architecture of the machine, obtaining a basic library corresponding to the hardware architecture of the machine by compiling, wherein the basic library is used to provide an operating environment required for the application to run; and deploying the basic library on the machine.
[0014] Optionally, the hardware architecture is a CPU architecture.
[0015] According to a second aspect of the present disclosure, a heterogeneous cluster management device is provided, including: an acquisition module, used to obtain an executable file corresponding to the hardware architecture of any one of a plurality of machines by compiling according to the hardware architecture of the machine, wherein the hardware architectures of the plurality of machines are not completely the same; a deployment module, used to deploy an executable file or an image corresponding to the hardware architecture of the machine on the machine; and a creation module, used to create a cluster node on the machine by starting a service provided by the executable file or the image.
[0016] Optionally, the heterogeneous cluster includes at least one management node and at least one working node, and the executable file or image corresponding to the management node is used to provide cluster management services; the executable file or image corresponding to the working node is used to provide cluster computing services.
[0017] Optionally, the device further includes: a recording module, configured to record, for each of the working nodes, taint information related to the hardware architecture of the machine where the working node is located.
[0018] Optionally, the cluster management service provided by the executable file or image corresponding to the management node includes a first scheduling service, and the first scheduling service is used to schedule the cluster application to be scheduled to a working node whose taint information matches the hardware architecture supported by the cluster application to be scheduled.
[0019] Optionally, the first scheduling service adds tolerance information to the cluster application to be scheduled according to the hardware architecture supported by the cluster application to be scheduled, and the tolerance information is used to characterize the hardware architecture supported by the cluster application to be scheduled; the first scheduling service schedules the cluster application to be scheduled to a working node whose taint information matches the tolerance information.
[0020] Optionally, the first scheduling service downloads the corresponding image and deploys the image to the scheduled working node according to the image address of the cluster application to be scheduled, wherein the image address is used to represent the download address of the image corresponding to each hardware architecture supported by the cluster application to be scheduled.
[0021] Optionally, the cluster management service provided by the executable file or image corresponding to the management node includes a second scheduling service, and the second scheduling service is used to schedule the non-cluster application to be scheduled to a working node or a machine where the working node is located, whose taint information matches the hardware architecture supported by the cluster application to be scheduled and meets the resource requirements, according to the hardware architecture and resource requirements supported by the non-cluster application to be scheduled.
[0022] Optionally, the acquisition module is also used to obtain a basic library corresponding to the hardware architecture of any one of the multiple machines by compiling according to the hardware architecture of the machine, and the basic library is used to provide an operating environment required for the application to run. The deployment module is also used to deploy the basic library on the machine.
[0023] Optionally, the hardware architecture is a CPU architecture.
[0024] According to a third aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method described in the first aspect above.
[0025] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising an executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described in the first aspect above.
[0026] According to a fifth aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first aspect above.
[0027] Therefore, for multiple machines with different hardware architectures, the present disclosure deploys executable files or images corresponding to the hardware architecture of the machine on each machine, and starts the services provided by the executable files or images to create cluster nodes on the machines, so that these multiple machines with different hardware architectures can form a unified heterogeneous cluster, and can further provide support for the unified management of heterogeneous clusters and the heterogeneous deployment of applications, that is, provide an implementation basis. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.
[0029] Figure 1 A schematic flow chart of a heterogeneous cluster management method according to an embodiment of the present disclosure is shown.
[0030] Figure 2 A schematic diagram showing heterogeneous deployment of applications in a heterogeneous cluster is shown.
[0031] Figure 3 A schematic diagram of the development process of applications supporting multiple architectures is shown.
[0032] Figure 4 The architectural organization of the heterogeneous scheduler is shown.
[0033] Figure 5 A schematic diagram of application resource requirements is shown.
[0034] Figure 6 A schematic diagram of the architecture of the heterogeneous computing power platform of the heterogeneous cluster disclosed in the present invention is shown.
[0035] Figure 7 A schematic diagram of the structure of a cluster management device according to an embodiment of the present disclosure is shown.
[0036] Figure 8 A schematic diagram of the structure of a computing device according to an embodiment of the disclosure is shown. DETAILED DESCRIPTION
[0037] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0038] A heterogeneous cluster refers to a single cluster created based on machines with different hardware architectures. For example, it can refer to a cluster composed of machines with different CPU architectures such as x86_64, arm64, and loongarch64.
[0039] A cluster in the prior art (such as a K8S cluster) may generally include at least one management node (master) and at least one worker node (worker). Similar to the cluster in the prior art, a heterogeneous cluster may also include at least one management node and at least one worker node. A heterogeneous cluster may be a cluster created using K8S (Kubernetes) technology. That is, the heterogeneous cluster in the present disclosure may be regarded as a cluster with heterogeneous hardware architecture created on the basis of K8S technology.
[0040] When creating (i.e. deploying) a heterogeneous cluster based on multiple machines with different hardware architectures, one or more cluster nodes can be deployed on a machine (i.e. physical machine). Cluster nodes can be divided into management nodes and worker nodes. Management nodes and worker nodes can be deployed on the same machine or on different machines.
[0041] Figure 1 A schematic flow chart of a heterogeneous cluster management method according to an embodiment of the present disclosure is shown.
[0042] Let's first combine Figure 1 An example is given on how to deploy (i.e., create) a heterogeneous cluster.
[0043] See also Figure 1 In step S110, for any one of the multiple machines, an executable file or image corresponding to the hardware architecture of the machine is obtained by compiling according to the hardware architecture of the machine, and the hardware architectures of the multiple machines are not exactly the same.
[0044] The hardware architecture of a machine may refer to a processor architecture, such as a CPU (Central Processing Unit) architecture. The hardware architectures of multiple machines may include, but are not limited to, at least two of X86, ARM, LoongArch, and AI processors (i.e., AI chips) developed by various manufacturers.
[0045] Obtaining an executable file or image corresponding to the hardware architecture of the machine by compiling means obtaining an executable file or image that is adapted to the hardware architecture of the machine and can provide cluster services corresponding to the cluster node expected to be created on the machine by compiling according to the type of cluster node expected to be created on the machine. That is, the obtained executable file or image can be regarded as a cluster component in the cluster node, so that the cluster node can provide the corresponding cluster service.
[0046] In general, the management node is mainly used to provide cluster management services, and the working node is mainly used to provide cluster computing services. Therefore, the executable file or image corresponding to the management node can provide cluster management services, and the executable file or image corresponding to the working node can provide cluster computing services.
[0047] Taking the K8S cluster as an example, the management node may include but is not limited to components such as api server (interface service), scheduler (scheduler), Controller Manager (control manager), etcd (component for storing configuration information), etc. Therefore, when it is desired to create a management node on a machine, the executable file or image corresponding to the hardware architecture of the machine obtained by compilation can act as these components and provide the functions provided by these components. Correspondingly, the working node may include but is not limited to components such as Kubelet and Kube-Proxy, etc. Therefore, when it is desired to create a working node on a machine, the executable file or image corresponding to the hardware architecture of the machine obtained by compilation can act as components such as Kubelet and Kube-Proxy, etc., and provide the functions provided by these components.
[0048] In step S120, an executable file or image corresponding to the hardware architecture of the machine is deployed on the machine.
[0049] Exemplarily, the hardware architecture of the machine can be automatically identified, and an executable file or image corresponding to the hardware architecture of the machine can be deployed on the machine in an automated deployment manner. When deploying an executable file or image, the executable file or image corresponding to the cluster node expected to be created on the machine can be deployed according to the type of cluster node expected to be created on the machine (such as a management node or a working node).
[0050] In step S130, a cluster node is created on the machine by starting the service provided by the executable file or the image.
[0051] For executable files, you can run the executable files directly on the machine to start the services provided by the executable files. For images, images generally cannot be run directly, so you can run the images through containerization technology to start the services provided by the images.
[0052] Therefore, for multiple machines with different hardware architectures, by deploying executable files or images corresponding to the hardware architecture of the machine on each machine, and starting the services provided by the executable files or images, these multiple machines with different hardware architectures can form a unified heterogeneous cluster (such as a heterogeneous K8S cluster), which can provide support for the subsequent unified management of heterogeneous clusters and heterogeneous deployment of applications, that is, provide an implementation basis.
[0053] The present disclosure can also target any one of the multiple machines, and according to the hardware architecture of the machine, obtain a basic library corresponding to the hardware architecture of the machine by compiling, and deploy the basic library on the machine. The basic library is used to provide the operating environment required for the application to run. The basic library may include system built-in libraries and third-party libraries. Exemplarily, the basic library may include, but is not limited to, one or more of glibc, java, glog, gflags, and AI accelerator SDKs.
[0054] The management and use of heterogeneous clusters are basically consistent with existing clusters (such as K8S clusters), such as clusters can be managed and used through kubectl. The main difference is that the present disclosure can record taint information (tains) related to the hardware architecture of the machine where the working node is located for each working node (such as the kube node in the K8S cluster). For example, for a node with an architecture of loongarch64, taints of arch=loongarch64:NoSchedule can be recorded. The taint information related to the hardware architecture can be used to automatically schedule applications with different heterogeneous capability support (including cluster applications and non-cluster applications described below). That is, if some applications can only support certain architectures, it can be based on the taint information recorded for the node to ensure that the application will only be scheduled to execute on the node of the architecture supported by the application. Among them, cluster applications can refer to Kubernetes / K8S applications, such as Deployment; non-cluster applications can refer to bare metal deployed applications (i.e., bare metal applications), such as OpenMLDB.
[0055] The following is an illustrative description of the scheduling of cluster applications and non-cluster applications in heterogeneous clusters.
[0056] Scheduling of cluster applications
[0057] The cluster management service provided by the executable file or image corresponding to the management node may include a first scheduling service.
[0058] The first scheduling service can schedule the cluster application to be scheduled to a working node whose taint information matches the hardware architecture supported by the cluster application to be scheduled. Exemplarily, the first scheduling service can add tolerance information (tolerations) to the cluster application to be scheduled according to the hardware architecture supported by the cluster application to be scheduled, and the tolerance information is used to characterize the hardware architecture supported by the cluster application to be scheduled. Then the first scheduling service can schedule the cluster application to be scheduled to a working node whose taint information matches the tolerance information. For example, applications with tolerations of arch=aarch64 and arch=loongarch64 can be scheduled to arm64 or loongarch64 machines. Among them, aarch64 and arm64 refer to the same architecture and can therefore be used interchangeably.
[0059] In the present disclosure, cluster applications can explicitly declare their support for architecture capabilities, that is, declare the hardware architectures supported by the application, such as supporting only the x86_64 architecture. Alternatively, cluster applications may not declare their support for architecture capabilities, but the system may automatically determine the architecture of the application's image file. For example, for an application image, the manifest in the image may determine that it supports both x86_64 and aarch64 architectures.
[0060] Figure 2 A schematic diagram showing the heterogeneous deployment of applications in heterogeneous clusters is shown. Figure 2 For cluster applications with different architecture support capabilities, the present disclosure can schedule the cluster application to a node (ie, the machine where the node is located) of the architecture supported by the cluster application according to the support capability of the cluster application.
[0061] The usage of heterogeneous clusters can be the same as that of standard K8S clusters. For applications (cluster applications), since they need to support heterogeneous capabilities, the application development method is slightly different from that of standard K8S applications.
[0062] Specifically, if different architectures need to be supported, images of different architectures need to be compiled and generated respectively. The first scheduling service can download the corresponding image according to the image address of the cluster application to be scheduled and deploy the image to the scheduled working node, wherein the image address is used to represent the download address of the image corresponding to each hardware architecture supported by the cluster application to be scheduled.
[0063] For example, a multi-arch manifest can be created as a tag for the image, that is, the multi-arch image can be recorded in the image manifest. Therefore, when the application needs to be deployed, the image address only needs to provide the multi-arch image tag, and the image of the corresponding architecture can be automatically downloaded according to the image tag, and deployed and run.
[0064] The application needs to support x86 and aarch64 architectures. The specific development process is as follows:
[0065] 1) On an x86 machine, compile and generate image 1 of the x86 architecture;
[0066] 2) On the aarch64 machine, compile and generate image 2 of the aarch64 architecture;
[0067] 3) Combine image 1 and image 2 into a multi-arch image tag (manifest).
[0068] Figure 3 The following figure shows a schematic diagram of the development process of applications that support multiple architectures. Figure 3 The application architecture support capability can gradually supplement heterogeneous capability support according to the architecture development rhythm of the image, such as Figure 3 As shown, users only need to develop an image of the corresponding architecture to add support for the architecture.
[0069] Scheduling of non-cluster applications
[0070] The cluster management service provided by the executable file or image corresponding to the management node may also include a second scheduling service. The second scheduling service may schedule the non-cluster application to be scheduled to a work node or a machine where the work node is located, whose taint information matches the hardware architecture supported by the cluster application to be scheduled and meets the resource requirements, according to the hardware architecture and resource requirements supported by the non-cluster application to be scheduled.
[0071] The second scheduling service can also be called a heterogeneous scheduler. A heterogeneous scheduler allows non-cluster applications to be deployed and scheduled on a heterogeneous computing power platform (i.e., a heterogeneous cluster). A heterogeneous scheduler can maintain the computing power resource distribution of a heterogeneous cluster and automatically distribute non-cluster applications to nodes based on their support capabilities.
[0072] Heterogeneous schedulers can achieve heterogeneous scheduling capabilities by utilizing existing cluster mechanisms, such as taints and tolerances. For example, a heterogeneous scheduler can add tolerance information to non-cluster applications to be scheduled based on the hardware architecture supported by the non-cluster applications to be scheduled. The tolerance information is used to characterize the hardware architecture supported by the non-cluster applications. Any heterogeneous scheduler can schedule non-cluster applications to be scheduled to work nodes or machines where work nodes are located whose taint information matches the tolerance information and meets the resource requirements.
[0073] The heterogeneous scheduler can automatically schedule applications to idle machines based on the application's architecture support capabilities (automatically identified based on the architecture of the deployment package) and the usage of cluster resources. Specifically, the heterogeneous scheduler can maintain resource allocation and usage, application deployment and destruction; the heterogeneous scheduler can also update resource usage. The scheduler is exclusive to the node, that is, after an application is scheduled, the machine will not be scheduled by other non-cluster applications. The heterogeneous scheduler will schedule based on the current machine idleness and the resource requirements of non-cluster applications.
[0074] For non-cluster applications, users can prepare deployment packages (such as executable files) of the corresponding architecture according to the architecture support capabilities of the non-cluster applications. Figure 4 The following diagram shows the architectural organization of the heterogeneous scheduler. Figure 4 The architecture organization method shown is used to organize deployment packages of different architectures.
[0075] Figure 5 A schematic diagram of application resource requirements is shown. By configuring the scheduled machines, the heterogeneous scheduler can Figure 5 The application is automatically deployed and scheduled to idle machines based on the resource requirements shown.
[0076] Figure 6 A schematic diagram of the architecture of the heterogeneous computing power platform of the heterogeneous cluster disclosed in the present invention is shown.
[0077] A heterogeneous computing power platform refers to a heterogeneous computing power platform provided by a heterogeneous cluster. The application scenarios supported by the present disclosure may include but are not limited to risk control, anti-fraud; search, advertising, recommendation; bill recognition, etc.; and the component ecology supported by the present disclosure may include various components and / or APPs. For these components and / or APPs, the heterogeneous computing power provided by the heterogeneous computing power platform of the present disclosure can be used to realize the operation of the components and / or APPs.
[0078] like Figure 6 As shown, the core of the present disclosure is a heterogeneous runtime and a heterogeneous scheduling computing power base.
[0079] Based on the heterogeneous computing power base, the lower layer can manage hardware of different architectures, and the upper layer can access a variety of component applications. The upper-layer applications only need to follow the access guidelines and do not need to pay attention to the heterogeneity of the underlying hardware, so they can be freely deployed and scheduled in the heterogeneous computing power cluster. The heterogeneous scheduling computing power base includes the heterogeneous computing power version of K8S (and the heterogeneous scheduler (corresponding to the second scheduling service mentioned above), which can be responsible for the scheduling of cluster applications (such as K8S applications) and the scheduling of non-cluster applications (such as bare metal applications). In addition to the first scheduling service mentioned above, the heterogeneous computing power version of K8S can also include cluster components included in the management node and working node in the existing technology (such as K8S cluster).
[0080] In summary, the present disclosure not only provides a heterogeneous cluster deployment solution, but also proposes a feasible co-location solution for how to uniformly manage and schedule computing power of heterogeneous clusters, that is, it proposes a unified heterogeneous resource management and scheduling strategy, which greatly hides the heterogeneity of heterogeneous clusters and improves the management and convenience of heterogeneous clusters.
[0081] Specifically, first, for different architectures, we compile and generate architecture-bound executable files respectively, so as to combine them into applications that support multiple architectures, such as multi-architecture images for Kubernetes applications and multi-architecture release packages for bare machine applications. Then, according to the different application types, we design corresponding deployment and operation strategies, so that we can uniformly deploy, schedule, and manage on heterogeneous clusters, make full use of heterogeneous computing power, and greatly reduce the operation and maintenance and usage costs of heterogeneous clusters.
[0082] The key means used in the present disclosure can be summarized as follows: 1) Based on the computing power management base of Kubernetes, a heterogeneous computing power version of Kubernetes is proposed, which allows computing power of different architectures to coexist and is uniformly managed and scheduled by the heterogeneous computing power platform; 2) Through the architecture isolation technology, the architectural specificity of the computing power is hidden, and the architecture is transparent to the upper-level applications. The application only needs to focus on the business code, and the scheduling logic is completely handed over to the heterogeneous computing power platform, which performs scheduling according to the architecture and usage distribution of the computing power, as well as the heterogeneous support capabilities of the application; 3) Standard heterogeneous application access criteria are proposed, allowing applications to smoothly access the heterogeneous computing power platform by following the criteria.
[0083] Most of the existing technologies are aimed at the management and deployment of computing power of a single architecture (such as x86_64 architecture), and there is no existing technology that can manage the mixed deployment of heterogeneous CPU computing power. This disclosure proposes a convenient heterogeneous computing power deployment and scheduling strategy for the increasingly common heterogeneous computing power clusters, which isolates the heterogeneity of hardware and upper-level users, so that users do not need to pay attention to the complexity brought by heterogeneous computing power, greatly reducing the threshold for users to use heterogeneous computing power.
[0084] Based on the present disclosure, platform maintainers, platform application developers, and platform application users can all get a better experience. Specifically, for platform maintainers, there is no need to pay attention to the servers of different underlying architectures. They only need to deploy the heterogeneous computing power platform middleware proposed in the present disclosure (such as the heterogeneous computing power version of K8S and heterogeneous scheduler mentioned above) to uniformly maintain and manage the computing power of different architectures; for platform application developers, they can prepare release products of multiple architectures according to the standard heterogeneous computing power release method, and deploy them on the heterogeneous computing power platform through a unified deployment method; for platform application users, there is no need to pay attention to the differences in the underlying architectures, and there is no difference from the use of a single architecture.
[0085] The heterogeneous cluster management method disclosed in the present invention may also be implemented as a heterogeneous cluster management device. Figure 7 A structural schematic diagram of a heterogeneous cluster management device according to an embodiment of the present disclosure is shown. The functional units of the heterogeneous cluster management device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present disclosure. It can be understood by those skilled in the art that the functional units described below in conjunction with the accompanying drawings can be combined or divided into sub-units to implement the principles of the above invention. Therefore, the description of this document can support any possible combination, or division, or further limitation of the functional units described herein. The following is a brief description of the functional units that a heterogeneous cluster management device can have and the operations that each functional unit can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.
[0086] See also Figure 7 , the heterogeneous cluster management device 700 may include an acquisition module 710, a deployment module 720, and a creation module 730. The acquisition module 710 is used to obtain an executable file corresponding to the hardware architecture of any one of the multiple machines by compiling according to the hardware architecture of the machine, and the hardware architectures of the multiple machines are not completely the same. The deployment module 720 is used to deploy an executable file or image corresponding to the hardware architecture of the machine on the machine. The creation module 730 is used to create a cluster node on the machine by starting the service provided by the executable file or image.
[0087] The heterogeneous cluster management device 700 may further include a recording module. The recording module is used to record, for each working node, the stain information related to the hardware architecture of the machine where the working node is located.
[0088] The acquisition module 710 can also be used to obtain a basic library corresponding to the hardware architecture of any one of the multiple machines by compiling according to the hardware architecture of the machine. The basic library is used to provide the operating environment required for the application to run. The deployment module 720 can also be used to deploy the basic library on the machine.
[0089] Figure 8 A schematic diagram of the structure of a computing device that can be used to implement the heterogeneous cluster management method according to an embodiment of the disclosure is shown.
[0090] See also Figure 8 , the computing device 800 includes a memory 810 and a processor 820 .
[0091] The processor 820 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 820 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 820 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0092] The memory 810 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 820 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 810 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 810 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0093] The memory 810 stores executable codes. When the executable codes are processed by the processor 820 , the processor 820 can execute the heterogeneous cluster management method mentioned above.
[0094] The heterogeneous cluster management method, apparatus, and device according to the present disclosure have been described above in detail with reference to the accompanying drawings.
[0095] In addition, the method according to the present disclosure may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present disclosure.
[0096] Alternatively, the present disclosure may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present disclosure.
[0097] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.
[0098] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system and method according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0099] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A heterogeneous cluster management method, characterized in that: include: For any one of the multiple machines, according to the hardware architecture of the machine, an executable file corresponding to the hardware architecture of the machine is obtained by compiling, and the hardware architectures of the multiple machines are not completely the same; Deploy an executable file or image corresponding to the hardware architecture of the machine on the machine; A cluster node is created on the machine by starting the service provided by the executable file or the image.
2. The method according to claim 1, characterized in that The heterogeneous cluster includes at least one management node and at least one working node. The executable file or image corresponding to the management node is used to provide cluster management services; The executable file or image corresponding to the working node is used to provide cluster computing services.
3. The method according to claim 2, characterized in that Also includes: For each of the working nodes, the taint information related to the hardware architecture of the machine where the working node is located is recorded.
4. The method according to claim 3, characterized in that The cluster management service provided by the executable file or image corresponding to the management node includes a first scheduling service, and the first scheduling service is used to schedule the cluster application to be scheduled to the working node whose taint information matches the hardware architecture supported by the cluster application to be scheduled.
5. The method according to claim 4, characterized in that The first scheduling service adds tolerance information to the cluster application to be scheduled according to the hardware architecture supported by the cluster application to be scheduled, wherein the tolerance information is used to characterize the hardware architecture supported by the cluster application to be scheduled; The first scheduling service schedules the cluster application to be scheduled to a working node whose taint information matches the tolerance information.
6. The method according to claim 4, characterized in that The first scheduling service downloads the corresponding image according to the image address of the cluster application to be scheduled and deploys the image to the scheduled working node, wherein the image address is used to represent the download address of the image corresponding to each hardware architecture supported by the cluster application to be scheduled.
7. The method according to claim 3, characterized in that The cluster management service provided by the executable file or image corresponding to the management node includes a second scheduling service, and the second scheduling service is used to schedule the non-cluster application to be scheduled to a working node or a machine where the working node is located, whose taint information matches the hardware architecture supported by the cluster application to be scheduled and meets the resource requirements, according to the hardware architecture and resource requirements supported by the non-cluster application to be scheduled.
8. A heterogeneous cluster management device, characterized in that: include: an acquisition module, for obtaining, for any one of the multiple machines, an executable file corresponding to the hardware architecture of the machine by compiling according to the hardware architecture of the machine, wherein the hardware architectures of the multiple machines are not completely the same; A deployment module, used to deploy an executable file or image corresponding to the hardware architecture of the machine on the machine; A creation module is used to create a cluster node on the machine by starting the service provided by the executable file or the image.
9. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.
10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.
