WO2019085104A1 - Procédé de déploiement de machines virtuelles, dispositif, appareil, et support de stockage lisible par ordinateur - Google Patents

Procédé de déploiement de machines virtuelles, dispositif, appareil, et support de stockage lisible par ordinateur Download PDF

Info

Publication number
WO2019085104A1
WO2019085104A1 PCT/CN2017/113229 CN2017113229W WO2019085104A1 WO 2019085104 A1 WO2019085104 A1 WO 2019085104A1 CN 2017113229 W CN2017113229 W CN 2017113229W WO 2019085104 A1 WO2019085104 A1 WO 2019085104A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
physical
machine
resource attribute
weight value
Prior art date
Application number
PCT/CN2017/113229
Other languages
English (en)
Chinese (zh)
Inventor
罗斌
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019085104A1 publication Critical patent/WO2019085104A1/fr

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

Definitions

  • the present application relates to the field of computer data processing, and in particular, to a virtual machine deployment method, apparatus, device, and computer readable storage medium.
  • the present application provides a more rational virtual machine deployment method, apparatus, device, and computer readable storage medium.
  • the application provides a virtual machine deployment method, including:
  • the virtual machine is deployed to a physical machine that matches the virtual machine.
  • the application provides a virtual machine deployment apparatus, including:
  • a first acquiring unit configured to acquire a virtual resource attribute corresponding to the virtual machine
  • a first calculating unit configured to calculate a virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute
  • a second acquiring unit configured to acquire physical resource attributes corresponding to the physical machine and actual consumption amounts corresponding to the physical resource attributes
  • a second calculating unit configured to calculate a physical weight value corresponding to the physical resource attribute according to the physical resource attribute and the actual consumption amount
  • a first determining unit configured to determine, according to the virtual weight value and the physical weight value, a physical machine that matches the virtual machine
  • a first deployment unit configured to deploy the virtual machine to a physical machine that matches the virtual machine.
  • the present application further provides a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the The virtual machine deployment method described in any one of the present application is implemented in the program.
  • the present application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprising program instructions, when executed by a processor
  • the processor executes the virtual machine deployment method described in any one of the applications provided herein.
  • the application provides a virtual machine deployment method, apparatus, computer device, and computer readable storage medium.
  • the virtual machine deployment method obtains a virtual resource attribute corresponding to the virtual machine, calculates a virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute, and acquires a physical resource attribute corresponding to the physical machine and an actual corresponding to the physical resource attribute. Calculating a physical weight value corresponding to the physical resource attribute according to the physical resource attribute and the actual consumption amount; determining a physical machine matching the virtual machine according to the virtual weight value and the physical weight value Deploying the virtual machine to a physical machine that matches the virtual machine.
  • the embodiments of the present application can effectively solve the problems of unreasonable deployment of virtual machines and low utilization.
  • FIG. 1 is a schematic flowchart of a virtual machine deployment method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a sub-flow of a virtual machine deployment method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a sub-flow of a virtual machine deployment method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a sub-flow of a virtual machine deployment method according to an embodiment of the present disclosure
  • FIG. 5 is a schematic flowchart of a virtual machine deployment method according to an embodiment of the present disclosure
  • FIG. 6 is a schematic block diagram of a virtual machine deployment apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic block diagram of a first computing unit in a virtual machine deployment apparatus according to an embodiment of the present disclosure
  • FIG. 8 is a schematic block diagram of a second computing unit in a virtual machine deployment apparatus according to an embodiment of the present disclosure
  • FIG. 9 is a schematic block diagram of a first determining unit in a virtual machine deployment apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic block diagram of a virtual machine deployment apparatus according to an embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • FIG. 1 it is a schematic flowchart of a virtual machine deployment method according to an embodiment of the present application.
  • the virtual machine deployment method is applied to terminals such as servers, desktop computers, laptops, tablets, personal digital assistants (PDAs), smart phones (such as Android phones, IOS phones, etc.).
  • the method includes steps S11 to S16.
  • the number of virtual machines may be multiple.
  • the method for obtaining the virtual resource attribute may include: acquiring a custom parameter input by the user, where the custom parameter may be set according to the use of the virtual machine and actual requirements; generating the virtual machine according to the customized parameter. Corresponding virtual resource parameters.
  • the virtual resource attribute corresponding to the virtual machine is used to represent a specific attribute of the virtual resource required by the virtual machine.
  • the virtual resource attributes include, but are not limited to, virtual resource categories and virtual performance parameters.
  • the virtual resource category may include a processor, a memory, a bandwidth, and the like.
  • the virtual performance parameter corresponds to the virtual resource category, corresponding to the virtual resource category, and the virtual performance parameter may include processor performance, memory performance, network performance, and the like.
  • the virtual machine's virtual resource attributes include processor and processor performance.
  • the processor is the main computing resource of the virtual service, for example, it can be the CPU of the computer.
  • the CPU is only responsible for the operation overhead of the virtual machine system, and the virtual machine maintains the operation overhead of the service when the service is provided.
  • Its calculation unit can generally be expressed by Ghz.
  • Memory is the main operational storage resource of a virtual service, such as memory in a computer.
  • a virtual service such as memory in a computer.
  • the memory is only responsible for the storage overhead of the virtual machine system, and provides storage space for running the service when the service is provided.
  • the unit of calculation can generally be expressed in GB.
  • Bandwidth is the main network resource of the virtual service.
  • the bandwidth resource serves as a medium for providing the service.
  • the unit of calculation can generally be Mb/s.
  • FIG. 2 is a schematic diagram of a sub-flow of a virtual machine deployment method according to an embodiment of the present application.
  • the virtual resource attribute includes a virtual resource category and a virtual performance parameter
  • the calculating the virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute in step S12 may include steps S121-S123.
  • the virtual resource attributes are classified according to the virtual resource category to generate a virtual resource queue.
  • the virtual resource category of the virtual resource may include a processor, a memory, and a bandwidth
  • the virtual resource attributes are classified according to the virtual resource category
  • the generated virtual resource queue may be generated.
  • processor queue, memory queue, bandwidth queue, the virtual resource queue is shown in Table 1.
  • M1-M5 respectively represent the number of the virtual machine, for example, the number M1 represents the first virtual machine.
  • the calculation of the average performance parameter may be performed by: calculating a sum of parameters of the virtual performance parameter in the virtual resource queue, and acquiring the number of virtual performance parameters in the virtual resource queue;
  • the average performance parameter is obtained by dividing the sum by the number of phases.
  • the calculation of the virtual weight value may be performed by subtracting the virtual performance parameter in the virtual resource queue from the average performance parameter, and the obtained parameter difference is the virtual weight value.
  • the average performance parameter of the virtual performance parameter in the processor queue as shown in Table 1 is 2.
  • the physical machine is used as a management layer in the cloud computing platform to complete management and allocation of hardware resources; to present a virtual hardware platform for the virtual machine; and to implement scheduling and isolation of the virtual machine.
  • Multiple virtual machines can be created on a single physical machine. In the same cloud computing platform, multiple physical machines can also exist at the same time.
  • the number of physical machines may also be multiple.
  • the physical resource performance attributes corresponding to the physical machine include, but are not limited to, physical resource categories and physical performance parameters.
  • physical resource categories may include processors, memory, bandwidth, and the like.
  • Physical performance parameters correspond to physical resource categories one-to-one.
  • physical performance parameters may include processor performance, memory performance, network performance, and the like.
  • the physical resource attributes of the physical machine include the processor and processor performance.
  • the actual consumption of the corresponding physical performance parameter can be obtained by monitoring the consumption of the physical performance parameters of the physical machine.
  • the physical performance parameter of the processor is 3.2 Ghz; the physical performance parameter of the memory is 32 GB; and the physical performance parameter of the bandwidth is 16 Mb/s.
  • the actual processor consumption is 2.56Ghz; the actual memory consumption is 8GB; the actual bandwidth consumption is 4Mb/s.
  • FIG. 3 is a schematic diagram of a sub-flow of a virtual machine deployment method according to an embodiment of the present application.
  • Calculating the physical weight value corresponding to the physical resource attribute according to the physical resource attribute and the actual consumption amount in step S14 may include steps S141-S142.
  • the consumption ratio of the physical resources of the processing category is 80%.
  • the consumption ratio can be converted into the physical weight value by performing a countdown operation on the consumption ratio. For example, if the consumption ratio is 80%, the physical weight corresponding to the processor physical resource is 1.25. A larger physical weight value indicates that the physical resource consumption ratio corresponding to the physical weight value is lower.
  • the number of the virtual weight values may be one or more, and the number of the physical weight values may also be one or more.
  • FIG. 4 is a virtual machine deployment method according to an embodiment of the present application.
  • Sub-flow diagram. Determining, according to the virtual weight value and the physical weight value, the physical machine matching the virtual machine may include steps S151-S154.
  • the virtual resource attribute includes a virtual resource category; and the physical resource attribute includes a physical resource category. If the virtual resource category is the same as the physical resource category, the virtual resource attribute is determined to match the physical resource attribute. For example, if the virtual resource category is a processor and the physical resource category is a processor, it is determined that the virtual resource attribute matches the physical resource attribute.
  • each virtual resource category or each physical resource category includes one or more virtual weight values or physical weight values.
  • the virtual weight value and the physical weight value By arranging the virtual weight value and the physical weight value in descending order, the virtual weight value and the maximum value of the physical weight value can be quickly obtained.
  • the virtual machine corresponding to the maximum value of the virtual weight value is determined as a weight virtual machine
  • the physical machine corresponding to the maximum value of the weighting value is determined as a weight physical machine
  • the weight physical machine is determined.
  • the physical machine that is determined to match the weighted virtual machine can effectively reduce the imbalance of physical machine resource allocation.
  • the method may further include:
  • the physical resource attribute corresponding to the physical resource attribute and the actual consumption quantity corresponding to the physical resource attribute are obtained, and the physical weight value corresponding to the physical resource attribute is calculated according to the physical resource attribute and the actual consumption amount.
  • the latest physical weight value is calculated by continuing to obtain the latest actual consumption amount, and the physical machine matching the virtual machine is determined according to the latest physical weight value and the virtual weight value.
  • the embodiment of the present application obtains a virtual resource attribute corresponding to the virtual machine, calculates a virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute, and acquires a physical resource attribute corresponding to the physical machine. And the actual consumption amount corresponding to the physical resource attribute; the physical weight value corresponding to the physical resource attribute is calculated according to the physical resource attribute and the actual consumption amount; and the virtual weight value and the physical weight value are determined according to the virtual weight value and the physical weight value.
  • a physical machine that matches the virtual machine the virtual machine is deployed to a physical machine that matches the virtual machine.
  • FIG. 5 is a schematic flowchart diagram of a virtual machine deployment method according to an embodiment of the present application.
  • the steps S21-S23 may also be included.
  • the user identifier is correspondingly stored in a virtual resource attribute of each virtual machine. There is a unique user identifier for each virtual machine.
  • judging whether the user identifiers are the same is performed by performing bitwise alignment on the user identifiers.
  • the virtual machine can be applied to a variety of different business types, which can include a web page (Web), an application (App), a database (DB), a cache (Cache), a message queue (MQ), and the like.
  • Web web page
  • App application
  • DB database
  • Cache cache
  • MQ message queue
  • a virtual machine that is applied to different users of the same service type is often prone to generate a large number of network interactions and requires a large amount of bandwidth resources. If virtual machines applied to different services of the same user are deployed on different physical machines, bandwidth resources are wasted.
  • the virtual machines with the same user identifier are deployed on the same physical machine to reduce the bandwidth resource occupation, thereby effectively preventing resource waste.
  • FIG. 6 is a schematic block diagram of a virtual machine deployment apparatus according to an embodiment of the present application.
  • the virtual machine deployment apparatus includes a first acquisition unit 110, a first calculation unit 120, a second acquisition unit 130, a second calculation unit 140, a first determination unit 150, and a first deployment unit 160.
  • the first obtaining unit 110 is configured to acquire virtual resource attributes corresponding to the virtual machine.
  • the number of virtual machines may be multiple.
  • the method for obtaining the virtual resource attribute may include: acquiring a custom parameter input by the user, where the custom parameter may be according to the virtual machine Setting the use and actual requirements; generating virtual resource parameters corresponding to the virtual machine according to the customized parameter.
  • the virtual resource attribute corresponding to the virtual machine is used to represent a specific attribute of the virtual resource required by the virtual machine.
  • the virtual resource attributes corresponding to the virtual machine include, but are not limited to, a virtual resource category and a virtual performance parameter.
  • the virtual resource category may include a processor, a memory, a bandwidth, and the like.
  • the virtual performance parameter corresponds to the virtual resource category, corresponding to the virtual resource category, and the virtual performance parameter may include processor performance, memory performance, network performance, and the like.
  • the virtual machine's virtual resource attributes include processor and processor performance.
  • the processor is the main computing resource of the virtual service, for example, it can be the CPU of the computer.
  • the CPU is only responsible for the operation overhead of the virtual machine system, and the virtual machine maintains the operation overhead of the service when the service is provided.
  • Its calculation unit can generally be expressed by Ghz.
  • Memory is the main operational storage resource of a virtual service, such as memory in a computer.
  • a virtual service such as memory in a computer.
  • the memory is only responsible for the storage overhead of the virtual machine system, and provides storage space for running the service when the service is provided.
  • the unit of calculation can generally be expressed in GB.
  • Bandwidth is the main network resource of the virtual service.
  • the bandwidth resource serves as a medium for providing the service.
  • the unit of calculation can generally be Mb/s.
  • the first calculating unit 120 is configured to calculate a virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute.
  • FIG. 7 is a schematic block diagram of a first computing unit 120 in a virtual machine deployment apparatus according to an embodiment of the present application.
  • the virtual resource attribute includes a virtual resource category and a virtual performance parameter
  • the first calculating unit 120 includes a queue generating unit 121, a third calculating unit 122, and a fourth calculating unit 123.
  • the queue generating unit 121 is configured to classify the virtual resource attributes according to the virtual resource category to generate a virtual resource queue.
  • the virtual resource category of the virtual resource may include a processor, a memory, and a bandwidth
  • the virtual resource attributes are classified according to the virtual resource category
  • the generated virtual resource queue may be generated.
  • processor queue, memory queue, bandwidth queue, the virtual resource queue is shown in Table 2.
  • M1-M5 respectively represent the number of the virtual machine, for example, the number M1 represents the first virtual machine.
  • the third calculating unit 122 is configured to calculate an average performance parameter of the virtual performance parameter in each virtual resource queue.
  • the calculation of the average performance parameter may be performed by: calculating a sum of parameters of the virtual performance parameter in the virtual resource queue, and acquiring the number of virtual performance parameters in the virtual resource queue;
  • the average performance parameter is obtained by dividing the sum by the number of phases.
  • the fourth calculating unit 123 is configured to calculate the virtual weight value according to the average performance parameter and the virtual performance parameter.
  • the calculation of the virtual weight value may be performed by subtracting the virtual performance parameter in the virtual resource queue from the average performance parameter, and the obtained parameter difference is the virtual weight value.
  • the average performance parameter of the virtual performance parameter in the processor queue as shown in Table 1 is 2.
  • the second obtaining unit 130 is configured to acquire physical resource attributes corresponding to the physical machine and actual consumption amounts corresponding to the physical resource attributes.
  • the physical machine is used as a management layer in the cloud computing platform to complete management and allocation of hardware resources; to present a virtual hardware platform for the virtual machine; and to implement scheduling and isolation of the virtual machine.
  • Multiple virtual machines can be created on a single physical machine. In the same cloud computing platform, multiple physical machines can also exist at the same time.
  • the number of physical machines may also be multiple.
  • the physical resource performance attributes corresponding to the physical machine include, but are not limited to, physical resource categories and physical performance parameters.
  • physical resource categories may include processors, memory, bandwidth, and the like.
  • Physical performance parameters correspond to physical resource categories one-to-one.
  • physical performance parameters may include processor performance, memory performance, network performance, and the like.
  • the physical resource attributes of the physical machine include the processor and processor performance.
  • the actual consumption of the corresponding physical performance parameter can be obtained by monitoring the consumption of the physical performance parameters of the physical machine.
  • the physical performance parameter of the processor is 3.2 Ghz; the physical performance parameter of the memory is 32 GB; and the physical performance parameter of the bandwidth is 16 Mb/s.
  • the actual processor consumption is 2.56Ghz; the actual memory consumption is 8GB; the actual bandwidth consumption is 4Mb/s.
  • the second calculating unit 140 is configured to calculate a physical weight value corresponding to the physical resource attribute according to the physical resource attribute and the actual consumption amount.
  • FIG. 8 is a schematic block diagram of a second computing unit 140 in a virtual machine deployment apparatus according to an embodiment of the present application.
  • the physical resource attribute includes a physical performance parameter
  • the second calculating unit 140 includes a fifth calculating unit 141 and a sixth calculating unit 142.
  • the fifth calculating unit 141 is configured to calculate a consumption proportion corresponding to the physical resource attribute according to the actual consumption amount.
  • the consumption ratio of the physical resources of the processing category is 80%.
  • the sixth calculating unit 142 is configured to calculate the physical weight value according to the consumption ratio.
  • the consumption ratio can be converted into the physical weight value by performing a countdown operation on the consumption ratio. For example, if the consumption ratio is 80%, the physical weight corresponding to the processor physical resource is 1.25. A larger physical weight value indicates that the physical resource consumption ratio corresponding to the physical weight value is lower.
  • the first determining unit 150 is configured to determine, according to the virtual weight value and the physical weight value, a physical machine that matches the virtual machine.
  • the number of the virtual weight values may be one or more, and the number of the physical weight values may also be one or more.
  • FIG. 9 is a schematic block diagram of a first determining unit 150 in a virtual machine deployment apparatus according to an embodiment of the present application. Further, the first determining unit 150 includes a first determining unit 151, a third obtaining unit 152, a second determining unit 153, and a third determining unit 154.
  • the first determining unit 151 is configured to determine whether the virtual resource attribute matches the physical resource attribute.
  • the virtual resource attribute includes a virtual resource category; and the physical resource attribute includes a physical resource category. If the virtual resource category is the same as the physical resource category, the virtual resource attribute is determined to match the physical resource attribute. For example, if the virtual resource category is a processor and the physical resource category is a processor, it is determined that the virtual resource attribute matches the physical resource attribute.
  • the third obtaining unit 152 is configured to acquire a maximum value of the virtual weight value and a maximum value of the physical weight value if the virtual resource attribute matches the physical resource attribute.
  • each virtual resource category or each physical resource category includes one or more virtual weight values or physical weight values.
  • the virtual weight value and the physical weight value By arranging the virtual weight value and the physical weight value in descending order, the virtual weight value and the maximum value of the physical weight value can be quickly obtained.
  • the second determining unit 153 is configured to determine a virtual machine corresponding to the maximum value of the virtual weight value as a weight virtual machine, and determine a physical machine corresponding to the maximum value of the weighting value as a weight physical machine.
  • the third determining unit 154 is configured to determine the weight physical machine as a physical machine that matches the weight virtual machine.
  • the virtual machine corresponding to the maximum value of the virtual weight value is determined as a weight virtual machine
  • the physical machine corresponding to the maximum value of the weighting value is determined as a weight physical machine
  • the weight physical machine is determined.
  • the physical machine that is determined to match the weighted virtual machine can effectively reduce the imbalance of physical machine resource allocation.
  • the first deployment unit 160 is configured to deploy the virtual machine to a physical machine that matches the virtual machine.
  • the embodiment of the present application obtains the virtual resource attribute corresponding to the virtual machine, calculates the virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute, and acquires the physical resource attribute corresponding to the physical machine and the actual consumption corresponding to the physical resource attribute. And calculating, according to the physical resource attribute and the actual consumption quantity, a physical weight value corresponding to the physical resource attribute; determining, according to the virtual weight value and the physical weight value, a physical machine that matches the virtual machine; The virtual machine is deployed to a physical machine that matches the virtual machine.
  • the embodiments of the present application can effectively solve the problems of unreasonable deployment of virtual machines and low utilization.
  • the method may further include:
  • the physical resource attribute corresponding to the physical resource attribute and the actual consumption quantity corresponding to the physical resource attribute are obtained, and the physical weight value corresponding to the physical resource attribute is calculated according to the physical resource attribute and the actual consumption amount.
  • the latest physical weight value is calculated by continuing to obtain the latest actual consumption amount, and the physical machine matching the virtual machine is determined according to the latest physical weight value and the virtual weight value.
  • FIG. 10 is a schematic block diagram of a virtual machine deployment apparatus according to an embodiment of the present application.
  • the virtual machine deployment apparatus further includes a fourth obtaining unit 210, a second determining unit 220, and a second deploying unit 230.
  • the fourth obtaining unit 210 is configured to acquire a user identifier corresponding to the virtual machine.
  • the user identifier is correspondingly stored in a virtual resource attribute of each virtual machine. There is a unique user identifier for each virtual machine.
  • the second determining unit 220 is configured to determine whether the user identifiers are the same.
  • judging whether the user identifiers are the same is performed by performing bitwise alignment on the user identifiers.
  • the second deployment unit 230 is configured to deploy the virtual machines with the same user identifiers on the same physical machine;
  • the first obtaining unit 110 is configured to acquire virtual resource attributes corresponding to the virtual machine.
  • the virtual machine can be applied to a variety of different business types, which can include a web page (Web), an application (App), a database (DB), a cache (Cache), a message queue (MQ), and the like.
  • Web web page
  • App application
  • DB database
  • Cache cache
  • MQ message queue
  • a virtual machine that is applied to different users of the same service type is often prone to generate a large number of network interactions and requires a large amount of bandwidth resources. If virtual machines applied to different services of the same user are deployed on different physical machines, bandwidth resources are wasted.
  • the embodiment of the present application obtains a batch modification instruction, where the batch modification instruction includes a template file identifier corresponding to the data to be modified; and displays a corresponding template file according to the template file identifier; and obtains a user input in the template file.
  • a piece of data information wherein the data information includes query conditions and modification information for querying the data to be modified; searching for corresponding data to be modified according to the query condition, and performing data to be modified according to the modification information Modification, which can realize the function of batch modification of information, improve the efficiency of batch modification of information, reduce the workload of staff, and save staff time.
  • the virtual machine deployment device described above can be implemented in the form of a computer program that can be run on a computer device as shown in FIG.
  • FIG. 11 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 device can be a terminal.
  • the terminal can be a communication-enabled electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
  • the computer device 500 includes a processor 520, a memory, and a network interface 550 that are coupled by a system bus 510, where the memory can include a non-volatile storage medium 530 and an internal memory 540.
  • the non-volatile storage medium 530 can store an operating system 531 and a computer program 532.
  • the processor 520 can be caused to perform a virtual machine deployment method.
  • the processor 520 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
  • the internal memory 540 provides an environment for the operation of a computer program in a non-volatile storage medium that, when executed by the processor 520, causes the processor 520 to perform a virtual machine deployment method.
  • the network interface 550 is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the schematic block diagram of the computer device is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device 500 to which the solution of the present application is applied.
  • the specific computer device 500 More or fewer components than those shown in the figures may be included, or some components may be combined, or have different component arrangements.
  • the processor 520 is configured to run the program code stored in the memory to implement the following functions: acquiring a virtual resource attribute corresponding to the virtual machine; and calculating a virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute; Obtaining a physical resource attribute corresponding to the physical machine and an actual consumption amount corresponding to the physical resource attribute; calculating a physical weight value corresponding to the physical resource attribute according to the physical resource attribute and the actual consumption amount; according to the virtual weight value And the physical weight value, determining a physical machine that matches the virtual machine; deploying the virtual machine to a physical machine that matches the virtual machine.
  • the virtual resource attribute includes a virtual resource category and a virtual performance parameter
  • the processor 520 further performs the following procedure when performing the calculating the virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute. Classifying the virtual resource attributes according to the virtual resource category to generate a virtual resource queue; calculating an average performance parameter of the virtual performance parameter in each virtual resource queue; according to the average performance parameter and the virtual performance parameter Calculating the virtual weight value.
  • the physical resource attribute includes a physical performance parameter
  • the processor 520 performs the following procedure when performing the calculation of the physical weight value corresponding to the physical resource attribute according to the physical resource attribute and the actual consumption amount. Calculating a consumption ratio corresponding to the physical resource attribute according to the actual consumption amount; and calculating the physical weight value according to the consumption ratio.
  • the processor 520 is performing the according to the virtual weight value and the physics And determining, by the weight value, the physical machine that matches the virtual machine, the following procedure: determining whether the virtual resource attribute matches the physical resource attribute; if the virtual resource attribute matches the physical resource attribute, acquiring a maximum value of the virtual weight value and a maximum value of the physical weight value; determining a virtual machine corresponding to the maximum value of the virtual weight value as a weight virtual machine, and determining a physical machine corresponding to the maximum value of the weighting value A weight physical machine; the weight physical machine is determined to be a physical machine that matches the weight virtual machine.
  • the processor 520 may further execute the following steps: acquiring a user identifier corresponding to the virtual machine; determining whether the user identifier is the same; The user identifiers are the same, and the virtual machines with the same user identifiers are deployed on the same physical machine. If the user identifiers are different, the step of acquiring virtual resource attributes corresponding to the virtual machine is performed.
  • the processor 520 may be a central processing unit (CPU), and the processor 520 may also be other general-purpose processors, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the schematic block diagram of the computer device 500 does not constitute a limitation to the computer device 500, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
  • a computer readable storage medium is stored, the computer readable storage medium storing a computer program, wherein the computer program comprises program instructions.
  • the program instruction is executed by the processor to: obtain a virtual resource attribute corresponding to the virtual machine; calculate a virtual weight value corresponding to the virtual resource attribute according to the virtual resource attribute; acquire a physical resource attribute corresponding to the physical machine, and the physical resource The actual consumption amount corresponding to the attribute; the physical weight value corresponding to the physical resource attribute is calculated according to the physical resource attribute and the actual consumption amount; and the virtual machine is determined according to the virtual weight value and the physical weight value a matching physical machine; deploying the virtual machine to a physical machine that matches the virtual machine.
  • the virtual resource attribute includes a virtual resource category and a virtual performance parameter
  • the program instruction is executed by the processor to calculate, according to the virtual resource attribute, the virtual resource attribute.
  • the virtual weight value is further configured to: classify the virtual resource attribute according to the virtual resource category to generate a virtual resource queue; calculate an average performance parameter of the virtual performance parameter in each virtual resource queue; according to the average performance The parameter and the virtual performance parameter calculate the virtual weight value.
  • the physical resource attribute includes a physical performance parameter
  • the program instruction is specifically implemented by the processor when performing the calculation of the physical weight value corresponding to the physical resource attribute according to the physical resource attribute and the actual consumption amount: Calculating a consumption ratio corresponding to the physical resource attribute according to the actual consumption amount; and calculating the physical weight value according to the consumption ratio.
  • the program instruction is executed by the processor to determine, according to the virtual weight value and the physical weight value, a physical machine that matches the virtual machine: determining the virtual resource attribute and the location Whether the physical resource attribute matches; if the virtual resource attribute matches the physical resource attribute, the maximum value of the virtual weight value and the maximum value of the physical weight value are obtained; and the maximum value of the virtual weight value is corresponding
  • the virtual machine is determined to be a weight virtual machine, and the physical machine corresponding to the maximum value of the weighting value is determined as a weight physical machine; and the weight physical machine is determined as a physical machine that matches the weight virtual machine.
  • the program instruction is executed by the processor to: obtain a user identifier corresponding to the virtual machine; determine whether the user identifier is the same; The user identifiers are the same, and the virtual machines with the same user identifiers are deployed on the same physical machine. If the user identifiers are different, the step of acquiring virtual resource attributes corresponding to the virtual machine is performed.
  • the computer readable storage medium may be any medium that can store program code, such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
  • program code such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
  • the disclosed virtual machine deployment apparatus and method may be implemented in other manners.
  • the virtual machine deployment device embodiments described above are merely illustrative.
  • the division of each unit is only a logical function division, and there may be another division manner in actual implementation.
  • multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
  • the steps in the method of the embodiment of the present application may be sequentially adjusted, merged, and deleted according to actual needs.
  • the units in the virtual machine deployment apparatus of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium.
  • the technical solution of the present application may be in essence or part of the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • There are a number of instructions for causing a computer device (which may be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Certains modes de réalisation de la présente invention concernent un procédé de déploiement de machines virtuelles, un dispositif, un appareil, et un support de stockage lisible par ordinateur. Le procédé de déploiement de machines virtuelles comporte les étapes consistant à: acquérir un attribut de ressource virtuelle correspondant à une machine virtuelle; calculer, selon l'attribut de ressource virtuelle, une valeur de poids virtuel correspondant à l'attribut de ressource virtuelle; acquérir un attribut de ressource physique correspondant à une machine physique et une quantité de consommation réelle correspondant à l'attribut de ressource physique; calculer, selon l'attribut de ressource physique et la quantité de consommation réelle, une valeur de poids physique correspondant à l'attribut de ressource physique; déterminer une machine physique correspondant à la machine virtuelle d'après la valeur de poids virtuel et la valeur de poids physique; et déployer la machine virtuelle au niveau de la machine physique correspondant à la machine virtuelle. Les modes de réalisation de la présente invention résolvent efficacement les problèmes du déploiement de machines virtuelles, comme l'impraticabilité et un faible taux d'utilisation.
PCT/CN2017/113229 2017-10-30 2017-11-28 Procédé de déploiement de machines virtuelles, dispositif, appareil, et support de stockage lisible par ordinateur WO2019085104A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711042702.6A CN107748691B (zh) 2017-10-30 2017-10-30 虚拟机部署方法、装置、设备及计算机可读存储介质
CN201711042702.6 2017-10-30

Publications (1)

Publication Number Publication Date
WO2019085104A1 true WO2019085104A1 (fr) 2019-05-09

Family

ID=61252793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/113229 WO2019085104A1 (fr) 2017-10-30 2017-11-28 Procédé de déploiement de machines virtuelles, dispositif, appareil, et support de stockage lisible par ordinateur

Country Status (2)

Country Link
CN (1) CN107748691B (fr)
WO (1) WO2019085104A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461332A (zh) * 2020-11-09 2022-05-10 上海大学 一种基于应用特征的虚拟机部署方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144663B (zh) * 2018-07-13 2020-11-10 新华三云计算技术有限公司 主机优选方法及装置
CN109213597A (zh) * 2018-08-01 2019-01-15 平安科技(深圳)有限公司 资源分配方法、装置、计算机设备及计算机可读存储介质
CN111404793B (zh) * 2020-03-11 2022-01-21 超越科技股份有限公司 一种控制物理can口和虚拟can口进行映射的方法,系统,设备及可读存储介质
CN112084020B (zh) * 2020-08-13 2022-04-26 河北工程大学 多接入虚拟边缘计算中基于双边匹配的虚拟机布设方法
CN115756861A (zh) * 2022-11-28 2023-03-07 北京百度网讯科技有限公司 分布式服务处理方法、装置、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885831A (zh) * 2012-12-19 2014-06-25 中国电信股份有限公司 虚拟机宿主机的选择方法与装置
CN104199724A (zh) * 2014-09-10 2014-12-10 山东省计算中心(国家超级计算济南中心) 一种基于性价比的虚拟化资源调度优化方法
CN106201661A (zh) * 2016-07-20 2016-12-07 北京百度网讯科技有限公司 用于弹性伸缩虚拟机集群的方法和装置
EP3158436A1 (fr) * 2014-06-20 2017-04-26 Cirba IP Inc. Système et procédé pour optimiser les placements de machines virtuelles sur des hôtes hyperviseurs

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075402B (zh) * 2011-02-12 2013-06-05 华为技术有限公司 虚拟网络映射处理方法和系统
CN102307133B (zh) * 2011-03-25 2014-07-16 国云科技股份有限公司 一种公有云平台虚拟机调度方法
CN105718299A (zh) * 2014-12-04 2016-06-29 中国移动通信集团广东有限公司 虚拟机的配置方法、装置及系统
CN106325999A (zh) * 2015-06-30 2017-01-11 华为技术有限公司 一种分配宿主机资源的方法和装置
CN105279027B (zh) * 2015-11-19 2018-09-18 浪潮(北京)电子信息产业有限公司 一种虚拟机部署方法及装置
CN106445631B (zh) * 2016-08-26 2020-02-14 华为技术有限公司 一种布署虚拟机的方法、系统以及物理服务器
CN107038064B (zh) * 2017-04-18 2021-12-10 腾讯科技(深圳)有限公司 虚拟机管理方法及装置、存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885831A (zh) * 2012-12-19 2014-06-25 中国电信股份有限公司 虚拟机宿主机的选择方法与装置
EP3158436A1 (fr) * 2014-06-20 2017-04-26 Cirba IP Inc. Système et procédé pour optimiser les placements de machines virtuelles sur des hôtes hyperviseurs
CN104199724A (zh) * 2014-09-10 2014-12-10 山东省计算中心(国家超级计算济南中心) 一种基于性价比的虚拟化资源调度优化方法
CN106201661A (zh) * 2016-07-20 2016-12-07 北京百度网讯科技有限公司 用于弹性伸缩虚拟机集群的方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461332A (zh) * 2020-11-09 2022-05-10 上海大学 一种基于应用特征的虚拟机部署方法
CN114461332B (zh) * 2020-11-09 2024-05-28 上海大学 一种基于应用特征的虚拟机部署方法

Also Published As

Publication number Publication date
CN107748691A (zh) 2018-03-02
CN107748691B (zh) 2020-04-24

Similar Documents

Publication Publication Date Title
WO2019085104A1 (fr) Procédé de déploiement de machines virtuelles, dispositif, appareil, et support de stockage lisible par ordinateur
US9715347B2 (en) Virtual disk migration
US9933956B2 (en) Systems and methods for implementing stretch clusters in a virtualization environment
CN109039954B (zh) 多租户容器云平台虚拟计算资源自适应调度方法及系统
WO2017143548A1 (fr) Procédé pour déployer automatiquement une application, et nœud de gestion infonuagique
US20190050267A1 (en) Provisioning of devices
US20140006534A1 (en) Method, system, and device for dynamic energy efficient job scheduling in a cloud computing environment
Al-Dulaimy et al. Type-aware virtual machine management for energy efficient cloud data centers
US20150128131A1 (en) Managing virtual machine patterns
JP2016103113A5 (fr)
JP2015532997A (ja) 分散データストレージ・処理システムのためのチューニング
EP3000024B1 (fr) Approvisionnement dynamique de stockage
WO2015032201A1 (fr) Procédé et dispositif de placement de machine virtuelle
WO2015051685A1 (fr) Procédé, dispositif, et système de programmation de tâches
US11706289B1 (en) System and method for distributed management of hardware using intermediate representations of systems to satisfy user intent
US11782761B2 (en) Resource management unit for capturing operating system configuration states and offloading tasks
CN109960579B (zh) 一种调整业务容器的方法及装置
US20120180063A1 (en) Method and Apparatus for Providing Management of Parallel Library Implementation
US10896056B2 (en) Cluster expansion method and apparatus, electronic device and storage medium
US20220318057A1 (en) Resource Management for Preferred Applications
TW201327205A (zh) 硬體效能的管理方法及雲端運算系統
US10310857B2 (en) Systems and methods facilitating multi-word atomic operation support for system on chip environments
US20230029380A1 (en) System and method of multilateral computer resource reallocation and asset transaction migration and management
Huang et al. Hardware resource reliability analysis based on deep learning for virtual machine deployment optimization
US20210191776A1 (en) Resource Management Unit for Capturing Operating System Configuration States and Memory Management

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17931073

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17931073

Country of ref document: EP

Kind code of ref document: A1