gc

package
v1.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: Apache-2.0, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const MaxParallelEndpointChecks = 32
View Source
const SDRPipelineGCInterval = 19 * time.Minute
View Source
const StorageEndpointDeadTime = StorageEndpointGCInterval * 6 // ~2h
View Source
const StorageEndpointGCInterval = 21 * time.Minute
View Source
const StorageGCInterval = 9 * time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type PipelineGC added in v1.23.0

type PipelineGC struct {
	// contains filtered or unexported fields
}

func NewPipelineGC added in v1.23.0

func NewPipelineGC(db *harmonydb.DB) *PipelineGC

func (*PipelineGC) Adder added in v1.23.0

func (s *PipelineGC) Adder(taskFunc harmonytask.AddTaskFunc)

func (*PipelineGC) CanAccept added in v1.23.0

func (s *PipelineGC) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)

func (*PipelineGC) Do added in v1.23.0

func (s *PipelineGC) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)

func (*PipelineGC) TypeDetails added in v1.23.0

func (s *PipelineGC) TypeDetails() harmonytask.TaskTypeDetails

type StorageEndpointGC

type StorageEndpointGC struct {
	// contains filtered or unexported fields
}

func NewStorageEndpointGC

func NewStorageEndpointGC(si paths.SectorIndex, remote *paths.Remote, db *harmonydb.DB) *StorageEndpointGC

func (*StorageEndpointGC) Adder

func (s *StorageEndpointGC) Adder(taskFunc harmonytask.AddTaskFunc)

func (*StorageEndpointGC) CanAccept

func (*StorageEndpointGC) Do

func (s *StorageEndpointGC) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)

func (*StorageEndpointGC) TypeDetails

type StorageGCMark

type StorageGCMark struct {
	// contains filtered or unexported fields
}

func (*StorageGCMark) Adder

func (s *StorageGCMark) Adder(taskFunc harmonytask.AddTaskFunc)

func (*StorageGCMark) CanAccept

func (s *StorageGCMark) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)

func (*StorageGCMark) Do

func (s *StorageGCMark) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)

func (*StorageGCMark) TypeDetails

func (s *StorageGCMark) TypeDetails() harmonytask.TaskTypeDetails

type StorageGCMarkNodeAPI

type StorageGCMarkNodeAPI interface {
	StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error)
}

type StorageGCSweep

type StorageGCSweep struct {
	// contains filtered or unexported fields
}

func NewStorageGCSweep

func NewStorageGCSweep(db *harmonydb.DB, storage *paths.Remote, index paths.SectorIndex) *StorageGCSweep

func (*StorageGCSweep) Adder

func (s *StorageGCSweep) Adder(taskFunc harmonytask.AddTaskFunc)

func (*StorageGCSweep) CanAccept

func (*StorageGCSweep) Do

func (s *StorageGCSweep) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)

func (*StorageGCSweep) TypeDetails

func (s *StorageGCSweep) TypeDetails() harmonytask.TaskTypeDetails

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL