Documentation
¶
Overview ¶
Package xreg provides registry and (renew, find) functions for AIS eXtended Actions (xactions).
- Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
Package xreg provides registry and (renew, find) functions for AIS eXtended Actions (xactions).
- Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
Package xreg provides registry and (renew, find) functions for AIS eXtended Actions (xactions).
- Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
Package xreg provides registry and (renew, find) functions for AIS eXtended Actions (xactions).
- Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
Package xreg provides registry and (renew, find) functions for AIS eXtended Actions (xactions).
- Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
Index ¶
- Constants
- func AbortAll(err error, scope ...int)
- func AbortAllBuckets(err error, bcks ...*meta.Bck)
- func AbortAllMountpathsXactions()
- func AbortKind(err error, kind string)
- func DoAbort(flt Flt, err error) (bool, error)
- func GetAllRunning(kind string, separateIdle bool) ([]string, []string)
- func GetRebMarked() (out xact.Marked)
- func GetResilverMarked() (out xact.Marked)
- func GetSnap(flt Flt) ([]*cluster.Snap, error)
- func GetXact(uuid string) (cluster.Xact, error)
- func Init()
- func LimitedCoexistence(tsi *meta.Snode, bck *meta.Bck, action string, otherBck ...*meta.Bck) (err error)
- func RegBckXact(entry Renewable)
- func RegNonBckXact(entry Renewable)
- func RegWithHK()
- func RenewMakeNCopies(t cluster.Target, uuid, tag string)
- func RenewResilver(id string) cluster.Xact
- func TestReset()
- type Args
- type BckRenameArgs
- type ECEncodeArgs
- type Flt
- type MNCArgs
- type RenewBase
- type RenewRes
- func RenewBckLoadLomCache(t cluster.Target, uuid string, bck *meta.Bck) RenewRes
- func RenewBckMakeNCopies(t cluster.Target, bck *meta.Bck, uuid, tag string, copies int) (res RenewRes)
- func RenewBckRename(t cluster.TargetExt, bckFrom, bckTo *meta.Bck, uuid string, rmdVersion int64, ...) RenewRes
- func RenewBckSummary(t cluster.Target, bck *meta.Bck, msg *apc.BsummCtrlMsg) RenewRes
- func RenewBucketXact(kind string, bck *meta.Bck, args Args, buckets ...*meta.Bck) (res RenewRes)
- func RenewDownloader(t cluster.Target, statsT stats.Tracker, xid string) RenewRes
- func RenewECEncode(t cluster.Target, bck *meta.Bck, uuid, phase string) RenewRes
- func RenewETL(t cluster.Target, msg any, xid string) RenewRes
- func RenewElection() RenewRes
- func RenewEvictDelete(uuid string, t cluster.Target, kind string, bck *meta.Bck, msg *apc.ListRange) RenewRes
- func RenewLRU(id string) RenewRes
- func RenewLso(t cluster.Target, bck *meta.Bck, uuid string, msg *apc.LsoMsg) RenewRes
- func RenewPrefetch(uuid string, t cluster.Target, bck *meta.Bck, msg *apc.ListRange) RenewRes
- func RenewPromote(t cluster.Target, uuid string, bck *meta.Bck, args *cluster.PromoteArgs) RenewRes
- func RenewPutArchive(uuid string, t cluster.Target, bckFrom, bckTo *meta.Bck) RenewRes
- func RenewPutMirror(t cluster.Target, lom *cluster.LOM) RenewRes
- func RenewRebalance(id int64) RenewRes
- func RenewStoreCleanup(id string) RenewRes
- func RenewTCB(t cluster.Target, uuid, kind string, custom *TCBArgs) RenewRes
- func RenewTCObjs(t cluster.Target, uuid, kind string, custom *TCObjsArgs) RenewRes
- type Renewable
- type TCBArgs
- type TCObjsArgs
- type WPR
Constants ¶
const ( WprAbort = iota + 1 WprUse WprKeepAndStartNew )
Variables ¶
This section is empty.
Functions ¶
func AbortAll ¶
AbortAll waits until abort of all xactions is finished Every abort is done asynchronously
func AbortAllBuckets ¶
func AbortAllMountpathsXactions ¶
func AbortAllMountpathsXactions()
func GetRebMarked ¶
func GetResilverMarked ¶
func LimitedCoexistence ¶
func RegBckXact ¶
func RegBckXact(entry Renewable)
func RegNonBckXact ¶
func RegNonBckXact(entry Renewable)
func RenewMakeNCopies ¶
func RenewResilver ¶
Types ¶
type Args ¶
type Args struct { T cluster.Target Custom any // Additional arguments that are specific for a given xact. UUID string }
used in constructions
type BckRenameArgs ¶
type ECEncodeArgs ¶
type ECEncodeArgs struct {
Phase string
}
type RenewRes ¶
type RenewRes struct { Entry Renewable // Depending on situation can be new or old entry. Err error // Error that occurred during renewal. UUID string // "" if a new entry has been created, ID of the existing xaction otherwise }
Represents result of renewing given xact.
func RenewBckLoadLomCache ¶
func RenewBckMakeNCopies ¶
func RenewBckRename ¶
func RenewBckSummary ¶
func RenewBucketXact ¶
RenewBucketXact is general function to renew bucket xaction without any additional or specific parameters.
func RenewDownloader ¶
func RenewECEncode ¶
func RenewElection ¶
func RenewElection() RenewRes
func RenewEvictDelete ¶
func RenewPrefetch ¶
func RenewPromote ¶
func RenewPutArchive ¶
func RenewRebalance ¶
func RenewStoreCleanup ¶
func RenewTCObjs ¶
func RenewTCObjs(t cluster.Target, uuid, kind string, custom *TCObjsArgs) RenewRes
type Renewable ¶
type Renewable interface { New(args Args, bck *meta.Bck) Renewable // new xaction stub that can be `Start`-ed. Start() error // starts an xaction, will be called when entry is stored into registry Kind() string Get() cluster.Xact WhenPrevIsRunning(prevEntry Renewable) (action WPR, err error) Bucket() *meta.Bck UUID() string }