A virtual machine dynamic deployment method based on double cursor control mechanism

Dynamically adjusting CPU and memory resources through the dual cursor control mechanism solves the problems of high energy consumption and low resource utilization during virtual machine deployment in the cloud platform, achieves efficient resource utilization and virtual machine migration optimization, and provides highly reliable Service guarantee.

CN112363808BActive Publication Date: 2024-09-13HUNAN WOMENS UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011364154.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-09-13
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

During the deployment process of virtual machines in cloud platforms, there are problems such as high energy consumption, low resource utilization, and difficulty in resource prediction, leading to problems such as increased response time, interaction timeout, and deployment failure.

Method used

Adopting a virtual machine dynamic deployment method based on a dual cursor control mechanism, by dynamically adjusting CPU and memory resources, a coordinated state of resource mixing is achieved, breaking the boundaries of physical nodes, improving resource utilization, and optimizing resources through resource mapping and integration curves configuration.

Benefits of technology

It effectively improves resource utilization, reduces the number of virtual machine migrations and energy consumption, provides highly reliable QoS guarantees, and solves the problem of hindering resource prediction during virtual machine deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112363808B
    Figure CN112363808B
Patent Text Reader

Abstract

The present invention discloses a virtual machine dynamic deployment method based on a dual cursor control mechanism, which relates to the technical field of virtual machine data allocation. The specific scheme is as follows: S1: The physical resource constraint set is PRS, and the user at a time point t i The resource demand state is RDS(t i ), user U i The rate of change of demand is Ra(U i ); The cloud platform includes H data centers, and the total resources of all data centers are #imgabs0#S2: Data center resource configuration; S3: Build a resource supply service framework, dynamically recycle resources according to the dynamic needs of users, and collect the current resource collection. This application proposes a dual cursor control method for virtual machine deployment based on a dual cursor dynamic coordination mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of virtual machine data allocation, and more specifically, to a virtual machine dynamic deployment method based on a dual cursor control mechanism. Background Art

[0002] To a certain extent, cloud computing is an effective extension of traditional parallel computing, distributed computing, grid computing and benefit computing. At present, the research on cloud resource management mainly focuses on the following three aspects: first, reducing the energy consumption of cloud platforms; second, improving the utilization of system resources; third, improving the fault tolerance of virtual machine deployment based on economic resource management. Based on the virtual machine resource allocation model that maximizes user benefits, the virtual machine deployment mechanism in the cloud platform has a vital impact on the effective resource utilization and energy consumption.

[0003] However, in the actual working environment, the establishment of cloud data centers has led to huge energy consumption, and to a certain extent, it will also cause the software and hardware costs of operating service providers to continue to rise. The rapidly developing virtualization technology can already achieve an effective one-to-many correspondence between a single physical node and multiple virtual machine instances, and realizing personalized configuration of virtual machines has become the main trend at present. The personalized virtual machine resource configuration method can control the energy consumption problem of the data center as a whole, thereby further improving the resource utilization efficiency of each dimension. After a series of studies, it was found that the personalized resource demand of users has become a key factor in measuring virtual machine deployment in the cloud platform. This factor can be used to adjust the number of necessary active physical nodes in the cloud platform, so that the idle physical nodes can be switched to energy-saving mode. However, since user demand is directly related to load demand, this correlation has brought great obstacles to virtual machine resource prediction. If resources cannot be accurately predicted, a series of problems such as increased response time, interaction timeout, and even deployment failure will often occur during the virtual machine deployment process. Therefore, for resource suppliers, it is a key issue to handle the relationship between energy consumption and performance and provide highly reliable QoS guarantees while solving energy consumption.

[0004] The rapid development of cloud platform data centers has gradually exposed the problems of sharp increase in energy consumption, excessive migration of virtual machines, and reduced resource utilization, which have become the key issues facing the current cloud platform. The optimization methods used in the virtual machine deployment process in today's cloud platforms are mainly single-objective optimization and multi-objective optimization. For example, optimization is performed in terms of the number of physical nodes that need to be activated, application service quality, data center energy consumption, and virtual machine migration. However, in actual situations, there are often conflicts between the above factors. For example, if the number of physical nodes that need to be activated is reduced in the data center, it will lead to multiple migrations of virtual machines, increasing the number of virtual machine migrations, and at the same time, the overall energy consumption will also increase. Summary of the invention

[0005] In order to solve the above technical problems, a method for dynamic deployment of virtual machines based on a dual cursor control mechanism is provided, and the specific solution is as follows.

[0006] The above technical objectives of the present invention are achieved through the following technical solutions:

[0007] A method for dynamic deployment of virtual machines based on a dual cursor control mechanism comprises the following steps:

[0008] S1: The physical resource constraint set is PRS. The user at a time point t i The resource demand state is RDS(t i ), user U i The rate of change of demand is Ra(U i ); The cloud platform includes H data centers, and the total resources of all data centers are

[0009] S2: Data center resource configuration:

[0010]

[0011] The host CPU resource utilization is:

[0012]

[0013] The resource utilization of host memory is:

[0014]

[0015] Where: A data center includes m physical nodes, then data center DC = {dc1, dc2, dc3…, dc m}; Deployed virtual machine v j The host is DC i (v j ), where j = 1, 2, 3 ..., n; i = 1, 2, 3 ..., m; host DCi The set of virtual machines running on the i ), virtual machine v j The number of CPUs requested is CPU(VR i ), host DC i The total CPU resource requirement is Pcpu(DC i ), virtual machine v j The amount of memory requested is Mem(VR i ), host DC i The total memory allocated is Pmem (DC i );

[0016] The physical resources of the data center are RT, RT = {r1, r2, r3…r i ,…r m},in Resources i It is composed of w characteristic attributes of different dimensions. In a service cycle L, resource r i The available service time satisfies the distribution characteristics of Poisson distribution. Each resource is independent of each other and satisfies The available service vector in RT is SV = {sv1, sv2, ..., sv n}, where sv i (0≤i≤m) is the resource r i Available service rate;

[0017] Assume that the user needs to deploy a virtual machine set V = {v1, v2, v3…, v n}, at any time virtual machine v j Only one task completed j , and the virtual machine v j The kth task 0≤j≤n contains w characteristic attributes of different dimensions; virtual machine V m The task generation rate vector is Q = {q1,q2,q3,…,q j …,q n}, 0≤j≤n, where q j For the jth virtual machine v j The task generation rate is independent of each other, satisfying

[0018] S3: Build a resource supply service framework, dynamically recycle resources according to the dynamic needs of users, and collect the current resource collection.

[0019] As a preferred solution, in S2, task t j Assign to resource r i The probability of Pij , then the data resource probability allocation matrix P n×m =(P ij ) n×m ,and The cloud platform resource scheduling matrix is ​​M n×m =(M ij ) n×m , when the virtual machine v j Assigned to resource node r i M ij =1, otherwise M ij =0, and the following conditions are met:

[0020]

[0021] As a preferred solution, during the resource allocation process, any dimensional resource allocated cannot exceed the sum of the physical resources of the resource, and the sum of the resources reflected in all virtual machines cannot exceed 75% of the physical resources.

[0022] As a preferred solution, the S3 process specifically includes the following steps:

[0023] T1: Establish a physical resource planning center to classify resources. The system analyzes the resource complex composed of several physical nodes, decomposes the categories of CPU resources and memory resources of each physical node and the corresponding specific resource quantities, forms a unified and independent multi-category resource platform, and breaks the limitations of the physical boundaries of physical nodes.

[0024] T2: Analyze and classify user needs; effectively correspond the resource demand granularity of each user with the existing physical resources;

[0025] T3: Build the same physical resource mapping.

[0026] As a preferred solution, the T1 process specifically includes the following steps:

[0027] R1: Get the CPU computing power and memory capacity;

[0028] R2: Initialize resource pool;

[0029] R3: traverse the set of physical nodes in the current state and number each physical node;

[0030] R4: accumulates the CPU and memory resources in the order of the physical node numbers;

[0031] R5: Push the resource sequence into the resource pool at once and create a chain pointer for each resource;

[0032] R6: Get the resource sequence corresponding to each pointer.

[0033] As a preferred solution, the T3 process specifically includes the following steps:

[0034] Y1: Create an empty user demand queue;

[0035] Y2: Enqueue according to the actual order of user needs;

[0036] Y3: Read t from the user demand queue i According to user needs at all times, select resource pointers from the resource pool according to user needs;

[0037] Y4: Read t i According to user needs at all times, select resource pointers from the resource pool according to user needs;

[0038] Y5: Calculate the ordered pair set of c and m:

[0039]

[0040] Among them, c is the CPU resource, m is the memory resource;

[0041] Meet the following requirements:

[0042]

[0043] Y6: Allocate and encapsulate virtual machine resources.

[0044] A virtual machine resource allocation method based on a dual cursor control mechanism comprises the following steps:

[0045] S1: Construction constraints:

[0046]

[0047] Right now:

[0048]

[0049] S2: Add two line integrals:

[0050]

[0051] S3: The following conclusions were drawn:

[0052]

[0053]

[0054] S4: Determine the two-dimensional resources according to Green's formula and obtain a unique value of the resource indicator on the integral curve.

[0055] As a preferred solution, the method further comprises the following steps:

[0056] T1: Establish a physical resource planning center to classify resources. The system analyzes the resource complex composed of several physical nodes, decomposes the categories of CPU resources and memory resources of each physical node and the corresponding specific resource quantities, forms a unified and independent multi-category resource platform, and breaks the limitations of the physical boundaries of physical nodes.

[0057] T2: Analyze and classify user needs; effectively correspond the resource demand granularity of each user with the existing physical resources;

[0058] T3: Build the same physical resource mapping.

[0059] As a preferred solution, the T1 process specifically includes the following steps:

[0060] R1: Get the CPU computing power and memory capacity;

[0061] R2: Initialize resource pool;

[0062] R3: traverse the set of physical nodes in the current state and number each physical node;

[0063] R4: accumulates the CPU and memory resources in the order of the physical node numbers;

[0064] R5: Push the resource sequence into the resource pool at once and create a chain pointer for each resource;

[0065] R6: Get the resource sequence corresponding to each pointer.

[0066] As a preferred solution, the T3 process specifically includes the following steps:

[0067] Y1: Create an empty user demand queue;

[0068] Y2: Enqueue according to the actual order of user needs;

[0069] Y3: Read t from the user demand queue i According to user needs at all times, select resource pointers from the resource pool according to user needs;

[0070] Y4: Read t i According to user needs at all times, select resource pointers from the resource pool according to user needs;

[0071] Y5: Calculate the ordered pair set of c and m:

[0072]

[0073] Among them, c is the CPU resource, m is the memory resource;

[0074] Meet the following requirements:

[0075]

[0076] Y6: Allocate and encapsulate virtual machine resources.

[0077] In summary, the present invention has the following beneficial effects:

[0078] This application proposes a dual cursor control method for virtual machine deployment based on a dual cursor dynamic coordination mechanism. The dual cursor mechanism is a dynamic measurement and adjustment mechanism for specific resources (for example, CPU and memory). Through the cursor mechanism, the CPU and memory can be dynamically adjusted to a coordinated state of resource mixing, effectively improving resource utilization. The dual cursor two-dimensional resource control mechanism plays an important role in the deployment of virtual machines for personalized resource integration and virtual machine migration. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 is a schematic diagram of a dual cursor mechanism according to an embodiment of the present invention;

[0080] Figure 2 is a resource request flow chart of an embodiment of the present invention;

[0081] Figure 3 is a flowchart of user demand matching in an embodiment of the present invention;

[0082] Figure 4 is a cloud platform virtual machine mapping flow chart of different embodiments of the present invention;

[0083] Figure 5 Schematic diagram of loop integration according to different embodiments of the present invention. DETAILED DESCRIPTION

[0084] This specification and claims do not distinguish components by name, but by functional differences. As mentioned in the specification and claims, "including" is an open term and should be interpreted as "including but not limited to". "Substantially" means that within an acceptable error range, those skilled in the art can solve the technical problem within a certain error range and basically achieve the technical effect.

[0085] The directional terms such as up, down, left, right, etc. in this specification and claims are combined with the drawings for further explanation to make the present application more convenient to understand, and do not limit the present application. In different scenarios, up, down, left, right, inside and outside are all relative.

[0086] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0087] The cursor proposed in this application is not a cursor in the database, but refers to two measurement parameters in the resource allocation process. The dual-parameter collaborative control determines how the parameters are taken, so that the physical resources can achieve the best configuration effect. Simulating the vernier caliper in physics, only when the values ​​of the two dimensions are clamped tightly can the precise length of the object be measured. Of course, the caliper on the left and the vernier caliper can be in multiple different positions during the measurement process, so only by determining the relative parameter values ​​of both parties can the parameter values ​​in the resource allocation process be measured most accurately. In this application, CPU and memory are defined as two cursor parameters, referred to as dual cursors. The mechanism of cooperation between the two is defined as a dual cursor mechanism in this application.

[0088] A variety of physical devices constitute a collection of physical resources. Suppliers combine existing physical devices into a cloud platform (including several types of physical resources). A user demand interface is set up in the cloud platform. Users input their own needs in different time series, and the cloud platform allocates virtual machine resources to different users based on user needs (at a certain moment). For the cloud platform interface, a large number of user demands for resources will be collected in different time series to form a demand queue buffer, which will use time order as the condition for prioritizing resource allocation to form a demand waiting queue buffer. Each running task is executed in parallel, and the physical resources are recycled to the cloud platform after execution. The main process is shown in the following figure ( Figure 2 Resource request process).

[0089] In this application, a fixed time period is used as an example to illustrate the problem. Define the resource sequence of the user in time period T as R i , where t i is a time point greater than 0 and less than T (T>t i > 0, users can issue task resource requests at the same time). i represents the resource set required by user i, which can be specifically expressed as {r1,r2,r3,…r n}. In order to meet the user's resource needs at a certain moment, it is necessary to convert {r1, r2, r3, ... r n} is encapsulated into several independent virtual machines to form r s With v j (jth virtual machine) to ensure that each requirement is met. While considering the correspondence between resources and virtual machines at a certain point in time, we must also consider deploying resource requirements to as few virtual machines as possible. This will reduce the number of physical machines that are turned on in the actual state. Another issue that needs to be considered is t i Time to t i+1In the process of constant change, it is necessary to consider the degree of complementarity between CPU and memory, calculate which virtual machines can be merged and migrated, and dynamically adjust the demand for virtual machine resources and the number of physical machine resources according to the actual needs of users, effectively shut down idle physical nodes, thereby saving resource and energy costs. This application mainly completes the automatic allocation of virtual machine resources and the effective recovery of physical resources through automatic adjustment of CPU and memory dual cursors.

[0090] In order to achieve a unified representation of performance, this application uses the Microsoft virtual machine management technical report as a reference standard. First, the physical server resource evaluation standard mainly uses CPU and memory basic resources as measurement indicators. The problem process is described as follows. In the following representation, CPU and memory are equivalent to the two dimensions of the cursor. The correspondence between physical resources and virtual resources is completed by setting the value of the bidirectional cursor.

[0091] (1) At a certain moment, there are n physical nodes (M = {m1, m2, m3, ..., m n}, n represents the number of physical nodes in the cluster), and their resources mainly include memory, CPU, disk, network bandwidth and I / O resources.

[0092] (2) In a certain period of time, there are m virtual machines that need to be effectively placed (V = {v1, v2, v3, ..., v m}, m represents the number of virtual machines required in the cluster). Assume for the moment that the resource requirements of these virtual machines include memory, CPU, disk, network bandwidth, and I / O resources.

[0093] (3) It is necessary to find a reasonable mapping between the virtual machines and physical nodes required by the user. This mapping requirement can not only meet the resource requirements of each virtual machine, but also minimize the number of physical nodes used. At the same time, it is also necessary to ensure that in the mapping relationship, the total resources of each dimension required by the virtual machine should not exceed the total resources of each dimension on the physical node where it is placed.

[0094] In order to facilitate the explanation of the problem in the above multi-dimensional resources, only two key dimensional values ​​of CPU and memory are considered in this application.

[0095] The specific expression involved in this scheme is a physical resource constraint set represented as PRS. At a certain time point t i The resource demand state is expressed as RDS(t i ), user U i The rate of change of demand is expressed as Ra(U i ). A cloud platform is generally composed of several data centers. Assuming there are H data centers, the total resources in all data centers are expressed as

[0096] The physical configuration of data center hosts is diversified, and virtual machines generated according to user needs should be deployed on different physical nodes according to their specific needs. Assume that a data center consists of m physical nodes.

[0097] Then the data center is represented by DC = {dc1, dc2, dc3..., dc m}. Deployed virtual machine v j The host is represented by DC i (V j ), where j is between 1 and n, and i is between 1 and m. Host DC i The set of virtual machines running on the same virtual machine is denoted as V(DCi). The number of CPUs requested by virtual machine Vj is denoted as CPU(VR i ), host DC i The total CPU resource requirement is expressed as Pcpu(DC i ). j The amount of memory requested is Mem(VR i ). Host DC i The total memory allocation resource is represented as Pmem (DC i ).So

[0098]

[0099] The host CPU resource utilization is expressed as:

[0100]

[0101] The resource utilization of the host memory is expressed as:

[0102]

[0103] Memory utilization is defined as the total amount of allocated resources divided by the total amount of physical memory in the data center. Similarly, CPU utilization is expressed as the total amount of CPU resource allocation divided by the total amount of physical node resources. They are expressed as (1) and (2) respectively.

[0104] The physical resources of a data center are represented by RT (RT = {r1, r2, r3, r4, ..., r i ,.....,r m}),in Resources i It is composed of w characteristic attributes of different dimensions. In a service cycle L (a fixed time period is tentatively set as T, where T>L>0), resource r i The available service time satisfies the distribution characteristics of Poisson distribution, and each resource is independent of each other, that is, In addition, the available service vector in RT is represented by SV = {sv1, sv2, ..., sv n}, where sv i (0≤i≤m) is the resource r i Available service rate.

[0105] Assume that the user needs to deploy a virtual machine set V = {v1, v2, v3, ..., v n} to meet the needs of users. V is a virtual machine matrix consisting of n virtual machines that meets user needs. If at any time virtual machine v j Only one task completed j , and the virtual machine v j The kth task 0≤j≤n contains w characteristic attributes of different dimensions. The task generation rate vector of the virtual machine VM is represented by Q={q1,q2,q3,q4,...q j ...,q n},0≤j≤n, where q j represents the jth virtual machine v j The task generation rate is , and each task is independent of each other, that is, If the resource i Able to meet the task j , then t j can be assigned to r i Go up and perform the corresponding operation. Usually, it can meet the task t j Resources i Generally, there are multiple tasks, but in order to achieve effective and balanced allocation of resources in practice, task t j With a certain probability P ij Assign to resource r i Then the data resource probability allocation matrix P n×m =(P ij ) n×m ,and The cloud platform resource scheduling matrix is ​​represented as M n×m =(M ij ) n×m If the virtual machine v j Assigned to resource node r i M ij =1, otherwise M ij = 0. The following conditions must be met during the entire process:

[0106]

[0107] The resources represented in the resource matrix are allocated to the required user end in a fully probabilistic manner. And in the process of resource allocation, any dimension of resources allocated cannot exceed the sum of the physical resources of the resource. The sum of the resources reflected in all encapsulated virtual machines should not exceed the total number of physical resources, and generally should not exceed 75% of the physical resources, otherwise it will affect the system performance (according to Microsoft reports). Due to hardware limitations, this article mainly focuses on two key indicators: CPU and memory.

[0108] In this application, we assume that the load and power of physical nodes follow a linear relationship. In the actual environment of virtual machine deployment, the energy consumption of the host in the data center is related to the workload and depends on the utilization of resources such as CPU, memory, disk and network card. Most studies have shown that the energy consumption of the host mainly comes from the CPU and memory, and is highly positively correlated with the utilization of CPU and memory. Based on this, the M i The host single-point energy consumption and total energy consumption can be approximately expressed as:

[0109]

[0110] In the formula: EN i Indicates host M i Energy consumption due to changes in CPU utilization and memory, EC represents the total energy consumption of the data center. α and β are the related proportional coefficients between memory and CPU. In order to reduce energy consumption and save energy, the total energy consumption of the data center EC should be minimized, that is, Min(EC).

[0111] In order to effectively improve the efficiency of service resources based on the basic needs of users while satisfying the above resource constraint framework, the platform must first clarify that this dynamic framework is constantly changing during the dynamic change process. When resources change, service resources will also change. Since user needs are constantly changing, it is necessary to dynamically recycle and collect the current resource set in the first stage. Considering the main resource dimensions, the current work in this application is temporarily measured based on the two dimensional indicators of CPU and memory. Establish a physical resource planning model to effectively collect resource mechanisms

[0112] First, establish a physical resource planning center and classify resources reasonably. The system analyzes the resource complex composed of several physical nodes. It can decompose the categories of CPU resources and memory resources of each physical node and the corresponding specific resource quantities, thus forming a unified and independent multi-category resource platform. Ultimately, it quickly breaks the physical boundary limitations of physical nodes.

[0113] Second, user needs analysis and classification

[0114] Each incoming user demand (ultimately converted into resource demand) reflects the resource demand granularity of each user, and the granularity forms an effective correspondence with the existing physical resources. Therefore, limited physical resources need to be combined with specific granularity requirements to form an efficient resource correspondence relationship.

[0115] Third, unified physical resource mapping

[0116] The specific comprehensive resource mapping process is as follows Figure 3 and Figure 4 shown.

[0117] Under the influence of the memory and CPU dimensions, this application regards these two dimensions as the main factors. When users raise specific resource requirements, the combination of CPU and memory can be all combinations of the two-dimensional plane. Assuming that the two are regarded as loop curve integrals, then CPU and memory are randomly combined two-dimensional independent variables, such as Figure 5 shown.

[0118] This process is equivalent to loop integration based on two-dimensional variables. If the value of Z is defined as the loop integration function value, then the values ​​of C and M can be reversely deduced, that is, the effective value of the two-dimensional resource in the virtual resource range. The specific process is as above Figure 5 As shown:

[0119] First, the constraints should be met:

[0120]

[0121] Right now,

[0122]

[0123] Add two line integrals and we get the following formula 1.4:

[0124]

[0125] From formula (5), (6) and formula (7), we can get the following conclusions:

[0126]

[0127] According to Green's formula, within a closed interval, after determining the two-dimensional resources, a unique value of the resource indicator can be obtained on the integral curve. This is equivalent to a cursor with two dimensions that can be freely transformed. Then this method can be called a double cursor algorithm. As long as the specific point information on the loop integral is input, a relatively optimized CPU and Memory correspondence matrix can be obtained. Thus, an orderly resource configuration relationship constraint is formed.

[0128] Resource classification and aggregation algorithm

[0129] In summary, to complete the effective pairing of resources, we first need to perform a series of operations such as resource collection and classification. The typical resource collection and classification algorithm (Algorithm 1) is as follows: Algorithm 1: Typical resource collection and classification algorithm Input: physical node number, CPU number, type and memory storage capacity according to the node number sequence.

[0130] Output: Output CPU computing power and memory capacity by category

[0131] 1.Initialize(pool,c,m,s(c),s(m));

[0132] / / Initialize the resource pool, c represents CPU, m represents memory, s(c) represents the total number of CPUs, and s(m) represents the total amount of memory.

[0133] 2. Traverse the set of physical nodes in the current state (number each physical node);

[0134] 3. Accumulate the CPU and memory resources in the order of the physical node numbers;

[0135] 4. The resource sequence is pushed into the resource pool at one time, and a chain pointer (single linked list or double linked list form) is established for each resource;

[0136] 5. Output the resource sequence corresponding to each pointer.

[0137] Resource matching algorithm

[0138] 1. Create an empty user demand queue; Initialize(empty(Q(requirments)),c,m)

[0139] 2. Enqueue according to the actual order of user requirements; Q←requirments(c,m,ui)

[0140] 3. p(x)←RAND();

[0141] p(y)←RAND();

[0142] Read t from the user demand queue i User demand at the moment, select resource pointers from the resource pool according to user demand (ti moment is any moment during the service period);

[0143] 4. Read t i Always follow user needs and select resource pointers from the resource pool according to user needs.

[0144] for(i=1;i<=ti;i++)

[0145] cm read(c(ti),m(ti));

[0146] O←selection(c(ti),m(ti))

[0147] End for

[0148] Among them, cm represents the ordered pair of CPU and memory, and O is the optimal ordered pair of resource sequences of c and m selected for the user at time ti.

[0149] 5. Assume that c is the CPU resource and m is the memory resource. Combined with formula 1.5, calculate the ordered pair set of c and m that meets the condition requirements of formula 1.6.

[0150]

[0151] 6. Return to the even sequence of step 5. Complete the allocation and packaging of virtual machine resources according to this sequence.

[0152] S←results(best,c,m)

[0153] empty(Q(requirments))

[0154] 7.POOL←Q(requirments)

[0155] 8.Until empty(Q(requirments))

[0156] 9.Sort(POOL)

[0157] 10.Q←POOL[0]

[0158] 11.RETRURN S,Q

[0159] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. A method for dynamic deployment of virtual machines based on a dual cursor control mechanism, characterized in that: The following steps are involved: S1: The physical resource constraint set is PRS. The user at a time point t i The resource demand state is RDS(t i ), user U i The rate of change of demand is Ra(U i ); The cloud platform includes H data centers, and the total resources of all data centers are S2: Data center resource configuration: The host CPU resource utilization is: CPU(unity)=P cpu (DC i ) / t(CPU) (1) The resource utilization of host memory is: MEM(unity)=P mem (DC i ) / t(mem) (2) Where: A data center includes m physical nodes, then data center DC = {dc1, dc2, dc3…, dc m }; Deployed virtual machine v j The host is DC i (v j ), where j = 1, 2, 3 ..., n; i = 1, 2, 3 ..., m; host DC i The set of virtual machines running on the i ), virtual machine v j The number of CPUs requested is CPU(VR i ), host DC i The total CPU resource requirement is Pcpu(DC i ), virtual machine v j The amount of memory requested is Mem(VR i ), host DC i The total memory allocated is Pmem(DC i ); The physical resources of the data center are RT, RT = {r1, r2, r3…r i ,…r m },in Resources i It is composed of w characteristic attributes of different dimensions. In a service cycle L, resource r i The available service time satisfies the distribution characteristics of Poisson distribution. Each resource is independent of each other and satisfies The available service vector in RT is SV = {sv1, sv2, ..., sv n }, where sv i (0≤i≤m) is the resource r i Available service rate; Assume that the user needs to deploy a set of virtual machines V = {v1, v2, v3…, v n }, at any time virtual machine v j Only one task completed j , and the virtual machine v j The kth task 0≤j≤n contains w characteristic attributes of different dimensions; virtual machine V m The task generation rate vector is Q = {q1,q2,q3,…,q j …,q n }, 0≤j≤n, where q j For the jth virtual machine v j The task generation rate is independent of each other, satisfying t j ∈V; S3: Build a resource supply service framework, dynamically recycle resources according to the dynamic needs of users, and collect the current resource collection; In the S2 process, task t j Assign to resource r i The probability of P ij , then the data resource probability allocation matrix P n×m =(P ij ) n×m ,and The cloud platform resource scheduling matrix is ​​M n×m =(M ij ) n×m , when the virtual machine v j Assigned to resource node r i M ij =1, otherwise M ij =0, and the following conditions are met: The resources represented in the resource matrix are allocated to the required users in a fully probabilistic manner; The S3 process specifically includes the following steps: T1: Establish a physical resource planning center to classify resources; the system analyzes the resource complex composed of several physical nodes, decomposes the categories of CPU resources and memory resources of each physical node and the corresponding specific resource quantities; T2: Analyze and classify user needs; correspond the resource demand granularity of each user with the existing physical resources; T3: Build the same physical resource mapping; The T3 process specifically includes the following steps: Y1: Create an empty user demand queue; Y2: Enqueue according to the actual order of user needs; Y3: Read t from the user demand queue i According to user needs at all times, select resource pointers from the resource pool according to user needs; Y4: Read t i According to user needs at all times, select resource pointers from the resource pool according to user needs; Y5: Calculate the ordered pair set of c and m: Among them, c is the CPU resource, m is the memory resource; Meet the following requirements: Y6: Allocate and encapsulate virtual machine resources.

2. The method for dynamic deployment of virtual machines based on a dual cursor control mechanism according to claim 1, characterized in that: During resource allocation, any dimension of resources allocated cannot exceed the sum of the physical resources of the resource, and the sum of resources reflected in all virtual machines cannot exceed 75% of the physical resources.

3. The method for dynamic deployment of virtual machines based on a dual cursor control mechanism according to claim 1, characterized in that: The T1 process specifically includes the following steps: R1: Get the CPU computing power and memory capacity; R2: Initialize resource pool; R3: traverse the set of physical nodes in the current state and number each physical node; R4: accumulates the CPU and memory resources in the order of the physical node numbers; R5: Push the resource sequence into the resource pool at once and create a chain pointer for each resource; R6: Get the resource sequence corresponding to each pointer.