CN114726922B - Network resource scheduling method and device, electronic equipment and storage medium - Google Patents

Network resource scheduling method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114726922B
CN114726922B CN202210334928.8A CN202210334928A CN114726922B CN 114726922 B CN114726922 B CN 114726922B CN 202210334928 A CN202210334928 A CN 202210334928A CN 114726922 B CN114726922 B CN 114726922B
Authority
CN
China
Prior art keywords
network
network resource
network resources
target
scheduling period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210334928.8A
Other languages
Chinese (zh)
Other versions
CN114726922A (en
Inventor
胡永登
刘虎城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210334928.8A priority Critical patent/CN114726922B/en
Publication of CN114726922A publication Critical patent/CN114726922A/en
Application granted granted Critical
Publication of CN114726922B publication Critical patent/CN114726922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/83Admission control; Resource allocation based on usage prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • 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
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms

Abstract

The embodiment of the application discloses a network resource scheduling method, a device, electronic equipment and a storage medium, which are used for determining target conditions of network resources based on scheduling period parameters, network resource use conditions and target parameters of at least part of network resources; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the rate of use of the available object by the network resource. Determining a target weight for each of the at least some of the network resources based on the target condition; and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource.

Description

Network resource scheduling method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a method and an apparatus for scheduling network resources, an electronic device, and a storage medium.
Background
Cloud computing is a pay-per-use model that provides usable, convenient, on-demand network access to a configurable pool of shared resources (resources including networks, servers, storage, applications, and services) that can be quickly provided with little effort to manage or interact with service providers.
However, at present, the scheduling of network resources can only be performed for the user according to the network resources subscribed by the user, that is, what network resources are scheduled for the user when the user subscribes what network resources, and the intelligent of network resource scheduling is poor.
Disclosure of Invention
The application provides a network resource scheduling method and device, electronic equipment and storage media, comprising the following technical scheme:
a method of scheduling network resources, the method comprising:
acquiring scheduling period parameters and detecting network resource use conditions;
determining a target condition of the network resource based on the scheduling period parameter, the network resource usage, and a target parameter of at least part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the use rate of the network resource to the available object;
Determining a target weight for each of the at least some network resources based on the target condition;
and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource.
The above method, preferably, determines a target condition of a network resource based on the scheduling period parameter and the network resource usage, and at least a target parameter of a part of the network resource, including:
determining the available object availability of the at least part of network resources in the current scheduling period based on the scheduling period parameter and the network resource use condition;
obtaining a performance weighted sum of the at least partial network resources and a use rate weighted sum of the at least partial network resources to the available object when the at least partial network resources are scheduled in the current scheduling period based on the target parameters of the at least partial network resources and the scheduling weights of the at least partial network resources;
determining a target condition of the network resource based on the available object availability, the performance weighted sum, and the usage rate weighted sum.
The above method, preferably, the target condition includes:
When the at least part of network resources are scheduled in the current scheduling period, the performance weighted sum is maximum under the condition that the difference between the available object availability and the use rate weighted sum is smaller than a target difference;
or,
when the at least part of network resources are scheduled in the current scheduling period, the using rate weighted sum is minimum and is smaller than or equal to the available object availability under the condition that the performance weighted sum is larger than the target network traffic in the current scheduling period; the target network traffic is: network traffic to be used in the current scheduling period is predicted based on the network traffic in the historical scheduling period.
Preferably, the determining the available object usage of the at least part of network resources in the current scheduling period based on the scheduling period parameter and the network resource usage includes:
obtaining the total available amount of the available objects of the current network resources and the non-network resources according to the used network resources and the non-network resources;
determining the usage amount of the non-network resource to the available object in the remaining available duration;
determining the difference value between the total available amount and the used amount as the available amount of the available object of the network resource currently;
And determining the available object availability of the at least part of network resources in the current scheduling period according to the available object availability of the current network resources and the residual available duration.
The method, preferably, the determining the usage of the available objects by the non-network resources in the remaining available duration includes:
and determining the usage amount of the non-network resource to the available object in the residual available duration according to the historical usage data of the non-network resource to the available object.
Preferably, the method for obtaining the scheduling period parameter and detecting the network resource usage includes:
monitoring whether the target application is in a healthy state;
and acquiring a scheduling period parameter and detecting the network resource use condition based on the target application not in a health state.
Preferably, the method, according to the target weight of each network resource, schedules the at least part of network resources in the current scheduling period, includes:
determining the using time period of the target application to each network resource in the current scheduling period;
and scheduling the at least part of network resources in the current scheduling period according to the target weight of each network resource in the using time period.
A network resource scheduling apparatus, comprising:
the acquisition module is used for acquiring the scheduling period parameters and detecting the network resource use condition;
a first determining module, configured to determine a target condition of a network resource based on the scheduling period parameter, the network resource usage, and a target parameter of at least a portion of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the use rate of the network resource to the available object;
a second determining module, configured to determine a target weight of each network resource in the at least part of network resources based on the target condition;
and the scheduling module is used for scheduling the at least part of network resources in the current scheduling period according to the target weight of each network resource.
An electronic device, comprising:
a memory for storing a program;
a processor for calling and executing the program in the memory, by executing the program, to implement the steps of the network resource scheduling method according to any one of the above.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network resource scheduling method according to any of the preceding claims.
According to the scheme, the network resource scheduling method, the device, the electronic equipment and the storage medium are used for determining the target condition of the network resource based on the scheduling period parameter, the network resource use condition and the target parameter of at least part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the rate of use of the available object by the network resource. Determining a target weight for each of the at least some of the network resources based on the target condition; and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource. The aim of dynamically scheduling the network resources based on the performance of the network resources and the use rate of the use objects is fulfilled, and the intelligence of the network resource scheduling is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an implementation of a network resource scheduling method according to an embodiment of the present application;
FIG. 2 is a flowchart of an implementation of determining a target condition of a network resource based on a scheduling period parameter and a network resource usage, and at least a portion of a target parameter of the network resource according to an embodiment of the present application;
FIG. 3 is a flowchart of one implementation of determining the available usage of the at least some network resources in the current scheduling period based on the scheduling period parameter and the network resource usage provided in the embodiment of the present application;
FIG. 4 is a flowchart of an implementation of acquiring a scheduling period parameter and detecting a network resource usage condition according to an embodiment of the present application;
FIG. 5 is a flowchart of one implementation of scheduling at least some network resources in a current scheduling period according to target weights of respective network resources provided by an embodiment of the present application;
Fig. 6 is a schematic structural diagram of a network resource scheduling device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in other sequences than those illustrated herein.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without any inventive effort, are intended to be within the scope of the application.
The network resource scheduling method provided by the embodiment of the application can be used in a cloud container platform, the Yun Rongqi platform can provide a plurality of virtual network resources (hereinafter referred to as network resources), different network resources have at least partial different parameters, and each network resource can comprise but is not limited to the following parameters: data centers, network conditions, network egress lines, network bandwidth, rate of use of available objects (e.g., cost of availability) i.e., usage of available objects in a single cycle, such as price of a single cycle, network traffic, etc.
Wherein, some data centers have external network environment, and some data centers have no external network environment, so the network environments in different data can be different and the same; the network conditions may include whether or not the network is an all-optical network, and thus, the network conditions of different network resources may be different and may be the same; the egress lines of the network may comprise egress lines of different operators, such as a telecommunications egress line, a mobile egress line, etc., and thus the network egress lines of different network resources may be different, possibly the same; the network bandwidths of the different network resources may be the same or different; the usage rates of the available objects by different network resources may be the same or different; the network traffic provided by different network resources may be the same or different.
As shown in fig. 1, a flowchart for implementing a network resource scheduling method according to an embodiment of the present application may include:
step S101: and acquiring the scheduling period parameter and detecting the network resource use condition.
The scheduling period parameter may include, but is not limited to: the total schedulable cycle number, the cycle number of the network resource already scheduled, the duration of the network resource already called in the current scheduling cycle, and the like. Network resource usage may include, but is not limited to: which network resources have been invoked, the duration of invocation of each network resource, etc.
As an example, since network resources are typically charged at a certain period, e.g., monthly, quarterly, etc., the scheduling period herein may be a charging period, e.g., monthly, i.e., one scheduling period per month, if monthly.
Step S102: determining a target condition of the network resource based on the scheduling period parameter, the network resource usage condition and a target parameter of at least part of the network resource; the target conditions include: when at least part of network resources are scheduled in the current scheduling period, the total performance of at least part of network resources meets the performance threshold in the current scheduling period, and the utilization rate of at least part of network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the rate of use of the available objects by the network resource.
In the application, the network resources which can be scheduled can be all network resources which can be provided by the cloud container platform, or can be part of network resources selected by a user.
As an example, the target parameters may be network traffic of the network resource and a rate of use of the available objects.
Step S103: based on the target conditions, a target weight for each of the at least some network resources is determined.
In the application, weights are allocated to each network resource in at least part of network resources based on target conditions, so that when at least part of network resources are scheduled in a current scheduling period according to the target weights of each network resource, the total performance of at least part of network resources meets the performance threshold in the current scheduling period, and the utilization rate of at least part of network resources to an available object reaches the utilization rate threshold in the current scheduling period.
Step S104: and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource.
Optionally, the target weight of the network resource characterizes the use duration of the network resource, and the use duration of the network resource is positively correlated with the target weight of the network resource, that is, the larger the target weight of the network resource is, the longer the use duration of the network resource is.
As an example, the remaining available time length in the current scheduling period may be determined, and then the at least part of the network resources are scheduled in the current scheduling period according to the target weight of each network resource in the remaining available time length in the current scheduling period.
The network resource scheduling method provided by the embodiment of the application determines the target condition of the network resource based on the scheduling period parameter, the network resource use condition and the target parameter of at least part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the rate of use of the available object by the network resource. Determining a target weight for each of the at least some of the network resources based on the target condition; and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource. The aim of dynamically scheduling the network resources based on the performance of the network resources and the use rate of the use objects is fulfilled, and the intelligence of the network resource scheduling is improved. Moreover, the network performance or the utilization rate of the available objects when the network resources are scheduled based on the application can meet the corresponding threshold value, thereby meeting different requirements of users.
In an alternative embodiment, an implementation flowchart for determining the target condition of the network resource based on the scheduling period parameter and the network resource usage, and at least a part of the target parameters of the network resource is shown in fig. 2, and may include:
step S201: based on the scheduling period parameter and the network resource usage, an available object availability of at least a portion of the network resources in the current scheduling period is determined.
Typically, users use non-network resources, such as computing resources, memory, etc., in the cloud container platform in addition to network resources in the cloud container platform. In some cases, the user may allocate the available objects to the network resources and the non-network resources respectively, for example, the available costs of the network resources and the non-network resources are independent of each other, and when determining the available amounts of the available objects of at least part of the network resources in the current scheduling period, the use condition of the non-network resources need not be concerned. In other cases, the user may not allocate the available objects to the network resources and the non-network resources respectively, and at this time, the use condition of the non-network resources needs to be considered, and the available object availability of at least part of the network resources in the current scheduling period may be determined based on the scheduling period parameter, the use condition of the network resources and the use condition of the non-network resources.
By way of example, if the available object is a cost, the present application determines the remaining available cost of at least a portion of the network resources in the current scheduling period based on the scheduling period parameter and the network resource usage.
Step S202: obtaining a performance weighted sum of the at least partial network resources and a usage rate weighted sum of the at least partial network resources on the available objects, comprising: and obtaining a performance weighted sum of the at least partial network resources and a use rate weighted sum of the at least partial network resources to the available object when the at least partial network resources are scheduled in the current scheduling period based on the target parameters of the at least partial network resources and the scheduling weights of the at least partial network resources.
Optionally, in the at least part of network resources, the scheduling weight of each network resource is a parameter to be determined, and the specific value is determined according to the target condition.
Optionally, in the at least part of network resources, the scheduling weight of the part of network resources is a predetermined value (for example, designated by a user), the scheduling weight of the part of network resources is a pending parameter, and the specific value is determined according to a target condition. In some cases, the user may wish to use some network resource (denoted as network resource a) more, and other network resources may not be limited to use for a longer period of time, then the network resource a may be assigned a greater weight, e.g., the weight of network resource a is greater than or equal to 0.5.
Step S203: a target condition of the network resource is determined based on the available object availability, the performance weighted sum, and using the rate weighted sum.
As an example, the target conditions may include: and when the difference between the available object availability and the used rate weighted sum is smaller than the target difference value when the at least part of network resources are scheduled in the current scheduling period, the performance weighted sum is maximum.
For example, assuming that the at least part of the network resources are 4 network resources, namely, network resource 1, network resource 2, network resource 3 and network resource 4, the traffic of each network resource is b1, b2, b3, b4 in turn, the usage rate of the available object is a1, a2, a3, a4 in turn, and the scheduling weights corresponding to each network resource are: x1, x2, x3, x4, then the performance weighted sum b of these 4 network resources can be formulated as:
b=b1*x1+b2*x2+b3*x3+b4*x4
the rate weighted sum of usage of these 4 network resources, a, can be formulated as:
a=a1*x1+a2*x2+a3*x3+a4*x4。
assuming that the available object availability of at least part of the network resources in the current scheduling period is Y, the target condition may be: in case the difference Y-a between Y and a is smaller than the target difference, b takes the maximum value. Of course, Y-a needs to be greater than or equal to zero.
The application determines the values of x1, x2, x3 and x4 based on the target conditions. Based on the scheduling weight, the network resource is scheduled, so that the optimal performance of the network resource can be realized.
As an example, the target conditions may include: when the at least partial network resources are scheduled in the current scheduling period, the performance weighted sum is larger than the target network flow in the current scheduling period, and the rate weighted sum is the smallest when the rate weighted sum is smaller than or equal to the available object; the target network traffic is: network traffic to be used in the current scheduling period is predicted based on the network traffic in the historical scheduling period.
Optionally, the historical scheduling period may be each historical scheduling period in a preset time period before the current scheduling period, and the network flow used by each historical scheduling period in the preset time period may be input into a pre-trained traffic prediction engine to obtain the network flow (i.e. the target network flow) required to be used in the current scheduling period output by the traffic prediction engine. That is, the present application predicts how much traffic will be used together in the current scheduling period by the network traffic in the historical scheduling period.
For example, assuming that the at least part of the network resources are 4 network resources, namely, network resource 1, network resource 2, network resource 3 and network resource 4, the traffic of each network resource is b1, b2, b3, b4 in turn, the usage rate of the available object is a1, a2, a3, a4 in turn, and the weights corresponding to each network resource are: x1, x2, x3, x4, then the performance weighted sum b of these 4 network resources can be formulated as:
b=b1*x1+b2*x2+b3*x3+b4*x4
the rate weighted sum of usage of these 4 network resources, a, can be formulated as:
a=a1*x1+a2*x2+a3*x3+a4*x4。
assuming that the available object availability of at least part of the network resources in the current scheduling period is Y and the target network traffic is c, the target condition may be: and when Y is greater than or equal to a and b is greater than c, a takes the minimum value. Of course, Y-b needs to be greater than or equal to zero.
The application determines the values of x1, x2, x3 and x4 based on the target conditions. Based on the scheduling weight, the network resource is scheduled, so that the lowest utilization rate of the available objects can be realized.
In an alternative embodiment, in a case where the use situation of the non-network resource needs to be considered, an implementation flowchart for determining the available usage of the at least part of the available objects of the network resource in the current scheduling period based on the scheduling period parameter and the use situation of the network resource is shown in fig. 3, may include:
Step S301: and obtaining the total available amount of the available objects of the current network resources and the non-network resources according to the used network resources and the non-network resources.
The amount of usage of the usable object by the used network resources and the non-network resources (i.e., how many usable objects have been used) can be determined based on the rate of usage of the usable object by the used network resources, the rate of usage of the usable object by the used non-network resources, and the duration of usage of the used network resources and the duration of usage of the used non-network resources. The difference between the total available amount of the network resources and the non-available resources and the used amount of the network resources and the non-network resources to the available objects is the total available amount of the available objects of the current network resources and the non-network resources (i.e. how many available objects remain).
Step S302: the usage of the available objects by the non-network resources for the remaining available time period is determined.
The remaining available time period refers to the difference between the total available time period of the cloud container resources (including the cloud resources) purchased by the user and the time period in which the cloud container resources have been used. For example, when a user purchases a cloud container resource, the total available time period is designated as 12 months, and 3 months have been used so far, and the current remaining available time period is 9 months.
Optionally, the usage amount of the available object by each target period (the duration of the target period is smaller than the duration of the scheduling period) of the non-network resource in the remaining available duration may be predicted, and the usage amount of the available object by each target period of the non-network resource in the remaining available duration is summed to obtain the usage amount of the available object by the non-network resource in the remaining available duration.
Step S303: determining an available amount of available objects of the current network resource: and determining the difference value of the total available amount of the available objects of the current network resource and the non-network resource and the available object usage amount of the non-network resource in the residual available time period as the available amount of the available object of the current network resource.
Step S304: determining the available object availability of the at least part of the network resources in the current scheduling period: and determining the available object availability of the at least part of the network resources in the current scheduling period according to the available object availability of the current network resources and the remaining available duration.
Optionally, a ratio of the remaining duration in the current scheduling period to the remaining available duration may be obtained, and the available object of the network resource may be multiplied by the ratio to obtain the available object of the at least part of the network resource in the current scheduling period.
In an alternative embodiment, without considering the usage of non-network resources, one implementation of determining the available object usage of at least part of the network resources in the current scheduling period based on the scheduling period parameter and the usage of network resources may be:
the usage of the available objects by the current network resources for the remaining available time period is determined.
Optionally, the usage amount of the network resource to the available object in each target period (the duration of the target period is smaller than the duration of the scheduling period) in the remaining available duration may be predicted, and the usage amount of the network resource to the available object in each target period in the remaining available duration is summed to obtain the usage amount of the network resource to the available object in the remaining available duration. The specific implementation manner may refer to the foregoing implementation process of determining the usage amount of the non-network resource for the available object in the remaining available duration, which is not described herein.
And determining the available object quantity of at least part of the network resources in the current scheduling period according to the remaining available time length and the available object quantity of the current network resources in the remaining available time length.
In an alternative embodiment, an implementation flowchart for acquiring the scheduling period parameter and detecting the network resource usage is shown in fig. 4, which may include:
Step S401: monitoring whether the target application is in a healthy state.
The target application is the application using the network resource in the cloud container platform. Parameters such as throughput, response time and the like of the target application can be acquired, and whether the target application is in a health state or not is judged based on the acquired parameters.
As an example, if the throughput of the target application is less than the first threshold and/or the response time is greater than the second threshold, it is determined that the target application is not in a healthy state.
Step S402: and acquiring a scheduling period parameter and detecting the network resource use condition based on the fact that the target application is not in a healthy state.
That is, the present application initiates scheduling of network resources when the target application is in an unhealthy state.
Optionally, if the target application is not in a healthy state and the network request delay is greater than the first target duration, acquiring a scheduling period parameter and detecting a network resource use condition; or,
and if the duration of the target application which is not in the healthy state is longer than the second target duration, acquiring the scheduling period parameter and detecting the network resource use condition.
In an alternative embodiment, a flowchart of one implementation of scheduling at least part of the network resources in the current scheduling period according to the target weights of the network resources as shown in fig. 5 may include:
Step S501: a time period of use of the respective network resource by the target application in the current period is determined.
The corresponding relation between the time period and the network resource can be determined according to the predicted use flow in the time period and the similarity of the network resource flow; specifically, if the similarity between the traffic in the parameter of one network resource a and the predicted usage traffic in one time period B is greater than the similarity threshold, the corresponding relationship between the network resource a and the time period B is established. The similarity between the flow in the parameter of the network resource a and the usage flow in the time period B can be represented by the absolute value of the difference between the flow in the parameter of the network resource a and the usage flow in the time period B, namely, the smaller the absolute value of the difference between the flow in the parameter of the network resource a and the usage flow in the time period B is, the larger the similarity between the two is represented, and otherwise, the smaller the similarity between the two is represented.
In some cases, the network resource may be set with an effective use period, for example, the network resource may be used only from 11 pm to 7 am, or may be used only for daily use, etc., and further, the correspondence between the network resource and the period may be adjusted according to the effective use period of the network resource. For example, in the case where the similarity between the traffic in the parameter of the network resource a and the predicted usage traffic in the one period B is greater than the similarity threshold, if the period B does not belong to the valid usage period of the network resource a (for example, the valid usage period of the network resource a is a working day and the period B is a Saturday or a sunday, the period B does not belong to the valid usage period of the network resource a), the correspondence between the network resource a and the period B is not established; if the time period B belongs to the effective use time period of the network resource A, the corresponding relation between the network resource A and the time period B is established. Alternatively, it may be first determined whether the period B belongs to the valid usage period of the network resource a, and if the period B does not belong to the valid usage period of the network resource a, the similarity between the traffic in the parameter of the network resource a and the predicted traffic used in the period B is not calculated.
Step S502: and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource in the using time period.
Alternatively, in the case where an effective sub-period is set within a period,
corresponding to the method embodiment, the embodiment of the application also provides a network resource scheduling device, and a schematic structural diagram of the network resource scheduling device provided by the embodiment of the application is shown in fig. 6, which may include:
an acquisition module 601, a first determination module 602, a second determination module 603 and a scheduling module 604; wherein,
the acquiring module 601 is configured to acquire a scheduling period parameter and detect a network resource usage situation;
the first determining module 602 is configured to determine a target condition of a network resource based on the scheduling period parameter and the network resource usage, and a target parameter of at least a part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the use rate of the network resource to the available object;
The second determining module 603 is configured to determine a target weight of each network resource in the at least part of network resources based on the target condition;
the scheduling module 604 is configured to schedule the at least part of the network resources in the current scheduling period according to the target weights of the network resources.
The network scheduling device provided by the embodiment of the application determines the target condition of the network resource based on the scheduling period parameter, the network resource use condition and the target parameter of at least part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the rate of use of the available object by the network resource. Determining a target weight for each of the at least some of the network resources based on the target condition; and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource. The aim of dynamically scheduling the network resources based on the performance of the network resources and the use rate of the use objects is fulfilled, and the intelligence of the network resource scheduling is improved.
In an alternative embodiment, the first determining module 602 may include:
a first determining unit, configured to determine an available object availability of the at least part of network resources in a current scheduling period based on the scheduling period parameter and the network resource usage;
a weighting unit, configured to obtain a performance weighted sum of the at least partial network resources and a usage rate weighted sum of the at least partial network resources on the available object when the at least partial network resources are scheduled in a current scheduling period based on the target parameter of the at least partial network resources and the scheduling weight of the at least partial network resources;
and a second determining unit, configured to determine a target condition of the network resource based on the available object availability, the performance weighted sum, and the usage rate weighted sum.
In an alternative embodiment, the target condition includes:
when the at least part of network resources are scheduled in the current scheduling period, the performance weighted sum is maximum under the condition that the difference between the available object availability and the use rate weighted sum is smaller than a target difference;
or,
when the at least part of network resources are scheduled in the current scheduling period, the using rate weighted sum is minimum and is smaller than or equal to the available object availability under the condition that the performance weighted sum is larger than the target network traffic in the current scheduling period; the target network traffic is: network traffic to be used in the current scheduling period is predicted based on the network traffic in the historical scheduling period.
In an alternative embodiment, the first determining unit is configured to:
obtaining the total available amount of the available objects of the current network resources and the non-network resources according to the used network resources and the non-network resources;
determining the usage amount of the non-network resource to the available object in the remaining available duration;
determining the difference value between the total available amount and the used amount as the available amount of the available object of the network resource currently;
and determining the available object availability of the at least part of network resources in the current scheduling period according to the available object availability of the current network resources and the residual available duration.
In an alternative embodiment, when the first determining unit determines the usage of the available object by the non-network resource for the remaining available duration, the first determining unit is configured to:
and determining the usage amount of the non-network resource to the available object in the residual available duration according to the historical usage data of the non-network resource to the available object.
In an alternative embodiment, the obtaining module 601 is configured to:
monitoring whether the target application is in a healthy state;
and acquiring a scheduling period parameter and detecting the network resource use condition based on the target application not in a health state.
In an alternative embodiment, the scheduling module 604 is configured to:
determining the using time period of the target application to each network resource in the current scheduling period;
and scheduling the at least part of network resources in the current scheduling period according to the target weight of each network resource in the using time period.
Corresponding to the method embodiment, the application further provides an electronic device, and a schematic structural diagram of the electronic device is shown in fig. 7, which may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3 and the communication bus 4 is at least one, and the processor 1, the communication interface 2 and the memory 3 complete communication with each other through the communication bus 4.
The processor 1 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present application, etc.
The memory 3 may comprise a high-speed RAM memory, and may also comprise a non-volatile memory (non-volatile memory) or the like, such as at least one disk memory.
Wherein the memory 3 stores a program, the processor 1 may call the program stored in the memory 3, the program being for:
acquiring scheduling period parameters and detecting network resource use conditions;
determining a target condition of the network resource based on the scheduling period parameter, the network resource usage, and a target parameter of at least part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the use rate of the network resource to the available object;
determining a target weight for each of the at least some network resources based on the target condition;
and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource.
Alternatively, the refinement function and the extension function of the program may be described with reference to the above.
The embodiment of the present application also provides a storage medium storing a program adapted to be executed by a processor, the program being configured to:
Acquiring scheduling period parameters and detecting network resource use conditions;
determining a target condition of the network resource based on the scheduling period parameter, the network resource usage, and a target parameter of at least part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the use rate of the network resource to the available object;
determining a target weight for each of the at least some network resources based on the target condition;
and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource.
Alternatively, the refinement function and the extension function of the program may be described with reference to the above.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
It should be understood that in the embodiments of the present application, the claims, the various embodiments, and the features may be combined with each other, so as to solve the foregoing technical problems.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of scheduling network resources, the method comprising:
acquiring scheduling period parameters and detecting network resource use conditions;
determining a target condition of the network resource based on the scheduling period parameter, the network resource usage, and a target parameter of at least part of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the use rate of the network resource to the available object;
determining a target weight for each of the at least some network resources based on the target condition;
and scheduling at least part of the network resources in the current scheduling period according to the target weight of each network resource.
2. The method of claim 1, determining a target condition for a network resource based on the scheduling period parameter and the network resource usage, and a target parameter for at least a portion of the network resource, comprising:
Determining the available object availability of the at least part of network resources in the current scheduling period based on the scheduling period parameter and the network resource use condition;
obtaining a performance weighted sum of the at least partial network resources and a use rate weighted sum of the at least partial network resources to the available object when the at least partial network resources are scheduled in the current scheduling period based on the target parameters of the at least partial network resources and the scheduling weights of the at least partial network resources;
determining a target condition of the network resource based on the available object availability, the performance weighted sum, and the usage rate weighted sum.
3. The method of claim 2, the target condition comprising:
when the at least part of network resources are scheduled in the current scheduling period, the performance weighted sum is maximum under the condition that the difference between the available object availability and the use rate weighted sum is smaller than a target difference;
or,
when the at least part of network resources are scheduled in the current scheduling period, the using rate weighted sum is minimum and is smaller than or equal to the available object availability under the condition that the performance weighted sum is larger than the target network traffic in the current scheduling period; the target network traffic is: network traffic to be used in the current scheduling period is predicted based on the network traffic in the historical scheduling period.
4. The method of claim 2, the determining an available object availability of the at least some network resources in a current scheduling period based on the scheduling period parameter and the network resource usage, comprising:
obtaining the total available amount of the available objects of the current network resources and the non-network resources according to the used network resources and the non-network resources;
determining the usage amount of the non-network resource to the available object in the remaining available duration;
determining the difference value between the total available amount and the used amount as the available amount of the available object of the network resource currently;
and determining the available object availability of the at least part of network resources in the current scheduling period according to the available object availability of the current network resources and the residual available duration.
5. The method of claim 4, the determining the usage of the available objects by the non-network resources for the remaining available time period, comprising:
and determining the usage amount of the non-network resource to the available object in the residual available duration according to the historical usage data of the non-network resource to the available object.
6. The method of claim 1, the obtaining the scheduling period parameter and detecting the network resource usage, comprising:
Monitoring whether the target application is in a healthy state;
and acquiring a scheduling period parameter and detecting the network resource use condition based on the target application not in a health state.
7. The method of claim 1, wherein the scheduling the at least some network resources in the current scheduling period according to the target weights of the respective network resources comprises:
determining the using time period of the target application to each network resource in the current scheduling period;
and scheduling the at least part of network resources in the current scheduling period according to the target weight of each network resource in the using time period.
8. A network resource scheduling apparatus, comprising:
the acquisition module is used for acquiring the scheduling period parameters and detecting the network resource use condition;
a first determining module, configured to determine a target condition of a network resource based on the scheduling period parameter, the network resource usage, and a target parameter of at least a portion of the network resource; the target conditions include: when the at least partial network resources are scheduled in the current scheduling period, the total performance of the at least partial network resources meets the performance threshold in the current scheduling period, and the utilization rate of the at least partial network resources to the available objects reaches the utilization rate threshold in the current scheduling period; the target parameter characterizes the performance of the network resource and the use rate of the network resource to the available object;
A second determining module, configured to determine a target weight of each network resource in the at least part of network resources based on the target condition;
and the scheduling module is used for scheduling the at least part of network resources in the current scheduling period according to the target weight of each network resource.
9. An electronic device, comprising:
a memory for storing a program;
a processor for calling and executing the program in the memory, by executing the program, to implement the steps of the network resource scheduling method according to any one of claims 1-7.
10. A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network resource scheduling method of any one of claims 1-7.
CN202210334928.8A 2022-03-31 2022-03-31 Network resource scheduling method and device, electronic equipment and storage medium Active CN114726922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210334928.8A CN114726922B (en) 2022-03-31 2022-03-31 Network resource scheduling method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210334928.8A CN114726922B (en) 2022-03-31 2022-03-31 Network resource scheduling method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114726922A CN114726922A (en) 2022-07-08
CN114726922B true CN114726922B (en) 2023-11-21

Family

ID=82241017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210334928.8A Active CN114726922B (en) 2022-03-31 2022-03-31 Network resource scheduling method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114726922B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219167A (en) * 2013-05-31 2014-12-17 中国电信股份有限公司 Network resource scheduling method and server
CN104427625A (en) * 2013-08-28 2015-03-18 中国移动通信集团湖北有限公司 Network resource scheduling method and system based on user experience
WO2017157274A1 (en) * 2016-03-14 2017-09-21 华为技术有限公司 Network-traffic control method and network device thereof
WO2019011015A1 (en) * 2017-07-14 2019-01-17 网宿科技股份有限公司 Method and device for service scheduling
CN111147395A (en) * 2019-12-25 2020-05-12 中国联合网络通信集团有限公司 Network resource adjusting method and device
CN112260961A (en) * 2020-09-23 2021-01-22 北京金山云网络技术有限公司 Network traffic scheduling method and device, electronic equipment and storage medium
CN112311590A (en) * 2020-09-25 2021-02-02 浙江宇视科技有限公司 Cloud service lease optimization method, device, equipment and medium
CN112860383A (en) * 2021-03-12 2021-05-28 网易(杭州)网络有限公司 Cluster resource scheduling method, device, equipment and storage medium
CN113905448A (en) * 2020-07-06 2022-01-07 中国移动通信集团重庆有限公司 Wireless network resource scheduling method, device and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219167A (en) * 2013-05-31 2014-12-17 中国电信股份有限公司 Network resource scheduling method and server
CN104427625A (en) * 2013-08-28 2015-03-18 中国移动通信集团湖北有限公司 Network resource scheduling method and system based on user experience
WO2017157274A1 (en) * 2016-03-14 2017-09-21 华为技术有限公司 Network-traffic control method and network device thereof
WO2019011015A1 (en) * 2017-07-14 2019-01-17 网宿科技股份有限公司 Method and device for service scheduling
CN111147395A (en) * 2019-12-25 2020-05-12 中国联合网络通信集团有限公司 Network resource adjusting method and device
CN113905448A (en) * 2020-07-06 2022-01-07 中国移动通信集团重庆有限公司 Wireless network resource scheduling method, device and equipment
CN112260961A (en) * 2020-09-23 2021-01-22 北京金山云网络技术有限公司 Network traffic scheduling method and device, electronic equipment and storage medium
CN112311590A (en) * 2020-09-25 2021-02-02 浙江宇视科技有限公司 Cloud service lease optimization method, device, equipment and medium
CN112860383A (en) * 2021-03-12 2021-05-28 网易(杭州)网络有限公司 Cluster resource scheduling method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114726922A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
USRE44686E1 (en) Dynamically modifying the resources of a virtual server
CN103699445A (en) Task scheduling method, device and system
US8320246B2 (en) Adaptive window size for network fair usage controls
CA2935246C (en) Method, system and apparatus for adaptive quota determination for shared resources
KR20120063499A (en) Dynamic load balancing and scaling of allocated cloud resources in an enterprise network
EP2918043A1 (en) Network resource allocation in communication networks
US20150288827A1 (en) Data allocation for pre-paid group data plans
WO2014082672A1 (en) Network resource configuration
CN111585824A (en) Resource distribution method, device and system and electronic equipment
CN104202305A (en) Transcoding processing method and device, server
CN105577958A (en) Methods of adjusting shunting strategy and shunting user request, apparatuses and system
CN114726922B (en) Network resource scheduling method and device, electronic equipment and storage medium
CN115421930B (en) Task processing method, system, device, equipment and computer readable storage medium
Farooq et al. Adaptive and resilient revenue maximizing dynamic resource allocation and pricing for cloud-enabled IoT systems
CN116932220A (en) Resource adjustment method and device for service cluster, electronic equipment and storage medium
KR101719724B1 (en) Resource management system and method, and method for deciding resource price by the same system
CN115695435A (en) Method and device for dynamically adjusting node flow, electronic equipment and storage medium
CN114219468A (en) Micro-service charging method and device based on private container cloud and related components
CN111988388B (en) Flow distribution method, device, electronic equipment and storage medium
CN113315642B (en) Resource metering processing method and device and cloud service system
CN114936089A (en) Resource scheduling method, system, device and storage medium
US20120302205A1 (en) Method and system for the online charging of a subscriber, program and computer program product
WO2020166617A1 (en) Resource-contention arbitration apparatus, resource-contention arbitration method, and program
CN114490030A (en) Method and device for realizing self-adaptive dynamic redis connection pool
WO2020116632A1 (en) Control device, control method, and program for presenting communication requirements

Legal Events

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