Design of Management Platform Architecture and Key Algorithm for Massive Monitoring Big Data
Algorithm 1
Granularity selection algorithm.
Algorithm 1: Select granularity (X, start time, end time, M)
Input: X time series ID, start and end time, client can display the maximum amount of data
Output: < size of granularity >
(1)Calculate the size of different granularity data of X Time Series in the historical statistics table from start time to end time;(2)Sort the amount of data in step 1 in descending order;(3)Select the first granularity that is smaller than the maximum amount of data that can be displayed on the client.