Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptEnvForSnapshotBackup ¶
func AdaptEnvForSnapshotBackup(ctx context.Context, cfg *PauseGcConfig) error
AdaptEnvForSnapshotBackup blocks the current goroutine and pause the GC safepoint and remove the scheduler by the config. This function will block until the context being canceled.
Types ¶
type AdaptEnvForSnapshotBackupContext ¶
type AdaptEnvForSnapshotBackupContext struct {
context.Context
// contains filtered or unexported fields
}
func (*AdaptEnvForSnapshotBackupContext) Close ¶
func (cx *AdaptEnvForSnapshotBackupContext) Close()
func (*AdaptEnvForSnapshotBackupContext) GetBackOffer ¶
func (cx *AdaptEnvForSnapshotBackupContext) GetBackOffer(operation string) utils.Backoffer
type PauseGcConfig ¶
type PauseGcConfig struct {
task.Config
SafePoint uint64 `json:"safepoint" yaml:"safepoint"`
TTL time.Duration `json:"ttl" yaml:"ttl"`
OnAllReady func() `json:"-" yaml:"-"`
OnExit func() `json:"-" yaml:"-"`
}
func (*PauseGcConfig) ParseFromFlags ¶
func (cfg *PauseGcConfig) ParseFromFlags(flags *pflag.FlagSet) error
ParseFromFlags fills the config via the flags.
Click to show internal directories.
Click to hide internal directories.