Smart Token Pre-Recycling Method Based on Time Series Prediction
A technology of time series and recovery method, which is applied in the direction of digital transmission system, data exchange network, electrical components, etc., can solve the problems of waste of token resources, failure to access background requests normally, poor flexibility, etc., and achieve the effect of managing tokens well
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Such as figure 1 , Figure 5 As shown, the smart token pre-recovery method based on time series prediction, the token cache pool, includes the following steps in sequence:
[0045] S1. Establish a time period, divide a time period into several time periods, and establish a time series calculation model;
[0046] S2. Determine whether the token cache pool needs to recycle the token, if it needs to be reclaimed, go to step S3, otherwise loop step S2;
[0047] S3. Bring the tokens in the token cache pool into the time series calculation model established in step S1, and calculate the occurrence probability of the request corresponding to each token within the corresponding time period;
[0048] S4. Reclaim the token corresponding to the request according to the occurrence probability of the request corresponding to each token obtained in step S3 within the corresponding time period.
[0049] This technical solution mainly manages tokens intelligently, removes human oper...
Embodiment 2
[0051] The difference between this embodiment and Embodiment 1 is that, further, the method for establishing a time series calculation model in the step S1 includes the following steps:
[0052] S101: Import historical data of each time period into the time series calculation model;
[0053] S102, calculating the average value and standard deviation of the historical data in step S101;
[0054] S103. When the standard deviation is lower than the preset threshold, go to step S105, otherwise go to step S104;
[0055] S104, remove the data with the largest deviation from the average value in the historical data, and import the remaining data as new historical data into step S102;
[0056] S105. Use the average value of the time period as an occurrence probability of the corresponding request within the corresponding time period.
[0057] average value: It is the average number of calls of a certain interface in a certain period of time in a cycle.
[0058] Standard Deviation...
Embodiment 3
[0073] Such as figure 2 , image 3 As shown, in this embodiment, the main data source is the historical record of the request, and the token for each request is 24 hours by default from the first application to the expiration, so the time interval is one day, and the day is divided into 24 parts by hour , the analysis dimension is to calculate the probability model of this time in the day from a certain time period of a certain interface of a certain application, and predict the recorded request probability distribution of the day;
[0074] When the resources in the token cache pool are tight, the system triggers token recycling, and the token recycling method is as follows;
[0075] S301. The request corresponding to the token has an occurrence probability of 0 within the current time period;
[0076] S302. The request corresponding to the token has the smallest occurrence probability within the current time period;
[0077] S303. The request corresponding to the token ha...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


