This invention discloses a
data synchronization method,
system, electronic device, and medium for a distributed cluster. The
data synchronization method includes: detecting whether all nodes have the same expected update time for the next incremental data update at the current moment; the expected update time is determined based on the moment when the
data source performed an incremental data update in the previous moment; for nodes with an expected update time, using the expected update time as the determination time for the node to perform an incremental data update in the next moment; when the current moment reaches the determination time, controlling each node to obtain the latest incremental data from the
data source to update the historical data of each node. This invention uses the update time of the
data source's next incremental update as the determination time for each node's next data update, ensuring that the update time of each node remains consistent, guaranteeing consistent data updates across all nodes in the distributed cluster, and reducing latency between nodes and the data source.