зеркало из https://github.com/github/vitess-gh.git
proto: Changed filtered replication lag info from a timestamp to a delay value in query.proto.
We're only interested in the fact that the receiving master has seen a lower delay at some point in time. We don't care about the actual timestamps of the filtered replication statements which were applied.
This commit is contained in:
Родитель
fe3dde842d
Коммит
55d0fe9b9a
|
@ -802,15 +802,16 @@ type RealtimeStats struct {
|
||||||
// how far behind on (MySQL) replication a slave currently is. It is used
|
// how far behind on (MySQL) replication a slave currently is. It is used
|
||||||
// by clients for subset selection (so we don't try to send traffic
|
// by clients for subset selection (so we don't try to send traffic
|
||||||
// to tablets that are too far behind).
|
// to tablets that are too far behind).
|
||||||
|
// NOTE: This field must not be evaluated if "health_error" is not empty.
|
||||||
// TODO(mberlin): Let's switch it to int64 instead?
|
// TODO(mberlin): Let's switch it to int64 instead?
|
||||||
SecondsBehindMaster uint32 `protobuf:"varint,2,opt,name=seconds_behind_master" json:"seconds_behind_master,omitempty"`
|
SecondsBehindMaster uint32 `protobuf:"varint,2,opt,name=seconds_behind_master" json:"seconds_behind_master,omitempty"`
|
||||||
// filtered_replication_synced_until_timestamp is populated for the receiving
|
// seconds_behind_master_filtered_replication is populated for the receiving
|
||||||
// master of an ongoing filtered replication only.
|
// master of an ongoing filtered replication only.
|
||||||
// It is used to find out how far the receiving master lags behind the
|
// It specifies how far the receiving master lags behind the sending master.
|
||||||
// source shard.
|
// NOTE: This field must not be evaluated if "health_error" is not empty.
|
||||||
FilteredReplicationSyncedUntilTimestamp int64 `protobuf:"varint,4,opt,name=filtered_replication_synced_until_timestamp" json:"filtered_replication_synced_until_timestamp,omitempty"`
|
SecondsBehindMasterFilteredReplication int64 `protobuf:"varint,3,opt,name=seconds_behind_master_filtered_replication" json:"seconds_behind_master_filtered_replication,omitempty"`
|
||||||
// cpu_usage is used for load-based balancing
|
// cpu_usage is used for load-based balancing
|
||||||
CpuUsage float64 `protobuf:"fixed64,3,opt,name=cpu_usage" json:"cpu_usage,omitempty"`
|
CpuUsage float64 `protobuf:"fixed64,4,opt,name=cpu_usage" json:"cpu_usage,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *RealtimeStats) Reset() { *m = RealtimeStats{} }
|
func (m *RealtimeStats) Reset() { *m = RealtimeStats{} }
|
||||||
|
|
|
@ -281,20 +281,19 @@ message RealtimeStats {
|
||||||
// we do not send queries to servers that are not healthy.
|
// we do not send queries to servers that are not healthy.
|
||||||
string health_error = 1;
|
string health_error = 1;
|
||||||
|
|
||||||
// TODO(mberlin): Add an health error for filtered replication?
|
|
||||||
|
|
||||||
// seconds_behind_master is populated for slaves only. It indicates
|
// seconds_behind_master is populated for slaves only. It indicates
|
||||||
// how far behind on (MySQL) replication a slave currently is. It is used
|
// how far behind on (MySQL) replication a slave currently is. It is used
|
||||||
// by clients for subset selection (so we don't try to send traffic
|
// by clients for subset selection (so we don't try to send traffic
|
||||||
// to tablets that are too far behind).
|
// to tablets that are too far behind).
|
||||||
|
// NOTE: This field must not be evaluated if "health_error" is not empty.
|
||||||
// TODO(mberlin): Let's switch it to int64 instead?
|
// TODO(mberlin): Let's switch it to int64 instead?
|
||||||
uint32 seconds_behind_master = 2;
|
uint32 seconds_behind_master = 2;
|
||||||
|
|
||||||
// filtered_replication_synced_until_timestamp is populated for the receiving
|
// seconds_behind_master_filtered_replication is populated for the receiving
|
||||||
// master of an ongoing filtered replication only.
|
// master of an ongoing filtered replication only.
|
||||||
// It is used to find out how far the receiving master lags behind the
|
// It specifies how far the receiving master lags behind the sending master.
|
||||||
// source shard.
|
// NOTE: This field must not be evaluated if "health_error" is not empty.
|
||||||
int64 filtered_replication_synced_until_timestamp = 3;
|
int64 seconds_behind_master_filtered_replication = 3;
|
||||||
|
|
||||||
// cpu_usage is used for load-based balancing
|
// cpu_usage is used for load-based balancing
|
||||||
double cpu_usage = 4;
|
double cpu_usage = 4;
|
||||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Загрузка…
Ссылка в новой задаче