The invention discloses a small file distributed high-
concurrency aggregation storage method and
system, and the method comprises the steps: collecting
performance index data, and transmitting the data to a
resource coordination server; calculating a queuing rate; determining a target
server according to the queuing rate, the file reading
concurrency and the disk
residual space; determining a first-level
directory hash value; selecting a first-level storage
directory and a second-level storage
directory according to the first-level directory hash value; creating a target aggregation file in the secondary storage directory, generating a 2-
byte file format field according to the compression identifier or the non-compression identifier, and generating a 4-
byte file length field according to the size of the to-be-written file; writing the
file format field, the file length field and the to-be-written file into a target aggregation file in sequence, and recording the initial offset of writing; and generating a file name containing the storage position information, and returning the file name to the
client. According to the invention, the efficiency and effect of small
file storage are optimized.