CN112256405B - PAAS platform service management method and related device - Google Patents

PAAS platform service management method and related device Download PDF

Info

Publication number
CN112256405B
CN112256405B CN202011296795.7A CN202011296795A CN112256405B CN 112256405 B CN112256405 B CN 112256405B CN 202011296795 A CN202011296795 A CN 202011296795A CN 112256405 B CN112256405 B CN 112256405B
Authority
CN
China
Prior art keywords
virtualization platform
information
virtualization
platform
executed
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.)
Active
Application number
CN202011296795.7A
Other languages
Chinese (zh)
Other versions
CN112256405A (en
Inventor
高传集
张建伟
储佳祥
魏金雷
张晖
孙思清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202011296795.7A priority Critical patent/CN112256405B/en
Publication of CN112256405A publication Critical patent/CN112256405A/en
Application granted granted Critical
Publication of CN112256405B publication Critical patent/CN112256405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The invention discloses a PAAS platform service management method, which can install a docker program in a host machine based on a virtual machine through a first agent so as to ensure that a first virtualization platform can run a container mirror image based on a virtualization environment of the virtual machine. When the container mirror image is specifically allocated, the container mirror image is specifically allocated to the first virtualization platform based on the virtual machine or the second virtualization platform based on the container according to the required hardware information corresponding to the container mirror image, so that management of various virtualization platforms is facilitated. The invention also provides a PAAS platform service management device, PAAS platform service management equipment and a computer readable storage medium, and also has the beneficial effects.

Description

PAAS platform service management method and related device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a PAAS platform service management method, a PAAS platform service management apparatus, a PAAS platform service management device, and a computer-readable storage medium.
Background
With the rapid development of cloud computing, a Platform As A Service (PAAS) cloud Platform has become an important business for each large enterprise. The cloud computing technology is evolved from a traditional virtual machine-based technology to a container-based lightweight virtualization technology, and virtualization platforms also have types such as openstack, vmware and the like based on a virtual machine and types such as docker, gVisor and the like based on a container. The release management of various virtualized environment services is various. The existing PAAS platform is compatible with both the traditional virtual machine-based virtualization environment and a novel container-based virtualization platform. The existing PAAS platform needs to make different types of service images aiming at various virtualization environments, and release and manage service products in different modes, so that the service management difficulty of the PAAS platform is getting higher and higher. Therefore, how to provide a convenient PAAS platform service management method is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a PAAS platform service management method which is convenient for managing various virtualization platforms; another object of the present invention is to provide a PAAS platform service management apparatus, a PAAS platform service management device and a computer readable storage medium, which facilitate management of multiple virtualization platforms.
In order to solve the above technical problem, the present invention provides a PAAS platform service management method, which comprises:
installing a docker program to a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, and configuring parameter information required by operation of the docker program in the host machine to complete construction of a first virtualization platform;
acquiring basic information of the first virtualization platform through the first agent; the basic information comprises hardware information of a virtualization platform, and the hardware information comprises a virtualization platform type;
acquiring basic information of a second virtualization platform through a second agent; the second agent is an agent deployed on a second container-based virtualization platform;
selecting the first virtualization platform or the second virtualization platform as a virtualization platform to be executed according to required hardware information corresponding to a container mirror image stored in a mirror image warehouse; the required hardware information comprises a required virtualization platform type;
and sending the container mirror image to the virtualization platform to be executed, and running the service corresponding to the container mirror image.
Optionally, the hardware information further includes hardware architecture information of a corresponding virtualization platform, where the hardware architecture information includes any one of:
x86 architecture, arm architecture, mips architecture;
the required hardware information further comprises required hardware architecture information of a required virtualization platform, and the required hardware architecture information comprises any one of the following items:
requirement x86 architecture, requirement arm architecture, and requirement mips architecture.
Optionally, the basic information further includes CPU information for characterizing the computing capability, and memory information for characterizing the storage capability.
Optionally, the sending the container image to the to-be-executed virtualization platform includes:
calling a scheduling model, determining a virtualization platform to be executed with the highest score in the virtualization platforms to be executed as an optimal virtualization platform according to the CPU information and the memory information, and sending the container mirror image to the optimal virtualization platform; the scheduling model is as follows:
Figure GDA0003625089600000021
the score is the score, the alpha is an influence factor of computing capacity, and the beta is an influence factor of storage capacity; the sigma CPU (i) is the computing capacity of the virtualization platform to be executed currently max For maximum computing power in all of the to-be-executed virtualization platforms, the sigma CPU min The minimum computing capacity in all the virtualization platforms to be executed is obtained; the sigma Mem (i) is the storage capacity of the virtualization platform to be executed currently, and the sigma Mem max For maximum storage capacity in all of the to-be-executed virtualization platforms, the Σ Mem min And the minimum storage capacity in all the platforms to be executed is obtained.
The invention also provides a PAAS platform service management device, which comprises:
a deployment module: the virtual machine template mirror image processing method comprises the steps that a docker program is installed on a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, parameter information required by operation of the docker program is configured in the host machine, and the building of a first virtualization platform is completed;
a first obtaining module: the first agent is used for acquiring basic information of the first virtualization platform; the basic information comprises hardware information of a virtualization platform, and the hardware information comprises a virtualization platform type;
a second obtaining module: the second agent is used for acquiring basic information of the second virtualization platform; the second agent is an agent deployed on a second container-based virtualization platform;
the virtualization platform module to be executed: the system comprises a mirror warehouse, a first virtualization platform and a second virtualization platform, wherein the mirror warehouse is used for storing container mirrors corresponding to the container mirrors; the required hardware information comprises a required virtualization platform type;
an operation module: and the virtual machine is used for sending the container mirror image to the to-be-executed virtualization platform and running the service corresponding to the container mirror image.
Optionally, the hardware information further includes hardware architecture information of a corresponding virtualization platform, where the hardware architecture information includes any one of:
x86 architecture, arm architecture, mips architecture;
the required hardware information further comprises required hardware architecture information of a required virtualization platform, and the required hardware architecture information comprises any one of the following items:
requirement x86 architecture, requirement arm architecture, and requirement mips architecture.
Optionally, the basic information further includes CPU information for characterizing the computing capability, and memory information for characterizing the storage capability.
Optionally, the operation module is specifically configured to:
calling a scheduling model, determining a virtualization platform to be executed with the highest score in the virtualization platforms to be executed as an optimal virtualization platform according to the CPU information and the memory information, and sending the container mirror image to the optimal virtualization platform; the scheduling model is as follows:
Figure GDA0003625089600000041
the score is the score, the alpha is an influence factor of computing capacity, and the beta is an influence factor of storage capacity; said sigma CPU (i) isThe computing power of the current to-be-executed virtualization platform, the sigma CPU max For maximum computing power in all of the to-be-executed virtualization platforms, the sigma CPU min The minimum computing capacity in all the virtualization platforms to be executed is obtained; the sigma Mem (i) is the storage capacity of the virtualization platform to be executed currently, and the sigma Mem max For maximum storage capacity in all of the to-be-executed virtualization platforms, the Σ Mem min And the minimum storage capacity in all the platforms to be executed is obtained.
The invention also provides a PAAS platform service management device, which comprises:
a memory: for storing a computer program;
a processor: for implementing the steps of the PAAS platform service management method according to any of the above when executing the computer program.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the PAAS platform service management method according to any of the above.
The PAAS platform service management method provided by the invention comprises the steps of installing a docker program to a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, configuring parameter information required by the docker program operation in the host machine, and completing the construction of a first virtualization platform; acquiring basic information of a first virtualization platform through a first agent; the basic information comprises hardware information of a virtualization platform, and the hardware architecture information comprises a virtualization platform type; acquiring basic information of a second virtualization platform through a second agent; the second agent is an agent deployed on a second container-based virtualization platform; selecting a first virtualization platform or a second virtualization platform as a virtualization platform to be executed according to required hardware information corresponding to a container mirror image stored in a mirror image warehouse; the required hardware information comprises a required virtualization platform type; and sending the container mirror image to a virtualization platform to be executed, and running the service corresponding to the container mirror image.
A docker program may be installed in the virtual machine-based host by the first agent to enable the first virtualization platform to run the container image based on the virtualized environment of the virtual machine. When the container mirror image is specifically allocated, the container mirror image is specifically allocated to the first virtualization platform based on the virtual machine or the second virtualization platform based on the container according to the required hardware information corresponding to the container mirror image, so that management of various virtualization platforms is facilitated.
The invention also provides a PAAS platform service management device, PAAS platform service management equipment and a computer readable storage medium, which also have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a PAAS platform service management method according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific PAAS platform service management method according to an embodiment of the present invention;
fig. 3 is a block diagram of a PAAS platform service management device according to an embodiment of the present invention;
fig. 4 is a block diagram of a PAAS platform service management device according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a PAAS platform service management method. In the prior art, the PAAS platform needs to be compatible with both the traditional virtual machine-based virtualization environment and a novel container-based virtualization platform. The existing PAAS platform needs to make different types of service images aiming at various virtualization environments, and release and manage service products in different modes, so that the service management difficulty of the PAAS platform is getting higher and higher.
The PAAS platform service management method provided by the invention comprises the steps of installing a docker program to a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, configuring parameter information required by the docker program operation in the host machine, and completing the construction of a first virtualization platform; acquiring basic information of a first virtualization platform through a first agent; the basic information comprises hardware information of a virtualization platform, and the hardware architecture information comprises a virtualization platform type; acquiring basic information of a second virtualization platform through a second agent; the second agent is an agent deployed on a second container-based virtualization platform; selecting a first virtualization platform or a second virtualization platform as a virtualization platform to be executed according to required hardware information corresponding to a container mirror image stored in a mirror image warehouse; the required hardware information comprises a required virtualization platform type; and sending the container mirror image to a virtualization platform to be executed, and running the service corresponding to the container mirror image.
A docker program may be installed in the virtual machine-based host by the first agent to enable the first virtualization platform to run the container image based on the virtualized environment of the virtual machine. When the container mirror image is specifically allocated, the container mirror image is specifically allocated to the first virtualization platform based on the virtual machine or the second virtualization platform based on the container according to the required hardware information corresponding to the container mirror image, so that management of various virtualization platforms is facilitated.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a PAAS platform service management method according to an embodiment of the present invention.
Referring to fig. 1, in the embodiment of the present invention, a PAAS platform service management method includes:
s101: the method comprises the steps of installing a docker program to a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, configuring parameter information required by the docker program to operate in the host machine, and completing construction of a first virtualization platform.
In the embodiment of the present invention, first, a first agent, i.e., agent, is required to be deployed in a virtual machine template image based on a virtual machine, where the agent refers to a software or hardware entity capable of autonomous activity. The embodiment of the invention generally comprises a mirror image warehouse which is used for storing container mirror images corresponding to various service products; the software warehouse is used for storing installation files of the docker container platform; the monitoring center is used for acquiring the resource condition of the virtualization platform in real time; the dispatching center is used for selecting a virtualization platform for deploying the service and generating an execution task of the agent; the registration center is used for storing the state information of various virtualization platforms and service products; and the task center is used for publishing specific tasks executed by the agents and recording the execution results.
In this step, the first agent installs, to the host where the virtual machine is located, an installation file stored in a software repository, that is, a docker program, where installation files corresponding to different hardware architectures are usually stored, for example, an installation file corresponding to an x86 architecture, an installation file corresponding to an arm architecture, an installation file corresponding to a mips architecture, and the like. In this step, the first agent installs an installation file corresponding to the host hardware architecture into the host machine, that is, installs a docker program corresponding to the host hardware architecture, and configures parameter information required by the docker program to operate, thereby completing the establishment of the first virtualization platform. The virtualization environment of the first virtualization platform is typically an Openstack, vmware, or the like environment.
S102: basic information of the first virtualization platform is obtained through the first agent.
In this embodiment of the present invention, the basic information includes hardware information of the virtualization platform, and the hardware information includes a virtualization platform type, that is, the first virtualization platform is a virtual machine-based virtualization platform.
In this step, basic information of the first virtualization platform sent by the first agent, for example, hardware information such as virtualization platform type that cannot be easily changed, is specifically stored in the monitoring center for reference when scheduling tasks. Specifically, the hardware information involved in this step and the hardware information involved in the following S103 generally further include hardware architecture information corresponding to the virtualization platform, where the hardware architecture information includes any one of the following: x86 architecture, arm architecture, mips architecture. Namely, the hardware information uploaded in this step also indicates whether the hardware architecture of the virtualization platform belongs to the x86 architecture, the arm architecture or the mips architecture.
S103: and acquiring basic information of the second virtualization platform through the second agent.
In an embodiment of the present invention, the second agent is an agent deployed on a second container-based virtualization platform; the second agent is typically provided only in the management node of the second container-based virtualization platform. The basic information obtained by the second agent is basically consistent with the format of the basic information obtained by the first agent, and the basic information comprises the hardware information of the virtualization platform, wherein the hardware information comprises the virtualization platform type, namely that the second virtualization platform is a container-based virtualization platform. The virtualization environment of the second virtualization platform is generally an environment such as docker, kubernets, and the like.
In this step, basic information of the second virtualization platform sent by the second agent, for example, hardware information such as virtualization platform type that cannot be easily changed, is specifically stored in the monitoring center so as to be referred to when scheduling tasks. Specifically, the hardware information uploaded in this step generally further includes hardware architecture information corresponding to the virtualization platform, where the hardware architecture information includes any one of the following: x86 architecture, arm architecture, mips architecture. Namely, the hardware information uploaded in this step also indicates whether the hardware architecture of the virtualization platform belongs to the x86 architecture, the arm architecture or the mips architecture.
S104: and selecting the first virtualization platform or the second virtualization platform as a virtualization platform to be executed according to the required hardware information corresponding to the container mirror image stored in the mirror image warehouse.
In an embodiment of the present invention, the required hardware information includes a type of a required virtualization platform. That is, in the container image stored in the image repository, hardware information required for operation is usually recorded, and it is specifically required to indicate whether the container image specifically requires the first virtualization platform to operate or the second virtualization platform to operate.
In this step, a corresponding first virtualization platform or second virtualization platform is specifically selected as a virtualization platform to be executed according to the required hardware information corresponding to the container image stored in the image warehouse, and a specific process related to the virtualization platform selection will be described in detail in the following embodiments of the present invention, which is not described herein again.
Specifically, in this embodiment of the present invention, the required hardware information further includes required hardware architecture information of a required virtualization platform, where the required hardware architecture information includes any one of the following items: requirement x86 architecture, requirement arm architecture, and requirement mips architecture. That is, the container mirror image stored in the mirror image warehouse usually designates a hardware architecture required for operation, and when the virtualization platform to be executed is selected in this step, the virtualization platform of the hardware architecture required for the container mirror image is specifically selected to determine the final virtualization platform to be executed. That is, in this step, the final virtualization platform to be executed is specifically selected according to the hardware architecture required for running the container image and the type of virtualization platform required for running.
In the embodiment of the present invention, the metadata structure stored in the monitoring center corresponding to the hardware information of each virtualization platform is generally as follows:
{"virtualType":"vm|container","arch":"x86|arm|mips"}
the virtualType represents the type of the virtualization platform, and the vm represents a virtualization platform based on a traditional virtual machine, namely a first virtualization platform; container represents a container-based virtualization platform, i.e., a second virtualization platform. The arch represents the hardware architecture of the operating system, including x86, arm, and mips.
S105: and sending the container mirror image to a virtualization platform to be executed, and running the service corresponding to the container mirror image.
In this step, the container image is specifically sent to the to-be-executed virtualization platform selected in S104, so as to run the service corresponding to the container image.
The PAAS platform service management method provided by the embodiment of the invention comprises the steps of installing a docker program to a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, configuring parameter information required by the docker program operation in the host machine, and completing the construction of a first virtualization platform; acquiring basic information of a first virtualization platform through a first agent; the basic information comprises hardware information of a virtualization platform, and the hardware architecture information comprises a virtualization platform type; acquiring basic information of a second virtualization platform through a second agent; the second agent is an agent deployed on a second container-based virtualization platform; selecting a first virtualization platform or a second virtualization platform as a virtualization platform to be executed according to required hardware information corresponding to a container mirror image stored in a mirror image warehouse; the required hardware information comprises a required virtualization platform type; and sending the container mirror image to a virtualization platform to be executed, and running the service corresponding to the container mirror image.
A docker program may be installed in the virtual machine-based host by the first agent to enable the first virtualization platform to run the container image based on the virtualized environment of the virtual machine. When the container mirror image is specifically allocated, the container mirror image is specifically allocated to the first virtualization platform based on the virtual machine or the second virtualization platform based on the container according to the required hardware information corresponding to the container mirror image, so that management of various virtualization platforms is facilitated.
The specific contents of the PAAS platform service management method provided by the present invention will be described in detail in the following embodiments of the present invention.
Referring to fig. 2, fig. 2 is a flowchart illustrating a specific PAAS platform service management method according to an embodiment of the present invention.
Referring to fig. 2, in the embodiment of the present invention, a PAAS platform service management method includes:
s201: the method comprises the steps of installing a docker program to a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, configuring parameter information required by the docker program to operate in the host machine, and completing construction of a first virtualization platform.
This step is substantially the same as S101 in the above embodiment of the present invention, and for details, reference is made to the above embodiment of the present invention, which is not repeated herein.
S202: basic information of the first virtualization platform is obtained through the first agent.
In the embodiment of the present invention, the basic information further includes CPU information for characterizing the computing capability, and memory information for characterizing the storage capability.
Specifically, in this step, the first agent typically sends heartbeat information to the monitoring center periodically, and sends CPU information for representing the computing capability and memory information for representing the storage capability to the monitoring center. The specific types of the CPU information and the memory information can be set according to actual situations, as long as the CPU information and the memory information can be used for representing the calculation capability and the storage capability.
The rest of the step is described in detail in the above S102, and will not be described herein again.
S203: and acquiring basic information of the second virtualization platform through the second agent.
In the embodiment of the present invention, the basic information further includes CPU information for characterizing the computing capability, and memory information for characterizing the storage capability.
Specifically, in this step, the second agent typically sends heartbeat information to the monitoring center periodically, and sends CPU information for representing the computing capability and memory information for representing the storage capability to the monitoring center. The specific types of the CPU information and the memory information can be set according to actual situations, as long as the CPU information and the memory information can be used for representing the calculation capability and the storage capability. In general, the basic information may further include basic state information, such as a virtual machine ID, a virtual machine name, a belonging service group, and the like, for performing service association management.
The rest of this step is described in detail in the above step S103, and will not be described herein again.
S204: and selecting the first virtualization platform or the second virtualization platform as a virtualization platform to be executed according to the required hardware information corresponding to the container mirror image stored in the mirror image warehouse.
This step is substantially the same as S104 in the above embodiment of the present invention, and for details, reference is made to the above embodiment of the present invention, which is not repeated herein.
S205: and calling a scheduling model, determining the highest-grade virtualization platform to be executed in the virtualization platforms to be executed as an optimal virtualization platform according to the CPU information and the memory information, and sending the container mirror image to the optimal virtualization platform.
In the embodiment of the present invention, the scheduling model is:
Figure GDA0003625089600000111
the score is the score, the alpha is an influence factor of computing capacity, and the beta is an influence factor of storage capacity; the sigma CPU (i) is the computing power of the virtualization platform to be executed currently max For maximum computing power in all of the to-be-executed virtualization platforms, the sigma CPU min The minimum computing capacity in all the virtualization platforms to be executed is obtained; the sigma Mem (i) is the storage capacity of the virtualization platform to be executed currently, and the sigma Mem max For maximum storage capacity in all of the to-be-executed virtualization platforms, the Σ Mem min And the minimum storage capacity in all the platforms to be executed is obtained.
The scheduling model may integrate the computing capacity and the storage capacity, select the virtualization platform to be executed that is most suitable for executing the container mirror image as the optimal virtualization platform, and finally send the container mirror image to the optimal virtualization platform to execute the service corresponding to the container mirror image. In general, the selection of the virtualization platform to be executed and the selection of the optimal virtualization platform are both results obtained by the execution of the scheduling center.
After the service is started, the corresponding first agent or the second agent periodically collects the running state of the service product and reports the running state to the monitoring center. And the service product updating is the same as the release flow, and a scheduling center is required to generate an execution task. And the agent updates the new version mirror image of the service product according to the specific execution task. And the deletion of the service product requires the task center to generate an execution task, and based on the virtual machine virtualization environment, namely the first virtualization platform, the first agent calls the virtualization platform interface to delete the virtual machine where the service product is located and feeds back the result to the registration center. In the container-based virtualization environment, i.e., the second virtualization platform, the second agent may call the virtualization platform interface, delete the container directly, and feed the result back to the registry.
According to the PAAS platform service management method provided by the embodiment of the invention, a docker program can be installed in a host machine based on a virtual machine through a first agent, so that a first virtualization platform can run a container mirror image based on a virtualization environment of the virtual machine. When the container mirror image is specifically allocated, the container mirror image is specifically allocated to the first virtualization platform based on the virtual machine or the second virtualization platform based on the container according to the required hardware information corresponding to the container mirror image, so that management can be performed on various virtualization platforms.
In the following, a PAAS platform service management apparatus provided by an embodiment of the present invention is introduced, and the PAAS platform service management apparatus described below and the PAAS platform service management method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram illustrating a PAAS platform service management device according to an embodiment of the present invention.
Referring to fig. 3, in an embodiment of the present invention, the PAAS platform service management apparatus may include:
the deployment module 100: the method comprises the steps of installing a docker program to a host machine where the virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, configuring parameter information required by the docker program to operate in the host machine, and completing construction of a first virtualization platform.
The first obtaining module 200: the first agent is used for acquiring basic information of the first virtualization platform; the basic information includes hardware information of the virtualization platform, the hardware information including a virtualization platform type.
The second obtaining module 300: the second agent is used for acquiring basic information of the second virtualization platform; the second agent is an agent deployed on a second container-based virtualization platform.
To-be-executed virtualization platform module 400: the system comprises a mirror warehouse, a first virtualization platform and a second virtualization platform, wherein the mirror warehouse is used for storing container mirrors corresponding to the container mirrors; the required hardware information includes a required virtualization platform type.
The operation module 500: and the virtual machine is used for sending the container mirror image to the to-be-executed virtualization platform and running the service corresponding to the container mirror image.
Preferably, in this embodiment of the present invention, the hardware information further includes hardware architecture information corresponding to the virtualization platform, where the hardware architecture information includes any one of:
x86 architecture, arm architecture, mips architecture.
The required hardware information further comprises required hardware architecture information of a required virtualization platform, and the required hardware architecture information comprises any one of the following items:
requirement x86 architecture, requirement arm architecture, and requirement mips architecture.
Preferably, in the embodiment of the present invention, the basic information further includes CPU information for characterizing the computing capability, and memory information for characterizing the storage capability.
Preferably, in an embodiment of the present invention, the operation module is specifically configured to:
calling a scheduling model, determining a virtualization platform to be executed with the highest score in the virtualization platforms to be executed as an optimal virtualization platform according to the CPU information and the memory information, and sending the container mirror image to the optimal virtualization platform; the scheduling model is as follows:
Figure GDA0003625089600000131
the score is the score, the alpha is an influence factor of computing capacity, and the beta is an influence factor of storage capacity; the sigma CPU (i) is the computing capacity of the virtualization platform to be executed currently max For maximum computing power in all of the to-be-executed virtualization platforms, the sigma CPU min The minimum computing capacity in all the virtualization platforms to be executed is obtained; the sigma Mem (i) is the storage capacity of the virtualization platform to be executed currently, and the sigma Mem max For maximum storage capacity in all of the to-be-executed virtualization platforms, the Σ Mem min And the minimum storage capacity in all the platforms to be executed is obtained.
The PAAS platform service management apparatus of this embodiment is configured to implement the aforementioned PAAS platform service management method, and thus a specific implementation manner of the PAAS platform service management apparatus may be seen in the foregoing portions of the embodiment of the PAAS platform service management method, for example, the deployment module 100, the first obtaining module 200, the second obtaining module 300, the to-be-executed virtualization platform module 400, and the operation module 500 are respectively configured to implement steps S101, S102, S103, S104, and S105 in the aforementioned PAAS platform service management method, so that the specific implementation manner thereof may refer to descriptions of corresponding portions of the embodiments, and is not described herein again.
In the following, the embodiments of the present invention provide a PAAS platform service management device, and the following PAAS platform service management device, the above-described PAAS platform service management method, and the above-described PAAS platform service management apparatus may be referred to in a corresponding manner.
Referring to fig. 4, fig. 4 is a block diagram of a PAAS platform service management device according to an embodiment of the present invention.
Referring to fig. 4, the PAAS platform service management apparatus may include a processor 11 and a memory 12.
The memory 12 is used for storing a computer program; the processor 11 is configured to implement the PAAS platform service management method in the foregoing embodiment of the invention when executing the computer program.
The processor 11 in the PAAS platform service management apparatus of this embodiment is used to install the PAAS platform service management device in the above embodiment of the present invention, and the processor 11 and the memory 12 are combined to implement the PAAS platform service management method in any of the above embodiments of the present invention. Therefore, the specific implementation manner of the PAAS platform service management device can be seen in the foregoing embodiment section of the PAAS platform service management method, and the specific implementation manner thereof may refer to the description of each corresponding embodiment section, which is not described herein again.
The present invention further provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements a PAAS platform service management method introduced in any of the embodiments of the present invention. The rest can be referred to the prior art and will not be described in an expanded manner.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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 phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The present invention provides a PAAS platform service management method, a PAAS platform service management apparatus, a PAAS platform service management device, and a computer readable storage medium. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A PAAS platform service management method is characterized by comprising the following steps:
installing a docker program to a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, and configuring parameter information required by the docker program to run in the host machine to complete the construction of a first virtualization platform;
acquiring basic information of the first virtualization platform through the first agent; the basic information of the first virtualization platform comprises hardware information of the first virtualization platform, and the hardware information of the first virtualization platform comprises a first virtualization platform type;
acquiring basic information of a second virtualization platform through a second agent; the basic information of the second virtualization platform comprises hardware information of the second virtualization platform, and the hardware information of the second virtualization platform comprises a second virtualization platform type; the second agent is an agent deployed on a second container-based virtualization platform;
selecting the first virtualization platform or the second virtualization platform as a virtualization platform to be executed according to required hardware information corresponding to the container mirror image stored in the mirror image warehouse; the required hardware information comprises a required virtualization platform type;
and sending the container mirror image to the virtualization platform to be executed, and running the service corresponding to the container mirror image.
2. The method of claim 1, wherein the hardware information of the first virtualization platform and the hardware information of the second virtualization platform further comprise hardware architecture information corresponding to the first virtualization platform and the hardware architecture information of the second virtualization platform, and the hardware architecture information of the first virtualization platform and the hardware architecture information of the second virtualization platform comprise any one of:
x86 architecture, arm architecture, mips architecture;
the required hardware information further comprises required hardware architecture information of a required virtualization platform, and the required hardware architecture information comprises any one of the following items:
requirement x86 architecture, requirement arm architecture, and requirement mips architecture.
3. The method of claim 1, wherein the base information of the first virtualization platform and the base information of the second virtualization platform further comprise CPU information characterizing computing capabilities and memory information characterizing storage capabilities.
4. The method of claim 3, wherein sending the container image to the to-be-executed virtualization platform comprises:
calling a scheduling model, determining a virtualization platform to be executed with the highest score in the virtualization platforms to be executed as an optimal virtualization platform according to the CPU information and the memory information, and sending the container mirror image to the optimal virtualization platform; the scheduling model is as follows:
Figure FDA0003625089590000021
the score is the score, the alpha is an influence factor of computing capacity, and the beta is an influence factor of storage capacity; the sigma CPU (i) is the computing capacity of the virtualization platform to be executed currently max For maximum computing power in all of the to-be-executed virtualization platforms, the sigma CPU min The minimum computing capacity in all the virtualization platforms to be executed is obtained; the sigma Mem (i) is the storage capacity of the virtualization platform to be executed currently, and the sigma Mem max For maximum storage capacity in all of the to-be-executed virtualization platforms, the Σ Mem min And the minimum storage capacity in all the platforms to be executed is obtained.
5. A PAAS platform service management apparatus, comprising:
a deployment module: the virtual machine template mirror image processing method comprises the steps that a docker program is installed on a host machine where a virtual machine is located through a first agent deployed in a virtual machine template mirror image based on the virtual machine, parameter information required by operation of the docker program is configured in the host machine, and the building of a first virtualization platform is completed;
a first obtaining module: the first agent is used for acquiring basic information of the first virtualization platform; the basic information of the first virtualization platform comprises hardware information of the first virtualization platform, and the hardware information of the first virtualization platform comprises a first virtualization platform type;
a second obtaining module: the second agent is used for acquiring basic information of the second virtualization platform; the basic information of the second virtualization platform comprises hardware information of the second virtualization platform, and the hardware information of the second virtualization platform comprises a second virtualization platform type; the second agent is an agent deployed on a second container-based virtualization platform;
the virtualization platform module to be executed: the system comprises a mirror warehouse, a first virtualization platform and a second virtualization platform, wherein the mirror warehouse is used for storing container mirrors corresponding to the container mirrors; the required hardware information comprises a required virtualization platform type;
an operation module: and the virtual machine is used for sending the container mirror image to the to-be-executed virtualization platform and running the service corresponding to the container mirror image.
6. The apparatus of claim 5, wherein the hardware information of the first virtualization platform and the hardware information of the second virtualization platform further comprise hardware architecture information corresponding to the first virtualization platform and the hardware architecture information of the second virtualization platform, and the hardware architecture information of the first virtualization platform and the hardware architecture information of the second virtualization platform comprise any one of:
x86 architecture, arm architecture, mips architecture;
the required hardware information further comprises required hardware architecture information of a required virtualization platform, and the required hardware architecture information comprises any one of the following items:
requirement x86 architecture, requirement arm architecture, and requirement mips architecture.
7. The apparatus of claim 5, wherein the base information of the first virtualization platform and the base information of the second virtualization platform further comprise CPU information for characterizing computing capabilities and memory information for characterizing storage capabilities.
8. The apparatus of claim 7, wherein the operation module is specifically configured to:
calling a scheduling model, determining a virtualization platform to be executed with the highest score in the virtualization platforms to be executed as an optimal virtualization platform according to the CPU information and the memory information, and sending the container mirror image to the optimal virtualization platform; the scheduling model is as follows:
Figure FDA0003625089590000031
the score is the score, the alpha is an influence factor of computing capacity, and the beta is an influence factor of storage capacity; the sigma CPU (i) is the computing capacity of the virtualization platform to be executed currently max For maximum computing power in all of the to-be-executed virtualization platforms, the sigma CPU min The minimum computing capacity in all the virtualization platforms to be executed is obtained; the sigma Mem (i) is the storage capacity of the virtualization platform to be executed currently, and the sigma Mem max The sigma Mem is the maximum storage capacity in all the to-be-executed virtualization platforms min And the minimum storage capacity in all the platforms to be executed is obtained.
9. A PAAS platform service management device, the device comprising:
a memory: for storing a computer program;
a processor: steps for implementing the PAAS platform services management method according to any of claims 1 to 4 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the PAAS platform service management method according to any of the claims 1 to 4.
CN202011296795.7A 2020-11-18 2020-11-18 PAAS platform service management method and related device Active CN112256405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011296795.7A CN112256405B (en) 2020-11-18 2020-11-18 PAAS platform service management method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011296795.7A CN112256405B (en) 2020-11-18 2020-11-18 PAAS platform service management method and related device

Publications (2)

Publication Number Publication Date
CN112256405A CN112256405A (en) 2021-01-22
CN112256405B true CN112256405B (en) 2022-07-29

Family

ID=74266128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011296795.7A Active CN112256405B (en) 2020-11-18 2020-11-18 PAAS platform service management method and related device

Country Status (1)

Country Link
CN (1) CN112256405B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8978035B2 (en) * 2012-09-06 2015-03-10 Red Hat, Inc. Scaling of application resources in a multi-tenant platform-as-a-service environment in a cloud computing system
CN106293847B (en) * 2016-08-17 2019-05-14 浪潮电子信息产业股份有限公司 A kind of method of virtual platform supporting
CN108089912A (en) * 2017-12-19 2018-05-29 深信服科技股份有限公司 A kind of virtual machine surpasses emerging system construction method and device with container
CN109408198A (en) * 2018-10-09 2019-03-01 郑州云海信息技术有限公司 A kind of the mirror site management method and device of virtual platform
CN110569111A (en) * 2019-09-12 2019-12-13 天津华云软件有限公司 virtual machine implementation method, device and system based on traditional container
CN111274002A (en) * 2020-02-28 2020-06-12 深圳市赛为智能股份有限公司 Construction method and device for supporting PAAS platform, computer equipment and storage medium
CN111522628B (en) * 2020-04-27 2024-04-09 上海仪电(集团)有限公司中央研究院 Kubernetes cluster building deployment method, framework and storage medium based on OpenStack

Also Published As

Publication number Publication date
CN112256405A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
US10275270B2 (en) Method and apparatus to scale application deployments in cloud computing environments using virtual machine pools
CN109445869B (en) Cross-cloud-adaptive micro-service management method and device and storage medium
US9916110B2 (en) Size adjustable volumes for containers
US9851989B2 (en) Methods and apparatus to manage virtual machines
US8161479B2 (en) Synchronizing virtual machine and application life cycles
US20170257432A1 (en) Apparatus, systems and methods for container based service deployment
US8862933B2 (en) Apparatus, systems and methods for deployment and management of distributed computing systems and applications
JP6658882B2 (en) Control device, VNF placement destination selection method and program
US20160147529A1 (en) Source Code Management for a Multi-Tenant Platform-as-a-Service (PaaS) System
CN106371889B (en) Method and device for realizing high-performance cluster system of scheduling mirror image
WO2019060228A1 (en) Systems and methods for instantiating services on top of services
WO2011115842A2 (en) Virtual machine image update service
US9959157B1 (en) Computing instance migration
US9424113B2 (en) Virtual appliance deployment
CN110888736A (en) Application management method and system based on container cloud platform and related components
CN111090456A (en) Construction method, device, equipment and medium for deep learning development environment
CN113448686A (en) Resource deployment method and device, electronic equipment and storage medium
JP2021121921A (en) Method and apparatus for management of artificial intelligence development platform, and medium
CN109347716B (en) Instantiation method and device of consumer VNF
CN109347661B (en) Instantiation method and device of consumer VNF
CN109684028A (en) A kind of method, device and equipment that operating system is separated with user data
CN112256405B (en) PAAS platform service management method and related device
US9501316B2 (en) Instantiating virtual appliances of a storage array
CN117519972A (en) GPU resource management method and device
US20150081968A1 (en) Decommissioning virtual appliances

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
GR01 Patent grant
GR01 Patent grant