package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Functions
FilterByReplicationLag filters the list of TabletStats by TabletStats.Stats.SecondsBehindMaster.
IsReplicationLagHigh verifies that the given TabletStats refers to a tablet with high replication lag, i.e.
IsReplicationLagVeryHigh verifies that the given TabletStats refers to a tablet with very high replication lag, i.e.
MakeAggregateMap takes a list of TabletStats and builds a per-cell AggregateStats map.
MakeAggregateMapDiff computes the entries that need to be broadcast when the map goes from oldMap to newMap.
NewCellTabletsWatcher returns a TopologyWatcher that monitors all the tablets in a cell, and starts refreshing.
NewDefaultHealthCheck creates a new HealthCheck object with a default configuration.
NewFakeHealthCheck returns the fake healthcheck object.
NewFilterByShard creates a new FilterByShard on top of an existing TabletRecorder.
NewHealthCheck creates a new HealthCheck object.
NewShardReplicationWatcher returns a TopologyWatcher that monitors the tablets in a cell/keyspace/shard, and starts refreshing.
NewTabletStatsCache creates a TabletStatsCache, and registers it as HealthCheckStatsListener of the provided healthcheck.
NewTabletStatsCacheDoNotSetListener is identical to NewTabletStatsCache but does not automatically set the returned object as listener for "hc".
NewTopologyWatcher returns a TopologyWatcher that monitors all the tablets in a cell, and starts refreshing.
ParseTabletURLTemplateFromFlag loads or reloads the URL template.
RemoveUnhealthyTablets filters all unhealthy tablets out.
TabletToMapKey creates a key to the map from tablet's host and ports.
TrivialStatsUpdate returns true iff the old and new TabletStats haven't changed enough to warrant re-calling FilterByReplicationLag.
# Constants
See the documentation for NewHealthCheck below for an explanation of these parameters.
See the documentation for NewHealthCheck below for an explanation of these parameters.
DefaultTopologyWatcherRefreshInterval can be used as the default value for the refresh interval of a topology watcher.
DefaultTopoReadConcurrency can be used as default value for the topoReadConcurrency parameter of a TopologyWatcher.
HealthCheckTemplate is the HTML code to display a TabletsCacheStatusList.
# Structs
FakeHealthCheck implements discovery.HealthCheck.
FilterByShard is a TabletRecorder filter that filters tablets by keyspace/shard.
HealthCheckImpl performs health checking and notifies downstream components about any changes.
TabletsCacheStatus is the current tablets for a cell/target.
TabletStats is returned when getting the set of tablets.
TabletStatsCache is a HealthCheckStatsListener that keeps both the current list of available TabletStats, and a serving list: - for master tablets, only the current master is kept.
TopologyWatcher polls tablet from a configurable set of tablets periodically.
# Interfaces
HealthCheck defines the interface of health checking module.
HealthCheckStatsListener is the listener to receive health check stats update.
TabletRecorder is the part of the HealthCheck interface that can add or remove tablets.
# Type aliases
TabletsCacheStatusList is used for sorting.
TabletStatsList is used for sorting.