| CPC G06F 3/064 (2013.01) [G06F 3/067 (2013.01); G06F 3/0622 (2013.01)] | 17 Claims |

|
1. A computer-implemented method for metric data management, the method being executed by one or more processors and comprising:
receiving metric data of a cloud system periodically, wherein the metric data comprises a plurality of fields;
transforming the metric data of each type into a byte array using mapping tables, wherein the byte array is an encoded format of the metric data, where each field of the metric data is encoded as a field ID and a field type ID that are short integer variables;
merging and storing the byte arrays of multiple metric data into a binary file, wherein the binary file comprises multiple blocks with each block comprising multiple byte arrays;
generating indexes for common fields of different metric data in the binary file;
receiving a retrieval request requesting metric records including a common field of a particular value;
determining storage locations of one or more metric records satisfying the retrieval request using the index of the common field, the index of a common field being included in i) an offset table comprising a position offset of each matching metric record in the binary file, and ii) a key table indicating a number of matching metric records for each particular value and a stating location of the number of metric records in the offset table; and
obtaining the one or more metric records satisfying the retrieval request from the binary file using the corresponding storage locations.
|