CN115469926A - Application operation method and device and related components - Google Patents
Application operation method and device and related components Download PDFInfo
- Publication number
- CN115469926A CN115469926A CN202110656881.2A CN202110656881A CN115469926A CN 115469926 A CN115469926 A CN 115469926A CN 202110656881 A CN202110656881 A CN 202110656881A CN 115469926 A CN115469926 A CN 115469926A
- Authority
- CN
- China
- Prior art keywords
- application
- container
- version
- mirror image
- computing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000005192 partition Methods 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 11
- 230000015654 memory Effects 0.000 claims description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses an application running method, which comprises the following steps: acquiring the resource requirement of the current application, and determining a target computing node meeting the resource requirement in all computing nodes of a computing cluster; obtaining a container mirror image according to the system version and the component version corresponding to the current application, wherein the system version is compatible with the component version; creating a container on the target compute node using the container mirror; the current application is run in the container. The application operation of the application is separated from the original operating system of the computing node, is not limited by the version of the operating system and the version of the component on which the application depends, and solves the problem that the application is incompatible with the operating system of the computing node. The application also discloses an application running device, electronic equipment and a computer readable storage medium, which have the beneficial effects.
Description
Technical Field
The present application relates to the field of high performance computing, and in particular, to an application running method, an application running device, and a related component.
Background
At present, all the computing nodes in a high-performance computing cluster basically adopt a uniform system version, but in the actual application process, the problem that the application is incompatible with the system version of the computing nodes is often encountered. For example, different applications depend on different versions of components, and the components of different versions cannot be installed on the same operating system at the same time, so that different applications cannot run on the same operating system, and further, the computing node has limitations.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application operation method, the application operation device, the electronic device and the computer readable storage medium are provided, the application operation is separated from the original operating system of the computing node, the limitation of the version of the operating system and the version of the component depending on the application is avoided, and the problem that the application is incompatible with the operating system of the computing node is solved.
In order to solve the above technical problem, the present application provides an application running method, including:
acquiring resource requirements of current application, and determining target computing nodes meeting the resource requirements in all computing nodes of a computing cluster;
obtaining a container mirror image according to a system version and a component version corresponding to the current application, wherein the system version is compatible with the component version;
creating a container on the target compute node using the container mirror;
running a current application in the container.
Preferably, the process of obtaining the container image according to the system version and the component version corresponding to the current application includes:
judging whether container images corresponding to the system version and the component version exist in the image library or not;
if yes, acquiring the container mirror image from the mirror image library;
if not, the container mirror image is created according to the system version and the component version.
Preferably, after the container image is created according to the system version and the component version, the application running method further includes:
and storing the container mirror image into the mirror image library.
Preferably, the resource requirements include one or more of the number of compute nodes, the number of cores, the size of a memory, and the number of GPU cards.
Preferably, after the current application is run through the container, the application running method further includes:
and outputting an application running result.
Preferably, the application running method further includes:
dividing all the computing nodes into a plurality of computing node partitions according to configuration information of all the computing nodes in the computing cluster;
accordingly, the process of determining a target computing node among all computing nodes of a computing cluster that satisfies the resource requirement includes:
and determining target computing node partitions in all the computing node partitions according to the resource requirements, and selecting target computing nodes in the target computing node partitions.
In order to solve the above technical problem, the present application further provides an application running device, including:
the first acquisition module is used for acquiring the resource requirement of the current application and determining a target computing node meeting the resource requirement in all computing nodes of the computing cluster;
the second acquisition module is used for acquiring a container mirror image according to a system version and a component version corresponding to the current application, wherein the system version is compatible with the component version;
a creation module to create a container on the target compute node using the container image;
and the running module is used for running the current application in the container.
Preferably, the process of obtaining the container image according to the system version and the component version corresponding to the current application includes:
judging whether container images corresponding to the system version and the component version exist in the image library or not;
if yes, acquiring the container mirror image from the mirror image library;
and if not, creating the container mirror image according to the system version and the component version.
In order to solve the above technical problem, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the application execution method as described in any one of the above when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the application execution method according to any one of the above.
The application running method includes the steps that when an application needs to run in a computing node in a computing cluster, firstly, resource requirements of the current application are obtained, the computing node meeting the resource requirements is selected from the computing cluster to serve as a target computing node, a container mirror image is obtained according to a system version and an assembly version corresponding to the current application, a container is created on the target computing node according to the container mirror image, and the current application is run in the container. It can be easily seen that the running of the application in the application only depends on the system version and the component version of the created container, the original operating system of the computing node is separated, and the application is not limited by the version of the operating system and the version of the component on which the application depends, so that the problem that the operating system of the application and the operating system of the computing node are incompatible is solved. The application also provides an application running device, electronic equipment and a computer readable storage medium, and the application running device, the electronic equipment and the computer readable storage medium have the same beneficial effects as the application running method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flowchart illustrating steps of a method for running an application according to the present disclosure;
fig. 2 is a schematic structural diagram of an application execution device provided in the present application.
Detailed Description
The core of the application is to provide an application running method, an application running device, an electronic device and a computer readable storage medium, the application running is separated from the original operating system of the computing node, the limitation of the version of the operating system and the version of a component on which the application depends is avoided, and the problem that the application is incompatible with the operating system of the computing node is solved.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an application running method provided in the present application, where the application running method includes:
s101: acquiring resource requirements of current application, and determining target computing nodes meeting the resource requirements in all computing nodes of a computing cluster;
specifically, when a certain application needs to be run in one or more computing nodes in the computing cluster, it is considered that no computing node in the computing cluster can run the application, so that the resource requirement of the current application is obtained first, and then the target computing node capable of running the application is determined according to the resource requirement, and the number of the target computing nodes may be one or more.
The resource requirements include, but are not limited to, the number of compute nodes, how many cores are needed for each compute node, how many memories are needed for each core, and a GPU (Graphics Processing Unit) card number, and of course, the resource requirements may include other resources besides the above contents, and the application is not specifically limited herein.
S102: obtaining a container mirror image according to the system version and the component version corresponding to the current application, wherein the system version is compatible with the component version;
s103: creating a container on a target compute node using a container mirror;
specifically, a system version and a component version corresponding to the current application are determined, and a container mirror image is obtained according to the system version and the component version. That is to say, the container image is obtained according to the system version and the component version required by the current application operation, and the system version is compatible with the component version, so that the application can be operated on the container created on the target computing node according to the container image, and the condition that the component version and the system version which are depended by the application are incompatible does not exist.
S104: the current application is run in the container.
Specifically, after the container is created on the target computing node, the current application is run in the container, and the running of the application only depends on the system version and the component version of the created container, so that the original operating system of the computing node is separated, and the problem that the application is incompatible with the operating system of the computing node is solved. And the application running result is output, so that the working personnel can know the application running condition conveniently.
It can be seen that, in this embodiment, when an application needs to be run in a computing node in a computing cluster, a resource requirement of a current application is first obtained, the computing node meeting the resource requirement is selected from the computing cluster as a target computing node, a container mirror image is obtained according to a system version and a component version corresponding to the current application, a container is created on the target computing node according to the container mirror image, and the current application is run in the container. It can be easily seen that the running of the application in the application only depends on the system version and the component version of the created container, the original operating system of the computing node is separated, and the application is not limited by the version of the operating system and the version of the component on which the application depends, so that the problem that the operating system of the application and the operating system of the computing node are incompatible is solved.
On the basis of the above-described embodiment:
as a preferred embodiment, the process of obtaining the container image according to the system version and the component version corresponding to the current application includes:
judging whether container images corresponding to the system version and the component version exist in the image library or not;
if yes, acquiring a container mirror image from a mirror image library;
and if not, creating a container mirror image according to the system version and the component version.
As a preferred embodiment, after creating the container image according to the system version and the component version, the application running method further includes:
and storing the container mirror image into a mirror image library.
Specifically, the container image may be acquired in various ways, such as directly creating the container image according to the system version and the component version, or querying the container image from the image library according to the system version and the component version. The direct creation mode comprises that a container mirror is directly generated by a mirror manager according to the system version and the component version, and the container mirror is artificially made by a user in other environments according to the system version and the component version.
Specifically, when the container mirror image of the current application needs to be acquired, the container mirror image can be matched in the mirror image library according to the current application, if the matched container mirror image exists in the mirror image library, the container mirror image is directly acquired from the mirror image library, the container mirror image does not need to be generated, and the operation efficiency is improved to a certain extent. If the mirror image library does not have the corresponding container mirror image, the container mirror image is generated according to the system version and the component version, and after the container mirror image is generated, the container mirror image can be stored in the mirror image library for subsequent direct use, so that the efficiency is further improved.
As a preferred embodiment, the application running method further includes:
dividing all computing nodes into a plurality of computing node partitions according to configuration information of all computing nodes in the computing cluster;
accordingly, the process of determining a target computing node among all computing nodes of a computing cluster that satisfies a resource requirement comprises:
and determining target computing node partitions in all the computing node partitions according to resource requirements, and selecting target computing nodes in the target computing node partitions.
Specifically, the computing nodes in the computing cluster may be divided in advance to obtain a plurality of computing node partitions, which may be specifically divided into a large memory computing node partition, a GPU computing node partition, a CPU (Central Processing Unit) computing node partition, a standby partition, and the like. It will be appreciated that different partitions of computing nodes serve different purposes. After determining the resource requirements such as the number of computing nodes, the number of cores, the size of a memory and the like required by the current application, firstly selecting the corresponding computing node partition, and then selecting a target computing node from the computing node partitions, thereby being more targeted. One or more computing nodes are included in a computing node partition, and load balancing can be taken into consideration when determining a target computing node to ensure reliable operation of the computing cluster.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an application running apparatus provided in the present application, where the application running apparatus includes:
the first acquisition module 1 is used for acquiring resource requirements of current applications and determining target computing nodes meeting the resource requirements in all computing nodes of a computing cluster;
the second obtaining module 2 is used for obtaining a container mirror image according to the system version and the component version corresponding to the current application, and the system version is compatible with the component version;
a creating module 3, configured to create a container on a target computing node by using a container mirror image;
and the running module 4 is used for running the current application in the container.
As can be seen, in this embodiment, when an application needs to be run in a computing node in a computing cluster, a resource requirement of a current application is first obtained, the computing node that meets the resource requirement is selected from the computing cluster as a target computing node, a container mirror image is obtained according to a system version and a component version corresponding to the current application, a container is created on the target computing node according to the container mirror image, and the current application is run in the container. It can be easily seen that the running of the application in the application only depends on the system version and the component version of the created container, the original operating system of the computing node is separated, and the application is not limited by the version of the operating system and the version of the component on which the application depends, so that the problem that the operating system of the application and the operating system of the computing node are incompatible is solved.
As a preferred embodiment, the second obtaining module 2 includes:
the judging unit is used for judging whether container mirror images corresponding to the system version and the component version exist in the mirror image library or not, if yes, the acquiring unit is triggered, and if not, the creating unit is triggered;
the acquisition unit is used for acquiring the container mirror image from the mirror image library;
and the creating unit is used for creating the container mirror image according to the system version and the component version.
As a preferred embodiment, the application execution device further includes:
and the storage module is used for storing the container mirror image into the mirror image library.
In a preferred embodiment, the resource requirement includes one or more of the number of compute nodes, the number of cores, the memory size, and the number of GPU cards.
As a preferred embodiment, the application execution device further includes:
and the output module is used for outputting the application running result.
As a preferred embodiment, the application execution device further includes:
the dividing module is used for dividing all the computing nodes into a plurality of computing node partitions according to the configuration information of all the computing nodes in the computing cluster;
correspondingly, the determining module is specifically configured to:
and determining target computing node partitions in all the computing node partitions according to resource requirements, and selecting target computing nodes in the target computing node partitions.
In another aspect, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the application execution method as described in any one of the above when executing the computer program.
For an introduction of an electronic device provided in the present application, please refer to the above embodiments, which are not described herein again.
The electronic equipment provided by the application has the same beneficial effects as the application running method.
In another aspect, the present application further provides a computer readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the application running method as any one of the above.
For the introduction of a computer-readable storage medium provided in the present application, please refer to the above embodiments, which are not described herein again.
The computer-readable storage medium provided by the application has the same beneficial effects as the application running method.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. An application running method, comprising:
acquiring resource requirements of current application, and determining target computing nodes meeting the resource requirements in all computing nodes of a computing cluster;
obtaining a container mirror image according to a system version and a component version corresponding to the current application, wherein the system version is compatible with the component version;
creating a container on the target compute node using the container mirror;
running a current application in the container.
2. The application running method according to claim 1, wherein the process of obtaining the container image according to the system version and the component version corresponding to the current application comprises:
judging whether container images corresponding to the system version and the component version exist in the image library or not;
if yes, acquiring the container mirror image from the mirror image library;
if not, the container mirror image is created according to the system version and the component version.
3. The application execution method of claim 2, wherein after the container image is created according to the system version and the component version, the application execution method further comprises:
and storing the container mirror image into the mirror image library.
4. The application running method according to claim 1, wherein the resource requirements include one or more of the number of compute nodes, the number of cores, the memory size, and the number of GPU cards.
5. The application execution method of claim 1, wherein after the current application is executed by the container, the application execution method further comprises:
and outputting an application running result.
6. The application execution method according to any one of claims 1 to 5, characterized by further comprising:
dividing all the computing nodes into a plurality of computing node partitions according to the configuration information of all the computing nodes in the computing cluster;
accordingly, the process of determining a target computing node among all computing nodes of a computing cluster that satisfies the resource requirement includes:
and determining target computing node partitions in all the computing node partitions according to the resource requirements, and selecting target computing nodes in the target computing node partitions.
7. An application execution apparatus, comprising:
the first acquisition module is used for acquiring the resource requirement of the current application and determining a target computing node meeting the resource requirement in all computing nodes of the computing cluster;
the second acquisition module is used for acquiring a container mirror image according to a system version and a component version corresponding to the current application, wherein the system version is compatible with the component version;
a creation module to create a container on the target compute node using the container image;
and the running module is used for running the current application in the container.
8. The application execution device of claim 7, wherein the process of obtaining the container image according to the system version and the component version corresponding to the current application comprises:
judging whether container images corresponding to the system version and the component version exist in the image library or not;
if yes, acquiring the container mirror image from the mirror image library;
if not, the container mirror image is created according to the system version and the component version.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the application execution method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the application execution method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110656881.2A CN115469926A (en) | 2021-06-11 | 2021-06-11 | Application operation method and device and related components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110656881.2A CN115469926A (en) | 2021-06-11 | 2021-06-11 | Application operation method and device and related components |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115469926A true CN115469926A (en) | 2022-12-13 |
Family
ID=84363502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110656881.2A Pending CN115469926A (en) | 2021-06-11 | 2021-06-11 | Application operation method and device and related components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115469926A (en) |
-
2021
- 2021-06-11 CN CN202110656881.2A patent/CN115469926A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106383704B (en) | Progress bar data processing method and device | |
CN111767143A (en) | Transaction data processing method, device, equipment and system | |
US20170004013A1 (en) | Method and device for managing application | |
CN110636124B (en) | VPP cluster management method and device, electronic equipment and storage medium | |
CN114416352A (en) | Computing resource allocation method and device, electronic equipment and storage medium | |
CN110162344B (en) | Isolation current limiting method and device, computer equipment and readable storage medium | |
CN107977275B (en) | Task processing method based on message queue and related equipment | |
CN113010265A (en) | Pod scheduling method, scheduler, memory plug-in and system | |
CN112667307A (en) | Extension method and extension device based on el-tabs | |
CN114036031B (en) | Scheduling system and method for resource service application in enterprise digital middleboxes | |
CN111988429A (en) | Algorithm scheduling method and system | |
CN109240773B (en) | Method, device, terminal and readable storage medium for solving room string data | |
CN115469926A (en) | Application operation method and device and related components | |
CN115935909A (en) | File generation method and device and electronic equipment | |
CN114356516A (en) | Resource scheduling method, related device, equipment and storage medium | |
US20180278472A1 (en) | System and method for performing mass renaming of list of items at run-time with variable differentiation factor | |
CN114741165A (en) | Processing method of data processing platform, computer equipment and storage device | |
CN109379284B (en) | Route execution method, storage medium, and terminal device | |
CN109614242B (en) | Computing capacity sharing method, device, equipment and medium | |
CN113687908A (en) | PMEM virtual machine creation method, device, equipment and readable storage medium | |
CN112328598A (en) | ID generation method, device, electronic equipment and storage medium | |
CN110825477A (en) | Method, device and equipment for loading graphical interface and storage medium | |
CN111459981A (en) | Query task processing method, device, server and system | |
US11487606B2 (en) | Automated alert augmentation for deployments of software-defined storage | |
CN112041817A (en) | Method and node for managing requests for hardware acceleration by means of an accelerator device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |