CN111078362A - Equipment management method and device based on container platform - Google Patents
Equipment management method and device based on container platform Download PDFInfo
- Publication number
- CN111078362A CN111078362A CN201911304514.5A CN201911304514A CN111078362A CN 111078362 A CN111078362 A CN 111078362A CN 201911304514 A CN201911304514 A CN 201911304514A CN 111078362 A CN111078362 A CN 111078362A
- Authority
- CN
- China
- Prior art keywords
- target
- virtual
- equipment
- physical
- group
- 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
Images
Classifications
-
- 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/5061—Partitioning or combining of resources
- G06F9/5077—Logical partitioning of resources; Management or configuration of virtualized resources
-
- 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/45583—Memory management, e.g. access or allocation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a device management method and a device based on a container platform, wherein the method comprises the following steps: selecting virtual equipment corresponding to the target demand condition from the virtual equipment of each demand type as target virtual equipment according to the target demand condition; the virtual equipment of each demand type is obtained by classifying the virtual equipment according to preset demand conditions; selecting a physical equipment group corresponding to the target virtual equipment from a preset first list as a target physical equipment group according to the target virtual equipment; and managing each target physical device in the target physical device group. According to the invention, when the user deploys the application, the user does not need to know which types of equipment are in the target kubernets cluster, only needs to select the specified type of virtual equipment according to the target requirement, and then the container platform automatically acquires the types of a group of physical equipment corresponding to the virtual equipment according to the virtual equipment, so that the physical equipment is managed conveniently, quickly and efficiently.
Description
Technical Field
The invention relates to the technical field of equipment management, in particular to an equipment management method based on a container platform.
Background
kubernets, K8s for short, is an abbreviation for 8 instead of 8 characters "ubernet". It is an open source for managing containerized applications on multiple hosts in a cloud platform, and the goal of kubernets is to make deploying containerized applications simple and efficient. Kubernets is therefore being accepted by an increasing number of businesses and individuals as a container arrangement system.
The kubernet platform provides an open API called device plugin, based on which device vendors can write device driver plugins that are independent of the kubernet core code. Many virtual devices are currently supported by kubernets in this manner. Also, for compatibility considerations, user applications typically write code based on an abstraction of the operating system or programming framework (simultaneously), and can work with various models of devices. For example, assuming that some nodes of the kubernets cluster are equipped with two GPUs (an intel GPU device with model i915 and an nvidia GPU device with model p 100), the application must know the specific models of the two GPUs, and then can manage the two GPUs to use the two GPUs normally, otherwise the devices cannot be managed.
Disclosure of Invention
The embodiment of the invention aims to provide a device management method and device based on a container platform, which are used for solving the problem that in the prior art, a user needs to know the specific model of a device in advance to manage the device when deploying applications.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a device management method based on a container platform comprises the following steps:
selecting virtual equipment corresponding to the target demand condition from the virtual equipment of each demand type as target virtual equipment according to the target demand condition; the virtual equipment of each demand type is obtained by classifying the virtual equipment according to preset demand conditions;
selecting a physical equipment group corresponding to the target virtual equipment from a preset first list as a target physical equipment group according to the target virtual equipment;
and managing each target physical device in the target physical device group.
Optionally, the method further includes: establishing a mapping relation between virtual equipment and a physical equipment group according to the physical equipment and the virtual equipment to construct and obtain the first list; each virtual device corresponds to a plurality of physical device groups, and each physical device group comprises at least one physical device.
Optionally, the method further includes:
when the physical equipment is increased or decreased, updating the physical equipment group according to the increased or decreased physical equipment;
and reestablishing the mapping relation between the virtual equipment and the physical equipment group according to the updated physical equipment group so as to update the first list.
Optionally, the managing each target physical device in the target physical device group specifically includes:
and respectively managing each target physical device by using a device manager according to the attribute information of each target physical device.
Optionally, the respectively managing, by using the device manager, each of the target physical devices according to the attribute information of each of the target physical devices specifically includes:
registering the target virtual device in the device manager;
acquiring state information of the target virtual equipment, attribute information of each target physical equipment and state information of each target physical equipment according to the mapping relation between the target virtual equipment and the target physical equipment group;
and respectively managing each target physical device by using a device manager according to the obtained state information of the target virtual device, the attribute information of each target physical device and the state information of each target physical device.
Optionally, the method further includes:
and when the state information of the target physical equipment is updated, updating the state information of the target virtual equipment according to the updated state information of the target physical equipment.
Optionally, the method further includes: and performing virtual resource allocation on the target virtual device so that the target physical device group corresponding to the target virtual device obtains the virtual resource.
Optionally, the virtual device includes any one of: GPU virtual equipment, FPGA virtual equipment and network card virtual equipment;
the requirement conditions comprise one or more of the following conditions: cost of the virtual device, functionality of the virtual device, and performance of the virtual device.
Optionally, the attribute information includes one or more of the following: the name of the device and the model of the device;
the state information of the target physical device comprises one or more of the following: running state information of the device and assigned information of the device;
the state information of the target virtual device comprises one or more of the following: operational status information of the device and assigned information of the device.
In order to solve the above technical problem, the present application provides a device management apparatus based on a container platform, including:
the first selection module is used for selecting virtual equipment corresponding to the target demand condition from the virtual equipment of each demand type as target virtual equipment according to the target demand condition; the virtual equipment of each demand type is obtained by classifying the virtual equipment according to preset demand conditions;
a second selection module selects a physical equipment group corresponding to the target virtual equipment from a preset first list as a target physical equipment group according to the target virtual equipment;
and the management module is used for managing each target physical device in the target physical device group.
The embodiment of the invention has the beneficial effects that: when a user deploys an application, the user does not need to know which types of equipment exist in a target kubernets cluster, only needs to select the virtual equipment of the specified type according to the target requirement, and after the virtual equipment of the specified type is selected, the container platform can automatically acquire the types of a group of physical equipment corresponding to the virtual equipment according to the virtual equipment, so that the physical equipment is managed conveniently, quickly and efficiently.
Drawings
FIG. 1 is a flow chart of a method for device management based on a container platform according to an embodiment of the present invention;
FIG. 2 is a flowchart of an embodiment of a method for device management based on a container platform according to the present invention;
FIG. 3 is a flow chart of another embodiment of a method for device management based on a container platform according to an embodiment of the present invention;
fig. 4 is a block diagram of a device management apparatus based on a container platform according to an embodiment of the present invention.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The embodiment of the invention provides an equipment management method based on a container platform, and the method in the embodiment can be specifically applied to a K8S container platform, a K3S container platform or other types of container platforms. In the embodiment, the virtual devices of each requirement type are obtained by classifying the virtual devices according to preset requirement conditions, and then when a user deploys an application, the virtual device corresponding to the target requirement condition can be selected from the virtual devices of each requirement type according to the target requirement condition to serve as the target virtual device; then, the container platform can select a physical device group corresponding to the target virtual device from a preset first list as a target physical device group according to the target virtual device; and managing each target physical device in the target physical device group. The user can manage the equipment by the equipment manager in the container platform without knowing the specific model of the physical equipment, and the management efficiency is high.
The application in this embodiment means: and developing the finished application on the application development platform by a developer. According to the application, a target requirement condition can be determined, for example, the target requirement condition is high-end performance, and the virtual device is a GPU, so that the high-end performance GPU can be selected from virtual devices of various requirement types (i.e., low-end performance GPU, medium-end performance GPU, and high-end performance GPU) as the target virtual device. For example, selecting a high-end performance GPU: com/highgpu, then by looking up the first list, it is possible to find a physical device group corresponding to it, which includes an nvidia tesla m60 device and an AMD PowerColor radon RX Vega64 device, thereby obtaining two target physical devices.
Another embodiment of the present invention provides a device management method based on a container platform, as shown in fig. 1, including the following steps:
step S101, selecting virtual equipment corresponding to target demand conditions from virtual equipment of various demand types as target virtual equipment according to the target demand conditions; the virtual equipment of each demand type is obtained by classifying the virtual equipment according to preset demand conditions;
the virtual device in this step includes any one of the following GPU virtual device, FPGA virtual device, and network card virtual device. The requirement conditions comprise one or more of the following conditions: cost of the virtual device, functionality of the virtual device, and performance of the virtual device. The virtual devices of each requirement type may be, for example, a high-end performance FPGA virtual device, a middle-end performance FPGA virtual device, a low-end performance FPGA virtual device, a high-cost GPU virtual device, a low-cost GPU virtual device, and the like.
Step S102, selecting a physical equipment group corresponding to the target virtual equipment from a preset first list as a target physical equipment group according to the target virtual equipment;
in this step, the first list is a list in which mapping relationships between virtual devices and physical device groups are stored, and a plurality of physical device groups corresponding to target virtual devices can be obtained by searching for the target virtual devices in the first list.
Step S103, managing each target physical device in the target physical device group.
In this step, after the target physical device is determined, the target physical device can be managed, and in a specific implementation process, each target physical device can be managed by acquiring attribute information of each target physical device. The attribute information includes a name of the device and a model of the device.
According to the embodiment of the invention, the user does not need to know which types of equipment are specifically available when deploying the application, only the virtual equipment of the specified type is selected according to the target requirement, and after the virtual equipment of the specified type is selected, the container platform can automatically acquire the types of a group of physical equipment corresponding to the virtual equipment according to the virtual equipment, so that the physical equipment is managed conveniently, quickly and efficiently.
Another embodiment of the present invention provides a device management method based on a container platform, as shown in fig. 2, including the following steps:
step S201, establishing a mapping relation between a virtual device and a physical device group according to a physical device and a virtual device to construct and obtain the first list; each virtual device corresponds to a plurality of physical device groups, and each physical device group comprises at least one physical device.
In this step, each virtual device may correspond to a plurality of physical device groups. The equipment combination in each physical equipment group forms the virtual equipment to achieve the functions of the virtual equipment. For example, a high-end GPU device corresponds to a physical device group, where the physical device group includes an nvidia tesla m60 device and an AMD PowerColor radar RX Vega64 device, and the two devices can form the high-end GPU device after being combined.
Step S202, selecting virtual equipment corresponding to the target demand condition from the virtual equipment of each demand type as target virtual equipment according to the target demand condition;
step S203, selecting a physical device group corresponding to the target virtual device from a preset first list as a target physical device group according to the target virtual device;
step S204, a device manager is used to manage each target physical device according to the attribute information of each target physical device.
In the specific implementation process, the target virtual device is registered in the device manager; acquiring state information of the target virtual equipment, attribute information of each target physical equipment and state information of each target physical equipment according to the mapping relation between the target virtual equipment and the target physical equipment group; and then respectively managing each target physical device by using a device manager according to the obtained state information of the target virtual device, the attribute information of each target physical device and the state information of each target physical device. Wherein, the state information of the target physical device comprises one or more of the following: running state information of the device and assigned information of the device; the state information of the target virtual device comprises one or more of the following: operational status information of the device and assigned information of the device. The allocated information refers to the allocation situation of which virtual resource the target physical device is allocated to, or the allocation situation of which virtual resource the target virtual device is allocated to.
More specifically, in this embodiment, before registering the target virtual device in the device manager, a target virtual device plug-in needs to be determined according to the target virtual device; determining a target physical device plug-in according to each target physical device in the target physical device group; and finally, respectively managing each target physical device by the device manager through the target virtual device plug-in and each target physical device plug-in according to the attribute information of each target physical device, the state information of each target physical device and the state information of each target virtual device.
The mapping relation between the virtual equipment and the physical equipment group can be stored in a centralized manner by constructing the first list, so that a foundation is laid for searching the corresponding physical equipment group from the first list according to the target virtual equipment, the target physical equipment group can be determined quickly, the target physical equipment can be determined quickly, and the management efficiency is improved.
In addition, in this embodiment, when the state information of the target physical device is updated, it is necessary to update the state information of the target virtual device based on the updated state information of the target physical device. Specifically, when the state information of the target physical device is updated, the device manager is used to call a Notify function of the target virtual device plug-in, so as to update the state information of the target virtual device in the target virtual device plug-in according to the updated state information. In the embodiment, the state information of the target virtual device is updated according to the state information of the target physical device, so that the consistency of the state information is ensured, and the subsequent management of the target physical device is ensured. This embodiment is based on the above embodiment, and as a further preferred implementation, when the physical devices are increased or decreased, the first list also needs to be updated. Specifically, when the physical devices are increased or decreased, the physical device group is updated according to the increased or decreased physical devices; and reestablishing the mapping relation between the virtual equipment and the physical equipment group according to the updated physical equipment group so as to update the first list. In this embodiment, the first list is updated according to the increase or decrease of the current physical device, so that the information of the physical devices in the first list is more accurate, and the problem that the attribute information of the physical device cannot be acquired and the physical device cannot be managed because the physical device is not added to the first list when the physical device is not increased in time is solved.
An embodiment of the present invention provides a device management method based on a container platform, as shown in fig. 3, including the following steps:
step S301, selecting virtual equipment corresponding to the target demand condition from virtual equipment of each demand type as target virtual equipment according to the target demand condition;
step S302, selecting a physical device group corresponding to the target virtual device from a preset first list as a target physical device group according to the target virtual device;
step S303, performing virtual resource allocation on the target virtual device, so that the target physical device group corresponding to the target virtual device obtains the virtual resource.
In this embodiment, the virtual resource may be a target container.
In the specific implementation process of this step, it is necessary to determine a target virtual device plug-in according to the target virtual device, and determine a target physical device plug-in according to the target physical device. Then, the AllocProxy method of the device manager is called by using the target virtual device plug-in corresponding to the target virtual device, so that the device manager acts on the target virtual device plug-in to call the allocation method of each target physical device plug-in, and each target physical device corresponding to the target virtual device is allocated to a target container.
Step S304, a device manager is used to manage each target physical device according to the attribute information of each target physical device.
In the specific implementation process of this step, the virtual device plug-in is used to register the target virtual device in the device manager, and the device manager is enabled to obtain the state information of the target virtual device, the attribute information of each target physical device, and the state information of each target physical device according to the mapping relationship between the target virtual device and the target physical device group by registering the target virtual device in the device manager.
In this step, after allocating the target physical device to the target container and obtaining the state information of the target virtual device, the attribute information of each target physical device, and the state information of each target physical device, the target physical device may be managed by starting the container. After the target container is specifically started, a PreStartProxy method of the device manager is called by using a target virtual device plug-in, so that the device manager substitutes the target virtual device plug-in to call the PreStartContainer method of each target physical device plug-in, and each target physical device is managed according to attribute information and state information of each target physical device and state information of the target virtual device.
In this embodiment, the container platform has a plurality of applications, each application corresponds to a plurality of containers, each container of each application is allocated with a plurality of corresponding virtual devices and physical devices, and the virtual devices and the physical devices interact with each other through the device manager, thereby completing management of the virtual devices and the physical devices. Namely, the target virtual equipment is distributed to the corresponding target container, so that the corresponding equipment is managed by calling the specified method in the equipment manager to proxy the equipment plug-in, and the equipment management efficiency is improved.
Another embodiment of the present invention provides an apparatus for managing devices based on a container platform, as shown in fig. 4, including:
the first selection module is used for selecting virtual equipment corresponding to the target demand condition from the virtual equipment of each demand type as target virtual equipment according to the target demand condition; the virtual equipment of each demand type is obtained by classifying the virtual equipment according to preset demand conditions;
a second selection module, configured to select, according to the target virtual device, a physical device group corresponding to the target virtual device from a preset first list as a target physical device group;
and the management module is used for managing each target physical device in the target physical device group.
In this embodiment, the virtual device includes any one of: GPU virtual equipment, FPGA virtual equipment and network card virtual equipment; the requirement conditions comprise one or more of the following conditions: cost of the virtual device, functionality of the virtual device, and performance of the virtual device.
According to the embodiment of the invention, the user does not need to know which types of equipment are specifically available when deploying the application, only the virtual equipment of the specified type is selected according to the target requirement, and after the virtual equipment of the specified type is selected, the container platform can automatically acquire the types of a group of physical equipment corresponding to the virtual equipment according to the virtual equipment, so that the physical equipment is managed conveniently, quickly and efficiently.
In a specific implementation process of this embodiment, the device management apparatus based on a container platform further includes a building module, where the building module is configured to build a mapping relationship between a virtual device and a physical device group according to the physical device and the virtual device, so as to build and obtain the first list; each virtual device corresponds to a plurality of physical device groups, and each physical device group comprises at least one physical device. The embodiment of the invention utilizes the construction module to construct the first list, can intensively store the mapping relation between the virtual equipment and the physical equipment group, lays a foundation for searching the corresponding physical equipment group from the first list according to the target virtual equipment in the follow-up process, is favorable for quickly determining the target physical equipment group, further realizes the quick determination of the target physical equipment and improves the management efficiency.
The device management apparatus based on the container platform further includes a first updating module, configured to update the physical device group according to the increased or decreased physical devices when the physical devices are increased or decreased;
and reestablishing the mapping relation between the virtual equipment and the physical equipment group according to the updated physical equipment group so as to update the first list.
In a specific implementation process, the management module is specifically configured to manage each target physical device by using a device manager according to attribute information of each target physical device. Further, the management module is configured to register the target virtual device in the device manager; acquiring state information of the target virtual equipment, attribute information of each target physical equipment and state information of each target physical equipment according to the mapping relation between the target virtual equipment and the target physical equipment group; and respectively managing each target physical device by using a device manager according to the obtained state information of the target virtual device, the attribute information of each target physical device and the state information of each target physical device. The attribute information comprises one or more of the following: the name of the device and the model of the device; the state information of the target physical device comprises one or more of the following: running state information of the device and assigned information of the device; the state information of the target virtual device comprises one or more of the following: operational status information of the device and assigned information of the device. More specifically, in this embodiment, before registering the target virtual device in the device manager, a target virtual device plug-in needs to be determined according to the target virtual device; determining a target physical device plug-in according to each target physical device in the target physical device group; and finally, respectively managing each target physical device by the device manager through the target virtual device plug-in and each target physical device plug-in according to the attribute information of each target physical device, the state information of each target physical device and the state information of each target virtual device.
In a specific implementation process, the device management apparatus based on the container platform further includes a second updating module, configured to update the state information of the target virtual device according to the updated state information of the target physical device when the state information of the target physical device is updated. Specifically, when the state information of the target physical device is updated, the device manager is used to call a Notify function of the target virtual device plug-in, so as to update the state information of the target virtual device in the target virtual device plug-in according to the updated state information. According to the method and the device, the state information of the target virtual device is updated according to the state information of the target physical device, so that the accuracy of the state information is guaranteed, and the follow-up management of the target physical device is guaranteed.
Preferably, the device management apparatus based on the container platform further includes an allocation module, configured to perform virtual resource allocation on the target virtual device, so that the target physical device group corresponding to the target virtual device obtains the virtual resource. Where the virtual resource may be a container. In a specific implementation process, a target virtual device plug-in is determined according to the target virtual device, and a target physical device plug-in is determined according to the target physical device. Then, the AllocProxy method of the device manager is called by using the target virtual device plug-in corresponding to the target virtual device, so that the device manager acts on the target virtual device plug-in to call the allocation method of each target physical device plug-in, and each target physical device corresponding to the target virtual device is allocated to a target container. After the target physical devices are allocated to the target container and the state information of the target virtual devices, the attribute information of each target physical device and the state information of each target physical device are obtained, the target physical devices can be managed by starting the container. After the target container is specifically started, a PreStartProxy method of the device manager is called by using a target virtual device plug-in, so that the device manager substitutes the target virtual device plug-in to call the PreStartContainer method of each target physical device plug-in, and each target physical device is managed according to attribute information and state information of each target physical device and state information of the target virtual device. In the embodiment, the target virtual device is allocated to the corresponding target container, so that the corresponding device is managed by calling the specified method in the device manager to proxy the device plug-in, and the device management efficiency is improved.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.
Claims (10)
1. A device management method based on a container platform is characterized by comprising the following steps:
selecting virtual equipment corresponding to the target demand condition from the virtual equipment of each demand type as target virtual equipment according to the target demand condition; the virtual equipment of each demand type is obtained by classifying the virtual equipment according to preset demand conditions;
selecting a physical equipment group corresponding to the target virtual equipment from a preset first list as a target physical equipment group according to the target virtual equipment;
and managing each target physical device in the target physical device group.
2. The method of claim 1, wherein the method further comprises: establishing a mapping relation between virtual equipment and a physical equipment group according to the physical equipment and the virtual equipment to construct and obtain the first list; each virtual device corresponds to a plurality of physical device groups, and each physical device group comprises at least one physical device.
3. The method of claim 2, wherein the method further comprises:
when the physical equipment is increased or decreased, updating the physical equipment group according to the increased or decreased physical equipment;
and reestablishing the mapping relation between the virtual equipment and the physical equipment group according to the updated physical equipment group so as to update the first list.
4. The method of claim 1, wherein the managing each target physical device in the target physical device group specifically comprises:
and respectively managing each target physical device by using a device manager according to the attribute information of each target physical device.
5. The method according to claim 4, wherein the respectively managing each of the target physical devices by using the device manager according to the attribute information of each of the target physical devices specifically comprises:
registering the target virtual device in the device manager;
acquiring state information of the target virtual equipment, attribute information of each target physical equipment and state information of each target physical equipment according to the mapping relation between the target virtual equipment and the target physical equipment group;
and respectively managing each target physical device by using a device manager according to the obtained state information of the target virtual device, the attribute information of each target physical device and the state information of each target physical device.
6. The method of claim 5, wherein the method further comprises:
and when the state information of the target physical equipment is updated, updating the state information of the target virtual equipment according to the updated state information of the target physical equipment.
7. The method of claim 4, wherein the method further comprises: and performing virtual resource allocation on the target virtual device so that the target physical device group corresponding to the target virtual device obtains the virtual resource.
8. The method of claim 1, wherein the virtual device comprises any one of: GPU virtual equipment, FPGA virtual equipment and network card virtual equipment;
the requirement conditions comprise one or more of the following conditions: cost of the virtual device, functionality of the virtual device, and performance of the virtual device.
9. The method of claim 5, wherein the attribute information includes one or more of: the name of the device and the model of the device;
the state information of the target physical device comprises one or more of the following: running state information of the device and assigned information of the device;
the state information of the target virtual device comprises one or more of the following: operational status information of the device and assigned information of the device.
10. An equipment management device based on a container platform, comprising:
the first selection module is used for selecting virtual equipment corresponding to the target demand condition from the virtual equipment of each demand type as target virtual equipment according to the target demand condition; the virtual equipment of each demand type is obtained by classifying the virtual equipment according to preset demand conditions;
a second selection module, configured to select, according to the target virtual device, a physical device group corresponding to the target virtual device from a preset first list as a target physical device group;
and the management module is used for managing each target physical device in the target physical device group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911304514.5A CN111078362A (en) | 2019-12-17 | 2019-12-17 | Equipment management method and device based on container platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911304514.5A CN111078362A (en) | 2019-12-17 | 2019-12-17 | Equipment management method and device based on container platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111078362A true CN111078362A (en) | 2020-04-28 |
Family
ID=70315353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911304514.5A Pending CN111078362A (en) | 2019-12-17 | 2019-12-17 | Equipment management method and device based on container platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111078362A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104011685A (en) * | 2012-12-26 | 2014-08-27 | 华为技术有限公司 | Resource management method of virtual machine system, virtual machine system, and apparatus |
US20140351443A1 (en) * | 2012-09-07 | 2014-11-27 | Transoft (Shanghai), Inc | Virtual resource object component |
US20150222564A1 (en) * | 2014-02-05 | 2015-08-06 | Futurewei Technologies, Inc. | Virtual Resource Mapping Mechanisms |
CN107797843A (en) * | 2016-09-02 | 2018-03-13 | 华为技术有限公司 | A kind of method and apparatus of container function enhancing |
US20180181383A1 (en) * | 2015-06-24 | 2018-06-28 | Entit Software Llc | Controlling application deployment based on lifecycle stage |
WO2018181961A1 (en) * | 2017-03-31 | 2018-10-04 | 日本電気株式会社 | Virtual network function management device, virtual infrastructure management device, and virtual network function construction method |
CN109976757A (en) * | 2019-03-25 | 2019-07-05 | 浪潮商用机器有限公司 | A kind of configuration method of Virtual I/O Server, device, equipment and medium |
-
2019
- 2019-12-17 CN CN201911304514.5A patent/CN111078362A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140351443A1 (en) * | 2012-09-07 | 2014-11-27 | Transoft (Shanghai), Inc | Virtual resource object component |
CN104011685A (en) * | 2012-12-26 | 2014-08-27 | 华为技术有限公司 | Resource management method of virtual machine system, virtual machine system, and apparatus |
US20150222564A1 (en) * | 2014-02-05 | 2015-08-06 | Futurewei Technologies, Inc. | Virtual Resource Mapping Mechanisms |
US20180181383A1 (en) * | 2015-06-24 | 2018-06-28 | Entit Software Llc | Controlling application deployment based on lifecycle stage |
CN107797843A (en) * | 2016-09-02 | 2018-03-13 | 华为技术有限公司 | A kind of method and apparatus of container function enhancing |
WO2018181961A1 (en) * | 2017-03-31 | 2018-10-04 | 日本電気株式会社 | Virtual network function management device, virtual infrastructure management device, and virtual network function construction method |
CN109976757A (en) * | 2019-03-25 | 2019-07-05 | 浪潮商用机器有限公司 | A kind of configuration method of Virtual I/O Server, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108510389B (en) | Intelligent contract calling method and device based on block chain and readable storage medium | |
CN109862581B (en) | Communication method and device | |
CN107689882A (en) | The method and apparatus of service deployment in a kind of virtualization network | |
US9419859B2 (en) | Service allocation in a distributed computing platform | |
KR20190057109A (en) | Method and management unit for managing network slices | |
EP3806390B1 (en) | Network slice creation method and management and orchestration system | |
CN106031116A (en) | Method, apparatus and system for associating NS with VNF | |
CN110032393A (en) | A kind of micro services dissemination method, device, equipment and medium | |
CN109391490A (en) | The management method and device of network slice | |
CN108900435B (en) | Service deployment method, device and computer storage medium | |
WO2016150139A1 (en) | Method and apparatus for establishing network service instance | |
EP3550775B1 (en) | Resource determination method and device | |
CN110213391A (en) | A kind of configuration method and device of internet protocol address | |
CN108933844A (en) | The method and apparatus of DHCP service is provided | |
CN106162507A (en) | A kind of virtualize the flexible management method of network function and device | |
CN113674131A (en) | Hardware accelerator equipment management method and device, electronic equipment and storage medium | |
CN109858655A (en) | Reserve the method and system of test | |
CN112866321A (en) | Resource scheduling method, device and system | |
CN114157573A (en) | Method and device for deploying virtualized network function | |
CN112565475B (en) | Ip address allocation method for adding new node in container cluster service layer | |
CN112256351B (en) | Method for realizing Feign component, method and device for calling micro-service | |
CN109213565B (en) | Management method of heterogeneous virtual computing resources, related equipment and storage medium | |
CN110636149B (en) | Remote access method, device, router and storage medium | |
CN111078362A (en) | Equipment management method and device based on container platform | |
CN108667750B (en) | Virtual resource management method and 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 |