WO2015184612A1 - Resource scheduling method and apparatus - Google Patents

Resource scheduling method and apparatus Download PDF

Info

Publication number
WO2015184612A1
WO2015184612A1 PCT/CN2014/079233 CN2014079233W WO2015184612A1 WO 2015184612 A1 WO2015184612 A1 WO 2015184612A1 CN 2014079233 W CN2014079233 W CN 2014079233W WO 2015184612 A1 WO2015184612 A1 WO 2015184612A1
Authority
WO
WIPO (PCT)
Prior art keywords
load
trend
resource
optional
vnf
Prior art date
Application number
PCT/CN2014/079233
Other languages
French (fr)
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 华为技术有限公司
Priority to PCT/CN2014/079233 priority Critical patent/WO2015184612A1/en
Priority to CN201480024136.4A priority patent/CN105519075A/en
Publication of WO2015184612A1 publication Critical patent/WO2015184612A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a resource scheduling method and apparatus. Background technique
  • VMs virtual machines
  • Each VM has certain computing power, memory, and network capabilities.
  • Each application (APP, Application) runs on a set of virtual machines and provides services by processing a series of external requests.
  • the resource scheduling module distributes requests from the network to multiple VMs, and multiple VMs perform a large amount of processing.
  • the number of requests that each VM can process in a unit time is certain, so if processing is required per unit time, The number of requests is large, so there will be more VMs.
  • the virtualization of the network function refers to the function of the communication network node (ie, the node in the communication network) running on the VM of the cloud platform as the APP software, and providing the communication network node.
  • the communication network node may be a Network Controller (RNC), a Serving GPRS Support Node (SGSN), or the like.
  • RNC Network Controller
  • SGSN Serving GPRS Support Node
  • VNF virtualization function
  • the above solution allocates VM resources for processing requests, or directly increases
  • the VM is then allocated in the added VM, or any VM with available resources is selected for allocation; therefore, the VM with higher load is prone to overload of processing capability, resulting in the request being unable to be processed or the processing delay is increased, and the quality of service is low.
  • the number of requests increases suddenly, the ability to withstand network attacks is low, and the system security is low.
  • the embodiments of the present invention provide a resource scheduling method, and a device, which are used to improve network impact resistance and system security; improve request processing efficiency and reduce delay, thereby improving service quality.
  • An embodiment of the present invention provides a resource scheduling method, including:
  • the VNF obtains the current VNF load growth trend
  • At least one VM allocation resource is selected in the optional VM to balance the optional VM load.
  • the selecting, by the VM, the at least one VM allocates resources, and the balancing of the optional VM load includes:
  • the VM allocation resources are selected according to the load of the VM from low to high; or, according to the VM load, the VM with the lowest load in the optional VM is selected.
  • the method further includes: if the current VNF load growth trend is a downward trend, selecting at least one VM allocation resource in the optional VM, so that The load tends to concentrate in the optional VM.
  • the selecting at least one VM allocates resources in the optional VM, so that the load tends to be concentrated in the optional VM.
  • the VM allocation resources are selected according to the load of the VM from high to low; or, according to the load of the VM, the VM with the highest load among the optional VMs is selected.
  • the obtaining the current VNF load growth trend includes: an implementation on the one hand, a first, a second, or a third possible implementation on the one hand: Obtain resources; historical statistics of % consumption, and determine the current VNF load growth trend based on the historical statistical information.
  • the method before receiving the resource allocation request, the method further includes:
  • the resource consumption at each time point is counted, and the time period in which the VNF load growth trend is an upward trend and the time period in which the VNF load growth trend is a downward trend are determined according to the statistically obtained resource consumption at each time point.
  • a second aspect of the present invention provides a resource scheduling apparatus, including:
  • a request receiving unit configured to receive a resource allocation request
  • a trend obtaining unit configured to acquire a current VNF load growth trend after the request receiving unit receives the resource allocation request
  • the scheduling control unit is configured to select at least one VM allocation resource in the optional VM to balance the optional VM load if the current VNF load growth trend acquired by the trend obtaining unit is an upward trend.
  • the scheduling control unit is configured to perform the sorting according to the load of the VM, and select the VM to allocate resources according to the load of the VM from low to high; or, according to the VM The load is sorted, and the VM with the lowest load in the optional VM is selected.
  • the scheduling control unit is further configured to: if the current VNF load growth trend obtained by the trend acquiring unit is a downward trend, At least one VM is selected from the VM to allocate resources such that the load tends to concentrate in the optional VM.
  • the scheduling control unit is configured to perform the sorting according to the load of the VM, and select the VM to allocate resources according to the load of the VM from high to low. Or, sort according to the load of the VM, and select the VM with the highest load among the optional VMs.
  • the trend obtaining unit is configured to obtain historical statistics of the resource consumption. And determining a current VNF load growth trend according to the historical statistical information.
  • the resource scheduling apparatus further includes:
  • the trend calculation unit is configured to determine, according to the resource consumption amount of each time point obtained by the statistical unit, a time period in which the VNF load growth trend is an upward trend, and a time period in which the VNF load growth trend is a downward trend.
  • the embodiments of the present invention have the following advantages: By selecting a VM to allocate resources and balancing the VMs in a network load growth trend, the load of each VM can be maintained. A reasonable load level ensures that requests can be processed in a timely manner, and in the case of a sudden increase in the number of requests, each VM can share the newly added resource requirements, avoiding the overload of the VM, improving the request processing efficiency and reducing the delay, thereby improving Quality of service; improved network impact resistance and system security.
  • FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a network load cycle change according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of resource allocation in a VM according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a server used as a resource scheduling apparatus according to an embodiment of the present invention. detailed description
  • An embodiment of the present invention provides a resource scheduling method, as shown in FIG. 1 , including:
  • the resource allocation request is a request for requesting allocation of resources, and the request is used as a request for triggering resource allocation, and its expression form. It may be: requesting access, requesting to establish a new session, and the like, and any request for allocating processing resources in the VM, and the specific form of the present invention is not limited in the embodiment of the present invention.
  • the resource allocation request can be used as a condition for triggering the current VNF load growth trend. In the case where the VNF load growth trend is historical statistical information, the VNF load growth trend can be obtained in advance; and the current VNF load growth trend is triggered. After the condition, the current VNF load growth trend is determined based on historical statistical information.
  • the above-mentioned VNF load growth trend is a parameter for indicating the change of the VM resource consumption of the entire system;
  • the VNF load growth trend in the embodiment of the present invention can be represented by a graph, for example: a corresponding graph of time and load, this curve The graph will show a trend of rising or falling. It can be predicted by the current time whether the current VNF load growth trend is rising or falling.
  • the VNF load growth trend in the embodiment of the present invention can also be expressed by the control value, and the setting load is high. The value and the load are low. When the current load is higher than the load, the current VNF load growth trend is considered to be an upward trend. When the current load is lower than the load low value, the current VNF load growth trend is considered to be a downward trend.
  • the parameter used to indicate the change of the VM resource consumption of the entire system may also have other representations, which is not limited by the embodiment of the present invention.
  • the VM when the network load is increasing, the VM is allocated resources, and the load balancing of each VM is performed, so that the load of each VM can be maintained at a relatively reasonable load level, thereby ensuring that the request can be processed in time. And in the case that the number of requests suddenly increases, each VM can share the newly added resource requirements, avoiding the overload phenomenon of the VM, and improving the processing efficiency of the request. Time, thereby improving service quality; improving network impact resistance and system security.
  • the embodiment of the present invention further provides an optional implementation manner of selecting at least one VM allocation resource in the optional VM to balance the optional VM load, as follows: Selecting at least one VM allocation in the optional VM. Resources that enable the above optional VM load balancing include:
  • the VM allocation resources are selected according to the load of the VM from low to high; or, according to the VM load, the VM with the lowest load in the optional VM is selected.
  • selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load
  • sorting according to the load of the VM selecting a VM with a lower load.
  • an optional VM set when there is a resource allocation request, arbitrarily select a VM to allocate resources from the optional VM set; or, set a load threshold, and use a VM below the load threshold as an optional VM set.
  • the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to make the above-mentioned optional VM load balancing is preferred
  • the implementations should not be construed as limiting the uniqueness of the embodiments of the invention.
  • the VNF load growth trend is a downward trend as compared with the VNF load growth trend.
  • the embodiment of the present invention further provides a resource scheduling solution in the case where the VNF load growth trend is a downward trend, as follows: Also includes:
  • At least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the above optional VM.
  • the foregoing method may include: when releasing the VM, selecting to select a idle or a VM with a carrier service less than a certain threshold for release.
  • Scale in is needed and the VM resources are continuously released to ensure the most efficient use of resources.
  • the process of releasing the VM if there are still users, calls, and sessions being processed on the VM to be released. Or the communication context, then directly releasing the VM will cause the communication of these users to be interrupted, and if all the users on the VM complete the communication process and then release the VM, they cannot be released to other VNF/APPs that need resources in time, resulting in a decrease in resource utilization. .
  • the at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the optional VM, and the load is distributed as much as possible.
  • the other part of the VM will be freed as much as possible, so that in Scale in, the free VM can be quickly released, and communication interruption can be avoided or reduced.
  • the embodiment of the present invention further provides an optional implementation manner of selecting at least one VM to allocate resources in the optional VM, so that the load tends to be concentrated in the optional VM, as follows: At least one VM allocates resources, so that the load tends to be concentrated in the above-mentioned optional VMs, including: sorting according to the load of the VM, selecting the VMs to allocate resources according to the load of the VM from high to low; or, sorting according to the load of the VM, Select the VM with the highest load in the optional VM to allocate resources.
  • the implementation of selecting at least one VM to allocate resources in the optional VM to make the load tend to be concentrated in the above-mentioned optional VM there may be other alternatives, for example: sorting according to the load of the VM, selecting the load A higher optional VM is used as an optional VM set.
  • the VM is randomly selected from the optional VM set; or, a load threshold is set, which is higher than the load threshold.
  • the VM is used as an optional VM set.
  • the VM is arbitrarily selected from the set of optional VMs. Therefore, the above-mentioned optional VM load is selected by selecting at least one VM allocation resource among the optional VMs.
  • the implementation of the equalization as a preferred implementation, should not be construed as limiting the uniqueness of the embodiments of the present invention.
  • the current VNF load growth trend may be determined based on the current load, or may be predicted based on the historical data.
  • the embodiment of the present invention provides an optional implementation manner as follows:
  • the VNF load growth trend includes: obtaining historical statistical information of resource consumption, and determining the current VNF load growth trend based on the above historical statistical information.
  • the embodiment of the present invention further provides a more specific implementation, as follows: Before receiving the resource allocation request, the method further includes:
  • the foregoing determining the current VNF load growth trend based on the historical statistical information includes: If the current time belongs to the time period in which the VNF load growth trend is an upward trend, it is determined that the current VNF load growth trend is an upward trend; if the current time belongs to a time period in which the VNF load growth trend is a downward trend, the current VNF load is determined.
  • the growth trend is a downward trend.
  • the embodiment of the present invention comprehensively considers:
  • the network activity is affected by the time of the crowd, and the network load will have periodic fluctuations every day, which is reflected in a certain network node or application, its processing load, the number of requests to be processed,
  • the forwarding throughput also has a corresponding change in the period;
  • the embodiment of the present invention divides the trend of the load into a number of "growth stages” and “reduction stages”, and the time period based on the life rules of the crowd can be used to get rid of the load. The limit on the value used.
  • the resource consumption amount at each time point is counted, and the time period in which the VNF load growth trend is an upward trend is determined according to the statistically obtained resource consumption amount at each time point, and the VNF load growth trend is a downward trend.
  • the time period "This part can be performed periodically. Generally speaking, it can be calculated periodically in days or in weekly cycles. For special dates, such as: statutory holidays, etc., statistics can be made separately. The details are as follows: Count the resource consumption at each time point within 4 days of the legal section, and determine the time period during which the VNF load growth trend is an upward trend based on the statistically obtained resource consumption at each time point, and the VNF load growth trend is a downward trend. period. This historical data will be used on the next legal holiday corresponding to it.
  • the following embodiment is used as an example to describe the resource scheduling scheme of the embodiment of the present invention by using the historical data of the statistics and the corresponding graph of the time and the load as follows.
  • the network activity will have periodic fluctuations every day. It is reflected in a certain network node or application. Its processing load, the number of requests to be processed, and the throughput of forwarding will also be corresponding.
  • the abscissa is the time axis
  • the ordinate is the load
  • the vertical dash is the load growth stage.
  • the segmentation of the /load reduction phase indicates that the upward arrow identified below the time axis indicates the load growth phase and the downward arrow identified below the time axis indicates the load reduction phase.
  • VNF VM-based Virtual Network Function
  • the usage policy can use the resource sharing policy (scheduling strategy one) that is evenly distributed to each VM. For example: When a new request is accessed or a new session is established, Select the VM with the lowest load among all VMs for resource allocation. In this way, each VM can maintain a reasonable load level to ensure a better user experience; in the case of a sudden increase in the number of requests (load shock), each VM can share the impact, so that the user's request can Timely processing to ensure user experience.
  • resource sharing policy scheduling strategy one
  • the resource that the VM has already occupied, the corresponding white part is an allocatable resource; when the resource of the VM exceeds a certain proportion, congestion may occur, which is called a congestion threshold.
  • a congestion threshold Assume that, as shown in FIG. 3, the resource usage rate of the VM is classified into classes. One is a class that approaches or reaches the congestion threshold, VM1, VM2; the second class is VM3, VM4... which also has resource allocation, and the three classes are VMn close to idle; there may be only one of them in practical applications. Alternatively, the number of the VMs is also arbitrary, and FIG. 3 is not to be construed as limiting the embodiments of the present invention.
  • VMn or VMn, will be selected for resource allocation.
  • the resource uses the centralized resource concentration strategy, that is, the policy that uses the opposite of the average sharing (scheduling strategy 2), the VMs are numbered in a certain order, and the new access request is distributed to the load below the overload threshold ( Or the cached threshold of the VM with the lowest number of VMs.
  • This strategy allows the load to be distributed to a part of the VM as much as possible, while the other part of the VM is freed as much as possible, so that in Scale in, the free VM can be quickly released. Avoid or reduce the user experience degradation caused by user communication interruption.
  • VM3, or the VM in which VM3 is located will be selected for resource allocation.
  • the point in time when the two policies are switched can be configured by the administrator of the VNF. Since the network activity is affected by the working hours and usage habits of the crowd, the daily load curve is basically repeated, so the maximum value of the load change can be automatically determined based on the statistical information of the past period of time (load When the point from the rising to the falling point and the minimum point (the point at which the load changes from falling to rising) is used as the time node of the system switching scheduling strategy, when the maximum point is reached every day (there may be more than one per day), The scheduling policy is changed to strategy two. When the minimum value is reached, the scheduling policy is changed to strategy one.
  • resource utilization can be effectively improved, and service impairments can be avoided and reduced, and the user experience can be guaranteed.
  • the embodiment of the invention further provides a resource scheduling device, as shown in FIG. 4, including:
  • a request receiving unit 401 configured to receive a resource allocation request
  • the trend obtaining unit 402 is configured to obtain a current VNF load growth trend
  • the scheduling control unit 403 is configured to select at least one VM in the optional VM if the current VNF load growth trend acquired by the trend obtaining unit 402 is an upward trend after the request receiving unit 401 receives the resource allocation request. Allocate resources to balance the above optional VM load.
  • the resource allocation request is a request for requesting allocation of resources, and the request is used as a request for triggering resource allocation, and the expression may be: requesting access, requesting to establish a new session, and the like, in the VM. Any specific request for the allocation of the processing resource is not limited in the embodiment of the present invention.
  • the above-mentioned VNF load growth trend is a parameter for indicating the change of the VM resource consumption of the entire system;
  • the VNF load growth trend in the embodiment of the present invention can be represented by a graph, for example: a corresponding graph of time and load, this curve The graph will show a trend of rising or falling. It can be predicted by the current time whether the current VNF load growth trend is rising or falling.
  • the VNF load growth trend in the embodiment of the present invention can also be expressed by the control value, and the setting load is high. The value and the load are low. When the current load is higher than the load, the current VNF load growth trend is considered to be an upward trend. When the current load is lower than the load low value, the current VNF load growth trend is considered to be a downward trend.
  • the parameter used to indicate the change of the VM resource consumption of the entire system may also have other representations, which is not limited by the embodiment of the present invention.
  • the VM when the network load is increasing, the VM is allocated resources, and the load balancing of each VM is performed, so that the load of each VM can be maintained at a relatively reasonable load level, thereby ensuring that the request can be processed in time.
  • each VM It can share the new resource requirements, avoid VM overload, improve request processing efficiency and reduce latency, thereby improving service quality; improving network impact resistance and system security.
  • the embodiment of the present invention further provides an optional implementation manner of selecting at least one VM allocation resource in the optional VM to balance the foregoing optional VM load, as follows:
  • the scheduling control unit 403 is configured to load according to the VM. Sorting, selecting the VM allocation resources according to the load of the VM from low to high; or, sorting according to the VM load, and selecting the VM with the lowest load among the optional VMs.
  • selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load
  • sorting according to the load of the VM selecting a VM with a lower load.
  • an optional VM set when there is a resource allocation request, arbitrarily select a VM to allocate resources from the optional VM set; or, set a load threshold, and use a VM below the load threshold as an optional VM set.
  • the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to make the above-mentioned optional VM load balancing is preferred
  • the implementations should not be construed as limiting the uniqueness of the embodiments of the invention.
  • the VNF load growth trend is a downward trend as compared with the VNF load growth trend.
  • the embodiment of the present invention further provides a resource scheduling scheme in the case where the VNF load growth trend is a downward trend, as follows:
  • the scheduling control unit 403 is further configured to: if the current VNF load growth trend acquired by the trend acquiring unit 402 is a downward trend, select at least one VM allocation resource in the optional VM, so that the load is in the foregoing The selected VM tends to concentrate.
  • the above scheduling control device may further include:
  • the release control unit 501 is configured to select, when the VM is released, to select a VM that is idle or has a bearer service less than a certain threshold to release.
  • Scale in is needed and the VM resources are continuously released to ensure the most efficient use of resources.
  • releasing the VM if there are still users, calls, and sessions being processed on the VM to be released. Or communication context, then releasing the VM directly will cause these The communication of the user is interrupted, and if all the users on the VM complete the communication process and then release the VM, they cannot be released to other VNF/APPs that need resources in time, resulting in a decrease in resource utilization.
  • the at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the optional VM. As far as possible, it is distributed to a part of the VM, and the other part of the VM is freed as much as possible, so that when Scale in, the free VM can be quickly released, and communication interruption can be avoided or reduced.
  • the embodiment of the present invention further provides an optional implementation manner of selecting at least one VM to allocate resources in the optional VM, so that the load tends to be concentrated in the optional VM, as follows: According to the load of the VM, the VM allocates resources according to the load of the VM from high to low; or, according to the load of the VM, selects the VM with the highest load among the optional VMs.
  • the implementation of selecting at least one VM to allocate resources in the optional VM to make the load tend to be concentrated in the above-mentioned optional VM there may be other alternatives, for example: sorting according to the load of the VM, selecting the load A higher optional VM is used as an optional VM set.
  • the VM is randomly selected from the optional VM set; or, a load threshold is set, which is higher than the load threshold.
  • the VM is used as an optional VM set.
  • the VM is arbitrarily selected from the set of optional VMs. Therefore, the above-mentioned optional VM load is selected by selecting at least one VM allocation resource among the optional VMs.
  • the implementation of the equalization as a preferred implementation, should not be construed as limiting the uniqueness of the embodiments of the present invention.
  • the current VNF load growth trend may be determined based on the current load, or may be based on the historical data.
  • the optional implementation manner is as follows: The trend obtaining unit 402 , used to obtain historical statistical information of resource consumption, and determine the current VNF load growth trend based on the above historical statistical information.
  • the embodiment of the present invention further provides a more specific implementation, as follows: As shown in FIG. 6, the foregoing resource scheduling apparatus further includes:
  • a statistical unit 601 configured to count resource consumption at each time point
  • the trend calculation unit 602 is configured to determine, according to the resource consumption amount of each time point obtained by the statistical unit 601, a time period in which the VNF load growth trend is an upward trend, and a VNF load growth trend. A period of time that is a downward trend.
  • the trend obtaining unit 402 is configured to determine that the current VNF load growth trend is an upward trend if the current time belongs to a time period in which the VNF load growth trend is an upward trend; The time period in which the above-mentioned VNF load growth trend is a downward trend determines that the current VNF load growth trend is a downward trend.
  • the embodiment of the present invention comprehensively considers:
  • the network activity is affected by the time of the crowd, and the network load will have periodic fluctuations every day, which is reflected in a certain network node or application, its processing load, the number of requests to be processed,
  • the forwarding throughput also has a corresponding change in the period;
  • the embodiment of the present invention divides the trend of the load into a number of "growth stages” and “reduction stages”, and the time period based on the life rules of the crowd can be used to get rid of the load. The limit on the value used.
  • the resource consumption amount at each time point is counted, and the time period in which the VNF load growth trend is an upward trend is determined according to the statistically obtained resource consumption amount at each time point, and the VNF load growth trend is a downward trend.
  • the time period "This part can be performed periodically. Generally speaking, it can be calculated periodically in days or in weekly cycles. For special dates, such as: statutory holidays, etc., statistics can be made separately. The details are as follows: Count the resource consumption at each time point in the legal holiday, and determine the time period in which the VNF load growth trend is an upward trend according to the statistical resource consumption at each time point, and the time period in which the VNF load growth trend is a downward trend. . This historical data will be used on the next legal holiday corresponding to it.
  • the embodiment of the present invention further provides another resource scheduling apparatus, as shown in FIG. 7, comprising: a receiver 701, a transmitter 702, a processor 703, and a memory 704;
  • the receiver 701 is configured to perform control: after receiving the resource allocation request, obtain a current VNF load growth trend; if the current VNF load growth trend is an upward trend, select at least one VM allocation in the optional VM. Resources that balance the above optional VM load.
  • the resource allocation request is a request for requesting allocation of resources, and the request is used as a request for triggering resource allocation, and the expression may be: requesting access, requesting to establish a new session, and the like, in the VM. Any specific request for the allocation of the processing resource is not limited in the embodiment of the present invention.
  • the VNF load growth trend is a parameter used to indicate the change of the VM resource consumption of the entire system.
  • the VNF load growth trend in the embodiment of the present invention can be represented by a graph.
  • the corresponding graph of time and load this graph will show a rising or falling trend, and the current time can predict whether the current VNF load growth trend is rising or falling; the VNF load growth trend in the embodiment of the present invention is still It can be expressed by the control value, setting the load high value and the low load value.
  • the current load is higher than the load high value, the current VNF load growth trend is considered to be an upward trend.
  • the current load is lower than the load low value , that the current VNF load growth trend is a downward trend.
  • the parameter used to indicate the change of the VM resource consumption of the entire system may also have other representations, which is not limited by the embodiment of the present invention.
  • the VM when the network load is increasing, the VM is allocated resources, and the load balancing of each VM is performed, so that the load of each VM can be maintained at a relatively reasonable load level, thereby ensuring that the request can be processed in time. And in the case that the number of requests is increased, each VM can share the newly added resource requirements, avoid overloading of the VM, improve request processing efficiency and reduce delay, thereby improving service quality; improving network impact resistance, and System security.
  • the embodiment of the present invention further provides an optional implementation manner of selecting at least one VM allocation resource in the optional VM to balance the foregoing optional VM load, as follows:
  • the receiver 701 is used to control execution: Selecting at least one VM to allocate resources in the VM, so that the optional VM load balancing includes: sorting according to the load of the VM, selecting the VM to allocate resources according to the load of the VM from low to high; or, sorting according to the VM load, selecting The lowest load VM in the optional VM allocates resources.
  • selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load
  • sorting according to the load of the VM selecting a VM with a lower load.
  • an optional VM set when there is a resource allocation request, arbitrarily select a VM to allocate resources from the optional VM set; or, set a load threshold, and use a VM below the load threshold as an optional VM set.
  • the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to make the above-mentioned optional VM load balancing is preferred
  • the implementations should not be construed as limiting the uniqueness of the embodiments of the invention.
  • the VNF load growth trend is a downward trend.
  • the embodiment of the present invention further provides a resource scheduling scheme in a case where the VNF load growth trend is a downward trend, as follows:
  • the receiver 701 is further configured to control execution: if the current VNF load growth trend is a downward trend, Then, at least one VM allocation resource is selected in the optional VM, so that the load tends to concentrate in the above-mentioned optional VM.
  • the receiver 701 is further configured to control execution: when the VM is released, the VM that selects idle or bears less than a certain threshold is selected for release.
  • Scale in is needed and the VM resources are continuously released to ensure the most efficient use of resources.
  • the process of releasing the VM if there are still users, calls, and sessions being processed on the VM to be released. Or the communication context, then directly releasing the VM will cause the communication of these users to be interrupted, and if all the users on the VM complete the communication process and then release the VM, they cannot be released to other VNF/APPs that need resources in time, resulting in a decrease in resource utilization. .
  • the at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the optional VM. As far as possible, it is distributed to a part of the VM, and the other part of the VM is freed as much as possible, so that when Scale in, the free VM can be quickly released, and communication interruption can be avoided or reduced.
  • the embodiment of the present invention further provides an optional implementation manner of selecting at least one VM to allocate resources in the optional VM, so that the load tends to be concentrated in the optional VM, as follows:
  • the receiver 701 is used to control execution. Selecting at least one VM allocation resource in the optional VM, so that the load tends to be concentrated in the above optional VM includes: sorting according to the load of the VM, and selecting the VM allocation resource according to the load of the VM from high to low; or , sort according to the load of the VM, and select the VM with the highest load among the optional VMs.
  • the implementation of selecting at least one VM to allocate resources in the optional VM to make the load tend to be concentrated in the above-mentioned optional VM there may be other alternatives, for example: sorting according to the load of the VM, selecting the load A higher optional VM is used as an optional VM set.
  • the VM is randomly selected from the optional VM set; or, a load threshold is set, which is higher than the load threshold.
  • VM as an optional VM collection, when there is resource allocation, please In order to obtain time, the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load is a preferred implementation. It should not be construed as a limitation of the invention.
  • the current VNF load growth trend may be determined based on the current load, or may be based on the historical data.
  • the optional implementation manner is as follows: For controlling execution: Obtaining the current VNF load growth trend includes: obtaining historical statistical information of resource consumption, and determining a current VNF load growth trend according to the historical statistical information.
  • the embodiment of the present invention further provides a more specific optional implementation, as follows:
  • the receiver 701 is configured to control execution: before receiving the resource allocation request, the resource consumption at each time point is counted. And a time period in which the VNF load growth trend is an upward trend and a time period in which the VNF load growth trend is a downward trend according to the statistically obtained resource consumption amount at each time point; the scheme for statistical historical data based on the embodiment of the present invention,
  • the receiver 701 is configured to perform control: determining, according to the historical statistical information, that the current VNF load growth trend comprises: determining that the current VNF load growth trend is an upward trend if the current time belongs to a time period in which the VNF load growth trend is an upward trend; If the current time belongs to the time period in which the above-mentioned VNF load growth trend is a downward trend, it is determined that the current VNF load growth trend is a downward trend.
  • the embodiment of the present invention comprehensively considers:
  • the network activity is affected by the time of the crowd, and the network load will have periodic fluctuations every day, which is reflected in a certain network node or application, its processing load, the number of requests to be processed,
  • the forwarding throughput also has a corresponding change in the period;
  • the embodiment of the present invention divides the trend of the load into a number of "growth stages” and “reduction stages”, and the time period based on the life rules of the crowd can be used to get rid of the load. The limit on the value used.
  • the resource consumption amount at each time point is counted, and the time period in which the VNF load growth trend is an upward trend is determined according to the statistically obtained resource consumption amount at each time point, and the VNF load growth trend is a downward trend.
  • the time period "This part can be performed periodically. Generally speaking, it can be calculated periodically in days or in weekly cycles. For special dates, such as: statutory holidays, etc., statistics can be made separately. The details are as follows: Count the resource consumption at each time point within 4 days of the legal section, and determine the time period during which the VNF load growth trend is an upward trend based on the statistically obtained resource consumption at each time point, and the VNF load growth trend is a downward trend. period. This historical data It will be used on the next legal holiday corresponding to it.
  • FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, which is used as a resource scheduling device; the server 800 may generate a large difference due to different configurations or performances, and may include one or more central processing units (central processing units). , CPU 822 (eg, one or more processors) and memory 832, one or more storage media 830 storing application 842 or data 844 (eg, one or one storage device in Shanghai). Among them, the memory 832 and the storage medium 830 may be short-term storage or persistent storage.
  • the program stored on storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations on the server. Still further, central processor 822 can be configured to communicate with storage medium 830, which performs a series of instruction operations on storage medium 830.
  • Server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and/or one or more operating systems 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
  • operating systems 841 such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
  • the method flow steps involved in the above embodiments may be based on the server structure shown in FIG. It should be noted that the above devices are only divided according to functional logic, but are not limited to the above divisions, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the purpose of distinguishing from each other, and are not used. To limit the scope of protection of the present invention.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A resource scheduling method and apparatus. The implementation of the method comprises: after a virtual network function (VNF) receives a resource allocation request, acquiring a current VNF load growth trend; if the current VNF load growth trend is a rising trend, selecting at least one VM from selectable VMs to allocate a resource, to make load of the selectable VMs balanced. By selecting a VM to allocate a resource in a case in which network load is in a growth trend to make load of VMs balanced, load of the VMs can be kept at a relatively reasonable load level, so that it is ensured that a request can be processed in time; in a case in which a quantity of requests bursts, the VMs can all share new resource requirements, so that a VM is prevented from an overload phenomenon, request processing efficiency is improved, and a time delay is reduced, thereby improving quality of service; and impact resistance of a network and system security are improved.

Description

一种资源调度方法, 及装置  Resource scheduling method, and device
技术领域 Technical field
本发明涉及通信技术领域, 特别涉及一种资源调度方法, 及装置。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a resource scheduling method and apparatus. Background technique
在云计算平台上, 系统主机内会具有虚拟机 ( VM, Virtual Machine ), 每 个 VM拥有一定的计算能力、 内存以及网络能力。  On a cloud computing platform, there are virtual machines (VMs) in the system host. Each VM has certain computing power, memory, and network capabilities.
每个应用 (APP, Application )会运行在一组虚拟机上, 通过处理一系列 的来自外部的请求来提供服务。通常会有资源调度模块将来自网络的请求分发 到多个 VM, 由多个 VM来完成大量的处理,每个 VM在单位时间内能够处理 的请求数量是一定的, 因此如果单位时间内需要处理的请求数量多, 那么需要 的 VM就会多。  Each application (APP, Application) runs on a set of virtual machines and provides services by processing a series of external requests. Usually, the resource scheduling module distributes requests from the network to multiple VMs, and multiple VMs perform a large amount of processing. The number of requests that each VM can process in a unit time is certain, so if processing is required per unit time, The number of requests is large, so there will be more VMs.
网络功能的虚拟化, 是指将通信网络节点(即: 通信网络中的节点)作为 APP软件运行在云平台的 VM上, 提供通信网络节点的功能。, 通信网络节点 可以是网络控制器(RNC, Radio Network Controller ), 服务 GPRS支持节点 ( SGSN, Service GPRS Support Node )等。 被虚拟化的网络节点的功能称之 为虚拟化网络功能(VNF, Virtual Network Function )0 由于 VNF是通过运行 在虚拟机上的 APP软件实现的, 因此通常会将 VNF和 APP看作是相同的含 义。 The virtualization of the network function refers to the function of the communication network node (ie, the node in the communication network) running on the VM of the cloud platform as the APP software, and providing the communication network node. The communication network node may be a Network Controller (RNC), a Serving GPRS Support Node (SGSN), or the like. Are functions of the virtual network node of a network called virtualization function (VNF, Virtual Network Function) 0 Since VNF APP by software running on the virtual machine implementation, and thus will usually VNF considered identical APP meaning.
由于每个应用处理的请求数量会不断的发生变化,因此应用处理的负荷也 会不断的变化。 当需要应用的处理的请求增加, 当前使用的 VM无法及时处理 时,那么需要为这个应用增加一个或多个 VM来处理更多的请求,保证用户的 请求能够被及时的处理, 这个增加处理资源(增加 VM )来满足更多处理请求 的过程就是扩容(Scale Out ); 与此相对, 当需要应用处理的请求数量下降时, 这个应用就不需要那么多的处理资源来应对, 这就需要释放一些处理资源(释 放 VM ),释放的 VM可以用于其他的应用, 这样可以提高处理资源的利用率, 降低使用成本, 这个过程就是收缩 (Scale in )。  As the number of requests processed by each application changes continuously, the load of application processing will continue to change. When the request for processing of the application increases, and the currently used VM cannot be processed in time, then one or more VMs need to be added to the application to process more requests, so that the user's request can be processed in time, and the processing resource is increased. The process of adding VMs to satisfy more processing requests is Scale Out; in contrast, when the number of requests that need to be processed by the application drops, the application does not need so much processing resources to deal with, which requires release. Some processing resources (release VM), the released VM can be used for other applications, which can improve the utilization of processing resources and reduce the cost of use, the process is scale in.
以上方案在 Scale Out阶段, 为处理请求分配 VM资源, 要么是直接增加 VM然后在增加的 VM中进行分配,要么选中任意具有可用资源的 VM进行分 配; 因此负荷较高的 VM, 容易发生处理能力过载, 导致请求不能处理或者处 理延时增加, 服务质量较低, 在应对请求数突发增多等情况时, 经受网络冲击 的能力较低, 系统安全性较低。 发明内容 In the Scale Out phase, the above solution allocates VM resources for processing requests, or directly increases The VM is then allocated in the added VM, or any VM with available resources is selected for allocation; therefore, the VM with higher load is prone to overload of processing capability, resulting in the request being unable to be processed or the processing delay is increased, and the quality of service is low. When the number of requests increases suddenly, the ability to withstand network attacks is low, and the system security is low. Summary of the invention
本发明实施例提供了一种资源调度方法,及装置, 用于提升网络抗冲击能 力, 及系统安全性; 提升请求处理效率减少延时, 从而提升服务质量。  The embodiments of the present invention provide a resource scheduling method, and a device, which are used to improve network impact resistance and system security; improve request processing efficiency and reduce delay, thereby improving service quality.
本发明实施例一方面提供了一种资源调度方法, 包括:  An embodiment of the present invention provides a resource scheduling method, including:
在虚拟化网络功能 VNF接收到资源分配请求后,获取当前的 VNF负荷增 长趋势;  After the virtualized network function receives the resource allocation request, the VNF obtains the current VNF load growth trend;
若当前的 VNF负荷增长趋势为上升趋势, 则在可选的 VM中选择至少一 个 VM分配资源, 使所述可选的 VM负荷均衡。  If the current VNF load growth trend is an upward trend, at least one VM allocation resource is selected in the optional VM to balance the optional VM load.
结合一方面的实现方式, 在第一种可能的实现方式中, 所述在可选的 VM 中选择至少一个 VM分配资源, 使所述可选的 VM负荷均衡包括:  In conjunction with the implementation of the aspect, in a first possible implementation, the selecting, by the VM, the at least one VM allocates resources, and the balancing of the optional VM load includes:
按照 VM的负荷进行排序, 按照 VM的负荷从低到高依次选择 VM分配 资源; 或者, 按照 VM负荷进行排序, 选择可选的 VM中负荷最低的 VM分 配资源。  According to the load of the VM, the VM allocation resources are selected according to the load of the VM from low to high; or, according to the VM load, the VM with the lowest load in the optional VM is selected.
结合一方面的实现方式,在第二种可能的实现方式中,所述方法,还包括: 若当前的 VNF负荷增长趋势为下降趋势, 则在可选的 VM中选择至少一 个 VM分配资源, 使负荷在所述可选的 VM中趋于集中。  In a second possible implementation manner, the method further includes: if the current VNF load growth trend is a downward trend, selecting at least one VM allocation resource in the optional VM, so that The load tends to concentrate in the optional VM.
结合一方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述 在可选的 VM中选择至少一个 VM分配资源, 使负荷在所述可选的 VM中趋 于集中包括:  In conjunction with the second possible implementation of the aspect, in a third possible implementation, the selecting at least one VM allocates resources in the optional VM, so that the load tends to be concentrated in the optional VM. Includes:
按照 VM的负荷进行排序, 按照 VM的负荷从高到低依次选择 VM分配 资源; 或者, 按照 VM的负荷进行排序, 选择可选的 VM中负荷最高的 VM 分配资源。  According to the load of the VM, the VM allocation resources are selected according to the load of the VM from high to low; or, according to the load of the VM, the VM with the highest load among the optional VMs is selected.
结合一方面的实现方式、一方面的第一种、第二种或者第三种可能的实现 方式,在第四种可能的实现方式中, 所述获取当前的 VNF负荷增长趋势包括: 获取资源; %耗量的历史统计信息, 依据所述历史统计信息确定当前的 VNF负荷增长趋势。 In the fourth possible implementation manner, the obtaining the current VNF load growth trend includes: an implementation on the one hand, a first, a second, or a third possible implementation on the one hand: Obtain resources; historical statistics of % consumption, and determine the current VNF load growth trend based on the historical statistical information.
结合一方面的第四种可能的实现方式, 在第五种可能的实现方式中,在接 收资源分配请求之前, 还包括:  In conjunction with the fourth possible implementation on the one hand, in the fifth possible implementation, before receiving the resource allocation request, the method further includes:
统计各时间点的资源消耗量,并依据统计得到的各时间点的资源消耗量确 定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下降趋 势的时间段。  The resource consumption at each time point is counted, and the time period in which the VNF load growth trend is an upward trend and the time period in which the VNF load growth trend is a downward trend are determined according to the statistically obtained resource consumption at each time point.
本发明实施例二方面提供了一种资源调度装置, 包括:  A second aspect of the present invention provides a resource scheduling apparatus, including:
请求接收单元, 用于接收资源分配请求;  a request receiving unit, configured to receive a resource allocation request;
趋势获取单元, 用于在所述请求接收单元接收到资源分配请求后, 获取当 前的 VNF负荷增长趋势;  a trend obtaining unit, configured to acquire a current VNF load growth trend after the request receiving unit receives the resource allocation request;
调度控制单元, 用于若所述趋势获取单元获取到的当前的 VNF负荷增长 趋势为上升趋势, 则在可选的 VM中选择至少一个 VM分配资源, 使所述可 选的 VM负荷均衡。  The scheduling control unit is configured to select at least one VM allocation resource in the optional VM to balance the optional VM load if the current VNF load growth trend acquired by the trend obtaining unit is an upward trend.
结合二方面的实现方式,在第一种可能的实现方式中,所述调度控制单元, 用于按照 VM的负荷进行排序, 按照 VM的负荷从低到高依次选择 VM分配 资源; 或者, 按照 VM负荷进行排序, 选择可选的 VM中负荷最低的 VM分 配资源。  In combination with the implementation of the two aspects, in a first possible implementation manner, the scheduling control unit is configured to perform the sorting according to the load of the VM, and select the VM to allocate resources according to the load of the VM from low to high; or, according to the VM The load is sorted, and the VM with the lowest load in the optional VM is selected.
结合二方面的实现方式,在第二种可能的实现方式中,所述调度控制单元, 还用于若所述趋势获取单元获取到的当前的 VNF负荷增长趋势为下降趋势, 则在可选的 VM中选择至少一个 VM分配资源, 使负荷在所述可选的 VM中 趋于集中。  In combination with the implementation of the second aspect, in a second possible implementation manner, the scheduling control unit is further configured to: if the current VNF load growth trend obtained by the trend acquiring unit is a downward trend, At least one VM is selected from the VM to allocate resources such that the load tends to concentrate in the optional VM.
结合二方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述 调度控制单元, 用于按照 VM的负荷进行排序, 按照 VM的负荷从高到低依 次选择 VM分配资源; 或者, 按照 VM的负荷进行排序, 选择可选的 VM中 负荷最高的 VM分配资源。  In conjunction with the second possible implementation of the second aspect, in a third possible implementation, the scheduling control unit is configured to perform the sorting according to the load of the VM, and select the VM to allocate resources according to the load of the VM from high to low. Or, sort according to the load of the VM, and select the VM with the highest load among the optional VMs.
结合二方面的实现方式、二方面的第一种、第二种或者第三种可能的实现 方式, 在第四种可能的实现方式中, 趋势获取单元, 用于获取资源消耗量的历 史统计信息, 依据所述历史统计信息确定当前的 VNF负荷增长趋势。 结合二方面的第四种可能的实现方式, 在第五种可能的实现方式中, 所述 资源调度装置, 还包括: In combination with the implementation of the two aspects, the first, the second, or the third possible implementation of the second aspect, in the fourth possible implementation, the trend obtaining unit is configured to obtain historical statistics of the resource consumption. And determining a current VNF load growth trend according to the historical statistical information. With reference to the fourth possible implementation of the two aspects, in a fifth possible implementation, the resource scheduling apparatus further includes:
统计单元, 用于统计各时间点的资源消耗量;  A statistical unit for counting resource consumption at each time point;
趋势计算单元,用于依据所述统计单元统计得到的各时间点的资源消耗量 确定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下降 趋势的时间段。  The trend calculation unit is configured to determine, according to the resource consumption amount of each time point obtained by the statistical unit, a time period in which the VNF load growth trend is an upward trend, and a time period in which the VNF load growth trend is a downward trend.
从以上技术方案可以看出, 本发明实施例具有以下优点: 通过在网络负荷 为增长趋势的情况下, 选择 VM分配资源, 使各 VM负荷均衡的方式, 可以 将各 VM的负荷都维持在较为合理的负荷水平,保证了请求能够及时处理,并 且在请求数量突发增多的情况下, 各 VM都能够分担新增的资源需求, 避免 VM出现过载现象, 提升请求处理效率减少延时, 从而提升服务质量; 提升了 网络抗冲击能力, 及系统安全性。 附图说明  It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages: By selecting a VM to allocate resources and balancing the VMs in a network load growth trend, the load of each VM can be maintained. A reasonable load level ensures that requests can be processed in a timely manner, and in the case of a sudden increase in the number of requests, each VM can share the newly added resource requirements, avoiding the overload of the VM, improving the request processing efficiency and reducing the delay, thereby improving Quality of service; improved network impact resistance and system security. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作简要介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提 下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following drawings will be briefly described in the description of the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any inventive labor.
图 1为本发明实施例方法流程示意图;  1 is a schematic flowchart of a method according to an embodiment of the present invention;
图 2为本发明实施例网络负荷周期变化示意图;  2 is a schematic diagram of a network load cycle change according to an embodiment of the present invention;
图 3为本发明实施例 VM中资源分配情况示意图;  3 is a schematic diagram of resource allocation in a VM according to an embodiment of the present invention;
图 4为本发明实施例资源调度装置结构示意图;  4 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention;
图 5为本发明实施例资源调度装置结构示意图;  FIG. 5 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention;
图 6为本发明实施例资源调度装置结构示意图;  6 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention;
图 7为本发明实施例资源调度装置结构示意图;  FIG. 7 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present invention;
图 8为本发明实施例作为资源调度装置使用的服务器结构示意图。 具体实施方式  FIG. 8 is a schematic structural diagram of a server used as a resource scheduling apparatus according to an embodiment of the present invention. detailed description
为了使本发明的目的、技术方案和优点更加清楚, 下面将结合附图对本发 明作进一步地详细描述, 显然, 所描述的实施例仅仅是本发明一部份实施例, 而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。 In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention will be described below with reference to the accompanying drawings. The invention is further described in detail, and it is apparent that the described embodiments are only a part of the embodiments of the invention, rather than all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种资源调度方法, 如图 1所示, 包括:  An embodiment of the present invention provides a resource scheduling method, as shown in FIG. 1 , including:
101: 在接收到资源分配请求后, 获取当前的 VNF负荷增长趋势; 在本发明实施例中, 资源分配请求是用于请求分配资源的请求, 该请求作 为触发资源分配的请求使用, 其表现形式可以是: 请求接入、 请求建立新的会 话等各种需要在 VM中分配处理资源的任意请求,其具体表现形式本发明实施 例不予限定。 资源分配请求可以作为触发获取当前的 VNF负荷增长趋势的条 件使用, 在 VNF负荷增长趋势是历史统计信息的情况下, VNF负荷增长趋势 是可以预先获取的; 在触发获取当前的 VNF负荷增长趋势的条件后, 依据历 史统计信息来确定当前的 VNF负荷增长趋势。  After receiving the resource allocation request, the current VNF load growth trend is obtained. In the embodiment of the present invention, the resource allocation request is a request for requesting allocation of resources, and the request is used as a request for triggering resource allocation, and its expression form. It may be: requesting access, requesting to establish a new session, and the like, and any request for allocating processing resources in the VM, and the specific form of the present invention is not limited in the embodiment of the present invention. The resource allocation request can be used as a condition for triggering the current VNF load growth trend. In the case where the VNF load growth trend is historical statistical information, the VNF load growth trend can be obtained in advance; and the current VNF load growth trend is triggered. After the condition, the current VNF load growth trend is determined based on historical statistical information.
上述 VNF负荷增长趋势是用于表示整个系统对 VM资源消耗的变化情况 的参数; 本发明实施例中的 VNF负荷增长趋势可以通过图表的方式表示, 例 如: 时刻与负荷的对应曲线图, 这个曲线图会呈现上升或下降的趋势, 通过当 前的时间可以预测当前 VNF负荷增长趋势是上升的还是下降的; 本发明实施 例中的 VNF负荷增长趋势还可以通过控制值的方式表示, 设置负荷高阔值和 负荷低阔值, 在当前负荷高于负荷高阔值时, 认为当前 VNF负荷增长趋势为 上升趋势, 在当前负荷低于负荷低阔值时, 认为当前 VNF负荷增长趋势为下 降趋势。用于表示整个系统对 VM资源消耗的变化情况的参数,还可以有其他 的表现形式, 本发明实施例对此不予限定。  The above-mentioned VNF load growth trend is a parameter for indicating the change of the VM resource consumption of the entire system; the VNF load growth trend in the embodiment of the present invention can be represented by a graph, for example: a corresponding graph of time and load, this curve The graph will show a trend of rising or falling. It can be predicted by the current time whether the current VNF load growth trend is rising or falling. The VNF load growth trend in the embodiment of the present invention can also be expressed by the control value, and the setting load is high. The value and the load are low. When the current load is higher than the load, the current VNF load growth trend is considered to be an upward trend. When the current load is lower than the load low value, the current VNF load growth trend is considered to be a downward trend. The parameter used to indicate the change of the VM resource consumption of the entire system may also have other representations, which is not limited by the embodiment of the present invention.
102: 若当前的 VNF负荷增长趋势为上升趋势,则在可选的 VM中选择至 少一个 VM分配资源, 使上述可选的 VM负荷均衡。  102: If the current VNF load growth trend is an upward trend, select at least one VM allocation resource in the optional VM to balance the above optional VM load.
可以理解的是,在没有可选 VM时本发明实施例的方案会新增 VM, 并在 新增的 VM中分配资源。 极端情况下, 无法新增 VM时, 将会发生系统过载。  It can be understood that, when there is no optional VM, the solution of the embodiment of the present invention adds a VM and allocates resources in the newly added VM. In extreme cases, when a VM cannot be added, a system overload will occur.
本发明实施例,通过在网络负荷为增长趋势的情况下,选择 VM分配资源, 使各 VM负荷均衡的方式, 可以将各 VM的负荷都维持在较为合理的负荷水 平, 保证了请求能够及时处理, 并且在请求数量突发增多的情况下, 各 VM都 能够分担新增的资源需求,避免 VM出现过载现象,提升请求处理效率减少延 时, 从而提升服务质量; 提升了网络抗冲击能力, 及系统安全性。 本发明实施例还提供了, 在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM 负荷均衡的可选实现方式, 具体如下: 上述在可选的 VM 中选择至少一个 VM分配资源, 使上述可选的 VM负荷均衡包括: In the embodiment of the present invention, when the network load is increasing, the VM is allocated resources, and the load balancing of each VM is performed, so that the load of each VM can be maintained at a relatively reasonable load level, thereby ensuring that the request can be processed in time. And in the case that the number of requests suddenly increases, each VM can share the newly added resource requirements, avoiding the overload phenomenon of the VM, and improving the processing efficiency of the request. Time, thereby improving service quality; improving network impact resistance and system security. The embodiment of the present invention further provides an optional implementation manner of selecting at least one VM allocation resource in the optional VM to balance the optional VM load, as follows: Selecting at least one VM allocation in the optional VM. Resources that enable the above optional VM load balancing include:
按照 VM的负荷进行排序, 按照 VM的负荷从低到高依次选择 VM分配 资源; 或者, 按照 VM负荷进行排序, 选择可选的 VM中负荷最低的 VM分 配资源。  According to the load of the VM, the VM allocation resources are selected according to the load of the VM from low to high; or, according to the VM load, the VM with the lowest load in the optional VM is selected.
以上关于在可选的 VM中选择至少一个 VM分配资源,使上述可选的 VM 负荷均衡的实现方式, 是可以有其他替代方案的, 例如: 按照 VM的负荷进行 排序, 选择负荷较低的 VM作为可选 VM集合, 当有资源分配请求时, 从可 选 VM集合中任意选择 VM分配资源; 或者, 设定一个负荷阔值, 将低于这 个负荷阔值的 VM作为可选 VM集合, 当有资源分配请求时, 从可选 VM集 合中任意选择 VM分配资源; 因此, 以上关于在可选的 VM中选择至少一个 VM分配资源,使上述可选的 VM负荷均衡的实现方式,作为一个优选的实现 方案, 不应理解为对本发明实施例的唯一性限定。  In the above, regarding the implementation of selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load, there may be other alternatives, for example: sorting according to the load of the VM, selecting a VM with a lower load. As an optional VM set, when there is a resource allocation request, arbitrarily select a VM to allocate resources from the optional VM set; or, set a load threshold, and use a VM below the load threshold as an optional VM set. When there is a resource allocation request, the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to make the above-mentioned optional VM load balancing is preferred The implementations should not be construed as limiting the uniqueness of the embodiments of the invention.
与 VNF负荷增长趋势为上升趋势相对的,是 VNF负荷增长趋势为下降趋 势; 本发明实施例还进一步地提供了 VNF负荷增长趋势为下降趋势的情况下 的资源调度方案, 具体如下: 上述方法, 还包括:  The VNF load growth trend is a downward trend as compared with the VNF load growth trend. The embodiment of the present invention further provides a resource scheduling solution in the case where the VNF load growth trend is a downward trend, as follows: Also includes:
若当前的 VNF负荷增长趋势为下降趋势, 则在可选的 VM中选择至少一 个 VM分配资源, 使负荷在上述可选的 VM中趋于集中。  If the current VNF load growth trend is a downward trend, at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the above optional VM.
以上实施例, 釆用以上实现方式使负荷在上述可选的 VM 中趋于集中之 后, 可以方便在释放 VM时, 选择空闲或者承载业务很少的 VM, 减小对业务 的不利影响。 因此。 上述方法可以包括: 在释放 VM时, 选择选择空闲或者承 载业务少于一定阔值的 VM进行释放。  In the above embodiment, after the above implementations are used to make the load tend to be concentrated in the optional VM, it is convenient to select a VM that has idle or bears a small amount of traffic when the VM is released, thereby reducing the adverse impact on the service. therefore. The foregoing method may include: when releasing the VM, selecting to select a idle or a VM with a carrier service less than a certain threshold for release.
在网络负荷下降过程中, 需要 Scale in并不断释放 VM资源, 以此来保证 最有效率的使用资源, 在释放 VM的过程中, 如果要释放的 VM上仍然有正 在处理的用户、呼叫、会话或者通信上下文, 那么直接释放 VM会导致这些用 户的通信中断, 而如果等到 VM上所有用户完成其通信过程再释放 VM, 就不 能及时释放给其他需要资源的 VNF/APP使用, 导致资源利用率降低。 本发明 实施例, 通过在 VNF负荷增长趋势为下降趋势时, 釆用在可选的 VM中选择 至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中的资源调度策 略, 使负荷尽量分布到一部分 VM上, 而另一部分 VM则会尽可能空闲下来, 这样在 Scale in时, 可以快速的释放空闲的 VM, 并且可以避免或者减少通信 中断。 In the process of network load degradation, Scale in is needed and the VM resources are continuously released to ensure the most efficient use of resources. In the process of releasing the VM, if there are still users, calls, and sessions being processed on the VM to be released. Or the communication context, then directly releasing the VM will cause the communication of these users to be interrupted, and if all the users on the VM complete the communication process and then release the VM, they cannot be released to other VNF/APPs that need resources in time, resulting in a decrease in resource utilization. . this invention In an embodiment, when the VNF load growth trend is a downward trend, the at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the optional VM, and the load is distributed as much as possible. On a part of the VM, the other part of the VM will be freed as much as possible, so that in Scale in, the free VM can be quickly released, and communication interruption can be avoided or reduced.
本发明实施例还提供了, 在可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中的可选实现方式,具体如下: 上述在可选 的 VM中选择至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中 包括: 按照 VM的负荷进行排序, 按照 VM的负荷从高到低依次选择 VM分 配资源; 或者, 按照 VM的负荷进行排序, 选择可选的 VM中负荷最高的 VM 分配资源。  The embodiment of the present invention further provides an optional implementation manner of selecting at least one VM to allocate resources in the optional VM, so that the load tends to be concentrated in the optional VM, as follows: At least one VM allocates resources, so that the load tends to be concentrated in the above-mentioned optional VMs, including: sorting according to the load of the VM, selecting the VMs to allocate resources according to the load of the VM from high to low; or, sorting according to the load of the VM, Select the VM with the highest load in the optional VM to allocate resources.
以上关于在可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可 选的 VM中趋于集中的实现方式, 是可以有其他替代方案的, 例如: 按照 VM 的负荷进行排序, 选择负荷较高的可选 VM作为可选 VM集合, 当有资源分 配请求时, 从可选 VM集合中任意选择 VM分配资源; 或者, 设定一个负荷 阔值, 将高于这个负荷阔值的可选 VM作为可选 VM集合, 当有资源分配请 求时, 从可选 VM集合中任意选择 VM分配资源; 因此, 以上关于在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM负荷均衡的实现方式, 作为一个优选的实现方案, 不应理解为对本发明实施例的唯一性限定。  Regarding the implementation of selecting at least one VM to allocate resources in the optional VM to make the load tend to be concentrated in the above-mentioned optional VM, there may be other alternatives, for example: sorting according to the load of the VM, selecting the load A higher optional VM is used as an optional VM set. When there is a resource allocation request, the VM is randomly selected from the optional VM set; or, a load threshold is set, which is higher than the load threshold. The VM is used as an optional VM set. When there is a resource allocation request, the VM is arbitrarily selected from the set of optional VMs. Therefore, the above-mentioned optional VM load is selected by selecting at least one VM allocation resource among the optional VMs. The implementation of the equalization, as a preferred implementation, should not be construed as limiting the uniqueness of the embodiments of the present invention.
在本发明实施例中, 当前的 VNF负荷增长趋势可以是基于当前的负荷进 行判断的,也可以是基于历史数据进行预测的, 本发明实施例提供了可选的实 现方式如下: 上述获取当前的 VNF负荷增长趋势包括: 获取资源消耗量的历 史统计信息, 依据上述历史统计信息确定当前的 VNF负荷增长趋势。  In the embodiment of the present invention, the current VNF load growth trend may be determined based on the current load, or may be predicted based on the historical data. The embodiment of the present invention provides an optional implementation manner as follows: The VNF load growth trend includes: obtaining historical statistical information of resource consumption, and determining the current VNF load growth trend based on the above historical statistical information.
对于基于历史数据进行预测的方案,本发明实施例还提供了更为具体的可 选实现方案, 如下: 在接收资源分配请求之前, 还包括:  For a solution based on the prediction of the historical data, the embodiment of the present invention further provides a more specific implementation, as follows: Before receiving the resource allocation request, the method further includes:
统计各时间点的资源消耗量,并依据统计得到的各时间点的资源消耗量确 定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下降趋 势的时间段。基于本发明实施例统计历史数据的方案, 上述依据上述历史统计 信息确定当前的 VNF负荷增长趋势包括: 若当前时刻属于上述 VNF负荷增长趋势为上升趋势的时间段, 则确定当 前的 VNF负荷增长趋势为上升趋势;若当前时刻属于上述 VNF负荷增长趋势 为下降趋势的时间段, 则确定当前的 VNF负荷增长趋势为下降趋势。 The resource consumption at each time point is counted, and the time period in which the VNF load growth trend is an upward trend and the time period in which the VNF load growth trend is a downward trend are determined according to the statistically obtained resource consumption at each time point. According to the scheme for collecting historical data according to the embodiment of the present invention, the foregoing determining the current VNF load growth trend based on the historical statistical information includes: If the current time belongs to the time period in which the VNF load growth trend is an upward trend, it is determined that the current VNF load growth trend is an upward trend; if the current time belongs to a time period in which the VNF load growth trend is a downward trend, the current VNF load is determined. The growth trend is a downward trend.
本发明实施例综合考虑了: 网络活动由于受到人群作息时间影响, 网络负 荷会出现每天的周期性涨落,体现在某一个网络节点或是应用上, 它的处理负 荷、 需要处理的请求数量、 转发的吞吐量也会相应的出现周期的变化; 本发明 实施例将负荷的变化趋势划分为若干个 "增长阶段" 和 "降低阶段", 基于人 群生活规律的时间段划分, 可以摆脱使用负荷阔值使用的限制。在本发明实施 例中, "统计各时间点的资源消耗量, 并依据统计得到的各时间点的资源消耗 量确定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下 降趋势的时间段"这部分是可以周期性进行了, 通常来说, 可以以天为单位周 期性计算, 也可以以周为周期进行统计。 对于特殊日期, 例如: 法定节假曰等 时间, 可以单独进行统计。 具体如下: 统计法定节 4叚日内各时间点的资源消耗 量, 并依据统计得到的各时间点的资源消耗量确定 VNF负荷增长趋势为上升 趋势的时间段, 以及 VNF负荷增长趋势为下降趋势的时间段。 这个历史数据 将在下一次与之对应的法定节假日时使用。  The embodiment of the present invention comprehensively considers: The network activity is affected by the time of the crowd, and the network load will have periodic fluctuations every day, which is reflected in a certain network node or application, its processing load, the number of requests to be processed, The forwarding throughput also has a corresponding change in the period; the embodiment of the present invention divides the trend of the load into a number of "growth stages" and "reduction stages", and the time period based on the life rules of the crowd can be used to get rid of the load. The limit on the value used. In the embodiment of the present invention, "the resource consumption amount at each time point is counted, and the time period in which the VNF load growth trend is an upward trend is determined according to the statistically obtained resource consumption amount at each time point, and the VNF load growth trend is a downward trend. The time period "This part can be performed periodically. Generally speaking, it can be calculated periodically in days or in weekly cycles. For special dates, such as: statutory holidays, etc., statistics can be made separately. The details are as follows: Count the resource consumption at each time point within 4 days of the legal section, and determine the time period during which the VNF load growth trend is an upward trend based on the statistically obtained resource consumption at each time point, and the VNF load growth trend is a downward trend. period. This historical data will be used on the next legal holiday corresponding to it.
以下实施例作为一个实例,使用统计的历史数据, 时刻与负荷的对应的图 表为例, 对本发明实施例的资源调度方案进行举例说明, 具体如下:  The following embodiment is used as an example to describe the resource scheduling scheme of the embodiment of the present invention by using the historical data of the statistics and the corresponding graph of the time and the load as follows.
网络活动由于受到人群作息时间影响, 网络负荷会出现每天的周期性涨 落,体现在某一个网络节点或是应用上,它的处理负荷、需要处理的请求数量、 转发的吞吐量也会相应的出现周期的变化,我们可以将负荷的变化趋势划分为 若干个 "增长阶段" 和 "降低阶段", 如图 2所示: 横坐标为时间轴、 纵坐标 为负荷, 纵向的虚线为负荷增长阶段 /负荷降低阶段的分段示意, 时间轴下方 标识的向上箭头示意为负荷增长阶段,时间轴下方标识的向下箭头示意为负荷 降低阶段。  Due to the influence of crowd time, the network activity will have periodic fluctuations every day. It is reflected in a certain network node or application. Its processing load, the number of requests to be processed, and the throughput of forwarding will also be corresponding. In the occurrence of periodic changes, we can divide the trend of load into several "growth stages" and "reduction stages", as shown in Figure 2: the abscissa is the time axis, the ordinate is the load, and the vertical dash is the load growth stage. The segmentation of the /load reduction phase indicates that the upward arrow identified below the time axis indicates the load growth phase and the downward arrow identified below the time axis indicates the load reduction phase.
在网络负荷增长阶段, 需要不断的为 VNF/APP增加 VM, 扩充 VNF/APP 的处理能力, 进行 Scale Out, 来保证足够的资源满足通信需求和保证用户体 验; 在增长阶段, VNF 内部对资源的使用策略可以釆用平均分担到各个 VM 的资源使用策略(调度策略一)。 例如: 在新的请求接入或者新的会话建立时, 选择所有 VM中负荷最低的 VM进行资源分配。 这样, 每个 VM的都可以保 持在较合理的负荷水平, 以保证较好的用户体验; 在出现请求数量突发增多的 情况 (负荷冲击 )时, 各个 VM能够分担冲击, 使用户的请求能够及时得到处 理, 保证用户体验。 During the network load growth phase, it is necessary to continuously add VMs to VNF/APP, expand the processing capability of VNF/APP, and perform Scale Out to ensure sufficient resources to meet communication requirements and ensure user experience. During the growth phase, VNF internally has resources. The usage policy can use the resource sharing policy (scheduling strategy one) that is evenly distributed to each VM. For example: When a new request is accessed or a new session is established, Select the VM with the lowest load among all VMs for resource allocation. In this way, each VM can maintain a reasonable load level to ensure a better user experience; in the case of a sudden increase in the number of requests (load shock), each VM can share the impact, so that the user's request can Timely processing to ensure user experience.
如图 3所示, 有 n个 VM, 整个柱体表示 VM的全部资源, 斜线部分为 As shown in Figure 3, there are n VMs, and the entire cylinder represents all resources of the VM, and the slash part is
VM已经被占用的资源,对应的白色部分为可分配资源; 在 VM的资源超过一 定比例时可能发生拥塞, 称为拥塞门限; 假定如图 3所示,按照 VM的资源使 用率分为类, 一类是接近或者到达拥塞门限的一类, VM1, VM2; 二类是还 具有可分配资源的 VM3、 VM4..., 三类是接近于空闲的 VMn; 实际应用中可 能只有其中的一类或者两类, VM的个数也是任意的, 图 3作为一个示意不应 理解为对本发明实施例的限定。 The resource that the VM has already occupied, the corresponding white part is an allocatable resource; when the resource of the VM exceeds a certain proportion, congestion may occur, which is called a congestion threshold. Assume that, as shown in FIG. 3, the resource usage rate of the VM is classified into classes. One is a class that approaches or reaches the congestion threshold, VM1, VM2; the second class is VM3, VM4... which also has resource allocation, and the three classes are VMn close to idle; there may be only one of them in practical applications. Alternatively, the number of the VMs is also arbitrary, and FIG. 3 is not to be construed as limiting the embodiments of the present invention.
按照调度策略一的方案,将会选择 VMn,或者 VMn这一类 VM进行资源 分配。  According to the scheduling strategy one, VMn, or VMn, will be selected for resource allocation.
在负荷下降时, 需要 Scale in并不断释放 VM资源, 以此来保证最有效率 的使用资源, 在释放 VM的过程中, 如果要释放的 VM上仍然有正在处理的 用户、呼叫、会话或者通信上下文, 那么直接释放 VM会导致这些用户的通信 中断,造成用户体验的下降; 而如果等到 VM上所有用户完成其通信过程再释 放 VM, 就不能及时释放 VM给其他需要资源的 VNF/APP使用, 导致资源利 用率降低。 在负荷降低阶段, 资源使用釆用资源集中的策略, 即釆用和平均分 担相反的策略(调度策略二), 将 VM按照一定的顺序编号, 新接入的请求分 发到负荷低于过载门限(或者拥塞门限) 的 VM中编号最小的 VM上, 这样 的策略使负荷尽量分布到一部分 VM上, 而另一部分 VM尽可能空闲下来, 这样在 Scale in时, 可以快速的释放空闲的 VM, 同时可以避免或减少用户的 通信中断造成的用户体验下降。  When the load drops, Scale in is needed and the VM resources are continuously released to ensure the most efficient use of resources. In the process of releasing the VM, if there is still a user, call, session or communication being processed on the VM to be released. Context, then directly releasing the VM will cause the communication of these users to be interrupted, resulting in a decline in the user experience; and if all users on the VM complete their communication process and then release the VM, the VM cannot be released to other VNF/APPs that need resources in time. This leads to a reduction in resource utilization. In the load reduction phase, the resource uses the centralized resource concentration strategy, that is, the policy that uses the opposite of the average sharing (scheduling strategy 2), the VMs are numbered in a certain order, and the new access request is distributed to the load below the overload threshold ( Or the cached threshold of the VM with the lowest number of VMs. This strategy allows the load to be distributed to a part of the VM as much as possible, while the other part of the VM is freed as much as possible, so that in Scale in, the free VM can be quickly released. Avoid or reduce the user experience degradation caused by user communication interruption.
按照调度策略一的方案,将会选择 VM3 ,或者 VM3所处的这一类 VM进 行资源分配。  According to the scheduling strategy one, VM3, or the VM in which VM3 is located, will be selected for resource allocation.
两种策略切换的时间点可以由 VNF的管理员进行配置。 由于网络活动受 到人群作息时间和使用习惯影响,每天的负荷曲线基本上是重复的, 因此可以 在对过去一段时间统计信息的基础上, 自动的确定负荷变化的极大值点(负荷 由上升转为下降的点)和极小值点 (负荷由下降转为上升的点), 用作系统切 换调度策略的时间节点, 每天达到极大值点(每天可能会有多个)时, 调度策 略改为策略二, 达到极小值点是时, 调度策略改为策略一。 The point in time when the two policies are switched can be configured by the administrator of the VNF. Since the network activity is affected by the working hours and usage habits of the crowd, the daily load curve is basically repeated, so the maximum value of the load change can be automatically determined based on the statistical information of the past period of time (load When the point from the rising to the falling point and the minimum point (the point at which the load changes from falling to rising) is used as the time node of the system switching scheduling strategy, when the maximum point is reached every day (there may be more than one per day), The scheduling policy is changed to strategy two. When the minimum value is reached, the scheduling policy is changed to strategy one.
通过在不同的伸缩阶段釆用相应的资源调度策略,可以有效的提升资源的 利用率, 同时能够避免和减小业务损伤, 保证用户体验。  By using the corresponding resource scheduling policies in different scaling stages, resource utilization can be effectively improved, and service impairments can be avoided and reduced, and the user experience can be guaranteed.
本发明实施例还提供了一种资源调度装置, 如图 4所示, 包括:  The embodiment of the invention further provides a resource scheduling device, as shown in FIG. 4, including:
请求接收单元 401, 用于接收资源分配请求;  a request receiving unit 401, configured to receive a resource allocation request;
趋势获取单元 402, 用于获取当前的 VNF负荷增长趋势;  The trend obtaining unit 402 is configured to obtain a current VNF load growth trend;
调度控制单元 403,用于在上述请求接收单元 401接收到资源分配请求后, 若上述趋势获取单元 402获取到的当前的 VNF负荷增长趋势为上升趋势, 则 在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM负荷均衡。  The scheduling control unit 403 is configured to select at least one VM in the optional VM if the current VNF load growth trend acquired by the trend obtaining unit 402 is an upward trend after the request receiving unit 401 receives the resource allocation request. Allocate resources to balance the above optional VM load.
在本发明实施例中, 资源分配请求是用于请求分配资源的请求, 该请求作 为触发资源分配的请求使用, 其表现形式可以是: 请求接入、 请求建立新的会 话等各种需要在 VM中分配处理资源的任意请求,其具体表现形式本发明实施 例不予限定。  In the embodiment of the present invention, the resource allocation request is a request for requesting allocation of resources, and the request is used as a request for triggering resource allocation, and the expression may be: requesting access, requesting to establish a new session, and the like, in the VM. Any specific request for the allocation of the processing resource is not limited in the embodiment of the present invention.
上述 VNF负荷增长趋势是用于表示整个系统对 VM资源消耗的变化情况 的参数; 本发明实施例中的 VNF负荷增长趋势可以通过图表的方式表示, 例 如: 时刻与负荷的对应曲线图, 这个曲线图会呈现上升或下降的趋势, 通过当 前的时间可以预测当前 VNF负荷增长趋势是上升的还是下降的; 本发明实施 例中的 VNF负荷增长趋势还可以通过控制值的方式表示, 设置负荷高阔值和 负荷低阔值, 在当前负荷高于负荷高阔值时, 认为当前 VNF负荷增长趋势为 上升趋势, 在当前负荷低于负荷低阔值时, 认为当前 VNF负荷增长趋势为下 降趋势。用于表示整个系统对 VM资源消耗的变化情况的参数,还可以有其他 的表现形式, 本发明实施例对此不予限定。  The above-mentioned VNF load growth trend is a parameter for indicating the change of the VM resource consumption of the entire system; the VNF load growth trend in the embodiment of the present invention can be represented by a graph, for example: a corresponding graph of time and load, this curve The graph will show a trend of rising or falling. It can be predicted by the current time whether the current VNF load growth trend is rising or falling. The VNF load growth trend in the embodiment of the present invention can also be expressed by the control value, and the setting load is high. The value and the load are low. When the current load is higher than the load, the current VNF load growth trend is considered to be an upward trend. When the current load is lower than the load low value, the current VNF load growth trend is considered to be a downward trend. The parameter used to indicate the change of the VM resource consumption of the entire system may also have other representations, which is not limited by the embodiment of the present invention.
可以理解的是,在没有可选 VM时本发明实施例的方案会新增 VM, 并在 新增的 VM中分配资源。 极端情况下, 无法新增 VM时, 将会发生系统过载。  It can be understood that, when there is no optional VM, the solution of the embodiment of the present invention adds a VM and allocates resources in the newly added VM. In extreme cases, when a VM cannot be added, a system overload will occur.
本发明实施例,通过在网络负荷为增长趋势的情况下,选择 VM分配资源, 使各 VM负荷均衡的方式, 可以将各 VM的负荷都维持在较为合理的负荷水 平, 保证了请求能够及时处理, 并且在请求数量突发增多的情况下, 各 VM都 能够分担新增的资源需求,避免 VM出现过载现象,提升请求处理效率减少延 时, 从而提升服务质量; 提升了网络抗冲击能力, 及系统安全性。 In the embodiment of the present invention, when the network load is increasing, the VM is allocated resources, and the load balancing of each VM is performed, so that the load of each VM can be maintained at a relatively reasonable load level, thereby ensuring that the request can be processed in time. , and in the case of a sudden increase in the number of requests, each VM It can share the new resource requirements, avoid VM overload, improve request processing efficiency and reduce latency, thereby improving service quality; improving network impact resistance and system security.
本发明实施例还提供了, 在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM 负荷均衡的可选实现方式, 具体如下: 上述调度控制单元 403, 用于按照 VM的负荷进行排序, 按照 VM的负荷从低到高依次选择 VM 分配资源; 或者, 按照 VM负荷进行排序, 选择可选的 VM中负荷最低的 VM 分配资源。  The embodiment of the present invention further provides an optional implementation manner of selecting at least one VM allocation resource in the optional VM to balance the foregoing optional VM load, as follows: The scheduling control unit 403 is configured to load according to the VM. Sorting, selecting the VM allocation resources according to the load of the VM from low to high; or, sorting according to the VM load, and selecting the VM with the lowest load among the optional VMs.
以上关于在可选的 VM中选择至少一个 VM分配资源,使上述可选的 VM 负荷均衡的实现方式, 是可以有其他替代方案的, 例如: 按照 VM的负荷进行 排序, 选择负荷较低的 VM作为可选 VM集合, 当有资源分配请求时, 从可 选 VM集合中任意选择 VM分配资源; 或者, 设定一个负荷阔值, 将低于这 个负荷阔值的 VM作为可选 VM集合, 当有资源分配请求时, 从可选 VM集 合中任意选择 VM分配资源; 因此, 以上关于在可选的 VM中选择至少一个 VM分配资源,使上述可选的 VM负荷均衡的实现方式,作为一个优选的实现 方案, 不应理解为对本发明实施例的唯一性限定。  In the above, regarding the implementation of selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load, there may be other alternatives, for example: sorting according to the load of the VM, selecting a VM with a lower load. As an optional VM set, when there is a resource allocation request, arbitrarily select a VM to allocate resources from the optional VM set; or, set a load threshold, and use a VM below the load threshold as an optional VM set. When there is a resource allocation request, the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to make the above-mentioned optional VM load balancing is preferred The implementations should not be construed as limiting the uniqueness of the embodiments of the invention.
与 VNF负荷增长趋势为上升趋势相对的,是 VNF负荷增长趋势为下降趋 势; 本发明实施例还进一步地提供了 VNF负荷增长趋势为下降趋势的情况下 的资源调度方案, 具体如下: 如图 5所示, 上述调度控制单元 403, 还用于若 上述趋势获取单元 402获取到的当前的 VNF负荷增长趋势为下降趋势, 则在 可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于 集中。  The VNF load growth trend is a downward trend as compared with the VNF load growth trend. The embodiment of the present invention further provides a resource scheduling scheme in the case where the VNF load growth trend is a downward trend, as follows: The scheduling control unit 403 is further configured to: if the current VNF load growth trend acquired by the trend acquiring unit 402 is a downward trend, select at least one VM allocation resource in the optional VM, so that the load is in the foregoing The selected VM tends to concentrate.
釆用以上实现方式使负荷在上述可选的 VM中趋于集中之后,可以方便在 释放 VM时, 选择空闲或者承载业务很少的 VM, 减小对业务的不利影响。 因 此。 上述调度控制装置还可以包括:  After the above implementation is used to make the load tend to be concentrated in the above-mentioned optional VM, it is convenient to select a VM that is idle or bears a small amount of traffic when the VM is released, and the adverse effect on the service is reduced. Therefore. The above scheduling control device may further include:
释放控制单元 501, 用于在释放 VM时, 选择选择空闲或者承载业务少于 一定阔值的 VM进行释放。  The release control unit 501 is configured to select, when the VM is released, to select a VM that is idle or has a bearer service less than a certain threshold to release.
在网络负荷下降过程中, 需要 Scale in并不断释放 VM资源, 以此来保证 最有效率的使用资源, 在释放 VM的过程中, 如果要释放的 VM上仍然有正 在处理的用户、呼叫、会话或者通信上下文, 那么直接释放 VM会导致这些用 户的通信中断, 而如果等到 VM上所有用户完成其通信过程再释放 VM, 就不 能及时释放给其他需要资源的 VNF/APP使用, 导致资源利用率降低。 本发明 实施例, 通过在 VNF负荷增长趋势为下降趋势时, 釆用在可选的 VM中选择 至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中的资源调度策 略, 使负荷尽量分布到一部分 VM上, 而另一部分 VM则会尽可能空闲下来, 这样在 Scale in时, 可以快速的释放空闲的 VM, 并且可以避免或者减少通信 中断。 In the process of network load degradation, Scale in is needed and the VM resources are continuously released to ensure the most efficient use of resources. In the process of releasing the VM, if there are still users, calls, and sessions being processed on the VM to be released. Or communication context, then releasing the VM directly will cause these The communication of the user is interrupted, and if all the users on the VM complete the communication process and then release the VM, they cannot be released to other VNF/APPs that need resources in time, resulting in a decrease in resource utilization. In the embodiment of the present invention, when the VNF load growth trend is a downward trend, the at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the optional VM. As far as possible, it is distributed to a part of the VM, and the other part of the VM is freed as much as possible, so that when Scale in, the free VM can be quickly released, and communication interruption can be avoided or reduced.
本发明实施例还提供了, 在可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中的可选实现方式,具体如下: 上述调度控 制单元 403, 用于按照 VM的负荷进行排序,按照 VM的负荷从高到低依次选 择 VM分配资源; 或者, 按照 VM的负荷进行排序, 选择可选的 VM中负荷 最高的 VM分配资源。  The embodiment of the present invention further provides an optional implementation manner of selecting at least one VM to allocate resources in the optional VM, so that the load tends to be concentrated in the optional VM, as follows: According to the load of the VM, the VM allocates resources according to the load of the VM from high to low; or, according to the load of the VM, selects the VM with the highest load among the optional VMs.
以上关于在可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可 选的 VM中趋于集中的实现方式, 是可以有其他替代方案的, 例如: 按照 VM 的负荷进行排序, 选择负荷较高的可选 VM作为可选 VM集合, 当有资源分 配请求时, 从可选 VM集合中任意选择 VM分配资源; 或者, 设定一个负荷 阔值, 将高于这个负荷阔值的可选 VM作为可选 VM集合, 当有资源分配请 求时, 从可选 VM集合中任意选择 VM分配资源; 因此, 以上关于在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM负荷均衡的实现方式, 作为一个优选的实现方案, 不应理解为对本发明实施例的唯一性限定。  Regarding the implementation of selecting at least one VM to allocate resources in the optional VM to make the load tend to be concentrated in the above-mentioned optional VM, there may be other alternatives, for example: sorting according to the load of the VM, selecting the load A higher optional VM is used as an optional VM set. When there is a resource allocation request, the VM is randomly selected from the optional VM set; or, a load threshold is set, which is higher than the load threshold. The VM is used as an optional VM set. When there is a resource allocation request, the VM is arbitrarily selected from the set of optional VMs. Therefore, the above-mentioned optional VM load is selected by selecting at least one VM allocation resource among the optional VMs. The implementation of the equalization, as a preferred implementation, should not be construed as limiting the uniqueness of the embodiments of the present invention.
在本发明实施例中, 当前的 VNF负荷增长趋势可以是基于当前的负荷进 行判断的,也可以是基于历史数据进行预测的, 本发明实施例提供了可选的实 现方式如下: 趋势获取单元 402, 用于获取资源消耗量的历史统计信息, 依据 上述历史统计信息确定当前的 VNF负荷增长趋势。  In the embodiment of the present invention, the current VNF load growth trend may be determined based on the current load, or may be based on the historical data. The optional implementation manner is as follows: The trend obtaining unit 402 , used to obtain historical statistical information of resource consumption, and determine the current VNF load growth trend based on the above historical statistical information.
对于基于历史数据进行预测的方案,本发明实施例还提供了更为具体的可 选实现方案, 如下: 如图 6所示, 上述资源调度装置, 还包括:  For the solution of the prediction based on the historical data, the embodiment of the present invention further provides a more specific implementation, as follows: As shown in FIG. 6, the foregoing resource scheduling apparatus further includes:
统计单元 601, 用于统计各时间点的资源消耗量;  a statistical unit 601, configured to count resource consumption at each time point;
趋势计算单元 602, 用于依据上述统计单元 601统计得到的各时间点的资 源消耗量确定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋 势为下降趋势的时间段。 The trend calculation unit 602 is configured to determine, according to the resource consumption amount of each time point obtained by the statistical unit 601, a time period in which the VNF load growth trend is an upward trend, and a VNF load growth trend. A period of time that is a downward trend.
基于本发明实施例统计历史数据的方案, 上述趋势获取单元 402, 用于若 当前时刻属于上述 VNF 负荷增长趋势为上升趋势的时间段, 则确定当前的 VNF负荷增长趋势为上升趋势; 若当前时刻属于上述 VNF负荷增长趋势为下 降趋势的时间段, 则确定当前的 VNF负荷增长趋势为下降趋势。  Based on the embodiment of the present invention, the trend obtaining unit 402 is configured to determine that the current VNF load growth trend is an upward trend if the current time belongs to a time period in which the VNF load growth trend is an upward trend; The time period in which the above-mentioned VNF load growth trend is a downward trend determines that the current VNF load growth trend is a downward trend.
本发明实施例综合考虑了: 网络活动由于受到人群作息时间影响, 网络负 荷会出现每天的周期性涨落,体现在某一个网络节点或是应用上, 它的处理负 荷、 需要处理的请求数量、 转发的吞吐量也会相应的出现周期的变化; 本发明 实施例将负荷的变化趋势划分为若干个 "增长阶段" 和 "降低阶段", 基于人 群生活规律的时间段划分, 可以摆脱使用负荷阔值使用的限制。在本发明实施 例中, "统计各时间点的资源消耗量, 并依据统计得到的各时间点的资源消耗 量确定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下 降趋势的时间段"这部分是可以周期性进行了, 通常来说, 可以以天为单位周 期性计算, 也可以以周为周期进行统计。 对于特殊日期, 例如: 法定节假曰等 时间, 可以单独进行统计。 具体如下: 统计法定节假日内各时间点的资源消耗 量, 并依据统计得到的各时间点的资源消耗量确定 VNF负荷增长趋势为上升 趋势的时间段, 以及 VNF负荷增长趋势为下降趋势的时间段。 这个历史数据 将在下一次与之对应的法定节假日时使用。  The embodiment of the present invention comprehensively considers: The network activity is affected by the time of the crowd, and the network load will have periodic fluctuations every day, which is reflected in a certain network node or application, its processing load, the number of requests to be processed, The forwarding throughput also has a corresponding change in the period; the embodiment of the present invention divides the trend of the load into a number of "growth stages" and "reduction stages", and the time period based on the life rules of the crowd can be used to get rid of the load. The limit on the value used. In the embodiment of the present invention, "the resource consumption amount at each time point is counted, and the time period in which the VNF load growth trend is an upward trend is determined according to the statistically obtained resource consumption amount at each time point, and the VNF load growth trend is a downward trend. The time period "This part can be performed periodically. Generally speaking, it can be calculated periodically in days or in weekly cycles. For special dates, such as: statutory holidays, etc., statistics can be made separately. The details are as follows: Count the resource consumption at each time point in the legal holiday, and determine the time period in which the VNF load growth trend is an upward trend according to the statistical resource consumption at each time point, and the time period in which the VNF load growth trend is a downward trend. . This historical data will be used on the next legal holiday corresponding to it.
本发明实施例还提供了另一种资源调度装置, 如图 7所示, 包括: 接收器 701、 发射器 702、 处理器 703以及存储器 704;  The embodiment of the present invention further provides another resource scheduling apparatus, as shown in FIG. 7, comprising: a receiver 701, a transmitter 702, a processor 703, and a memory 704;
其中, 上述接收器 701用于控制执行: 在接收到资源分配请求后, 获取当 前的 VNF负荷增长趋势; 若当前的 VNF负荷增长趋势为上升趋势, 则在可选 的 VM中选择至少一个 VM分配资源, 使上述可选的 VM负荷均衡。  The receiver 701 is configured to perform control: after receiving the resource allocation request, obtain a current VNF load growth trend; if the current VNF load growth trend is an upward trend, select at least one VM allocation in the optional VM. Resources that balance the above optional VM load.
在本发明实施例中, 资源分配请求是用于请求分配资源的请求, 该请求作 为触发资源分配的请求使用, 其表现形式可以是: 请求接入、 请求建立新的会 话等各种需要在 VM中分配处理资源的任意请求,其具体表现形式本发明实施 例不予限定。  In the embodiment of the present invention, the resource allocation request is a request for requesting allocation of resources, and the request is used as a request for triggering resource allocation, and the expression may be: requesting access, requesting to establish a new session, and the like, in the VM. Any specific request for the allocation of the processing resource is not limited in the embodiment of the present invention.
上述 VNF负荷增长趋势是用于表示整个系统对 VM资源消耗的变化情况 的参数; 本发明实施例中的 VNF负荷增长趋势可以通过图表的方式表示, 例 如: 时刻与负荷的对应曲线图, 这个曲线图会呈现上升或下降的趋势, 通过当 前的时间可以预测当前 VNF负荷增长趋势是上升的还是下降的; 本发明实施 例中的 VNF负荷增长趋势还可以通过控制值的方式表示, 设置负荷高阔值和 负荷低阔值, 在当前负荷高于负荷高阔值时, 认为当前 VNF负荷增长趋势为 上升趋势, 在当前负荷低于负荷低阔值时, 认为当前 VNF负荷增长趋势为下 降趋势。用于表示整个系统对 VM资源消耗的变化情况的参数,还可以有其他 的表现形式, 本发明实施例对此不予限定。 The VNF load growth trend is a parameter used to indicate the change of the VM resource consumption of the entire system. The VNF load growth trend in the embodiment of the present invention can be represented by a graph. For example, the corresponding graph of time and load, this graph will show a rising or falling trend, and the current time can predict whether the current VNF load growth trend is rising or falling; the VNF load growth trend in the embodiment of the present invention is still It can be expressed by the control value, setting the load high value and the low load value. When the current load is higher than the load high value, the current VNF load growth trend is considered to be an upward trend. When the current load is lower than the load low value , that the current VNF load growth trend is a downward trend. The parameter used to indicate the change of the VM resource consumption of the entire system may also have other representations, which is not limited by the embodiment of the present invention.
可以理解的是,在没有可选 VM时本发明实施例的方案会新增 VM, 并在 新增的 VM中分配资源。 极端情况下, 无法新增 VM时, 将会发生系统过载。  It can be understood that, when there is no optional VM, the solution of the embodiment of the present invention adds a VM and allocates resources in the newly added VM. In extreme cases, when a VM cannot be added, a system overload will occur.
本发明实施例,通过在网络负荷为增长趋势的情况下,选择 VM分配资源, 使各 VM负荷均衡的方式, 可以将各 VM的负荷都维持在较为合理的负荷水 平, 保证了请求能够及时处理, 并且在请求数量突发增多的情况下, 各 VM都 能够分担新增的资源需求,避免 VM出现过载现象,提升请求处理效率减少延 时, 从而提升服务质量; 提升了网络抗冲击能力, 及系统安全性。  In the embodiment of the present invention, when the network load is increasing, the VM is allocated resources, and the load balancing of each VM is performed, so that the load of each VM can be maintained at a relatively reasonable load level, thereby ensuring that the request can be processed in time. And in the case that the number of requests is increased, each VM can share the newly added resource requirements, avoid overloading of the VM, improve request processing efficiency and reduce delay, thereby improving service quality; improving network impact resistance, and System security.
本发明实施例还提供了, 在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM负荷均衡的可选实现方式,具体如下: 上述接收器 701用于 控制执行: 在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM 负荷均衡包括: 按照 VM的负荷进行排序, 按照 VM的负荷从低到高依次选 择 VM分配资源; 或者, 按照 VM负荷进行排序, 选择可选的 VM中负荷最 低的 VM分配资源。  The embodiment of the present invention further provides an optional implementation manner of selecting at least one VM allocation resource in the optional VM to balance the foregoing optional VM load, as follows: The receiver 701 is used to control execution: Selecting at least one VM to allocate resources in the VM, so that the optional VM load balancing includes: sorting according to the load of the VM, selecting the VM to allocate resources according to the load of the VM from low to high; or, sorting according to the VM load, selecting The lowest load VM in the optional VM allocates resources.
以上关于在可选的 VM中选择至少一个 VM分配资源,使上述可选的 VM 负荷均衡的实现方式, 是可以有其他替代方案的, 例如: 按照 VM的负荷进行 排序, 选择负荷较低的 VM作为可选 VM集合, 当有资源分配请求时, 从可 选 VM集合中任意选择 VM分配资源; 或者, 设定一个负荷阔值, 将低于这 个负荷阔值的 VM作为可选 VM集合, 当有资源分配请求时, 从可选 VM集 合中任意选择 VM分配资源; 因此, 以上关于在可选的 VM中选择至少一个 VM分配资源,使上述可选的 VM负荷均衡的实现方式,作为一个优选的实现 方案, 不应理解为对本发明实施例的唯一性限定。  In the above, regarding the implementation of selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load, there may be other alternatives, for example: sorting according to the load of the VM, selecting a VM with a lower load. As an optional VM set, when there is a resource allocation request, arbitrarily select a VM to allocate resources from the optional VM set; or, set a load threshold, and use a VM below the load threshold as an optional VM set. When there is a resource allocation request, the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to make the above-mentioned optional VM load balancing is preferred The implementations should not be construed as limiting the uniqueness of the embodiments of the invention.
与 VNF负荷增长趋势为上升趋势相对的,是 VNF负荷增长趋势为下降趋 势; 本发明实施例还进一步地提供了 VNF负荷增长趋势为下降趋势的情况下 的资源调度方案,具体如下: 上述接收器 701还用于控制执行: 若当前的 VNF 负荷增长趋势为下降趋势, 则在可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中。 Compared with the upward trend of the VNF load growth trend, the VNF load growth trend is a downward trend. The embodiment of the present invention further provides a resource scheduling scheme in a case where the VNF load growth trend is a downward trend, as follows: The receiver 701 is further configured to control execution: if the current VNF load growth trend is a downward trend, Then, at least one VM allocation resource is selected in the optional VM, so that the load tends to concentrate in the above-mentioned optional VM.
以上实施例, 釆用以上实现方式使负荷在上述可选的 VM 中趋于集中之 后, 可以方便在释放 VM时, 选择空闲或者承载业务很少的 VM, 减小对业务 的不利影响。 因此。 上述接收器 701还用于控制执行: 在释放 VM时, 选择选 择空闲或者承载业务少于一定阔值的 VM进行释放。  In the above embodiment, after the above implementations are used to make the load tend to be concentrated in the optional VM, it is convenient to select a VM that has idle or bears a small amount of traffic when the VM is released, thereby reducing the adverse impact on the service. therefore. The receiver 701 is further configured to control execution: when the VM is released, the VM that selects idle or bears less than a certain threshold is selected for release.
在网络负荷下降过程中, 需要 Scale in并不断释放 VM资源, 以此来保证 最有效率的使用资源, 在释放 VM的过程中, 如果要释放的 VM上仍然有正 在处理的用户、呼叫、会话或者通信上下文, 那么直接释放 VM会导致这些用 户的通信中断, 而如果等到 VM上所有用户完成其通信过程再释放 VM, 就不 能及时释放给其他需要资源的 VNF/APP使用, 导致资源利用率降低。 本发明 实施例, 通过在 VNF负荷增长趋势为下降趋势时, 釆用在可选的 VM中选择 至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中的资源调度策 略, 使负荷尽量分布到一部分 VM上, 而另一部分 VM则会尽可能空闲下来, 这样在 Scale in时, 可以快速的释放空闲的 VM, 并且可以避免或者减少通信 中断。  In the process of network load degradation, Scale in is needed and the VM resources are continuously released to ensure the most efficient use of resources. In the process of releasing the VM, if there are still users, calls, and sessions being processed on the VM to be released. Or the communication context, then directly releasing the VM will cause the communication of these users to be interrupted, and if all the users on the VM complete the communication process and then release the VM, they cannot be released to other VNF/APPs that need resources in time, resulting in a decrease in resource utilization. . In the embodiment of the present invention, when the VNF load growth trend is a downward trend, the at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the optional VM. As far as possible, it is distributed to a part of the VM, and the other part of the VM is freed as much as possible, so that when Scale in, the free VM can be quickly released, and communication interruption can be avoided or reduced.
本发明实施例还提供了, 在可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可选的 VM中趋于集中的可选实现方式,具体如下: 上述接收器 701用于控制执行: 在可选的 VM中选择至少一个 VM分配资源,使负荷在上 述可选的 VM中趋于集中包括: 按照 VM的负荷进行排序, 按照 VM的负荷 从高到低依次选择 VM分配资源; 或者, 按照 VM的负荷进行排序, 选择可 选的 VM中负荷最高的 VM分配资源。  The embodiment of the present invention further provides an optional implementation manner of selecting at least one VM to allocate resources in the optional VM, so that the load tends to be concentrated in the optional VM, as follows: The receiver 701 is used to control execution. Selecting at least one VM allocation resource in the optional VM, so that the load tends to be concentrated in the above optional VM includes: sorting according to the load of the VM, and selecting the VM allocation resource according to the load of the VM from high to low; or , sort according to the load of the VM, and select the VM with the highest load among the optional VMs.
以上关于在可选的 VM中选择至少一个 VM分配资源, 使负荷在上述可 选的 VM中趋于集中的实现方式, 是可以有其他替代方案的, 例如: 按照 VM 的负荷进行排序, 选择负荷较高的可选 VM作为可选 VM集合, 当有资源分 配请求时, 从可选 VM集合中任意选择 VM分配资源; 或者, 设定一个负荷 阔值, 将高于这个负荷阔值的可选 VM作为可选 VM集合, 当有资源分配请 求时, 从可选 VM集合中任意选择 VM分配资源; 因此, 以上关于在可选的 VM中选择至少一个 VM分配资源, 使上述可选的 VM负荷均衡的实现方式, 作为一个优选的实现方案, 不应理解为对本发明实施例的唯一性限定。 Regarding the implementation of selecting at least one VM to allocate resources in the optional VM to make the load tend to be concentrated in the above-mentioned optional VM, there may be other alternatives, for example: sorting according to the load of the VM, selecting the load A higher optional VM is used as an optional VM set. When there is a resource allocation request, the VM is randomly selected from the optional VM set; or, a load threshold is set, which is higher than the load threshold. VM as an optional VM collection, when there is resource allocation, please In order to obtain time, the VM allocation resource is arbitrarily selected from the optional VM set; therefore, the above implementation of selecting at least one VM allocation resource in the optional VM to balance the above-mentioned optional VM load is a preferred implementation. It should not be construed as a limitation of the invention.
在本发明实施例中, 当前的 VNF负荷增长趋势可以是基于当前的负荷进 行判断的,也可以是基于历史数据进行预测的, 本发明实施例提供了可选的实 现方式如下: 上述接收器 701用于控制执行: 获取当前的 VNF负荷增长趋势 包括: 获取资源消耗量的历史统计信息, 依据上述历史统计信息确定当前的 VNF负荷增长趋势。  In the embodiment of the present invention, the current VNF load growth trend may be determined based on the current load, or may be based on the historical data. The optional implementation manner is as follows: For controlling execution: Obtaining the current VNF load growth trend includes: obtaining historical statistical information of resource consumption, and determining a current VNF load growth trend according to the historical statistical information.
对于基于历史数据进行预测的方案,本发明实施例还提供了更为具体的可 选实现方案,如下:上述接收器 701用于控制执行:在接收资源分配请求之前, 统计各时间点的资源消耗量, 并依据统计得到的各时间点的资源消耗量确定 VNF负荷增长趋势为上升趋势的时间段, 以及 VNF负荷增长趋势为下降趋势 的时间段; 基于本发明实施例统计历史数据的方案, 上述接收器 701用于控制 执行: 依据上述历史统计信息确定当前的 VNF负荷增长趋势包括: 若当前时 刻属于上述 VNF负荷增长趋势为上升趋势的时间段,则确定当前的 VNF负荷 增长趋势为上升趋势; 若当前时刻属于上述 VNF负荷增长趋势为下降趋势的 时间段, 则确定当前的 VNF负荷增长趋势为下降趋势。  For the solution based on the prediction of the historical data, the embodiment of the present invention further provides a more specific optional implementation, as follows: The receiver 701 is configured to control execution: before receiving the resource allocation request, the resource consumption at each time point is counted. And a time period in which the VNF load growth trend is an upward trend and a time period in which the VNF load growth trend is a downward trend according to the statistically obtained resource consumption amount at each time point; the scheme for statistical historical data based on the embodiment of the present invention, The receiver 701 is configured to perform control: determining, according to the historical statistical information, that the current VNF load growth trend comprises: determining that the current VNF load growth trend is an upward trend if the current time belongs to a time period in which the VNF load growth trend is an upward trend; If the current time belongs to the time period in which the above-mentioned VNF load growth trend is a downward trend, it is determined that the current VNF load growth trend is a downward trend.
本发明实施例综合考虑了: 网络活动由于受到人群作息时间影响, 网络负 荷会出现每天的周期性涨落,体现在某一个网络节点或是应用上, 它的处理负 荷、 需要处理的请求数量、 转发的吞吐量也会相应的出现周期的变化; 本发明 实施例将负荷的变化趋势划分为若干个 "增长阶段" 和 "降低阶段", 基于人 群生活规律的时间段划分, 可以摆脱使用负荷阔值使用的限制。在本发明实施 例中, "统计各时间点的资源消耗量, 并依据统计得到的各时间点的资源消耗 量确定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下 降趋势的时间段"这部分是可以周期性进行了, 通常来说, 可以以天为单位周 期性计算, 也可以以周为周期进行统计。 对于特殊日期, 例如: 法定节假曰等 时间, 可以单独进行统计。 具体如下: 统计法定节 4叚日内各时间点的资源消耗 量, 并依据统计得到的各时间点的资源消耗量确定 VNF负荷增长趋势为上升 趋势的时间段, 以及 VNF负荷增长趋势为下降趋势的时间段。 这个历史数据 将在下一次与之对应的法定节假日时使用。 The embodiment of the present invention comprehensively considers: The network activity is affected by the time of the crowd, and the network load will have periodic fluctuations every day, which is reflected in a certain network node or application, its processing load, the number of requests to be processed, The forwarding throughput also has a corresponding change in the period; the embodiment of the present invention divides the trend of the load into a number of "growth stages" and "reduction stages", and the time period based on the life rules of the crowd can be used to get rid of the load. The limit on the value used. In the embodiment of the present invention, "the resource consumption amount at each time point is counted, and the time period in which the VNF load growth trend is an upward trend is determined according to the statistically obtained resource consumption amount at each time point, and the VNF load growth trend is a downward trend. The time period "This part can be performed periodically. Generally speaking, it can be calculated periodically in days or in weekly cycles. For special dates, such as: statutory holidays, etc., statistics can be made separately. The details are as follows: Count the resource consumption at each time point within 4 days of the legal section, and determine the time period during which the VNF load growth trend is an upward trend based on the statistically obtained resource consumption at each time point, and the VNF load growth trend is a downward trend. period. This historical data It will be used on the next legal holiday corresponding to it.
图 8是本发明实施例提供的一种服务器结构示意图,作为资源调度装置使 用; 该服务器 800可因配置或性能不同而产生比较大的差异, 可以包括一个或 一个以上中央处理器(central processing units, CPU ) 822 (例如, 一个或一个 以上处理器)和存储器 832, 一个或一个以上存储应用程序 842或数据 844的 存储介质 830 (例如一个或一个以上海量存储设备)。 其中, 存储器 832和存 储介质 830可以是短暂存储或持久存储。存储在存储介质 830的程序可以包括 一个或一个以上模块(图示没标出), 每个模块可以包括对服务器中的一系列 指令操作。 更进一步地, 中央处理器 822可以设置为与存储介质 830通信, 在 服务器 800上执行存储介质 830中的一系列指令操作。  FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, which is used as a resource scheduling device; the server 800 may generate a large difference due to different configurations or performances, and may include one or more central processing units (central processing units). , CPU 822 (eg, one or more processors) and memory 832, one or more storage media 830 storing application 842 or data 844 (eg, one or one storage device in Shanghai). Among them, the memory 832 and the storage medium 830 may be short-term storage or persistent storage. The program stored on storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations on the server. Still further, central processor 822 can be configured to communicate with storage medium 830, which performs a series of instruction operations on storage medium 830.
服务器 800还可以包括一个或一个以上电源 826, 一个或一个以上有线或 无线网络接口 850, 一个或一个以上输入输出接口 858, 和 /或, 一个或一个以 上操作系统 841,例如 Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM等等。  Server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and/or one or more operating systems 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
上述实施例中涉及的方法流程步骤可以基于该图 8所示的服务器结构。 值得注意的是, 上述装置只是按照功能逻辑进行划分的,但并不局限于上 述的划分, 只要能够实现相应的功能即可; 另外, 各功能单元的具体名称也只 是为了便于相互区分, 并不用于限制本发明的保护范围。  The method flow steps involved in the above embodiments may be based on the server structure shown in FIG. It should be noted that the above devices are only divided according to functional logic, but are not limited to the above divisions, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the purpose of distinguishing from each other, and are not used. To limit the scope of protection of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部 分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计 算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。  In addition, those skilled in the art can understand that all or part of the steps in implementing the foregoing method embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. The storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内, 可轻 易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种资源调度方法, 其特征在于, 包括:  A resource scheduling method, comprising:
在虚拟化网络功能 VNF接收到资源分配请求后,获取当前的 VNF负荷增 长趋势;  After the virtualized network function receives the resource allocation request, the VNF obtains the current VNF load growth trend;
若当前的 VNF负荷增长趋势为上升趋势, 则在可选的 VM中选择至少一 个 VM分配资源, 使所述可选的 VM负荷均衡。  If the current VNF load growth trend is an upward trend, at least one VM allocation resource is selected in the optional VM to balance the optional VM load.
2、 根据权利要求 1所述方法, 其特征在于, 所述在可选的 VM中选择至 少一个 VM分配资源, 使所述可选的 VM负荷均衡包括:  2. The method according to claim 1, wherein the selecting at least one VM allocation resource in the optional VM, and the balancing the load of the optional VM comprises:
按照 VM的负荷进行排序, 按照 VM的负荷从低到高依次选择 VM分配 资源; 或者, 按照 VM负荷进行排序, 选择可选的 VM中负荷最低的 VM分 配资源。  According to the load of the VM, the VM allocation resources are selected according to the load of the VM from low to high; or, according to the VM load, the VM with the lowest load in the optional VM is selected.
3、 根据权利要求 1所述方法, 其特征在于, 还包括:  3. The method according to claim 1, further comprising:
若当前的 VNF负荷增长趋势为下降趋势, 则在可选的 VM中选择至少一 个 VM分配资源, 使负荷在所述可选的 VM中趋于集中。  If the current VNF load growth trend is a downward trend, at least one VM allocation resource is selected in the optional VM, so that the load tends to be concentrated in the optional VM.
4、 根据权利要求 3所述方法, 其特征在于, 所述在可选的 VM中选择至 少一个 VM分配资源, 使负荷在所述可选的 VM中趋于集中包括:  The method according to claim 3, wherein the selecting at least one VM allocation resource in the optional VM, causing the load to concentrate in the optional VM includes:
按照 VM的负荷进行排序, 按照 VM的负荷从高到低依次选择 VM分配 资源; 或者, 按照 VM的负荷进行排序, 选择可选的 VM中负荷最高的 VM 分配资源。  According to the load of the VM, the VM allocation resources are selected according to the load of the VM from high to low; or, according to the load of the VM, the VM with the highest load among the optional VMs is selected.
5、 根据权利要求 1至 4任意一项所述方法, 其特征在于, 所述获取当前 的 VNF负荷增长趋势包括:  The method according to any one of claims 1 to 4, wherein the obtaining the current VNF load growth trend comprises:
获取资源; %耗量的历史统计信息, 依据所述历史统计信息确定当前的 VNF负荷增长趋势。  Obtain resources; historical statistics of % consumption, and determine the current VNF load growth trend based on the historical statistics.
6、 根据权利要求 5所述方法, 其特征在于, 在接收资源分配请求之前, 还包括:  The method according to claim 5, further comprising: before receiving the resource allocation request, further comprising:
统计各时间点的资源消耗量,并依据统计得到的各时间点的资源消耗量确 定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下降趋 势的时间段。  The resource consumption at each time point is counted, and the time period in which the VNF load growth trend is an upward trend and the time period in which the VNF load growth trend is a downward trend are determined according to the statistically obtained resource consumption at each time point.
7、 一种资源调度装置, 其特征在于, 包括: 请求接收单元, 用于接收资源分配请求; 7. A resource scheduling device, comprising: a request receiving unit, configured to receive a resource allocation request;
趋势获取单元, 用于在所述请求接收单元接收到资源分配请求后, 获取当 前的 VNF负荷增长趋势;  a trend obtaining unit, configured to acquire a current VNF load growth trend after the request receiving unit receives the resource allocation request;
调度控制单元, 用于若所述趋势获取单元获取到的当前的 VNF负荷增长 趋势为上升趋势, 则在可选的 VM中选择至少一个 VM分配资源, 使所述可 选的 VM负荷均衡。  The scheduling control unit is configured to select at least one VM allocation resource in the optional VM to balance the optional VM load if the current VNF load growth trend acquired by the trend obtaining unit is an upward trend.
8、 根据权利要求 7所述资源调度装置, 其特征在于,  8. The resource scheduling apparatus according to claim 7, wherein:
所述调度控制单元, 用于按照 VM的负荷进行排序, 按照 VM的负荷从 低到高依次选择 VM分配资源; 或者, 按照 VM负荷进行排序, 选择可选的 VM中负荷最低的 VM分配资源。  The scheduling control unit is configured to perform the sorting according to the load of the VM, and select the VM allocation resources according to the load of the VM from low to high; or, according to the VM load, select the VM with the lowest load in the optional VM.
9、 根据权利要求 7所述资源调度装置, 其特征在于,  9. The resource scheduling apparatus according to claim 7, wherein:
所述调度控制单元, 还用于若所述趋势获取单元获取到的当前的 VNF负 荷增长趋势为下降趋势, 则在可选的 VM中选择至少一个 VM分配资源, 使 负荷在所述可选的 VM中趋于集中。  The scheduling control unit is further configured to: if the current VNF load growth trend acquired by the trend obtaining unit is a downward trend, select at least one VM allocation resource in the optional VM, so that the load is in the optional The VM tends to concentrate.
10、 根据权利要求 9所述资源调度装置, 其特征在于,  10. The resource scheduling apparatus according to claim 9, wherein:
所述调度控制单元, 用于按照 VM的负荷进行排序, 按照 VM的负荷从 高到低依次选择 VM分配资源; 或者, 按照 VM的负荷进行排序, 选择可选 的 VM中负荷最高的 VM分配资源。  The scheduling control unit is configured to perform sorting according to the load of the VM, and select VM allocation resources according to the load of the VM from high to low; or, according to the load of the VM, select the VM with the highest load among the optional VMs. .
11、 根据权利要求 7至 10任意一项所述资源调度装置, 其特征在于, 趋势获取单元, 用于获取资源消耗量的历史统计信息,依据所述历史统计 信息确定当前的 VNF负荷增长趋势。  The resource scheduling apparatus according to any one of claims 7 to 10, wherein the trend obtaining unit is configured to obtain historical statistical information of the resource consumption amount, and determine a current VNF load growth trend according to the historical statistical information.
12、 根据权利要求 11所述资源调度装置, 其特征在于, 还包括: 统计单元, 用于统计各时间点的资源消耗量;  The resource scheduling apparatus according to claim 11, further comprising: a statistical unit, configured to collect resource consumption amount at each time point;
趋势计算单元,用于依据所述统计单元统计得到的各时间点的资源消耗量 确定 VNF负荷增长趋势为上升趋势的时间段,以及 VNF负荷增长趋势为下降 趋势的时间段。  The trend calculation unit is configured to determine, according to the resource consumption amount of each time point obtained by the statistical unit, a time period in which the VNF load growth trend is an upward trend, and a time period in which the VNF load growth trend is a downward trend.
PCT/CN2014/079233 2014-06-05 2014-06-05 Resource scheduling method and apparatus WO2015184612A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/079233 WO2015184612A1 (en) 2014-06-05 2014-06-05 Resource scheduling method and apparatus
CN201480024136.4A CN105519075A (en) 2014-06-05 2014-06-05 Resource scheduling method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079233 WO2015184612A1 (en) 2014-06-05 2014-06-05 Resource scheduling method and apparatus

Publications (1)

Publication Number Publication Date
WO2015184612A1 true WO2015184612A1 (en) 2015-12-10

Family

ID=54765950

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079233 WO2015184612A1 (en) 2014-06-05 2014-06-05 Resource scheduling method and apparatus

Country Status (2)

Country Link
CN (1) CN105519075A (en)
WO (1) WO2015184612A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427258A (en) * 2019-07-31 2019-11-08 腾讯科技(深圳)有限公司 Scheduling of resource control method and device based on cloud platform

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147517A (en) 2017-03-24 2017-09-08 上海交通大学 A kind of adaptive polo placement resource allocation methods for virtual network function
CN111858015B (en) * 2019-04-25 2024-01-12 中国移动通信集团河北有限公司 Method, device and gateway for configuring running resources of application program
CN112052072B (en) * 2020-09-10 2022-06-28 华云数据控股集团有限公司 Scheduling strategy and super-fusion system of virtual machine
CN114265368B (en) * 2021-12-07 2023-07-25 中国航发控制系统研究所 Combined state self-adaptive estimation method for aero-engine servo control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100162259A1 (en) * 2008-12-22 2010-06-24 Electronics And Telecommunications Research Institute Virtualization-based resource management apparatus and method and computing system for virtualization-based resource management
CN101938416A (en) * 2010-09-01 2011-01-05 华南理工大学 Cloud computing resource scheduling method based on dynamic reconfiguration virtual resources
CN102546700A (en) * 2010-12-23 2012-07-04 中国移动通信集团公司 Resource scheduling and resource migration methods and equipment
CN103176849A (en) * 2013-03-12 2013-06-26 浙江大学 Virtual machine clustering deployment method based on resource classification

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236582B (en) * 2011-07-15 2013-06-05 浙江大学 Method for balanced distribution of virtualized cluster load in a plurality of physical machines

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100162259A1 (en) * 2008-12-22 2010-06-24 Electronics And Telecommunications Research Institute Virtualization-based resource management apparatus and method and computing system for virtualization-based resource management
CN101938416A (en) * 2010-09-01 2011-01-05 华南理工大学 Cloud computing resource scheduling method based on dynamic reconfiguration virtual resources
CN102546700A (en) * 2010-12-23 2012-07-04 中国移动通信集团公司 Resource scheduling and resource migration methods and equipment
CN103176849A (en) * 2013-03-12 2013-06-26 浙江大学 Virtual machine clustering deployment method based on resource classification

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427258A (en) * 2019-07-31 2019-11-08 腾讯科技(深圳)有限公司 Scheduling of resource control method and device based on cloud platform

Also Published As

Publication number Publication date
CN105519075A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN112425129B (en) Method and system for cluster rate limiting in cloud computing system
US10185592B2 (en) Network storage device using dynamic weights based on resource utilization
EP3117335B1 (en) Coordinated admission control for network-accessible block storage
CN108337188B (en) Traffic and load aware dynamic queue management
US9442763B2 (en) Resource allocation method and resource management platform
US20170201574A1 (en) Method, system, and device for allocating resources in a server
US9112809B2 (en) Method and apparatus for controlling utilization in a horizontally scaled software application
WO2015184612A1 (en) Resource scheduling method and apparatus
US20150309828A1 (en) Hypervisor manager for virtual machine management
WO2015101091A1 (en) Distributed resource scheduling method and device
WO2013078588A1 (en) Method and device for adjusting memories of virtual machines
KR20170120335A (en) Apparatus and method for managing computing resources in network function virtualization system
CN111813543A (en) Adaptive scheduling method, device and computer readable storage medium
US10733022B2 (en) Method of managing dedicated processing resources, server system and computer program product
WO2014114072A1 (en) Regulation method and regulation device for i/o channels in virtualization platform
US9665409B2 (en) Methods and apparatus facilitating access to storage among multiple computers
Komarasamy et al. A novel approach for Dynamic Load Balancing with effective Bin Packing and VM Reconfiguration in cloud
Patel et al. A survey on load balancing in cloud computing
CN110795323A (en) Load statistical method, device, storage medium and electronic equipment
Ajayi et al. Multi-Class load balancing scheme for QoS and energy conservation in cloud computing
US9213575B2 (en) Methods and systems for energy management in a virtualized data center
CN112685167A (en) Resource using method, electronic device and computer program product
JP6491944B2 (en) Packet processing apparatus and program
Chaurasia et al. Server consolidation using a dynamic model approach
WO2016028268A1 (en) Send buffer based on messaging traffic load

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: 14893800

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14893800

Country of ref document: EP

Kind code of ref document: A1