The invention discloses a
distributed power storage
system Praft
parallel optimization method and
system, and relates to the technical field of computer storage, and the method comprises the following steps: electing a leader, receiving a state
machine command request of a
client, converting a command into a log item,
copying a log, submitting the log,
copying the log in a cluster, and carrying out
parallel optimization on the Praft in the cluster. Log items sent by the
client are copied, logs are executed on all the nodes according to the same sequence, whether connection between the
client and the leader node is abnormal or not is monitored in real time, the leader node needs to be selected again when the connection is abnormal, request instruction
processing is carried out, and
correctness analysis is carried out on a
consensus algorithm. According to the method, the optimization of log
processing in the
distributed power storage
system is realized by electing the leader, receiving the command request of the state
machine of the client, converting the command into the log item,
copying the log and submitting the log, the average
delay of log
processing is shortened, and the efficiency and consistency of log processing are ensured.