CN112000432A - Virtual machine distribution method, device, equipment and storage medium - Google Patents

Virtual machine distribution method, device, equipment and storage medium Download PDF

Info

Publication number
CN112000432A
CN112000432A CN202010820294.8A CN202010820294A CN112000432A CN 112000432 A CN112000432 A CN 112000432A CN 202010820294 A CN202010820294 A CN 202010820294A CN 112000432 A CN112000432 A CN 112000432A
Authority
CN
China
Prior art keywords
virtual machine
distribution
service
template
response end
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.)
Withdrawn
Application number
CN202010820294.8A
Other languages
Chinese (zh)
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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202010820294.8A priority Critical patent/CN112000432A/en
Publication of CN112000432A publication Critical patent/CN112000432A/en
Withdrawn legal-status Critical Current

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
    • 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/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

The application discloses a virtual machine distribution method, a virtual machine distribution device, a virtual machine distribution equipment and a storage medium. The method is applied to a virtual machine distributing terminal and comprises the following steps: acquiring service demand information of a distribution response end; judging whether a service virtual machine template corresponding to the service demand information is stored in the distribution response terminal; if the service virtual machine template corresponding to the service demand information is stored in the distribution response end, controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template; and if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, transmitting the service virtual machine template to the distribution response end, and controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template. The data transmission resources of the virtual machine distributing and sending end and the data storage resources of the distributing and responding end are effectively utilized, and the overall efficiency of the virtual machine distributing and deploying process is ensured. In addition, the application also provides a virtual machine distribution device, equipment and a storage medium, and the beneficial effects are the same as those described above.

Description

Virtual machine distribution method, device, equipment and storage medium
Technical Field
The present application relates to the field of cloud computing, and in particular, to a method, an apparatus, a device, and a storage medium for distributing virtual machines.
Background
With the rapid development of the mobile internet and the internet of things and the rapid iterative upgrade of the mobile communication technology, the application of the edge cloud computing service is rapidly popularized.
The edge cloud computing services include but are not limited to container services, big data services, artificial intelligence services, vCDN (Static Content Delivery Service), instant messaging services, video AI (artificial intelligence), audio and video communications, and in order to ensure the flexibility of cloud computing Service deployment, each type of cloud computing Service is often deployed as an independent Service virtual machine currently, and a central server serves as a virtual machine distribution device to distribute the Service virtual machine to an edge server serving as a distribution response end, so that the purpose of running the Service virtual machine in the distribution response end is achieved. Currently, in the process of distributing service virtual machines, it is often difficult to ensure effective utilization of data transmission resources and data storage resources, and to ensure the overall efficiency of the virtual machine distribution and deployment process.
Therefore, it is a problem to be solved by those skilled in the art to provide a virtual machine distribution method to relatively ensure effective utilization of data transmission resources and data storage resources and ensure overall efficiency of a virtual machine distribution and deployment process.
Disclosure of Invention
The application aims to provide a virtual machine distribution method, a virtual machine distribution device, a virtual machine distribution equipment and a virtual machine distribution storage medium, so that effective utilization of data transmission resources and data storage resources is relatively ensured, and the overall efficiency of a virtual machine distribution and deployment process is ensured.
In order to solve the above technical problem, the present application provides a virtual machine distribution method, applied to a virtual machine distribution end, including:
acquiring service demand information of a distribution response end;
judging whether a service virtual machine template corresponding to the service demand information is stored in the distribution response terminal;
if the service virtual machine template corresponding to the service demand information is stored in the distribution response end, controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template;
and if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, transmitting the service virtual machine template to the distribution response end, and controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template.
Preferably, before determining whether the service virtual machine template corresponding to the service demand information is stored in the distribution response end, the scheme further includes:
acquiring template identification information of a service virtual machine template corresponding to the service demand information;
judging whether a service virtual machine template corresponding to the service demand information is stored in the distribution response terminal, including:
judging whether a mapping relation between a distribution response end and the template identification information exists in a distribution mapping table;
if the mapping relation between the distribution response end and the template identification information exists in the distribution mapping table, executing a step of storing a service virtual machine template corresponding to the service demand information in the distribution response end;
and if the mapping relation between the distribution response end and the template identification information does not exist in the distribution mapping table, executing a step that the distribution response end does not store the service virtual machine template corresponding to the service demand information.
Preferably, after transmitting the service virtual machine template to the distribution responding terminal, the method further includes:
and establishing a mapping relation between the distribution response end and the template identification information in a distribution mapping table.
Preferably, the controlling and distributing responding end deploys the service virtual machine based on the service virtual machine template, including:
and copying the service virtual machine template to obtain a virtual machine copy through the instruction control distribution responding end, and configuring service parameters of the virtual machine copy to obtain the service virtual machine.
Preferably, when the distribution responding end stores the service virtual machine template, the method further includes:
judging whether a local service virtual machine template is updated or not;
if the local service virtual machine template is updated, acquiring difference data of the local service virtual machine template compared with the service virtual machine template in the distribution response end;
and updating the service virtual machine template of the distribution response terminal based on the difference data.
Preferably, when the number of disks occupied by the service virtual machine template is greater than 1, acquiring difference data of the local service virtual machine template compared with the service virtual machine template in the distribution response end includes:
acquiring first abstract information obtained by performing hash operation on a disk occupied by a local service virtual machine template and second abstract information obtained by performing hash operation on a disk occupied by the service virtual machine template in a distribution response end;
and positioning the target disk based on the summary difference information between the first summary information and the second summary information, and counting difference data between the local target disk and the target disk in the distribution response terminal.
In addition, the present application further provides a virtual machine distribution apparatus, which is applied to a virtual machine distribution device, and includes:
the demand information acquisition module is used for acquiring the service demand information of the distribution response end;
the template judging module is used for judging whether a service virtual machine template corresponding to the service demand information is stored in the distribution response end, if so, the deployment module is called, and otherwise, the transmission module and the deployment module are called in sequence;
the transmission module is used for transmitting the service virtual machine template to the distribution response end;
and the deployment module is used for controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template.
Preferably, the apparatus further comprises:
the identification acquisition module is used for acquiring the template identification information of the service virtual machine template corresponding to the service demand information;
the template judging module comprises:
and the mapping table judging module is used for judging whether the mapping relation between the distribution response end and the template identification information exists in the distribution mapping table, if so, the deployment module is called, and otherwise, the transmission module and the deployment module are called in sequence.
In addition, the present application further provides a virtual machine distribution device, including:
a memory for storing a computer program;
a processor for implementing the steps of the virtual machine distribution method as described above when executing the computer program.
Furthermore, the present application also provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the virtual machine distribution method as described above.
The virtual machine distribution method is applied to a virtual machine distribution terminal, firstly, business demand information of a distribution response terminal is obtained, whether a business virtual machine template corresponding to the business demand information is stored in the distribution response terminal is judged, and if the business virtual machine template corresponding to the business demand information is stored in the distribution response terminal, the distribution response terminal is controlled to deploy a business virtual machine based on the business virtual machine template; and if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, transmitting the service virtual machine template to the distribution response end, and controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template. When a service virtual machine is deployed to a distribution response end according to service demand information of the distribution response end, transmitting a service virtual machine template to the distribution response end only when the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, and deploying the service virtual machine in the distribution response end based on the service virtual machine template; when the distribution response end stores the service virtual machine template corresponding to the service demand information, the service virtual machine template stored in the distribution response end is directly used for deploying the service virtual machine in the distribution response end, so that the effective utilization of the data transmission resource of the virtual machine distribution end and the data storage resource of the distribution response end is relatively ensured, and the overall efficiency of the distribution and deployment process of the virtual machine is ensured. In addition, the application also provides a virtual machine distribution device, equipment and a storage medium, and the beneficial effects are the same as those described above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a virtual machine distribution method disclosed in an embodiment of the present application;
fig. 2 is a flowchart of a virtual machine distribution method disclosed in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a virtual machine distribution apparatus disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The edge cloud computing services include but are not limited to container services, big data services, artificial intelligence services, vCDN (Static Content Delivery Service), instant messaging services, video AI (artificial intelligence), audio and video communications, and in order to ensure the flexibility of cloud computing Service deployment, each type of cloud computing Service is often deployed as an independent Service virtual machine currently, and a central server serves as a virtual machine distribution device to distribute the Service virtual machine to an edge server serving as a distribution response end, so that the purpose of running the Service virtual machine in the distribution response end is achieved. Currently, in the process of distributing service virtual machines, it is often difficult to ensure effective utilization of data transmission resources and data storage resources, and to ensure the overall efficiency of the virtual machine distribution and deployment process.
Therefore, the core of the application is to provide a virtual machine distribution method to relatively ensure effective utilization of data transmission resources and data storage resources and ensure the overall efficiency of a virtual machine distribution and deployment process.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application discloses a virtual machine distribution method, which is applied to a virtual machine distribution end, and includes:
step S10: and acquiring the service demand information of the distribution response end.
It should be noted that the execution main body of this embodiment is a virtual machine originating terminal, the virtual machine originating terminal has a function of deploying a service virtual machine to a distribution responding terminal, and a device having two roles in comparison is between the virtual machine originating terminal and the distribution responding terminal, and the same physical device may serve as the virtual machine originating terminal or the distribution responding terminal in deployment scenarios of different service virtual machines. In a specific cloud computing application scenario, the virtual machine distribution end can be a central site of a cloud computing cluster, and the distribution response end can be an edge site of the cloud computing cluster, so that the technical purpose of distributing the service virtual machine to the edge site through the central site is achieved, and the overall reliability of the service in the cloud computing cluster is ensured.
The service demand information acquired in this step is related information of the cloud computing service that the distribution response end needs to operate. The method for acquiring the service demand information of the distribution response end may be, but is not limited to, receiving the service demand information generated by the distribution response end in real time, or searching the service demand information corresponding to the distribution response end in a preset service distribution table, and the specific method for acquiring the service demand information of the distribution response end should be determined according to actual conditions, and is not particularly limited herein.
Step S11: and judging whether the distribution response end stores a service virtual machine template corresponding to the service demand information, if so, executing the step S13, otherwise, sequentially executing the step S12 and the step S13.
Step S12: and transmitting the service virtual machine template to the distribution response end.
Step S13: and the control distribution response end deploys the service virtual machine based on the service virtual machine template.
After the virtual machine distribution end acquires the service demand information of the distribution response end, whether a service virtual machine template corresponding to the service demand information is stored in the distribution response end is further judged, if yes, the distribution response end is controlled to deploy the service virtual machine based on the service virtual machine template, otherwise, the distribution response end is controlled to transmit the service virtual machine template and deploy the service virtual machine based on the service virtual machine template.
The service virtual machine template in this embodiment refers to a mirror image of a service virtual machine, the mirror image (Mirroring) is a file storage form and is a type of redundancy, a duplicate of data on one disk on another disk is identical, that is, the mirror image, and then the corresponding service virtual machine can be run based on the service virtual machine template.
The key point of this embodiment is that when a service virtual machine template corresponding to service demand information is stored in the distribution response end, the distribution response end is directly controlled to deploy a service virtual machine based on the service virtual machine template; if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, the service virtual machine template is transmitted to the distribution response end, and then the distribution response end is controlled to deploy the service virtual machine based on the service virtual machine template. That is to say, in this embodiment, it is considered that when the virtual machine distribution end deploys a service virtual machine corresponding to certain service requirement information to the distribution response end, the distribution response end may already cache a corresponding service virtual machine template, and in this case, the virtual machine distribution end does not transmit the service virtual machine template to the distribution response end, so as to avoid generating waste of communication bandwidth resources.
The virtual machine distribution method is applied to a virtual machine distribution terminal, firstly, business demand information of a distribution response terminal is obtained, whether a business virtual machine template corresponding to the business demand information is stored in the distribution response terminal is judged, and if the business virtual machine template corresponding to the business demand information is stored in the distribution response terminal, the distribution response terminal is controlled to deploy a business virtual machine based on the business virtual machine template; and if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, transmitting the service virtual machine template to the distribution response end, and controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template. When a service virtual machine is deployed to a distribution response end according to service demand information of the distribution response end, transmitting a service virtual machine template to the distribution response end only when the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, and deploying the service virtual machine in the distribution response end based on the service virtual machine template; when the distribution response end stores the service virtual machine template corresponding to the service demand information, the service virtual machine template stored in the distribution response end is directly used for deploying the service virtual machine in the distribution response end, so that the effective utilization of the data transmission resource of the virtual machine distribution end and the data storage resource of the distribution response end is relatively ensured, and the overall efficiency of the distribution and deployment process of the virtual machine is ensured.
On the basis of the foregoing embodiment, as a preferred implementation, the controlling and distributing responding end deploys the service virtual machine based on the service virtual machine template, including:
and copying the service virtual machine template to obtain a virtual machine copy through the instruction control distribution responding end, and configuring service parameters of the virtual machine copy to obtain the service virtual machine.
It should be noted that, in this embodiment, the process of controlling the distribution responding end to deploy the service virtual machine based on the service virtual machine template may specifically be that the distribution responding end is controlled by an instruction to copy the service virtual machine template, so as to obtain a virtual machine copy, and finally, the service virtual machine is obtained by performing service parameter configuration on the virtual machine copy. The process of copying the service virtual machine template to obtain the virtual machine copy by controlling the distribution responding end through the instruction may further include copying the service virtual machine template to obtain the virtual machine copy by controlling the distribution responding end through an instruction of a fast copying technology, such as "cp-reflink ═ always".
Because the service virtual machines obtained based on different service parameter configurations have different service performances, the method controls the distribution response end to copy the service virtual machine template to obtain the virtual machine copy, and performs the service parameter configuration on the virtual machine copy to obtain the service virtual machine, thereby further improving the flexibility of deploying the service virtual machine in the distribution response end.
Referring to fig. 2, an embodiment of the present application discloses a virtual machine distribution method, applied to a virtual machine distribution end, including:
step S20: and acquiring the service demand information of the distribution response end.
Step S21: and acquiring template identification information of the service virtual machine template corresponding to the service demand information.
Step S22: and judging whether the mapping relation between the distribution response end and the template identification information exists in the distribution mapping table, if so, executing the step S24, otherwise, sequentially executing the step S23 and the step S24.
Step S23: and transmitting the service virtual machine template to the distribution response end.
Step S24: and the control distribution response end deploys the service virtual machine based on the service virtual machine template.
It should be noted that the key point of this embodiment is to further obtain template identification information of a service virtual machine template corresponding to service demand information after obtaining service demand information of a distribution response end, and further determine whether a mapping relationship between the distribution response end and the template identification information exists based on a distribution mapping table, and if the mapping relationship between the distribution response end and the template identification information exists in the distribution mapping table, consider that the service virtual machine template has been distributed to the distribution response end, and further control the distribution response end to deploy a service virtual machine on the basis of the service virtual machine template; and if the distribution mapping table does not have the mapping relation between the distribution response end and the template identification information, the service virtual machine template is not distributed to the distribution response end, so that the service virtual machine template is transmitted to the distribution response end, and the distribution response end is controlled to deploy the service virtual machine based on the service virtual machine template.
In the embodiment, the distribution condition of the service virtual machine template in the distribution response end is recorded through the mapping relationship between the distribution response end and the template identification information of the service virtual machine template in the distribution mapping table, so that whether the specific service virtual machine template is stored in the distribution response end can be further determined according to whether the mapping relationship between the distribution response end and the template identification information exists in the distribution mapping table, and the overall accuracy of the process of determining whether the service virtual machine template corresponding to the service demand information is stored in the distribution response end is relatively ensured.
On the basis of the foregoing embodiment, as a preferred implementation manner, after the transmitting the service virtual machine template to the distribution responding end, the method further includes:
and establishing a mapping relation between the distribution response end and the template identification information in a distribution mapping table.
It should be noted that, in this embodiment, after it is determined that the mapping relationship between the distribution response terminal and the template identification information does not exist in the distribution mapping table, and the service virtual machine template is further transmitted to the distribution response terminal, the mapping relationship between the distribution response terminal and the template identification information is further established in the distribution mapping table, so as to ensure the accuracy of the mapping relationship in the distribution mapping table, and further ensure the overall accuracy of the process of determining whether the service virtual machine template corresponding to the service demand information is stored in the distribution response terminal through the distribution mapping table.
On the basis of the above series of embodiments, as a preferred implementation, when the distribution responding end stores the service virtual machine template, the method further includes:
judging whether a local service virtual machine template is updated or not;
if the local service virtual machine template is updated, acquiring difference data of the local service virtual machine template compared with the service virtual machine template in the distribution response end;
and updating the service virtual machine template of the distribution response terminal based on the difference data.
It should be noted that, in this embodiment, the service virtual machine template stored in the distribution responding end may be a service virtual machine template distributed from the virtual machine distributing end to the distribution responding end, or may be a service virtual machine template stored in the distribution responding end in advance.
The important point of this embodiment is to determine whether the local service virtual machine template is updated when the distribution response end stores the service virtual machine template, and then obtain the difference data of the local service virtual machine template compared with the service virtual machine template in the distribution response end when the local service virtual machine template is updated, and then update the service virtual machine template of the distribution response end based on the difference data, so as to further ensure the data consistency of the same service virtual machine template between the virtual machine originating end and the distribution response end. In addition, the service virtual machine template of the distribution response end is updated only based on the difference data of the service virtual machine template of the virtual machine distribution end compared with the service virtual machine template in the distribution response end, so that the effective utilization of the data transmission resource of the virtual machine distribution end and the data storage resource of the distribution response end is further ensured, and the overall efficiency of the virtual machine distribution and deployment process is ensured.
On the basis of the foregoing embodiment, as a preferred embodiment, when the number of disks occupied by the service virtual machine template is greater than 1, acquiring difference data of the local service virtual machine template compared with the service virtual machine template in the distribution response end includes:
acquiring first abstract information obtained by performing hash operation on a disk occupied by a local service virtual machine template and second abstract information obtained by performing hash operation on a disk occupied by the service virtual machine template in a distribution response end;
and positioning the target disk based on the summary difference information between the first summary information and the second summary information, and counting difference data between the local target disk and the target disk in the distribution response terminal.
It should be noted that, in this embodiment, when the number of disks occupied by the service virtual machine template is greater than 1, that is, the service virtual machine template needs to be stored based on multiple disks, in this case, when obtaining the difference data of the local service virtual machine template compared with the service virtual machine template in the distribution responding end, specifically, obtaining first digest information obtained by performing a hash operation on the disks occupied by the local service virtual machine template, and second digest information obtained by performing a hash operation on the disks occupied by the service virtual machine template in the distribution responding end, since the hash operation is to convert input data of any length into output of fixed length through a hash algorithm, and the output can uniquely represent corresponding input data, the first digest information can represent data stored in each disk in the virtual machine distribution end by the service virtual machine template, the second abstract information can represent data of the business virtual machine template stored in each disk in the distribution response end, and then the target disk is located based on the abstract difference information between the first abstract information and the second abstract information, the target disk is a disk with data change when the business virtual machine template is updated, and on the basis, difference data between the local target disk and the target disk in the distribution response end is counted.
The embodiment further ensures the accuracy of positioning the difference data when the number of the disks occupied by the service virtual machine template is more than 1, thereby further ensuring the effective utilization of the data transmission resources of the virtual machine distributing and sending end and the data storage resources of the distributing and responding end, and ensuring the overall efficiency of the virtual machine distributing and deploying process.
Referring to fig. 3, an embodiment of the present application provides a virtual machine distribution apparatus, which is applied to a virtual machine distribution device, and includes:
a requirement information obtaining module 10, configured to obtain service requirement information of a distribution response end;
the template judging module 11 is used for judging whether a service virtual machine template corresponding to the service demand information is stored in the distribution response end, if so, the deployment module 13 is called, and otherwise, the transmission module 12 and the deployment module 13 are called in sequence;
the transmission module 12 is configured to transmit the service virtual machine template to the distribution response end;
and the deployment module 13 is configured to control the distribution responding end to deploy the service virtual machine based on the service virtual machine template.
On the basis of the above embodiment, as a preferred implementation, the apparatus further includes:
the identification acquisition module is used for acquiring the template identification information of the service virtual machine template corresponding to the service demand information;
the template judging module 11 includes:
and the mapping table judging module is used for judging whether a mapping relation between the distribution response end and the template identification information exists in the distribution mapping table, if so, the deployment module 13 is called, and otherwise, the transmission module 12 and the deployment module 13 are called in sequence.
The virtual machine distribution device is applied to a virtual machine distribution terminal, firstly, business demand information of a distribution response terminal is obtained, whether a business virtual machine template corresponding to the business demand information is stored in the distribution response terminal is further judged, and if the business virtual machine template corresponding to the business demand information is stored in the distribution response terminal, the distribution response terminal is controlled to deploy a business virtual machine based on the business virtual machine template; and if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, transmitting the service virtual machine template to the distribution response end, and controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template. When a service virtual machine is deployed to a distribution response end according to service demand information of the distribution response end, the device transmits a service virtual machine template to the distribution response end only when the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, and deploys the service virtual machine in the distribution response end based on the service virtual machine template; when the distribution response end stores the service virtual machine template corresponding to the service demand information, the service virtual machine template stored in the distribution response end is directly used for deploying the service virtual machine in the distribution response end, so that the effective utilization of the data transmission resource of the virtual machine distribution end and the data storage resource of the distribution response end is relatively ensured, and the overall efficiency of the distribution and deployment process of the virtual machine is ensured.
In addition, an embodiment of the present application further provides a virtual machine distribution device, including:
a memory for storing a computer program;
a processor for implementing the steps of the virtual machine distribution method as described above when executing the computer program.
The virtual machine distribution equipment provided by the application firstly acquires service demand information of a distribution response end, and then judges whether a service virtual machine template corresponding to the service demand information is stored in the distribution response end, and if the service virtual machine template corresponding to the service demand information is stored in the distribution response end, the distribution response end is controlled to deploy a service virtual machine based on the service virtual machine template; and if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, transmitting the service virtual machine template to the distribution response end, and controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template. When the equipment deploys a service virtual machine to a distribution response end according to service demand information of the distribution response end, only when a service virtual machine template corresponding to the service demand information is not stored in the distribution response end, the service virtual machine template is transmitted to the distribution response end, and the service virtual machine is deployed in the distribution response end based on the service virtual machine template; when the distribution response end stores the service virtual machine template corresponding to the service demand information, the service virtual machine template stored in the distribution response end is directly used for deploying the service virtual machine in the distribution response end, so that the effective utilization of the data transmission resource of the virtual machine distribution end and the data storage resource of the distribution response end is relatively ensured, and the overall efficiency of the distribution and deployment process of the virtual machine is ensured.
In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the virtual machine distribution method as described above are implemented.
The computer-readable storage medium provided by the application is applied to a virtual machine distribution end, firstly, business demand information of a distribution response end is obtained, and then whether a business virtual machine template corresponding to the business demand information is stored in the distribution response end is judged; and if the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, transmitting the service virtual machine template to the distribution response end, and controlling the distribution response end to deploy the service virtual machine based on the service virtual machine template. When the computer-readable storage medium deploys the service virtual machine to the distribution response end according to the service demand information of the distribution response end, only when the service virtual machine template corresponding to the service demand information is not stored in the distribution response end, the service virtual machine template is transmitted to the distribution response end, and the service virtual machine is deployed in the distribution response end based on the service virtual machine template; when the distribution response end stores the service virtual machine template corresponding to the service demand information, the service virtual machine template stored in the distribution response end is directly used for deploying the service virtual machine in the distribution response end, so that the effective utilization of the data transmission resource of the virtual machine distribution end and the data storage resource of the distribution response end is relatively ensured, and the overall efficiency of the distribution and deployment process of the virtual machine is ensured.
The foregoing details a virtual machine distribution method, apparatus, device, and storage medium provided by the present application. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and 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. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A virtual machine distribution method is applied to a virtual machine distribution end and comprises the following steps:
acquiring service demand information of a distribution response end;
judging whether a service virtual machine template corresponding to the service demand information is stored in the distribution response terminal;
if the distribution response end stores a service virtual machine template corresponding to the service demand information, controlling the distribution response end to deploy a service virtual machine based on the service virtual machine template;
if the service virtual machine template corresponding to the service demand information is not stored in the distribution response terminal, transmitting the service virtual machine template to the distribution response terminal, and controlling the distribution response terminal to deploy a service virtual machine based on the service virtual machine template.
2. The virtual machine distribution method according to claim 1, wherein before the determining whether the service virtual machine template corresponding to the service demand information is stored in the distribution response terminal, the scheme further includes:
acquiring template identification information of a service virtual machine template corresponding to the service demand information;
the judging whether the distribution response end stores the service virtual machine template corresponding to the service demand information includes:
judging whether a mapping relation between the distribution response end and the template identification information exists in a distribution mapping table;
if the mapping relation between the distribution response end and the template identification information exists in the distribution mapping table, executing a step of storing a service virtual machine template corresponding to the service demand information in the distribution response end;
and if the mapping relation between the distribution response end and the template identification information does not exist in the distribution mapping table, executing a step that a service virtual machine template corresponding to the service demand information is not stored in the distribution response end.
3. The virtual machine distribution method according to claim 2, wherein after transmitting the traffic virtual machine template to the distribution responding terminal, the method further comprises:
and establishing a mapping relation between the distribution response end and the template identification information in the distribution mapping table.
4. The virtual machine distribution method according to claim 1, wherein the controlling the distribution responding end to deploy the service virtual machine based on the service virtual machine template includes:
and controlling the distribution responding terminal to copy the service virtual machine template through an instruction to obtain a virtual machine copy, and configuring service parameters of the virtual machine copy to obtain the service virtual machine.
5. The virtual machine distribution method according to any one of claims 1 to 4, wherein when the distribution responding end stores the service virtual machine template therein, the method further includes:
judging whether the local service virtual machine template is updated or not;
if the local service virtual machine template is updated, acquiring difference data of the local service virtual machine template compared with the service virtual machine template in the distribution response end;
and updating the service virtual machine template of the distribution response end based on the difference data.
6. The virtual machine distribution method according to claim 5, wherein when the number of disks occupied by the service virtual machine template is greater than 1, the obtaining difference data of the local service virtual machine template compared with the service virtual machine template in the distribution response end includes:
acquiring first abstract information obtained by performing hash operation on a local disk occupied by the service virtual machine template, and second abstract information obtained by performing hash operation on the local disk occupied by the service virtual machine template in the distribution response end;
and positioning a target disk based on the summary difference information between the first summary information and the second summary information, and counting the difference data between the local target disk and the target disk in the distribution response end.
7. A virtual machine distribution device is applied to a virtual machine distribution device and comprises:
the demand information acquisition module is used for acquiring the service demand information of the distribution response end;
the template judging module is used for judging whether a service virtual machine template corresponding to the service demand information is stored in the distribution response end, if so, the deployment module is called, and otherwise, the transmission module and the deployment module are called in sequence;
the transmission module is used for transmitting the service virtual machine template to the distribution response end;
the deployment module is used for controlling the distribution responding terminal to deploy the service virtual machine based on the service virtual machine template.
8. The virtual machine distribution apparatus according to claim 7, wherein the apparatus further comprises:
the identification acquisition module is used for acquiring template identification information of the service virtual machine template corresponding to the service demand information;
the template judging module comprises:
and the mapping table judging module is used for judging whether the mapping relation between the distribution response end and the template identification information exists in the distribution mapping table, if so, the deployment module is called, and otherwise, the transmission module and the deployment module are called in sequence.
9. A virtual machine distribution apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the virtual machine distribution method of any one of claims 1 to 6 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the virtual machine distribution method according to any one of claims 1 to 6.
CN202010820294.8A 2020-08-14 2020-08-14 Virtual machine distribution method, device, equipment and storage medium Withdrawn CN112000432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010820294.8A CN112000432A (en) 2020-08-14 2020-08-14 Virtual machine distribution method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010820294.8A CN112000432A (en) 2020-08-14 2020-08-14 Virtual machine distribution method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112000432A true CN112000432A (en) 2020-11-27

Family

ID=73473735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010820294.8A Withdrawn CN112000432A (en) 2020-08-14 2020-08-14 Virtual machine distribution method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112000432A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908770A (en) * 2019-11-05 2020-03-24 安超云软件有限公司 Operation and creation method of virtual machine, virtual machine and virtual machine management platform

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908770A (en) * 2019-11-05 2020-03-24 安超云软件有限公司 Operation and creation method of virtual machine, virtual machine and virtual machine management platform

Similar Documents

Publication Publication Date Title
CN112118565B (en) Multi-tenant service gray level publishing method, device, computer equipment and storage medium
WO2019184727A1 (en) Service upgrade management method, apparatus, and storage medium
CN102945175A (en) Terminal software online upgrading system and method based on cloud computing environment
WO2019100266A1 (en) Mobile edge host-machine service notification method and apparatus
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN112463290A (en) Method, system, apparatus and storage medium for dynamically adjusting the number of computing containers
CN110719187B (en) Configuration management method, system and computer readable storage medium
CN111124299A (en) Data storage management method, device, equipment, system and storage medium
US11647103B1 (en) Compression-as-a-service for data transmissions
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN115510163A (en) Mirror image file synchronization method and device, storage medium and electronic equipment
US20210209064A1 (en) File Redundancy Detection and Mitigation
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN108418857B (en) Zookeeper cluster system and connection method and device thereof
CN114900449B (en) Resource information management method, system and device
CN112000432A (en) Virtual machine distribution method, device, equipment and storage medium
US11307912B1 (en) Forward message compatibility safety in producer-consumer systems
CN111857736B (en) Cloud computing product generation method, device, equipment and storage medium
CN114416131A (en) Application upgrading method, application upgrading platform, electronic equipment and storage medium
CN112685102A (en) Gateway plug-in hot loading method, device, equipment and medium
CN106407320B (en) File processing method, device and system
CN113297158B (en) Cloud security product management method, device, equipment and storage medium
CN114615268B (en) Service network, monitoring node, container node and equipment based on Kubernetes cluster
CN112003731B (en) Configuration method and device
CN111404979B (en) Method and device for processing service request and computer readable storage medium

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20201127

WW01 Invention patent application withdrawn after publication