A budget-constrained selective warm-up method based on cache miss probability prediction

By using the Poisson process survival model and the Lagrange duality algorithm, the problems of resource waste and low accuracy of failure detection in cache preheating technology are solved. Selective preheating under a limited budget is achieved, which improves resource utilization and online scheduling efficiency and optimizes the overall operation of the cache system.

CN123185259APending Publication Date: 2026-11-27WIRELESS LIFE (BEIJING) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611167551.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-03
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing cache preheating technologies suffer from problems such as indiscriminate preheating leading to resource waste, lack of a quantitative decision-making system, low accuracy in cache invalidation judgment, low efficiency in online scheduling, poor resource matching, and a disconnect between cache preheating and cache lifecycle management. As a result, they cannot maximize benefits and meet real-time business needs with limited backend resources.

Method used

By predicting the single-user cache failure probability using the Poisson process survival model and combining the Lagrange dual and adaptive water-filling threshold algorithms, budget-constrained optimization of selective preheating is achieved. This includes estimating user access activity intensity, calculating cache failure probability, quantifying preheating benefits and costs, solving the Lagrange dual water-filling threshold online, and optimizing the closed-loop adaptive threshold, thus forming a closed-loop dynamic optimization of the preheating strategy.

Benefits of technology

It enables accurate identification of real preheating needs within a limited budget, improves resource utilization, optimizes resource allocation benefits, meets online real-time scheduling requirements, and links cache invalidation probability prediction with cache TTL lifecycle, thereby improving the overall operating efficiency of the caching system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185259A_ABST
    Figure CN123185259A_ABST
Patent Text Reader

Abstract

The application discloses a budget-constrained selective preheating method and system based on cache invalidation probability prediction. The method models user access behavior as a Poisson random process, fits the personalized access activity intensity of each user through maximum likelihood estimation, and accurately quantifies the cache invalidation probability of each user at the business peak time by using the zero event survival function of the Poisson process. The product of the cache invalidation probability and the dynamic back-to-source cost weight is used to quantify the single-user preheating income, and an integer programming model for maximizing the income under the budget constraint is established. The NP difficult integer programming is converted into a water injection threshold screening problem with linear complexity. A closed-loop adaptive mechanism with quota real-time feedback is used to dynamically adjust the dual price threshold, and the cache invalidation probability prediction result is deeply linked with the cache TTL life cycle. The technical defects of the traditional full-quantity non-discriminatory preheating, such as resource waste, low precision and poor online adaptability, are completely solved, and the cache preheating income maximization under the constraint of limited backend resources is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet cache scheduling optimization, specifically to a budget-constrained selective preheating method based on cache failure probability prediction for CDN, edge caching and business distributed caching scenarios. It belongs to the interdisciplinary technical field of cache resource management, stochastic process modeling and operations research optimization. Background Technology

[0002] In the fields of internet content distribution, edge computing, and microservice cache scheduling, cache warm-up is a core technical means to ensure high availability and low latency for businesses. With the rapid development of high-concurrency, high-traffic businesses such as short videos, live streaming, e-commerce flash sales, and real-time marketing pushes, the access frequency, activity intervals, and cache needs of different users are showing highly differentiated and dynamic characteristics, which places higher demands on the accuracy of cache warm-up and resource utilization.

[0003] The current mainstream cache preheating technology in the industry all adopts an indiscriminate full scheduling strategy. Its core execution logic is: at a fixed time node before the peak of business traffic, a uniform preheating operation is performed on all covered users or hot data. It does not distinguish the cache failure risk of users, does not quantify the actual business benefits of a single preheating, and does not match the backend dynamic resource quota.

[0004] The existing technology has the following core defects:

[0005] First, indiscriminate preheating leads to a serious waste of backend resources. For high-frequency active users, their cached data is likely already in a hit state due to natural access when the business is triggered, making preheating an ineffective resource consumption for these users. On the other hand, low-frequency users are the core group that truly faces the risk of cache cold expiration and urgently needs preheating. Existing technology wastes a large amount of backend quota on ineffective preheating operations, with an overall resource utilization rate of less than 30%.

[0006] Second, the lack of a quantitative decision-making system means that preheating scheduling lacks optimality guarantees. Existing technologies rely on manual experience and rules for preheating decisions, which cannot quantify the actual value and resource cost of preheating for a single user. This is "experience-driven" rather than "mathematically optimal," and therefore cannot maximize benefits under limited backend budget constraints.

[0007] Third, the accuracy of cache invalidation determination is low. Existing technologies generally use a fixed TTL (Time-to-Live) to determine whether the cache has expired, completely ignoring the differences in users' personalized access behaviors. The accuracy of cache invalidation probability prediction is extremely low, leading to excessive or insufficient system warm-up.

[0008] Fourth, online scheduling is inefficient. If user selection is implemented, the complexity of solving traditional integer programming problems is... This is an NP-hard problem and cannot be adapted to millisecond-level online real-time preheating business scenarios.

[0009] Fifth, poor resource matching and lack of adaptive adjustment mechanism. The preheating scale of existing technologies is a static fixed value, which cannot be dynamically adjusted according to the real-time resource consumption of the backend, resulting in alternating extreme situations of resource idleness or overload.

[0010] Sixth, cache preheating and cache lifecycle management are disconnected. Current technologies do not link preheating operations to cache TTL expiration mechanisms, making it impossible to collaboratively optimize scheduling strategies based on dynamic cache expiration patterns. This results in extremely poor overall scheduling coordination within the cache system. Summary of the Invention

[0011] To address the aforementioned shortcomings of existing technologies, this invention proposes a budget-constrained selective preheating method based on cache invalidation probability prediction. This invention refactors the cache preheating problem into a resource allocation optimization problem under budget constraints that maximizes revenue: it accurately predicts the cache invalidation probability of a single user using a Poisson process survival model, quantifies the preheating revenue and cost for a single user, and combines Lagrange duality and an adaptive water-filling threshold algorithm to solve for the optimal set of preheating objects online. Simultaneously, it achieves dynamic matching between the preheating strategy and backend quotas through a closed-loop adaptive adjustment mechanism, and deeply links the cache invalidation probability prediction results with the cache TTL lifecycle.

[0012] The technical problem solved by this invention is: how to maximize the total benefit of selective preheating by accurately predicting the probability of user-level cache failure under the constraint of limited backend budget resources, while ensuring that online scheduling efficiency meets real-time business needs.

[0013] To address the aforementioned problems, the technical solution adopted in this invention is: a budget-constrained selective preheating method based on cache invalidation probability prediction, comprising steps such as user access activity intensity estimation, Poisson process cache invalidation probability calculation, preheating benefit cost quantification, online solution of Lagrange dual water-filling threshold, selective preheating execution, and closed-loop adaptive threshold optimization. The specific solution is as follows:

[0014] A budget-constrained selective preheating method based on cache invalidation probability prediction is applied to an Internet cache scheduling system. The method includes the following steps:

[0015] Step S1: User behavior data collection and activity intensity estimation;

[0016] Step S2, predict the probability of cache invalidation;

[0017] Step S3: Quantify the benefits and costs of preheating;

[0018] Step S4, Budget-constrained optimization modeling;

[0019] Step S5: Solve the Lagrange dual water injection threshold online;

[0020] Step S6: Perform selective preheating;

[0021] Step S7: Closed-loop adaptive threshold tuning to form a closed-loop dynamic optimization of the preheating strategy.

[0022] Preferably, the method includes the following specific steps:

[0023] Step S1, User Behavior Data Collection and Activity Intensity Estimation: Historical access timestamp sequences of each user in the target user set are collected in real-time from the business tracking platform and user behavior log system. After data cleaning, deduplication, and outlier removal, the historical access interval sequence for each user i is calculated. The maximum likelihood estimation method is used to fit the personalized access activity intensity. The calculation formula is:

[0024]

[0025] in For user i's historical access count, The interval for the kth visit;

[0026] Step S2, Cache invalidation probability prediction: Model user access behavior as having a strength of Given a steady-state Poisson random process, obtain the most recent cache write time for user i, and calculate the time interval between that time and the peak service transmission time. The cache invalidation probability for each user is calculated based on the zero-event survival function of the Poisson process:

[0027]

[0028] The formula means: within the time interval The probability that user i does not generate any natural access (and thus cannot automatically refresh the cache), that is, the probability that the cache is in a cold invalidation state during peak business hours;

[0029] Step S3, Quantifying Preheating Benefits and Costs: Calculate the preheating benefits for each user. ,in For dynamic back-to-origin cost weighting; calculate the backend quota resources consumed by performing a complete preheating operation on user i. Calculate the revenue-cost ratio for each user. ;

[0030] Step S4, Budget Constraint Optimization Modeling: Using the maximum backend pre-heating budget quota B as the upper limit of the constraint, and aiming to maximize the total revenue of all pre-heating users, establish a 0-1 integer programming model:

[0031]

[0032] Step S5, online solution of the Lagrange dual water injection threshold: introduce non-negative Lagrange multipliers. Performing a dual transformation on the model in step S4 yields the water injection threshold selection rule: when season (Perform preheating), otherwise The optimal dual price is solved iteratively using the bisection method. , among which: , , take in a loop ,calculate ,like Then let Otherwise until Convergence, eventually taking The output satisfies The optimal set of preheating users;

[0033] Step S6, perform selective preheating: issue preheating instructions to the optimal preheating user set selected in step S5, actively load hot data into the cache node corresponding to each user, and complete the selective preheating operation;

[0034] Step S7, Closed-loop adaptive threshold optimization: Real-time collection of the actual consumption of backend quotas during the preheating process. The dual price is adaptively adjusted after comparison with budget quota B. :like Then reduce To expand the coverage of the next round of preheating; if Then rise To reduce the preheating range; to update the As the initial search reference point for step S5 of the next scheduling cycle, a closed-loop dynamic optimization of the preheating strategy is formed.

[0035] Preferably, in step S1, the activity intensity is... The estimation employs a time-decaying sliding window mechanism: access intervals closer to the current time are given higher weight to adapt to dynamic changes in user behavior; the weighted average access interval within the window... satisfy ; and each time a scheduled task is triggered, Perform online updates and iterations.

[0036] Preferably, the dynamic source retrieval cost weight in step S3 It is calculated by the following multidimensional factor weighting:

[0037]

[0038] in Let i be the network link quality coefficient for user i. For the requested data volume coefficient, For user business priority coefficient, For the performance coefficients of the terminal equipment, the weighting coefficients satisfy... , Normalize to interval Each coefficient is updated in real time from the backend resource monitoring system and the user profiling system.

[0039] Preferably, the complete form of the Lagrange dual function in step S5 is:

[0040]

[0041] By the strong duality theorem, the optimal choices of each user are independent: when Right now Time to take Otherwise take This transformation reduces the solution complexity of NP-hard 0-1 integer programming problems from... Down to It enables online decision-making at the millisecond level.

[0042] Preferably, the adaptive threshold adjustment mechanism in step S7 further includes: setting an allowable error ratio. and adjusting step size In multiple consecutive rounds of scheduling, if Then let ;like Then let By using real-time feedback and iteration, the preheating resource consumption is made close to the maximum carrying capacity of the backend, achieving full-load operation without overflow.

[0043] Preferably, the method further includes step S8, cache TTL linkage optimization: based on the cache invalidation probability calculated in step S2. Adaptively adjust the Time-to-Live (TTL) of cached entries for each user:

[0044]

[0045] in The effective duration of the system's basic cache. This is the TTL linkage adjustment coefficient; users with high failure probability correspond to a longer TTL to reduce the resource overhead of frequent warm-up; users with low failure probability correspond to a shorter TTL to avoid cached data occupying storage resources for a long time.

[0046] Preferably, the time interval in step S2 Defined as the most recent valid cache write time for user i Up to peak service transmission time The time difference, i.e. For high-frequency active users, Very close to the present moment, The latency is close to a fixed wait time from the current time to the peak; for low-frequency users, Significantly longer, The higher the value, the more preheating resources will be automatically allocated to it by the system, without the need for additional manual selection rules.

[0047] Preferably, before performing the preheating operation in step S6, the system performs a secondary verification on the selected set of preheating users: if a user has already made a natural access within the time window from the issuance of the preheating decision to the completion of the execution, the preheating instruction for that user is cancelled to avoid resource waste caused by repeated writing; the secondary verification is completed through the real-time interface with the cache management system.

[0048] The present invention also provides a budget-constrained selective preheating system based on cache expiration probability prediction, the system comprising:

[0049] The cache invalidation probability prediction module is configured to collect and clean historical user access data, and fit the personalized access activity intensity of each user through maximum likelihood estimation. Based on the zero-event survival formula of Poisson process Calculate the cache invalidation probability for each user during peak business hours;

[0050] The preheating revenue and cost quantification module is configured to be based on the output of the cache invalidation probability prediction module, combined with the real-time origin pull cost weight. Calculate the preheating revenue for each user And calculate the backend quota consumption for a single preheating session. Generate a dataset with a revenue-cost ratio ranking of all users;

[0051] The budget-constrained optimal allocation solution module is configured to receive all user revenue and cost data output by the quantization module and the system budget quota B, construct a 0-1 integer programming dual problem, and iteratively converge to find the optimal dual price using the bisection method. Output the optimal preheating user decision set;

[0052] The online adaptive threshold closed-loop adjustment module is configured to collect backend quota consumption data in real time during the preheating process, compare the actual consumption with the budgeted quota B, and adaptively update the dual price. This feedback is then sent to the budget constraint optimal allocation solution module to form a closed-loop dynamic optimization of the preheating strategy;

[0053] The cache preheating execution module is configured to receive the optimal preheating user set output by the budget constraint optimal allocation solution module, and actively load business hot data into the cache node corresponding to the target user by issuing preheating instructions through the standard interface with the cache system.

[0054] The above five modules operate collaboratively in the order of prediction → quantification → decision-making → execution → feedback data pipeline. Data from each module is exchanged in real time, forming a complete closed-loop selective caching preheating scheduling system.

[0055] The beneficial effects of this invention are:

[0056] Firstly, it accurately identifies genuine preheating needs and effectively eliminates invalid preheating. By using the Poisson process zero-event survival function to perform personalized quantitative prediction of the cache expiration probability for each user, the cache expiration probability of high-frequency users naturally approaches 0. The system automatically excludes users who do not need preheating, eliminating the need for manual configuration of filtering rules, fundamentally eliminating resource waste, and significantly improving the utilization rate of preheating resources.

[0057] Secondly, optimizing the total preheating revenue under a limited budget. The preheating problem is modeled as a 0-1 integer programming problem under budget constraints, and the Lagrange dual transformation is used to obtain the optimal preheating revenue. The near-optimal solution guaranteed by the theoretical lower bound improves resource allocation benefits by more than 35% compared to traditional empirical rules, and is supported by rigorous mathematical optimality.

[0058] Third, the online real-time solution efficiency is extremely high. By introducing a water-filling threshold and a bisection iteration method, the solution complexity of NP-hard integer programming is reduced from... Down to It fully meets the millisecond-level online real-time preheating scheduling requirements.

[0059] Fourth, closed-loop adaptive dynamic matching backend capabilities. This involves iteratively adjusting the dual price through real-time quota feedback. This ensures that the consumption of preheating resources always matches the maximum carrying capacity of the backend, achieving the ultimate utilization with no idle resources and no overload overflow.

[0060] Fifth, the system integrates probability prediction with TTL to build a fully intelligent scheduling system. For the first time, it achieves deep integration between cache invalidation probability prediction and cache TTL lifecycle, connecting the entire cache "invalidation prediction - preheating scheduling - lifecycle management" chain, and significantly improving the overall operating efficiency of the cache system. Attached Figure Description

[0061] Figure 1 This is a block diagram of the overall system architecture of the present invention;

[0062] Figure 2 This is an overall flowchart of the selective preheating method of the present invention;

[0063] Figure 3 This is a flowchart of the Lagrange duality bisection solution of the present invention. Detailed Implementation

[0064] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0065] 1. System Overall Architecture

[0066] like Figure 1 As shown, the overall architecture of this invention comprises five core functional modules: a cache invalidation probability prediction module, a preheating benefit cost quantification module, a budget constraint optimal allocation solution module, an online adaptive threshold closed-loop adjustment module, and a cache preheating execution module. These five modules are layered and deeply interconnected, jointly completing the entire intelligent preheating scheduling process from user behavior perception, probability prediction, benefit quantification, optimal decision-making to dynamic optimization. Each module interfaces with the business tracking platform, user behavior log system, backend resource monitoring platform, and cache management system to ensure real-time data exchange across all dimensions.

[0067] 2. Cache invalidation probability prediction module

[0068] 2.1 Technical Principles

[0069] This module models user i's business access behavior as having a strength of (Unit: times / second or times / hour, which can be set according to business scenarios, the same below) a steady-state Poisson random process. In the Poisson process, each user access event occurs independently and randomly on the time axis, and the event interval follows the parameter. The exponential distribution. The effective persistence of cached data depends on natural refreshes triggered by user access: if within a time interval... If user i does not perform any access behavior, the cached data will be in a cold invalidation state due to no refresh.

[0070] Based on the zero-event probability (survival function) of the Poisson process, in a length of... The probability that user i does not generate any access events within the time interval, i.e., the probability that the cache is in a cold invalidation state during peak business hours, is:

[0071]

[0072] in, The personalized access activity intensity of user i (obtained by fitting historical data). The most recent valid cache write time for user i Up to peak service transmission time Time interval:

[0073]

[0074] For high-frequency active users Approximately the current moment (the visit was very recent). Larger, therefore Tend to larger values When the temperature approaches zero, the system automatically determines that no preheating is needed; for low-frequency users, It is far from the current time. Smaller A significant increase indicates a high risk of cache cold expiration, and preheating resources should be allocated preferentially. The above logic does not require manual configuration of filtering rules; user stratification is automatically achieved by formula (1).

[0075] 2.2 Activity Intensity Estimation methods

[0076] The system collects the historical access timestamp sequence of user i in real time and extracts the time interval sequence between adjacent accesses. The intensity parameters of the Poisson process are fitted using maximum likelihood estimation (MLE):

[0077]

[0078] The mean extension of activity intensity (MLE) is calculated by dividing the number of visits by the total observation duration, which is equivalent to the reciprocal of the arithmetic mean of historical visit intervals. To adapt to dynamic changes in user behavior, the system employs a time-decaying sliding window: assigning higher weight to more recent visit intervals. Online iterative updates.

[0079] 2.3 Module Execution Steps

[0080] Step 1, Data Collection and Preprocessing: Retrieve historical access timestamps, most recent cache write time, and peak business planned sending times from the business tracking platform and user behavior log system in real time. Clean the raw data (removing robot access, abnormal instantaneous duplicate access, and invalid retry data) and deduplicate it.

[0081] Step 2, Active Intensity Fitting: For the preprocessed data, calculate the active intensity for each user according to formula (3). It also utilizes a time-decay sliding window for online updates.

[0082] Step 3, Calculate the cache invalidation probability: Obtain the cache invalidation probability for each user. and peak business hours Calculate according to formula (2) Substitute into formula (1) to calculate Output the cache invalidation probability dataset for all users and send it to the preheating revenue and cost quantification module.

[0083] 3. Preheating revenue and cost quantification module

[0084] 3.1 Calculation of Preheating Benefits

[0085] This module defines the preheating benefit as: the expected cache miss elimination value generated by performing a preheating operation on user i, which is represented by the product of the cache miss probability and the cost of real-time origin retrieval for the user.

[0086]

[0087] in, The dynamic origin pull cost weight represents the combined quantitative weight of resource and latency losses incurred by the backend origin pull operation when user i's cache misses. It is synthesized by weighted multidimensional factors as follows:

[0088]

[0089] The parameters in the formula are defined as follows: Let be the network link quality coefficient for user i. The worse the network conditions (e.g., weak network, high latency link), the higher the coefficient. The higher; This is a coefficient representing the amount of data requested; the larger the data volume in a single request, the greater the coefficient. The higher; User business priority coefficient, VIP and core business users higher; For terminal device performance coefficients, low-end device users higher; For normalized weighted coefficients, satisfying . Ultimately normalized to Each parameter is updated in real time by the backend resource monitoring system and the user profiling system.

[0090] 3.2 Preheating Cost Calculation

[0091] Preheating cost Defined as the backend quota resources consumed when performing a complete preheating operation on user i, the quantification dimensions include bandwidth resources, CPU computing power, IO resources, and database connection count, uniformly converted into standardized quota units to ensure that different users have access to the same quota. It allows for horizontal comparison and cumulative statistics.

[0092] This module ultimately outputs the revenue-cost ratio for each user. This ratio is the core ranking basis for subsequent optimal resource allocation decisions. The higher the ratio, the greater the preheating benefit generated per unit of quota resources and the higher the resource utilization efficiency.

[0093] 4. Budget-constrained optimal allocation solution module

[0094] 4.1 Problem Modeling

[0095] Let the target user set consist of n users, and denote the decision variables. (1 indicates preheating for user i, 0 indicates no preheating), the maximum preheating budget quota in the backend is B. The problem of maximizing preheating revenue under budget constraints is modeled as a 0-1 integer programming problem:

[0096]

[0097]

[0098] This problem is an NP-hard 0-1 knapsack problem. Traditional exact solution algorithms (such as dynamic programming) have a time complexity of O(n log n). When n and B are large, it cannot adapt to online real-time scenarios.

[0099] 4.2 Lagrange Dual Transformation

[0100] Introducing non-negative Lagrange multipliers (In economics, this refers to the shadow price of budget quotas, i.e., the marginal revenue per unit of quota resource.) Dual relaxation is applied to constraint (7) to construct the Lagrange dual function:

[0101]

[0102] Summarized as follows:

[0103]

[0104] From equation (9), it can be seen that, under fixed conditions... At that time, each user's optimal decision is independent of the others:

[0105]

[0106] This conclusion indicates that dual prices This establishes a unified water-filling threshold, ensuring that all benefit-cost ratios are no less than [a certain value]. All users who are selected will undergo preheating, while other users will not. This transformation converts the original NP-hard problem into a threshold selection problem with linear complexity, achieving... Solve online.

[0107] 4.3 Solving for the optimal dual price using the bisection method

[0108] Define the total cost function It is about monotonically non-increasing function ( The higher the value, the fewer users are selected, and the lower the total cost. The objective is to find a solution that satisfies... maximum feasible The optimal set that maximizes the number of selected users (and thus the revenue) That is, minimize Make .

[0109] The iterative steps of the bisection method are as follows:

[0110] Step 1, Initialization: Set , Convergence accuracy .

[0111] The second step is iterative calculation: taking intermediate values. ,in accordance with Batch filter pre-heating users and sum them up to get the current total cost. .

[0112] Step 3, interval contraction: If This indicates the current situation. Too low (including too many users led to exceeding the budget), making (Shrinking towards a higher threshold); if This indicates the current situation. If the threshold is not lower than the optimal value, you can try a lower threshold to include more users. .

[0113] Step 4, convergence check: Repeat steps 2 and 3 until convergence is reached. After convergence, take As the optimal water injection threshold.

[0114] Step 5, Output Decision: Filter all that meet the criteria The users constitute the optimal preheating user set to maximize revenue under budget constraints, and preheating instructions are issued accordingly.

[0115] Algorithm time complexity analysis: Each iteration performs a scan of all n users once ( The bisection method converges in approximately [time period missing]. The total time complexity is approximately 14 rounds. It is close to linear and fully meets the requirements of online real-time business scheduling.

[0116] The algorithm can be proven to have... The theoretical lower bound of the returns is such that, compared to traditional empirical rules, the returns from resource allocation can be steadily increased by more than 35%.

[0117] 5. Online adaptive threshold closed-loop adjustment module

[0118] This module continuously collects real-time quota consumption data from the backend during the preheating process. Compared with budget quota B, the dual price is dynamically adjusted. :

[0119] (1) If (There is significant idle backend resources) (Percentage of allowable error): This indicates the current threshold. Too high, making (Lower the threshold and expand the preheating range). To adjust the step size;

[0120] (2) If (Backend resources are overloaded): This indicates the current threshold. Too low, making (Increase the threshold and reduce the preheating range);

[0121] (3) If (Resource consumption within acceptable limits): Maintain current status. constant.

[0122] Updated Feedback is sent to the budget constraint optimal allocation solution module for decision-making in the next round of preheating scheduling, forming a complete closed loop of "prediction → quantification → decision → execution → feedback optimization".

[0123] 6. TTL linkage optimization mechanism

[0124] After completing the preheating process, the system calculates the cache invalidation probability for each user. Adaptive adjustment of cache TTL:

[0125]

[0126] in The effective duration of the system's basic cache. This is the TTL linkage adjustment coefficient (which can be calibrated according to business needs).

[0127] The logic of this mechanism is as follows: users with a high failure probability (low activity) are assigned a longer TTL, reducing the overhead of frequent re-warming caused by early cache expiration; users with a low failure probability (high activity) are assigned a shorter TTL, avoiding redundant storage occupation caused by frequent natural refresh of their cached data. The TTL linkage mechanism establishes a collaborative optimization system across the entire chain of "cache failure prediction - selective warming - lifecycle management".

[0128] 7. Overall Implementation Process

[0129] The complete implementation process of this invention is as follows: Figure 2 As shown, the specific steps are as follows:

[0130] Step 1, System Initialization and Parameter Configuration: Configure the maximum backend preheating budget quota B and the back-end cost weight. Multidimensional factor calculation parameters, Poisson process fitting sliding window duration, dual price Binary Iteration Accuracy TTL linkage adjustment coefficient Adaptive adjustment of step size and tolerance Complete the data interface integration between the system and the business event tracking platform, user behavior log system, backend resource monitoring platform, and cache management platform.

[0131] Step 2, User Behavior Data Collection and Personalized Model Building: Real-time retrieval of all business users' historical access timestamps, cache write records, and access interval data; cleaning and eliminating robot access, abnormal instantaneous access, and invalid retry requests; fitting activity intensity for each user according to formula (3). It uses a time decay window for online iterative updates.

[0132] Step 3, Real-time cache invalidation probability prediction: Obtain the time of the most recent cache write for each user. and peak business hours ,calculate Substitute into formula (1) to calculate for each user. .

[0133] Step 4, Dynamic Quantification of Preheating Benefits and Costs: Synchronously call the user's real-time network status, terminal type, requested data volume, and business priority data, and calculate according to formula (5). , combined Calculate according to formula (4) Quantify the preheating costs for each user. Calculate the revenue-cost ratio for all users. .

[0134] Step 5: Iteratively solve for the optimal preheating set using the Lagrange dual threshold: Initialize the bisection interval, iteratively execute "take the median → calculate the total cost → update the interval", and obtain the result after convergence. Filter to meet The optimal set of users for preheating.

[0135] Step 6, perform cache preheating: issue a preheating command to actively load business data into the cache node corresponding to the target user; during this period, cancel the preheating command for users who have already made natural access to avoid duplicate writing.

[0136] Step 7, Closed-loop adaptive optimization: Statistics on actual quota consumption Adaptively adjust according to the rules described in Section 5 At the same time, the TTL is adaptively adjusted for each user according to formula (11), providing an optimized starting point for the next round of scheduling.

[0137] Step 8, Iterative Cycle: The system repeats the above process at a fixed scheduling cycle, adapting in real time to changes in user behavior and dynamic fluctuations in backend resources.

[0138] Example

[0139] The following example demonstrates the implementation process of this invention using a selective CDN caching preheating scenario in the marketing push business of a short video platform.

[0140] Scenario Description: A short video platform plans to send a marketing push message to all users at 8:00 PM sharp (peak business time). The preheating schedule starts at 18:00 (2 hours before peak). The maximum preheating budget quota B in the system backend is 1000 standardized units, and the preheating cost per user is... (Uniform), the parameters for the three typical user types are as follows (time unit is uniformly hour):

[0141] User A (high-frequency daily active user): Historical average access interval is approximately 20 minutes, fitting activity intensity times / hour; the most recent cache write time was 17:30 (2.5 hours from the peak), that is Time; Excellent network quality, small data volume, ordinary priority, dynamic weight. .

[0142] Substitute into formula (1):

[0143]

[0144] Preheating benefits: Benefit-cost ratio: .

[0145] User B (medium-frequency weekly active user): Historical average access interval is approximately 10 hours, fitting activity intensity times / hour; the most recent cache write time was 10:00 (10 hours from the peak), that is... Time; ordinary network, medium data volume, dynamic weights .

[0146] Substitute into formula (1):

[0147]

[0148] Preheating benefits: Benefit-cost ratio: .

[0149] User C (low-frequency monthly active user): Historical access interval averages approximately 200 hours, fitting activity intensity times / hour; the most recent cache write was 5 days ago (approximately 120 hours ago, 122 hours from the peak), i.e. Time; weak network, large data volume, high-priority users, dynamic weighting .

[0150] Substitute into formula (1):

[0151]

[0152] Preheating benefits: Benefit-cost ratio: .

[0153] Dual iterative solution process: Assume the system has a total of 1000 users, including 300 in category A, 500 in category B, and 200 in category C; the total budget B = 1000. .initialization , Precision .

[0154] Round 1: ,filter Users: Only 200 people from Category C were selected. ,renew (Search towards lower thresholds to include more users).

[0155] Round 2: ,filter Category B ( ) and Class C ( All were selected. ,renew .

[0156] Round 3: Categories B and C are still selected. ,renew .

[0157] Continue iterating. The lower bound approaches 0 but is always positive (Class A) (Never selected), eventually converged to (Excluding Category A, and including Categories B and C). The final consumption was 700 units of quota, with total preheating revenue... .

[0158] The remaining 300 units of budget have not been consumed, indicating that all Category A users have been correctly excluded (their cache invalidation probability is extremely low, requiring no preheating). The closed-loop adjustment module detected this. The frequency will be reduced in the next round of scheduling. To check if there are more marginal users worth warming up.

[0159] Case study results demonstrate that the algorithm of this invention accurately filters high-frequency users (Class A) and prioritizes low-to-medium frequency users (Class B and Class C) who are at risk of cache expiration. Class C users with high priority in weak network conditions enjoy the highest cost-benefit ratio and are prioritized when the budget allows. The entire scheduling decision process is mathematically provable to be optimal, with a computational complexity of O(n) and real-time deployment capability.

[0160] The system and method described in this invention can be deployed as software on an internet cache scheduling server or cloud computing platform, or implemented in hardware or a combination of hardware and software. The system can run on a single server or a distributed server cluster, and integrates with existing CDN management systems, user behavior analysis platforms, and cache node control systems through standard API interfaces. This invention is applicable to, but not limited to, internet cache scheduling application scenarios such as CDN edge caching, business distributed caching, and edge computing caching.

[0161] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A budget-constrained selective preheating method based on cache invalidation probability prediction, applied to an Internet cache scheduling system, characterized in that, The method includes the following steps: Step S1: User behavior data collection and activity intensity estimation; Step S2, predict the probability of cache invalidation; Step S3: Quantify the benefits and costs of preheating; Step S4, Budget-constrained optimization modeling; Step S5: Solve the Lagrange dual water injection threshold online; Step S6: Perform selective preheating; Step S7: Closed-loop adaptive threshold tuning to form a closed-loop dynamic optimization of the preheating strategy.

2. The method according to claim 1, characterized in that, The method includes the following specific steps: Step S1, User Behavior Data Collection and Activity Intensity Estimation: Historical access timestamp sequences of each user in the target user set are collected in real-time from the business tracking platform and user behavior log system. After data cleaning, deduplication, and outlier removal, the historical access interval sequence for each user i is calculated. The maximum likelihood estimation method is used to fit the intensity of personalized access activity. The calculation formula is: ; in For user i's historical access count, The interval for the kth visit; Step S2, Cache invalidation probability prediction: Model user access behavior as having a strength of The steady-state Poisson random process is used to obtain the most recent cache write time of user i, and the time interval between that time and the peak service transmission time is calculated. The cache invalidation probability for each user is calculated based on the zero-event survival function of the Poisson process: ; The formula means: within the time interval The probability that user i does not generate any natural access (and thus cannot automatically refresh the cache), that is, the probability that the cache is in a cold invalidation state during peak business hours; Step S3, Quantifying Preheating Benefits and Costs: Calculate the preheating benefits for each user. ,in For dynamic back-to-origin cost weighting; calculate the backend quota resources consumed by performing a complete preheating operation on user i. Calculate the revenue-cost ratio for each user. ; Step S4, Budget Constraint Optimization Modeling: Using the maximum backend pre-heating budget quota B as the upper limit of the constraint, and aiming to maximize the total revenue of all pre-heating users, establish a 0-1 integer programming model: ; Step S5, online solution of the Lagrange dual water injection threshold: introduce non-negative Lagrange multipliers. Performing a dual transformation on the model in step S4 yields the water injection threshold selection rule: when season (Perform preheating), otherwise The optimal dual price is solved iteratively using the bisection method. , among which: , , take in a loop ,calculate ,like Then let Otherwise until Convergence, eventually taking The output satisfies The optimal set of preheating users; Step S6, perform selective preheating: issue preheating instructions to the optimal preheating user set selected in step S5, actively load hot data into the cache node corresponding to each user, and complete the selective preheating operation; Step S7, Closed-loop adaptive threshold optimization: Real-time collection of the actual consumption of backend quotas during the preheating process. The dual price is adaptively adjusted after comparison with budget quota B. :like Then reduce To expand the coverage of the next round of preheating; if Then rise To reduce the preheating range; to update the As the initial search reference point for step S5 of the next scheduling cycle, a closed-loop dynamic optimization of the preheating strategy is formed.

3. The method according to claim 2, characterized in that, In step S1, the activity intensity The estimation employs a time-decaying sliding window mechanism: access intervals closer to the current time are given higher weight to adapt to dynamic changes in user behavior; the weighted average access interval within the window... satisfy ; And each time a scheduled task is triggered, Perform online updates and iterations.

4. The method according to claim 2, characterized in that, Dynamic source retrieval cost weight in step S3 It is calculated by the following multidimensional factor weighting: ; in Let i be the network link quality coefficient for user i. For the requested data volume coefficient, For user business priority coefficient, For the performance coefficients of the terminal equipment, the weighting coefficients satisfy... , Normalize to interval Each coefficient is updated in real time from the backend resource monitoring system and the user profiling system.

5. The method according to claim 2, characterized in that, The complete form of the Lagrange dual function in step S5 is: ; By the strong duality theorem, the optimal choices of each user are independent: when Right now Time to take Otherwise take This transformation reduces the solution complexity of NP-hard 0-1 integer programming problems from... Down to It enables online decision-making at the millisecond level.

6. The method according to claim 2, characterized in that, The adaptive threshold adjustment mechanism in step S7 further includes: setting an allowable error ratio. and adjusting step size In multiple consecutive rounds of scheduling, if Then let ;like Then let By using real-time feedback and iteration, the preheating resource consumption is made close to the maximum carrying capacity of the backend, achieving full-load operation without overflow.

7. The method according to claim 2, characterized in that, The method further includes step S8, cache TTL linkage optimization: based on the cache invalidation probability calculated in step S2. Adaptively adjust the Time-to-Live (TTL) of cached entries for each user: ; in The effective duration of the system's basic cache. This is the TTL linkage adjustment coefficient; users with high failure probability correspond to a longer TTL to reduce the resource overhead of frequent preheating. Users with low failure probability should have shorter TTLs to avoid cached data occupying storage resources for extended periods.

8. The method according to claim 2, characterized in that, The time interval in step S2 Defined as the most recent valid cache write time for user i Up to peak service transmission time The time difference, i.e. ; For high-frequency active users Very close to the present moment, The latency is close to a fixed wait time from the current time to the peak; for low-frequency users, Significantly longer, The higher the value, the more preheating resources will be automatically allocated to it by the system, without the need for additional manual selection rules.

9. The method according to claim 2, characterized in that, Before performing the preheating operation in step S6, the system performs a secondary verification on the selected set of preheating users: if a user has already made a natural access within the time window from the issuance of the preheating decision to the completion of the execution, the preheating instruction for that user is cancelled to avoid resource waste caused by repeated writing; the secondary verification is completed through the real-time interface with the cache management system.

10. A budget-constrained selective preheating system based on cache miss probability prediction, characterized in that, The system includes: The cache invalidation probability prediction module is configured to collect and clean historical user access data, and fit the personalized access activity intensity of each user through maximum likelihood estimation. Based on the zero-event survival formula of Poisson process Calculate the cache invalidation probability for each user during peak business hours; The preheating revenue and cost quantification module is configured to be based on the output of the cache invalidation probability prediction module, combined with the real-time origin pull cost weight. Calculate the preheating revenue for each user And calculate the backend quota consumption for a single preheating session. Generate a dataset with a revenue-cost ratio ranking for all users; The budget-constrained optimal allocation solution module is configured to receive all user revenue and cost data output by the quantization module and the system budget quota B, construct a 0-1 integer programming dual problem, and iteratively converge to find the optimal dual price using the bisection method. Output the optimal preheating user decision set; The online adaptive threshold closed-loop adjustment module is configured to collect backend quota consumption data in real time during the preheating process, compare the actual consumption with the budgeted quota B, and adaptively update the dual price. This feedback is then sent to the budget constraint optimal allocation solution module to form a closed-loop dynamic optimization of the preheating strategy; The cache preheating execution module is configured to receive the optimal preheating user set output by the budget constraint optimal allocation solution module, and actively load business hot data into the cache node corresponding to the target user by issuing preheating instructions through the standard interface with the cache system. The above five modules operate collaboratively in the order of prediction → quantification → decision-making → execution → feedback data pipeline. Data from each module is exchanged in real time, forming a complete closed-loop selective caching preheating scheduling system.