ikv.tikv-client.2.4.4-scala_2.11-RC1.source-code.replication_modepb.proto Maven / Gradle / Ivy
syntax = "proto3";
package replication_modepb;
enum ReplicationMode {
// The standard mode. Replicate logs to majority peer.
MAJORITY = 0;
// DR mode. Replicate logs among 2 DCs.
DR_AUTO_SYNC = 1;
}
// The replication status sync from PD to TiKV.
message ReplicationStatus {
ReplicationMode mode = 1;
DRAutoSync dr_auto_sync = 2;
}
enum DRAutoSyncState {
// Raft logs need to sync between different DCs
SYNC = 0;
// Raft logs need to sync to majority peers
ASYNC = 1;
// Switching from ASYNC to SYNC mode
SYNC_RECOVER = 2;
}
// The status of dr-autosync mode.
message DRAutoSync {
// The key of the label that used for distinguish different DC.
string label_key = 1;
DRAutoSyncState state = 2;
// Unique ID of the state, it increases after each state transfer.
uint64 state_id = 3;
// Duration to wait before switching to SYNC by force (in seconds)
int32 wait_sync_timeout_hint = 4;
}
enum RegionReplicationState {
// The region's state is unknown
UNKNOWN = 0;
// Logs sync to majority peers
SIMPLE_MAJORITY = 1;
// Logs sync to different DCs
INTEGRITY_OVER_LABEL = 2;
}
// The replication status sync from TiKV to PD.
message RegionReplicationStatus {
RegionReplicationState state = 1;
// Unique ID of the state, it increases after each state transfer.
uint64 state_id = 2;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy