Search

CN-121985043-A - Request scheduling method and device under access burst scene

CN121985043ACN 121985043 ACN121985043 ACN 121985043ACN-121985043-A

Abstract

The invention discloses a request scheduling method and device under an access burst scene, and relates to the technical field of computers. The method comprises the steps of creating a scheduling policy adjustment task based on the occurrence time of an access emergency, responding to the execution time of the scheduling policy adjustment task, collecting actual bandwidth data of a content distribution network node, processing the actual bandwidth data of the content distribution network node to obtain bandwidth data to be scheduled, generating a scheduling policy according to the bandwidth data to be scheduled, responding to a received user access request, carrying out domain name resolution on the user access request, determining a target content distribution network node corresponding to the user access request according to a domain name resolution result and the scheduling policy, and distributing the user access request to the target content distribution network node. The implementation mode can avoid the situation that the normal use of the service is affected due to the fact that the bandwidth is occupied instantly caused by the service access burst, and further ensures the service quality of the service.

Inventors

  • ZHENG CHUNYU

Assignees

  • 京东科技信息技术有限公司

Dates

Publication Date
20260505
Application Date
20260130

Claims (10)

  1. 1. A request scheduling method in an access burst scenario, comprising: Creating a scheduling policy adjustment task based on the occurrence time of the access emergency; in response to reaching the execution time of the scheduling policy adjustment task, acquiring actual bandwidth data of the content distribution network node; Processing the actual bandwidth data of the content distribution network node to obtain bandwidth data to be scheduled; Generating a scheduling strategy according to the bandwidth data to be scheduled, wherein the mapping relation between the domain name of the access request and the content distribution network node identifier is recorded in the scheduling strategy; Responding to a received user access request, carrying out domain name resolution on the user access request, and determining a target content distribution network node corresponding to the user access request according to a domain name resolution result and the scheduling policy; and distributing the user access request to the target content distribution network node.
  2. 2. The method according to claim 1, wherein collecting actual bandwidth data of the content distribution network node comprises: And acquiring the current bandwidth generated by the access of the area of the user, the operator of the user and the user in the fixed time window in the content distribution network node so as to obtain the actual bandwidth data.
  3. 3. The method according to claim 2, wherein processing the actual bandwidth data of the content distribution network node to obtain bandwidth data to be scheduled comprises: Accumulating the current bandwidths generated by the access of the users of the same operator in the same area in the fixed time window to generate summarized bandwidth data of the content distribution network node; And amplifying the summarized bandwidth data of the content distribution network node based on the bandwidth peak value of the access emergency to obtain bandwidth data to be scheduled.
  4. 4. A method according to claim 1 or 3, wherein generating a scheduling policy from the bandwidth data to be scheduled comprises: Generating a resource allocation strategy according to the bandwidth data to be scheduled, and performing node resource allocation based on the resource allocation strategy to generate node resource allocation data; And generating a scheduling strategy according to the node resource allocation data.
  5. 5. The method of claim 1, further comprising, after creating the scheduling policy adjustment task based on the time of occurrence of the access incident: And generating a timing trigger task according to the execution time of the scheduling policy adjustment task, and detecting whether the execution time of the scheduling policy adjustment task is reached or not through the timing trigger task.
  6. 6. The method of claim 1, wherein the content distribution network node identification comprises an IP address of the content distribution network node.
  7. 7. A request scheduling apparatus in an access burst scenario, comprising: the task creation module is used for creating a scheduling strategy to adjust the task based on the occurrence time of the access emergency; The data acquisition module is used for responding to the execution time of the task which reaches the scheduling strategy adjustment, and acquiring the actual bandwidth data of the content distribution network node; the data processing module is used for processing the actual bandwidth data of the content distribution network node to obtain bandwidth data to be scheduled; The strategy generation module is used for generating a scheduling strategy according to the bandwidth data to be scheduled, wherein the mapping relation between the domain name of the access request and the content distribution network node identifier is recorded in the scheduling strategy; the node determining module is used for responding to the received user access request, carrying out domain name resolution on the user access request, and determining a target content distribution network node corresponding to the user access request according to a domain name resolution result and the scheduling policy; And the request distribution module is used for distributing the user access request to the target content distribution network node.
  8. 8. An electronic device, comprising: One or more processors; storage means for storing one or more programs, When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
  9. 9. A computer readable medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any of claims 1-6.
  10. 10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-6.

Description

Request scheduling method and device under access burst scene Technical Field The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for scheduling a request in an access burst scenario. Background CDN (Content Delivery Network), i.e. a content distribution network, achieves the goal of acceleration by caching internet content at the edge nodes. In a CDN service scenario, there are many situations where access is bursty, such as game version release, pop hot news, e-commerce platform promotions, etc. The situation that bandwidth resources on the CDN side are instantaneously occupied occurs due to the burst of the access quantity, so that normal access of users is affected, and service quality is reduced. In the prior art, this is typically handled by limiting a proportion of the access and offloading mechanisms. However, the prior art scheme is based on a coping strategy adopted after the occurrence of the burst of the access amount, and cannot solve the problem of service quality caused by the instantaneous occupation of the resource bandwidth. Disclosure of Invention In view of this, an embodiment of the present invention provides a request scheduling method and apparatus in an access burst scenario, which can adjust a scheduling policy of an access request according to actual bandwidth data of a content distribution network node before an access burst occurs, so as to cope with the access burst when the access burst occurs based on the adjusted scheduling policy, instead of waiting for processing after the access burst has occurred, thereby avoiding a situation that the normal use of a service is affected due to instantaneous bandwidth occupation caused by a service access burst, and further ensuring service quality. To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a request scheduling method in an access burst scenario, including: Creating a scheduling policy adjustment task based on the occurrence time of the access emergency; in response to reaching the execution time of the scheduling policy adjustment task, acquiring actual bandwidth data of the content distribution network node; Processing the actual bandwidth data of the content distribution network node to obtain bandwidth data to be scheduled; Generating a scheduling strategy according to the bandwidth data to be scheduled, wherein the mapping relation between the domain name of the access request and the content distribution network node identifier is recorded in the scheduling strategy; Responding to a received user access request, carrying out domain name resolution on the user access request, and determining a target content distribution network node corresponding to the user access request according to a domain name resolution result and the scheduling policy; and distributing the user access request to the target content distribution network node. Optionally, collecting the actual bandwidth data of the content distribution network node comprises collecting the current bandwidth generated by the area of the content distribution network node, the operator of the user and the access of the user in a fixed time window, so as to obtain the actual bandwidth data. Optionally, processing the actual bandwidth data of the content distribution network node to obtain bandwidth data to be scheduled includes accumulating current bandwidths generated by access of users of the same operator in the same area in the fixed time window to generate summarized bandwidth data of the content distribution network node, and amplifying the summarized bandwidth data of the content distribution network node based on the bandwidth peak value of the access emergency to obtain bandwidth data to be scheduled. Optionally, generating a scheduling policy according to the bandwidth data to be scheduled includes generating a resource allocation policy according to the bandwidth data to be scheduled, performing node resource allocation based on the resource allocation policy to generate node resource allocation data, and generating a scheduling policy according to the node resource allocation data. Optionally, after creating the scheduling policy adjustment task based on the occurrence time of the access emergency, generating a timing trigger task according to the execution time of the scheduling policy adjustment task, and detecting whether the execution time of the scheduling policy adjustment task is reached or not through the timing trigger task. Optionally, the content distribution network node identification comprises an IP address of the content distribution network node. According to another aspect of the embodiment of the present invention, there is provided a request scheduling apparatus in an access burst scenario, including: the task creation module is used for creating a scheduling strategy to adjust the task based on the occurrence time