CN106170769B - Method, device and program product for determining virtual machine resources - Google Patents

Method, device and program product for determining virtual machine resources Download PDF

Info

Publication number
CN106170769B
CN106170769B CN201480036192.XA CN201480036192A CN106170769B CN 106170769 B CN106170769 B CN 106170769B CN 201480036192 A CN201480036192 A CN 201480036192A CN 106170769 B CN106170769 B CN 106170769B
Authority
CN
China
Prior art keywords
resource
resources
parameters
host
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201480036192.XA
Other languages
Chinese (zh)
Other versions
CN106170769A (en
Inventor
彭俊
王国骄
彭展
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN106170769A publication Critical patent/CN106170769A/en
Application granted granted Critical
Publication of CN106170769B publication Critical patent/CN106170769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method for determining resources of a virtual machine, which comprises the steps of determining parameters indicated by VNFD, and then determining the parameters of the resources of a virtual machine VM according to the parameters indicated by the VNFD in an equal proportion; or determining the parameters of the resources of the Host, and then determining the parameters of the resources of the VM in an equal proportion according to the parameters of the resources of the Host, thereby constructing the specification parameters of the VM. By implementing the embodiment of the invention, the resource fragments in the NFV environment can be reduced, so that the resource utilization rate is improved. The embodiment of the invention also provides a device and a program product for determining the virtual machine resources.

Description

Method, device and program product for determining virtual machine resources
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method, an apparatus, and a program product for determining virtual machine resources.
Background
In the cloud computing, computing work is distributed on distributed virtual computing resources, and through a network central data center, an enterprise or a user can switch the resources to different required applications and access different computers and storage systems according to requirements. Cloud Computing is a product of development and fusion of traditional computer and Network technologies, such as Distributed Computing (Distributed Computing), Parallel Computing (Parallel Computing), Utility Computing (Utility Computing), Network Storage (Network Storage), Virtualization (Virtualization), Load balancing (Load Balance), and the like.
With the continuous maturity of cloud computing technology, Information Technology (IT) and Communication Technology (CT) fields are mutually infiltrated and fused, and CT operators propose Network Function Virtualization (NFV) in the ICT field to meet future competitive challenges and comply with the current technical development trend of Virtualization and cloud computing.
In the existing NFV environment, according to different service requirements, a Virtual Machine (VM) needs to be flexibly added to meet the requirements of different services, that is, when a certain service needs more resources, a corresponding VM may be added to a Host (Host); when a service does not need so many resources, the corresponding VM may be released in the Host. However, a large amount of resource fragments are generated in the existing NFV environment, which causes a large amount of resource waste and low resource utilization rate.
Disclosure of Invention
The embodiment of the invention provides a method for determining virtual machine resources, which is used for solving the problem of low resource utilization rate caused by the generation of a large number of resource fragments in an NFV environment.
In order to achieve the above purpose, the embodiments of the invention adopt the following technical scheme,
in a first aspect, a method for determining virtual machine resources is provided, including:
the virtual network function manager VNFM determines parameters of resources indicated by the virtual network descriptor VNFD;
and the VNFM determines the parameters of the resources of the virtual machine VM according to the parameters of the resources indicated by the VNFD, the parameters of the resources of the VM are proportional to the parameters of the resources indicated by the VNFD, and the resources of the VM are smaller than the resources indicated by the VNFD.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the determining a parameter of a resource indicated by the VNFD further includes:
the VNFM acquires the parameters of the resources of the Host;
and the VNFM determines the parameter of the resource indicated by the VNFD according to the parameter of the resource of the Host, wherein the parameter of the resource indicated by the VNFD is proportional to the parameter of the resource of the Host, and the resource indicated by the VNFD is smaller than the parameter of the resource of the Host.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the resource indicated by the VNFD is greater than or equal to a resource required for running a service.
With reference to the first aspect or the first or second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the resource of the VM is greater than or equal to a resource required for running a sub-service, and the service is composed of one or more sub-services.
In a second aspect, a method for determining virtual machine resources is provided, including:
the VNFM acquires the parameters of the resources of the Host;
and the VNFM determines the parameters of the resources of the VM according to the parameters of the resources of the Host, wherein the parameters of the resources of the VM are proportional to the parameters of the resources of the Host.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the resource of the VM is greater than or equal to a resource required for running the sub-service.
In a third aspect, an apparatus for determining virtual machine resources is provided, including:
a determining unit for determining a parameter of a resource indicated by a VNFD;
a building unit, configured to determine, according to the determined parameter of the resource indicated by the VNFD, a parameter of a resource of a virtual machine VM, where the parameter of the resource of the VM is proportional to the parameter of the resource indicated by the VNFD.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the determining a parameter of a resource indicated by the VNFD includes:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the parameters of the resources of a Host;
the constructing unit is further configured to determine, according to the parameter of the resource of the Host, a parameter of the resource indicated by the VNFD, where the parameter of the resource indicated by the VNFD is proportional to the parameter of the resource of the Host.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the resource of the VNFD is greater than or equal to a resource required for running a service.
With reference to the third aspect or the first or second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the resource of the VM is greater than or equal to a resource required for running the sub-service.
In a fourth aspect, an apparatus for determining virtual machine resources is provided, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the parameters of the resources of a Host;
the building unit is used for determining the parameter of the resource of the virtual machine VM according to the parameter of the resource of the Host, and the parameter of the resource of the VM is proportional to the parameter of the resource of the Host.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the resource of the VM is greater than or equal to a resource required for running a sub-service.
In a fifth aspect, a computer program product is provided for executing the first aspect or any one of the first to fifth possible implementation manners of the first aspect.
According to the method for determining the resources of the virtual machine, provided by the embodiment of the invention, the parameters of the resources indicated by the VNFD are determined to be proportional to the parameters of the resources of the Host, so that the parameters of the resources of the VM are proportional to the parameters of the resources indicated by the VNFD, the parameter specification of the resources of the VM is reconstructed, the resource fragments in the Host can be reduced, the waste of the resources is avoided, and the problem of low running efficiency of the virtual machine is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of an NFV architecture according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining virtual machine resources according to an embodiment of the present invention;
fig. 3 is a schematic diagram of determining virtual machine resources according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for determining virtual machine resources according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for determining virtual machine resources according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another apparatus for determining virtual machine resources according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another apparatus for determining virtual machine resources according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for determining virtual machine resources in an NFV environment is provided for an embodiment of the present invention, where an existing NFV architecture is as shown in fig. 1, and functional objects such as a network function virtualization infrastructure NFVI (NFVI), a Virtual Network Function (VNF), a Virtual Infrastructure Manager (VIM), a VNF Manager (VNF Manager, VNFM), a network function virtualization Orchestrator (NFV editor, NFVO), and a Virtual Network Function (VNF) are defined in the architecture.
The NFVI provides a cloud infrastructure layer, the VNF is a cloud network element application, and the NFVI and the VNF communicate through a Vn-Nf interface; the VIM is responsible for infrastructure layer management, the VNFM is responsible for life cycle management of the VNF, and the VNFM and the VIM are communicated through a Vi-Vnfm interface; the NFVO is responsible for the life cycle management of the service; an Operation Support System (OSS)/service support system (BSS) is a network manager of a cloud system, and the NFVO and the OSS/BSS are communicated through an Os-Nfvo interface; an Element Management System (EMS) is a network manager of a conventional CT telecommunication network element, which connects the OSS/BSS and the VNF. The deployment and operational behavior of each VNF is described by a template of a Virtualized Network Function Descriptor (VNFD) and is deposited in a VNF directory (VNF Catalog). NFV management and orchestration (MANO) uses VNFD to create VNF instances and manage the lifecycle of these instances. The VNFD has a one-to-one correspondence with the VNF package, and fully describes the characteristics and requirements necessary to implement one VNF. NFVI resources are allocated to VNFs based on the requirements described in the VNFD, while also taking into account specific requirements, constraints and policies set in advance.
As shown in fig. 2, the method for determining virtual machine resources provided in the embodiment of the present invention may be applied to an NFV architecture shown in fig. 1, and includes the following steps:
201. the VNFM determines parameters of the resources indicated by the VNFD;
the parameter of the resource indicated by the VNFD may be adjusted and set, for example, the parameter of the resource indicated by the VNFD may be set according to the parameter of the resource of Host. The specific implementation mode is as follows:
after the Host is started, the parameter of the resource of the Host is stored in the VIM, and the VNFM can obtain the parameter of the resource of the Host in the VIM through the Vi-VNFM interface, for example, there may be two ways as follows:
periodic checking
The VNFM periodically (e.g., once a minute frequency) sends a query request to the VIM, and the VIM sends the parameters of the resources of the Host to the VNFM, for example, the VIM may send the parameters of the resources of the Host to the VNFM through a Vi-VNFM interface.
2, triggering report
When the Host is added or deleted, the VIM may call a Vi-VNFM interface between the Host and the VNFM in a reverse direction, and send parameters of resources of the Host to the VNFM.
In this embodiment, the parameters of the Host resource, the parameters of the VNFD-indicated resource, and the parameters of the VM resource all represent resource dimensions, and the most common three resource dimensions are taken as examples in the embodiment of the present invention, as shown in fig. 3, that is, the CPU Host frequency, the memory size, and the storage space. It is understood that the above three dimensions are only an exemplary example, one or more of which may be selected, and other resource dimensions may also be selected, and are not limited herein.
For example, when the parameters of the acquired Host resource are:
a CPU: 16 × 2.2G Hz, memory: 64GB, store: 16T
According to the parameter of the resource of the Host, the parameter manner of constructing the resource indicated by the VNFD is as follows:
according to the Host CPU frequency, the memory size, and the storage space of the Host, the parameters of the resources indicated by the VNFD are constructed in equal proportion, for example, the parameters of the resources indicated by the VNFD may be constructed as follows:
a CPU: 1 × 2.2G Hz, memory: 4GB, storing: 1T of the total weight of the steel,
of course, other specifications may be constructed, such as:
a CPU: 2 × 2.2G Hz, memory: 8GB, storing: 2T, specifically constructing parameters of resources indicated by the VNFD, and also meeting the resources required by the operation service function, wherein the parameters can be understood as the minimum CPU main frequency, the minimum memory size and the minimum storage space required by meeting a certain service function;
for example, running a call service, the minimum resources required are:
a CPU: 1.4 × 2.2G Hz, memory: 3GB, storing: 0.7T, then in order to meet the resource required for operating the paging service, the parameter of the resource indicated by the VNFD should be greater than or equal to the resource required for operating the paging service, that is, each resource dimension needs to be greater than the resource required for operating the GIA call service, and at this time, the parameter specification of the resource indicated by the VNFD may be configured as:
a CPU: 2 × 2.2G Hz, memory: 8GB, storing: 2T.
202. And the VNFM determines the parameters of the resources of the virtual machine VM according to the parameters of the resources indicated by the VNFD, and the parameters of the resources of the VM are proportional to the parameters of the resources indicated by the VNFD.
After determining the resource parameter indicated by the VNFD, for example, when the parameter of the resource indicated by the VNFD is determined as:
a CPU: 2 × 2.2G Hz, memory: 8GB, storing: 2T;
then the specification of the VM is built according to equal proportions;
meanwhile, in order to ensure that the VM can satisfy the minimum resource required for operating the service function, the determined VM specification needs to be equal to or greater than the resource required for operating the sub-service function.
For example, a certain call service is operated, the whole service is divided into a plurality of sub-services, and a certain sub-service with the minimum required resource is selected as a reference, for example, the resources required by the sub-service are as follows:
CPU 0.5X 2.2G Hz, memory 1.5G Hz, store 0.4T
The VM may be built as:
CPU 0.5X 2.2G Hz, memory 2G Hz, memory 0.5T
The resources such as the CPU main frequency, the memory size and the storage space of the constructed VM can cover the minimum resource required by the operation of the minimum sub-service function, and are proportional to the parameters of the resources indicated by the VNFD.
According to the method for determining the resources of the virtual machine, provided by the embodiment of the invention, the parameters of the resources indicated by the VNFD are determined to be proportional to the parameters of the resources of the Host, so that the parameters of the resources of the VM are proportional to the parameters of the resources indicated by the VNFD, the parameter specification of the resources of the VM is reconstructed, and the resource fragments in the Host can be reduced to a great extent; furthermore, as the VM constructed as described above can greatly reduce the fragments, make full use of the Host resources, and when the service operation resources need to be increased, the fragment resources in the Host can be preferentially utilized, thereby reducing the chance of increasing another Host.
An embodiment of the present invention provides another method for determining resources of a virtual machine, where the method may be applied to an existing NFV architecture, and unlike the foregoing embodiment, a parameter of a resource indicated by a VNFD is fixed and is not adjustable. Specifically, as shown in fig. 4, the method includes the following steps:
401. the VNFM acquires parameters of the resources of the Host,
after the Host is started, the parameter of the resource of the Host is stored in the VIM, and the VNFM may obtain the parameter of the resource of the Host in the VIM through the Vi-VNFM interface, and specifically may obtain the parameter of the resource of the Host through periodic checking or triggering reporting, where the specific implementation manner is described in detail in the foregoing embodiments, and is not described here again.
402. And the VNFM determines the parameters of the resources of the VM according to the acquired parameters of the resources of the Host, wherein the parameters of the resources of the VM are proportional to the parameters of the resources of the Host.
Constructing parameters of the resources of the VM according to the proportion of the parameters of the resources of the Host, so that the parameters of the resources of the VM are proportional to the parameters of the resources of the Host;
for example, when the parameters of the acquired Host resource are:
a CPU: 16 × 2.2G Hz, memory: 64GB, store: the temperature of the waste water is 16T,
then the specification of the VM can be scaled down equally, so the parameters of the resources of the VM can be built as follows:
CPU 0.5X 2.2G Hz, memory 2G Hz, store 0.5T.
Optionally, in this embodiment, a parameter of a resource of the VM may also be constructed according to a ratio of a parameter of a resource indicated by the VNFD, so that the parameter of the resource of the VM is proportional to the parameter of the resource of the VNDF.
For example, when the VNFD preset by the manufacturer indicates that the resource parameters are:
a CPU: 3 × 2.2G Hz, memory: 12GB, store: 12T.
Then the parameters of the resources of the VM may be scaled down, for example, the parameters of the resources of the VM are built into the following specifications:
CPU 0.5X 2.2G Hz, memory 2T.
In order to ensure that the VM can run the sub-service function, the parameters of the determined resources of the VM need to be equal to or greater than the resources required for running the sub-service function;
for example, a certain call service is operated, the whole service is divided into a plurality of sub-services, and a certain sub-service with the minimum required resource is selected as a reference, for example, the resources required by the sub-service are as follows:
CPU 0.5X 2.2G Hz, memory 1.5G Hz, store 0.4T
The VM may be built as:
the CPU is 0.5 × 2.2G Hz, the memory is 1.5G Hz, and stores 0.4T, it can be understood that the VM may also be constructed in other specifications, and theoretically, as long as the specification is satisfied and is greater than or equal to the resource required for operating the service function, the resources such as the CPU main frequency, the memory size, the storage space, and the like of the constructed VM can cover the minimum resource required for operating the minimum sub-service function.
According to the method for determining the resources of the virtual machine, provided by the embodiment of the invention, the VM parameters are constructed according to the parameters of the resources indicated by the VNFD or the parameters of the resources of the Host, so that the parameters of the resources of the VM are in proportion to the parameters of the resources indicated by the VNFD or the parameters of the resources of the Host, the parameter specification of the resources of the VM is reconstructed, and the resource fragments in the Host can be reduced to a great extent; furthermore, as the VM constructed as described above can greatly reduce the fragments, make full use of the Host resources, and when the service operation resources need to be increased, the fragment resources in the Host can be preferentially utilized, thereby reducing the chance of increasing another Host.
An embodiment of the present invention provides an apparatus for determining virtual machine resources, as shown in fig. 5, including a first constructing unit 501, an obtaining unit 502, and a second constructing unit 503, which may be applied to the NFV architecture shown in fig. 1, and specifically may implement the steps shown in fig. 2:
a first constructing unit 501, configured to construct a parameter of a resource indicated by the VNFD;
in this embodiment, the parameter of the resource indicated by the VNFD may be adjusted and set, for example, the parameter of the resource indicated by the VNFD may be set according to the parameter of the resource of Host. The specific implementation mode is as follows:
after the Host is started, the parameter of the resource of the Host is stored in the VIM, and the obtaining unit 502 may obtain the parameter of the resource of the Host in the VIM through the Vi-Vnfm interface, for example, there may be the following two ways: and periodically checking and triggering a reporting mode.
In the periodic check mode, the obtaining unit 502 sends a query request to the VIM periodically (for example, at a frequency of once a minute), and the VIM sends the parameter of the resource of the Host to the VNFM, for example, the VIM may send the parameter of the resource of the query Host to the VNFM through a Vi-VNFM interface.
In the triggered reporting, when the Host is added or deleted, the VIM may call back a Vi-Vnfm interface with the device, and send the parameters of the resources of the Host to the device.
For example, when the parameters of the acquired Host resource are:
a CPU: 16 × 2.2G Hz, memory: 64GB, store: 16T
According to the parameter of the resource of the Host, the first constructing unit 501 constructs the parameter of the resource indicated by the VNFD as follows:
the resource parameters of the VNFD are constructed in equal proportion according to the Host frequency of the CPU, the memory size, and the storage space of the Host, for example, the resource parameters of the VNFD may be constructed as follows:
a CPU: 1 × 2.2G Hz, memory: 4GB, storing: 1T of the total weight of the steel,
of course, other specifications may be constructed, such as:
a CPU: 2 × 2.2G Hz, memory: 8GB, storing: 2T, the parameter specification of the specifically constructed resources indicated by the VNFD is also required to meet the resources required by the operation service function, and can be understood as the minimum CPU main frequency, the minimum memory size and the minimum storage space required by meeting a certain service function;
for example, running a call service, the minimum resources required are:
a CPU: 1.4 × 2.2G Hz, memory: 3GB, storing: 0.7T, then in order to meet the resources required for running the paging service, the resource parameter of the VNFD should be greater than or equal to the resources required for running the paging service, that is, each resource dimension needs to be greater than the resources required for running the GIA call service, and at this time, the resource specification of the VNFD may be constructed as follows:
a CPU: 2 × 2.2G Hz, memory: 8GB, storing: 2T.
A second constructing unit 503, configured to determine, according to the determined parameter of the resource indicated by the VNFD, a parameter of a resource of the virtual machine VM, where the parameter of the resource of the VM is proportional to the parameter of the resource indicated by the VNFD.
After determining the resource parameter indicated by the VNFD, for example, when the parameter of the resource indicated by the VNFD is determined as:
a CPU: 2 × 2.2G Hz, memory: 8GB, storing: 2T;
the second construction unit 503 constructs the specification of the VM according to the equal proportion;
meanwhile, in order to ensure that the VM can satisfy the minimum resource required for operating the service function, the determined VM specification needs to be equal to or greater than the resource required for operating the sub-service function.
For example, a certain call service is operated, the whole service is divided into a plurality of sub-services, and a certain sub-service with the minimum required resource is selected as a reference, for example, the resources required by the sub-service are as follows:
CPU 0.5X 2.2G Hz, memory 1.5G Hz, store 0.4T
The VM may be built as:
CPU 0.5X 2.2G Hz, memory 2G Hz, memory 0.5T
The resources such as the CPU main frequency, the memory size, the storage space and the like of the constructed VM can cover the minimum resource required by the operation of the minimum sub-service function, and are in proportion to the resource parameter specification of the VNFD.
According to the device for determining the resources of the virtual machine, provided by the embodiment of the invention, the first construction unit is used for constructing the parameter of the resources indicated by the VNFD to be proportional to the parameter of the resources of the Host, and the second construction unit is used for further determining the parameter of the resources of the VM, so that the parameter of the resources of the VM is proportional to the parameter of the resources indicated by the VNFD, and the parameter specification of the resources of the VM is reconstructed, so that the resource fragments in the Host can be reduced to a great extent; furthermore, as the VM constructed as described above can greatly reduce the fragments, make full use of the Host resources, and when the service operation resources need to be increased, the fragment resources in the Host can be preferentially utilized, thereby reducing the chance of increasing another Host.
An embodiment of the present invention provides another apparatus for determining resources of a virtual machine, which includes, as shown in fig. 6, an obtaining unit 601 and a constructing unit 602, and the apparatus may be applied to an existing NFV architecture, and unlike the foregoing embodiment, a parameter of a resource indicated by a VNFD is fixed and is not adjustable. The method steps shown in fig. 4 can be specifically implemented:
an obtaining unit 601, configured to obtain a parameter of a resource of a Host,
after the Host is started, the parameter of the resource of the Host is stored in the VIM, the VNFM may obtain the parameter of the resource of the Host in the VIM through a Vi-VNFM interface, and the obtaining unit 601 may specifically obtain the parameter of the resource of the Host through a periodic check or a triggered reporting manner, where a specific implementation manner is described in detail in the foregoing embodiment, and is not described here again.
A constructing unit 602, configured to determine a parameter of a resource of a VM of a virtual machine according to an obtained parameter of a resource of a Host, where the parameter of the resource of the VM is proportional to the parameter of the resource of the Host.
And constructing the parameters of the resources of the VM according to the proportion of the parameters of the resources of the Host, so that the parameters of the resources of the VM are proportional to the parameters of the resources of the Host.
Optionally, in this embodiment, the obtaining unit 601 may also construct a parameter of the resource of the VM according to a ratio of the parameter of the resource indicated by the VNFD, so that the parameter of the resource of the VM is proportional to the parameter of the resource of the VNDF.
The building unit 602 specifically builds the parameter of the resource of the VM according to the parameter of the resource of the Host or the parameter of the resource indicated by the VNFD in the foregoing embodiment, which is not described herein again.
According to the device for determining the resources of the virtual machine, provided by the embodiment of the invention, the construction unit constructs the VM parameters through the parameters of the resources indicated by the VNFD or the parameters of the resources of the Host, so that the parameters of the resources of the VM are in proportion to the parameters of the resources indicated by the VNFD or the parameters of the resources of the Host, the parameter specification of the resources of the VM is reconstructed, and the resource fragments in the Host can be reduced to a great extent; furthermore, as the VM constructed as described above can greatly reduce the fragments, make full use of the Host resources, and when the service operation resources need to be increased, the fragment resources in the Host can be preferentially utilized, thereby reducing the chance of increasing another Host.
Fig. 7 is a device for determining virtual machine resources according to an embodiment of the present invention, as shown in fig. 7, including a processor 701 and a memory 702.
The memory 702 is used for storing a program executed by the processor 701, the program comprising instructions for performing the method steps of:
and acquiring the parameters of the resources of the Host.
After the Host is started, the resource parameter of the Host is stored in the VIM, and the processor 701 may obtain the resource parameter of the Host in the VIM through the Vi-Vnfm interface, and may specifically be implemented by periodically checking, triggering and reporting, and the like.
And according to the acquired parameters of the resources of the Host, determining the parameters of the resources indicated by the VNFD in equal proportion. The processor 701 is further configured to determine, according to the determined parameter of the resource indicated by the VNFD, a parameter of the resource of the VM in an equal proportion. The specific determination of the parameters of the resources indicated by the VNFD and the parameters of the resources of the VM has been described in detail in the foregoing embodiments.
Optionally, the parameter of the resource of the VM may also be determined directly according to the ratio of the Host according to the obtained parameter of the resource of the Host.
Alternatively, when the parameter of the resource indicated by the VNFD is not adjustable, that is, the parameter of the resource indicated by the VNFD is preset by the vendor. The processor 701 and the receiver 702 are configured to receive a parameter of a resource indicated by a VNFD, and the processor 701 determines, according to the parameter of the resource indicated by the VNFD received by the receiver 702, the parameter of the resource of the VM in an equal proportion according to the parameter of the resource indicated by the VNFD. The determination of the parameters of the resources of the VM according to the preset parameters of the resources indicated by the VNFD obtained by the receiver 702 has been described in detail in the foregoing embodiments.
Embodiments of the present invention provide a computer program product that may perform the method steps as described in the method embodiments above.
In the several embodiments provided in the present application, it should be understood that the disclosed method and base station may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for determining virtual machine resources, comprising:
the virtual network function manager VNFM determines parameters of resources indicated by the virtual network descriptor VNFD;
the VNFM determines parameters of resources of a Virtual Machine (VM) according to the parameters of the resources indicated by the VNFD, the parameters of the resources of the VM are proportional to the parameters of the resources indicated by the VNFD, and the resources of the VM are smaller than the resources indicated by the VNFD;
wherein the determining the resource parameter indicated by the VNFD comprises:
the VNFM acquires the parameters of the resources of the Host; the VNFM determines a parameter of the resource indicated by the VNFD according to a parameter of the resource of the Host, wherein the parameter of the resource indicated by the VNFD is proportional to the parameter of the resource of the Host, and the resource indicated by the VNFD is smaller than the parameter of the resource of the Host; wherein, the obtaining, by the VNFM, the parameters of the resources of the Host includes: acquiring the parameters of the Host resources through a Vi-Vnfm interface in a mode of periodically checking or triggering reporting;
the parameters of the Host resource, the VNFD resource and the VM resource represent resource dimensions;
wherein,
the resource indicated by the VNFD is greater than or equal to the resource required by the operation service; or the resources of the VM are larger than or equal to the resources required for running the sub-services, and the services are composed of one or more sub-services.
2. A method for determining virtual machine resources, comprising:
the VNFM acquires the parameters of the resources of the Host;
the VNFM determines the parameters of the resources of the VM according to the parameters of the resources of the Host, and the parameters of the resources of the VM are proportional to the parameters of the resources of the Host; wherein, the obtaining, by the VNFM, the parameters of the resources of the Host includes: acquiring the parameters of the Host resources through a Vi-Vnfm interface in a mode of periodically checking or triggering reporting;
the parameters of the Host resource, the VNFD resource and the VM resource represent resource dimensions;
and the resources of the VM are greater than or equal to the resources required for running the sub-services.
3. An apparatus for determining virtual machine resources, comprising:
a determining unit for determining a parameter of a resource indicated by a VNFD;
a building unit, configured to determine, according to the determined parameter of the resource indicated by the VNFD, a parameter of a resource of a virtual machine VM, where the parameter of the resource of the VM is proportional to the parameter of the resource indicated by the VNFD;
wherein the determining the parameter of the resource indicated by the VNFD comprises:
the acquisition unit is used for acquiring the parameters of the Host resources, and specifically comprises the steps of acquiring the parameters of the Host resources through a Vi-Vnfm interface in a periodic checking or report triggering manner;
the constructing unit is further configured to determine, according to the parameter of the resource of the Host, a parameter of the resource indicated by the VNFD, where the parameter of the resource indicated by the VNFD is proportional to the parameter of the resource of the Host;
the parameters of the Host resource, the VNFD resource and the VM resource represent resource dimensions;
wherein,
the resource indicated by the VNFD is greater than or equal to the resource required by the operation service; or the resources of the VM are larger than or equal to the resources required for running the sub-services.
4. An apparatus for determining virtual machine resources, comprising:
the acquisition unit is used for acquiring the parameters of the Host resources, and specifically comprises the steps of acquiring the parameters of the Host resources through a Vi-Vnfm interface in a periodic checking or report triggering manner;
the building unit is used for determining the parameter of the resource of the virtual machine VM according to the parameter of the resource of the Host, and the parameter of the resource of the VM is proportional to the parameter of the resource of the Host; the parameters of the Host resource, the VNFD resource and the VM resource represent resource dimensions;
and the resources of the VM are greater than or equal to the resources required for running the sub-services.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by hardware, is adapted to implement the method of claims 1-2.
CN201480036192.XA 2014-12-11 2014-12-11 Method, device and program product for determining virtual machine resources Active CN106170769B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/093607 WO2016090608A1 (en) 2014-12-11 2014-12-11 Method and apparatus for determining virtual machine resource and program product

Publications (2)

Publication Number Publication Date
CN106170769A CN106170769A (en) 2016-11-30
CN106170769B true CN106170769B (en) 2020-01-21

Family

ID=56106476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480036192.XA Active CN106170769B (en) 2014-12-11 2014-12-11 Method, device and program product for determining virtual machine resources

Country Status (2)

Country Link
CN (1) CN106170769B (en)
WO (1) WO2016090608A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355602B (en) * 2018-12-21 2021-11-30 华为技术有限公司 Resource object management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426542A (en) * 2011-10-28 2012-04-25 中国科学院计算技术研究所 Resource management system for data center and operation calling method
CN103176847A (en) * 2011-12-26 2013-06-26 英业达集团(天津)电子技术有限公司 Virtual machine distribution method
CN103870314A (en) * 2014-03-06 2014-06-18 中国科学院信息工程研究所 Method and system for simultaneously operating different types of virtual machines by single node
CN103870339A (en) * 2014-03-06 2014-06-18 上海华为技术有限公司 Cluster resource allocation method and cluster resource allocation device
CN104050045A (en) * 2014-06-27 2014-09-17 华为技术有限公司 Method and device for distributing virtual resources based on disk IO

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521055B (en) * 2011-12-15 2013-12-11 广州杰赛科技股份有限公司 Virtual machine resource allocating method and virtual machine resource allocating system
US9405588B2 (en) * 2012-05-18 2016-08-02 Alcatel Lucent Cloud resource allocation system and method
CN103049309B (en) * 2012-12-11 2017-09-29 华为技术有限公司 Resource management apparatus, the method and system of virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426542A (en) * 2011-10-28 2012-04-25 中国科学院计算技术研究所 Resource management system for data center and operation calling method
CN103176847A (en) * 2011-12-26 2013-06-26 英业达集团(天津)电子技术有限公司 Virtual machine distribution method
CN103870314A (en) * 2014-03-06 2014-06-18 中国科学院信息工程研究所 Method and system for simultaneously operating different types of virtual machines by single node
CN103870339A (en) * 2014-03-06 2014-06-18 上海华为技术有限公司 Cluster resource allocation method and cluster resource allocation device
CN104050045A (en) * 2014-06-27 2014-09-17 华为技术有限公司 Method and device for distributing virtual resources based on disk IO

Also Published As

Publication number Publication date
CN106170769A (en) 2016-11-30
WO2016090608A1 (en) 2016-06-16

Similar Documents

Publication Publication Date Title
US11403127B2 (en) Generating a virtual machines relocation protocol
US9684542B2 (en) Smart cloud workload balancer
EP3401787B1 (en) Analyzing resource utilization of a cloud computing resource in a cloud computing environment
US20190026344A1 (en) Application Recommending Method and System, and Server
Sotiriadis et al. SimIC: Designing a new inter-cloud simulation platform for integrating large-scale resource management
US10324754B2 (en) Managing virtual machine patterns
CN106663012B (en) Hardware acceleration method and related equipment
US9823941B2 (en) Optimized placement of virtual machines on physical hosts based on user configured placement policies
US20160154665A1 (en) Virtual machine deployment method, virtual machine deployment program, and virtual machine deployment system
US8972941B2 (en) Integrated development environment-based workload testing in a networked computing environment
US20140282540A1 (en) Performant host selection for virtualization centers
CN103034526B (en) A kind of implementation method of virtualization services and device
CN105308553A (en) Dynamically provisioning storage
US20190163588A1 (en) Proactively predicting failure in data collection devices and failing over to alternate data collection devices
JPWO2018181961A1 (en) Virtual network function management device, virtual infrastructure management device, and virtual network function construction method
CN111506414A (en) Resource scheduling method, device, equipment, system and readable storage medium
CN106170769B (en) Method, device and program product for determining virtual machine resources
JP2016143365A (en) Virtualization base selection device and method thereof and program
CN106325972B (en) Virtual machine management method and network equipment
CN107562510B (en) Management method and management equipment for application instances
US11983576B2 (en) Accessing topological mapping of cores
CN109343935A (en) The instantiation method and device of consumer VNF
CN110351104A (en) A kind of VIM selection method and device
CN115080220A (en) Cloud resource allocation method and equipment
CN103186423A (en) Migration method for virtual machine, and cloud servosystem

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant