gc

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 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 SDRPipelineGC

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

func NewSDRPipelineGC

func NewSDRPipelineGC(db *harmonydb.DB) *SDRPipelineGC

func (*SDRPipelineGC) Adder

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

func (*SDRPipelineGC) CanAccept

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

func (*SDRPipelineGC) Do

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

func (*SDRPipelineGC) TypeDetails

func (s *SDRPipelineGC) 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