Search

CN-116389380-B - Bandwidth control method, computer device and computer storage medium

CN116389380BCN 116389380 BCN116389380 BCN 116389380BCN-116389380-B

Abstract

The embodiment of the application discloses a bandwidth control method, computer equipment and a computer storage medium. The computer equipment counts the average historical QPS and the average historical bandwidth of the service node set, determines the target QPS of the service node set according to the target bandwidth, the average historical bandwidth and the average historical QPS, adjusts the QPS target value of each service node in the service node set according to the target QPS and the average historical QPS, further returns the QPS target value of each service node to the client according to the QPS target value of each service node, and the bandwidth which is run out when the client calls the service node in the service node set according to the return point of the computer equipment can reach the target bandwidth, so that the stable control of the bandwidth which is run out by the service node set can be realized.

Inventors

  • ZHANG XINGWEI

Assignees

  • 深圳云网雾联科技有限公司

Dates

Publication Date
20260505
Application Date
20230324

Claims (13)

  1. 1. A bandwidth control method is characterized in that the method is applied to computer equipment, the computer equipment is connected with each service node in a service node set, and the method comprises the following steps: Counting the average historical returned point times per second of the service node set and the average historical bandwidth corresponding to the average historical returned point times per second in time; Determining the target returned point times per second of the service node set according to the target bandwidth, the average historical returned point times per second and the average historical bandwidth; Adjusting a target value of the returned point times per second of each service node in the service node set according to the target returned point times per second and the average historical returned point times per second; and returning points to the client according to the target value of the returned point times per second of each service node so as to enable the total bandwidth generated by the client calling the service node to reach the target bandwidth.
  2. 2. The method of claim 1, wherein the generation time range of the value of the number of times per second of the returned points for counting the number of times per second of the average history is the same as the generation time range of the bandwidth value for counting the average history bandwidth.
  3. 3. The method of claim 2, wherein counting the average historical bandwidth comprises: counting the average historical bandwidth according to a historical bandwidth value within a target time range, wherein the target time range is a time range of the bandwidth reported by the service node received by the computer equipment, and the target time range is a preset time period after a generation time range of a returned point number value per second for counting the returned point number per second of the average history; The preset time period is delay time of a time point of the bandwidth reported by the service node relative to an effective time point of the returned point times per second of the service node, and the effective time point is a time point of the computer equipment returned to a client according to the returned point times per second of the service node.
  4. 4. The method of claim 1, wherein the target bandwidth is determined from a preset bandwidth and the average historical bandwidth, the preset bandwidth being a bandwidth desired to be invoked for the set of service nodes.
  5. 5. The method of claim 4, wherein after the total bandwidth generated by the client invoking the service node reaches the target bandwidth, the method further comprises: and if the difference value between the target bandwidth and the preset bandwidth is greater than a preset threshold value, returning to execute the step of counting the average historical returned point times per second of the service node set and the average historical bandwidth corresponding to the average historical returned point times per second in time so that the target bandwidth reaches the preset bandwidth.
  6. 6. The method of claim 1, wherein said adjusting the target value of the number of returned points per second for each serving node in the set of serving nodes based on the target number of returned points per second and the average history of returned points per second comprises: determining a target returned point number per second adjustment ratio of each service node in the service node set according to the ratio of the target returned point number per second to the average historical returned point number per second; And determining the target value of the returned point times per second of each service node in the service node set according to the target returned point times per second adjustment proportion.
  7. 7. The method of claim 6, wherein said determining a target number of points returned per second adjustment ratio for each service node in the set of service nodes based on a ratio of the target number of points returned per second to the average history number of points returned per second comprises: Determining an initial returned point number per second adjustment ratio of each service node in the service node set according to the ratio of the target returned point number per second to the average historical returned point number per second; and determining the target returned point number per second adjustment ratio according to the adjustment coefficient and the initial returned point number per second adjustment ratio, wherein the adjustment coefficient is used for reducing bandwidth fluctuation caused by returning points to a client by the computer equipment according to the target returned point number per second adjustment ratio.
  8. 8. The method of claim 7, wherein said determining said target returned point count adjustment ratio based on said adjustment factor, said initial returned point count adjustment ratio per second, comprises: Taking the ratio of the number of returned points per second of the target to the average historical number of returned points per second as the initial number of returned points per second adjustment ratio 1+x, wherein x is a real number; And multiplying x in the initial returned point number adjustment proportion 1+x by the adjustment coefficient r to obtain the target returned point number adjustment proportion 1+r x, wherein r is a positive number smaller than 1, and the adjustment coefficient r is used for adjusting the numerical value of the target returned point number adjustment proportion per second so that the numerical value of the target returned point number adjustment proportion per second is smaller than the initial returned point number adjustment proportion per second.
  9. 9. The method of claim 1, wherein said determining the target number of points returned per second for the set of serving nodes based on the target bandwidth, the average history number of points returned per second, and the average history bandwidth comprises: Determining the ratio of the target bandwidth to the average historical bandwidth, and taking the product of the ratio and the average historical number of times the target is returned to the point per second as the target number of times the target is returned to the point per second.
  10. 10. The method according to any one of claims 1 to 9, wherein if the service node exists in a plurality of the service node sets, the target value of the number of times-returned-points-per-second of the service node is a minimum value among the target values of the number of times-returned-points-per-second of the service node in the plurality of the service node sets.
  11. 11. A computer device, wherein the computer device is coupled to each service node in a set of service nodes, the computer device comprising: a statistics unit, configured to count an average history returned point number per second of the service node set and an average history bandwidth corresponding in time to the average history returned point number per second; A determining unit, configured to determine a target number of times per second that the service node set is returned according to the target bandwidth, the average historical number of times per second that the service node set is returned, and the average historical bandwidth; an adjusting unit, configured to adjust a target value of the number of returned points per second for each service node in the service node set according to the target number of returned points per second and the average history number of returned points per second; and the point returning unit is used for returning points to the client according to the target value of the returned point times per second of each service node so as to enable the total bandwidth generated by the client calling the service node to reach the target bandwidth.
  12. 12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the method of any of claims 1 to 10 when executing the computer program.
  13. 13. A computer storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the method of any of claims 1 to 10.

Description

Bandwidth control method, computer device and computer storage medium Technical Field The embodiment of the application relates to the field of node scheduling, in particular to a bandwidth control method, computer equipment and a computer storage medium. Background The on-demand client can connect the on-demand service node, when the on-demand service is needed, the on-demand service node sends an on-demand request to the on-demand service node, and the on-demand service node returns video, music or other multimedia data requested to be on-demand to the on-demand client according to the request, so that the on-demand client plays the multimedia data for viewing by a user. The control center for managing and controlling the operation of the on-demand service node can control the bandwidth of the node according to the QPS of the on-demand service node, namely the number of times of returning the point per second. However, the method is feasible for a small number of nodes which can be stably connected with the on-demand client, but for a large number of nodes which cannot keep stable connection with the on-demand client, the QPS is unstable due to unstable connection, so that the bandwidth is greatly influenced by the QPS, and larger bandwidth fluctuation is generated, so that the use quality of the on-demand service of the on-demand client is influenced. Disclosure of Invention The embodiment of the application provides a bandwidth control method, computer equipment and a computer storage medium, which are used for controlling a service node to provide a bandwidth for a client to make the bandwidth stable. The first aspect of the embodiment of the application provides a bandwidth control method, which is applied to computer equipment, wherein the computer equipment is connected with each service node in a service node set, and the method comprises the following steps: Counting the average historical returned point times per second of the service node set and the average historical bandwidth corresponding to the average historical returned point times per second in time; Determining the target returned point times per second of the service node set according to the target bandwidth, the average historical returned point times per second and the average historical bandwidth; Adjusting a target value of the returned point times per second of each service node in the service node set according to the target returned point times per second and the average historical returned point times per second; and returning points to the client according to the target value of the returned point times per second of each service node so as to enable the total bandwidth generated by the client calling the service node to reach the target bandwidth. A second aspect of the embodiment of the present application provides a computer device, where the computer device is connected to each service node in a service node set, and the computer device includes: a statistics unit, configured to count an average history returned point number per second of the service node set and an average history bandwidth corresponding in time to the average history returned point number per second; A determining unit, configured to determine a target number of times per second that the service node set is returned according to the target bandwidth, the average historical number of times per second that the service node set is returned, and the average historical bandwidth; an adjusting unit, configured to adjust a target value of the number of returned points per second for each service node in the service node set according to the target number of returned points per second and the average history number of returned points per second; and the point returning unit is used for returning points to the client according to the target value of the returned point times per second of each service node so as to enable the total bandwidth generated by the client calling the service node to reach the target bandwidth. A third aspect of the embodiments of the present application provides a computer device comprising a memory storing a computer program and a processor implementing the method of the first aspect when executing the computer program. A fourth aspect of the embodiments of the present application provides a computer storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform the method of the first aspect described above. From the above technical solutions, the embodiment of the present application has the following advantages: The computer equipment counts the average historical QPS and the average historical bandwidth of the service node set, determines the target QPS of the service node set according to the target bandwidth, the average historical bandwidth and the average historical QPS, adjusts the QPS target value of each service node in the service node set according to the target QPS and