Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor is a monitor that checks if the primary tablet is blocked on a semi-sync ack from the replica. If the semi-sync ACK is lost in the network, it is possible that the primary is indefinitely stuck, blocking PRS. The monitor looks for this situation and manufactures a write periodically to unblock the primary.
func CreateTestSemiSyncMonitor ¶
CreateTestSemiSyncMonitor created a monitor for testing. It takes an optional fake db.
func NewMonitor ¶
func NewMonitor(config *tabletenv.TabletConfig, exporter *servenv.Exporter) *Monitor
NewMonitor creates a new Monitor.
func (*Monitor) AllWritesBlocked ¶
AllWritesBlocked returns if maxWritesPermitted number of writes are already outstanding.
Click to show internal directories.
Click to hide internal directories.