The invention discloses a method for applying
linear programming to CDN (
Content Delivery Network) scheduling, which relates to the technical field of
content delivery networks and comprises the steps of
data preparation, strategy layer version smooth configuration, macroscopic layer and microscopic layer linear solution and online execution. Basic data are collected, cleaned and repaired, and a version change rule is set; the macroscopic layer constructs a
linear programming model, and the cross-provincial bearing quota is solved with the aim of minimizing the cross-provincial cost; the micro layer takes the quota as a boundary and generates
domain name class-node weight vectors in parallel; and adapting a routing request online through weighted rendezvous hashing and request features. According to the method, a dynamic
cost matrix and a weight
granularity control technology are integrated, the
engineering problem of
linear programming is solved, second-level response, approximate
global optimal scheduling and accurate execution of floating-point-level weight are realized, memory overhead is reduced, smooth updating of a strategy and
system stability are guaranteed, and CDN
service quality and operation efficiency are improved.