摘要 |
The present invention discloses a data compression method, including: periodically collecting, by a metadata controller MDC in a storage system, first information indicating a current working status of each computing node in the storage system, and second information indicating a current working status of each storage node in the storage system; determining, by the MDC based on the first information, a computing node that is one of the computing nodes and whose current working status is not a busy state as a current active computing node; determining, by the MDC based on the second information, a storage node that is one of the storage nodes and whose current working status is not a busy state as a current active storage node; and compressing, by a distributed software header DSH in the current active computing node or a memory manager MM in the current active storage node, a piece of data when the storage system needs to compress the data. Meanwhile, the present invention further discloses a storage system. |