You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a node falls too far behind the Leader, the Leader creates a Snapshot and sends it to the corresponding follower.
When a user actively creates a Snapshot.
How to create
Create a Snapshot through the StorageApi's interface, which returns a Snapshot structure. The specific implementation is determined by the underlying storage engine and must implement the AsyncRead and AsyncWrite traits for reading and writing Snapshot-related files.
How to send
Snapshots are sent in two situations:
Leader sends to Follower - this is done through the InstallSnapshot RPC, where the curp client sends the Snapshot to the lagging Follower. The request is a stream that sends the Snapshot in chunks to the Follower.
User actively requests a Snapshot - this is done through the Snapshot RPC of the maintenance service, where the user sends a SnapshotRequest request and the server returns a stream that sends the Snapshot in chunks back to the user.
How to recover
When the Follower receives the InstallSnapshot RPC, it writes the Snapshot to its local storage and then applies the Snapshot to the local storage through the StorageApi's apply_snapshot interface, which is implemented by the underlying storage engine.
The Snapshot file obtained by the user is only used for disaster recovery and is recovered to obtain the business data through a separate tool.
When to create
How to create
Create a Snapshot through the StorageApi's interface, which returns a Snapshot structure. The specific implementation is determined by the underlying storage engine and must implement the AsyncRead and AsyncWrite traits for reading and writing Snapshot-related files.
How to send
Snapshots are sent in two situations:
How to recover
When the Follower receives the InstallSnapshot RPC, it writes the Snapshot to its local storage and then applies the Snapshot to the local storage through the StorageApi's apply_snapshot interface, which is implemented by the underlying storage engine.
The Snapshot file obtained by the user is only used for disaster recovery and is recovered to obtain the business data through a separate tool.
Proto
Abstract
Discussion
we will persist term and other metadata directly, do we need to create snapshots for them regularly? Or do we only need to regularly compact the log?
The text was updated successfully, but these errors were encountered: