Documentation ¶
Index ¶
- type Backuper
- type Cluster
- func (c *Cluster) ApplyConfig(file string)
- func (c *Cluster) BackupAndRestore(typ pbm.BackupType)
- func (c *Cluster) BackupBoundsCheck(typ pbmt.BackupType, mongoVersion string)
- func (c *Cluster) BackupCancellation(storage string)
- func (c *Cluster) BackupDelete(storage string)
- func (c *Cluster) BackupNotDeleteRunning()
- func (c *Cluster) BackupWaitDone(bcpName string)
- func (c *Cluster) ClockSkew(typ pbmt.BackupType, mongoVersion string)
- func (c *Cluster) DataChecker() (check func())
- func (c *Cluster) DeleteBallast()
- func (c *Cluster) DistributedCommit(restoreTo primitive.Timestamp)
- func (c *Cluster) DistributedTransactions(bcp Backuper, col string)
- func (c *Cluster) DistributedTransactionsPhys(bcp Backuper, col string)
- func (c *Cluster) DistributedTrxPITR()
- func (c *Cluster) DistributedTrxPhysical()
- func (c *Cluster) DistributedTrxSnapshot()
- func (c *Cluster) Flush() error
- func (c *Cluster) FlushStorage() error
- func (c *Cluster) LeaderLag()
- func (c *Cluster) LogicalBackup() string
- func (c *Cluster) LogicalRestore(bcpName string)
- func (c *Cluster) NetworkCut()
- func (c *Cluster) OplogReplay()
- func (c *Cluster) PITRbasic()
- func (c *Cluster) PITRestore(t time.Time)
- func (c *Cluster) PITRestoreCT(t primitive.Timestamp)
- func (c *Cluster) PhysicalBackup() string
- func (c *Cluster) PhysicalRestore(bcpName string)
- func (c *Cluster) Reconnect()
- func (c *Cluster) ReplayOplog(a, b time.Time)
- func (c *Cluster) RestartAgents()
- func (c *Cluster) ServerVersion() string
- func (c *Cluster) SetBallastData(amount int64)
- func (c *Cluster) Timeseries()
- type ClusterConf
- type Physical
- type Pitr
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backuper ¶ added in v1.3.2
type Backuper interface { Backup() Restore() WaitStarted() WaitSnapshot() WaitDone() }
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg ClusterConf) *Cluster
func (*Cluster) ApplyConfig ¶
func (*Cluster) BackupAndRestore ¶
func (c *Cluster) BackupAndRestore(typ pbm.BackupType)
func (*Cluster) BackupBoundsCheck ¶
func (c *Cluster) BackupBoundsCheck(typ pbmt.BackupType, mongoVersion string)
func (*Cluster) BackupCancellation ¶ added in v1.2.0
func (*Cluster) BackupDelete ¶ added in v1.2.0
func (*Cluster) BackupNotDeleteRunning ¶ added in v1.2.0
func (c *Cluster) BackupNotDeleteRunning()
func (*Cluster) BackupWaitDone ¶
func (*Cluster) DataChecker ¶
func (c *Cluster) DataChecker() (check func())
func (*Cluster) DeleteBallast ¶
func (c *Cluster) DeleteBallast()
func (*Cluster) DistributedCommit ¶ added in v1.7.0
func (*Cluster) DistributedTransactions ¶
func (*Cluster) DistributedTransactionsPhys ¶ added in v1.8.0
func (*Cluster) DistributedTrxPITR ¶ added in v1.3.2
func (c *Cluster) DistributedTrxPITR()
func (*Cluster) DistributedTrxPhysical ¶ added in v1.7.0
func (c *Cluster) DistributedTrxPhysical()
func (*Cluster) DistributedTrxSnapshot ¶ added in v1.3.2
func (c *Cluster) DistributedTrxSnapshot()
func (*Cluster) Flush ¶ added in v1.6.0
Flush removes all backups, restores and PITR chunks metadata from the PBM db
func (*Cluster) FlushStorage ¶ added in v1.6.0
func (*Cluster) LeaderLag ¶ added in v1.5.0
func (c *Cluster) LeaderLag()
LeaderLag checks if cluster deals with leader lag during backup start https://jira.percona.com/browse/PBM-635
func (*Cluster) LogicalBackup ¶ added in v1.7.0
func (*Cluster) LogicalRestore ¶ added in v1.7.0
func (*Cluster) NetworkCut ¶
func (c *Cluster) NetworkCut()
func (*Cluster) OplogReplay ¶ added in v1.7.0
func (c *Cluster) OplogReplay()
func (*Cluster) PITRestore ¶ added in v1.3.2
func (*Cluster) PITRestoreCT ¶ added in v1.7.0
func (*Cluster) PhysicalBackup ¶ added in v1.7.0
func (*Cluster) PhysicalRestore ¶ added in v1.7.0
func (*Cluster) ReplayOplog ¶ added in v1.7.0
func (*Cluster) RestartAgents ¶
func (c *Cluster) RestartAgents()
RestartAgents restarts agents during backup. Currently restarts agents on all shards. Also consider restarting only one shard and/or configsrv, but see https://jira.percona.com/browse/PBM-406?focusedCommentId=248029&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-248029
func (*Cluster) ServerVersion ¶
func (*Cluster) SetBallastData ¶ added in v1.5.0
func (*Cluster) Timeseries ¶ added in v1.6.0
func (c *Cluster) Timeseries()
type ClusterConf ¶
type Physical ¶ added in v1.7.0
type Physical struct {
// contains filtered or unexported fields
}
func NewPhysical ¶ added in v1.7.0
func (*Physical) WaitSnapshot ¶ added in v1.7.0
func (s *Physical) WaitSnapshot()
func (*Physical) WaitStarted ¶ added in v1.7.0
func (s *Physical) WaitStarted()
type Pitr ¶ added in v1.3.2
type Pitr struct {
// contains filtered or unexported fields
}
func (*Pitr) WaitSnapshot ¶ added in v1.3.2
func (p *Pitr) WaitSnapshot()
func (*Pitr) WaitStarted ¶ added in v1.3.2
func (p *Pitr) WaitStarted()
type Snapshot ¶ added in v1.3.2
type Snapshot struct {
// contains filtered or unexported fields
}
func NewSnapshot ¶ added in v1.3.2
func (*Snapshot) WaitSnapshot ¶ added in v1.3.2
func (s *Snapshot) WaitSnapshot()
func (*Snapshot) WaitStarted ¶ added in v1.3.2
func (s *Snapshot) WaitStarted()
Source Files ¶
- backuper.go
- cluster.go
- test_backup_cancellation.go
- test_basic.go
- test_bounds_check.go
- test_clock_skew.go
- test_delete_backup.go
- test_dist_commit.go
- test_dr_restart_agents.go
- test_leader_lag.go
- test_network_cut.go
- test_oplog_replay.go
- test_pitr_basic.go
- test_pitr_trx.go
- test_timeseries.go
- test_trx.go
- trx.go
- trx_phys.go
Click to show internal directories.
Click to hide internal directories.