The specification provides a
data processing method, an electronic device, a storage medium and a program product. A master storage node of to-be-written data in a distributed storage cluster determines
backup storage nodes based on a master-slave
backup party matrix, sends a copy of the to-be-written data to the
backup storage nodes, and after determining that each backup storage node has received the copy, sends a write completion response to a
client, so that the performance of a data write operation on a critical path in the distributed storage cluster is comparable to that of a replica mechanism, achieving high-performance data storage. At the same time, under the condition that the backup storage node determines that it has received the copy of the to-be-written data sent by the master storage node corresponding to each check row number, the backup storage node calculates and stores a corresponding check block based on each received copy, so as to convert k data copies into a check block, realizing the calculation and storage of the check block in the
erasure code mechanism, and the storage overhead is comparable to that of the
erasure code mechanism, which is much lower than that of the replica mechanism. In summary, a redundant mechanism with high performance and low storage space overhead is realized.