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-2024, 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) 2023, NVIDIA CORPORATION. All rights reserved.
Package xreg provides registry and (renew, find) functions for AIS eXtended Actions (xactions).
- Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
Index ¶
- Constants
- Variables
- func AbortAll(err error, scope ...int)
- func AbortAllBuckets(err error, bcks ...*meta.Bck)
- func AbortByNewReb(err error)
- func AbortKind(err error, kind string)
- func DoAbort(flt Flt, err error)
- func GenBEID(div uint64, tag []byte) (beid string, xctn core.Xact, err error)
- func GetAllRunning(inout *core.AllRunningInOut, periodic bool)
- func GetRebMarked() (out xact.Marked)
- func GetResilverMarked() (out xact.Marked)
- func GetSnap(flt Flt) ([]*core.Snap, error)
- func GetXact(uuid string) (core.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(uuid, tag string)
- func RenewResilver(id string) core.Xact
- func TestReset()
- type Args
- type BckRenameArgs
- type DsortArgs
- type ECEncodeArgs
- type Flt
- type LsoArgs
- type MNCArgs
- type RenewBase
- type RenewRes
- func RenewBckLoadLomCache(uuid string, bck *meta.Bck) RenewRes
- func RenewBckMakeNCopies(bck *meta.Bck, uuid, tag string, copies int) (res RenewRes)
- func RenewBckRename(bckFrom, bckTo *meta.Bck, uuid string, rmdVersion int64, phase string) RenewRes
- func RenewBckSummary(bck *meta.Bck, msg *apc.BsummCtrlMsg) RenewRes
- func RenewBucketXact(kind string, bck *meta.Bck, args Args, buckets ...*meta.Bck) (res RenewRes)
- func RenewDownloader(xid string, bck *meta.Bck) RenewRes
- func RenewDsort(id string, custom *DsortArgs) RenewRes
- func RenewECEncode(bck *meta.Bck, uuid, phase string) RenewRes
- func RenewETL(msg any, xid string) RenewRes
- func RenewElection() RenewRes
- func RenewEvictDelete(uuid, kind string, bck *meta.Bck, msg *apc.ListRange) RenewRes
- func RenewLRU(id string) RenewRes
- func RenewLso(bck *meta.Bck, uuid string, msg *apc.LsoMsg, hdr http.Header) RenewRes
- func RenewPrefetch(uuid string, bck *meta.Bck, msg *apc.PrefetchMsg) RenewRes
- func RenewPromote(uuid string, bck *meta.Bck, args *apc.PromoteArgs) RenewRes
- func RenewPutArchive(bckFrom, bckTo *meta.Bck) RenewRes
- func RenewPutMirror(lom *core.LOM) RenewRes
- func RenewRebalance(id int64) RenewRes
- func RenewStoreCleanup(id string) RenewRes
- func RenewTCB(uuid, kind string, custom *TCBArgs) RenewRes
- func RenewTCObjs(kind string, custom *TCObjsArgs) RenewRes
- type Renewable
- type TCBArgs
- type TCObjsArgs
- type WPR
Constants ¶
const ( WprAbort = iota + 1 WprUse WprKeepAndStartNew )
Variables ¶
var ( PrimeTime atomic.Int64 MyTime atomic.Int64 )
Functions ¶
func AbortAll ¶
AbortAll waits until abort of all xactions is finished Every abort is done asynchronously
func AbortAllBuckets ¶
func AbortByNewReb ¶ added in v1.3.21
func AbortByNewReb(err error)
func GenBEID ¶ added in v1.3.19
"best-effort ID" - to independently and locally generate globally unique xaction ID
func GetAllRunning ¶ added in v1.3.16
func GetAllRunning(inout *core.AllRunningInOut, periodic bool)
func GetRebMarked ¶
func GetResilverMarked ¶
func LimitedCoexistence ¶
func RegBckXact ¶
func RegBckXact(entry Renewable)
func RegNonBckXact ¶
func RegNonBckXact(entry Renewable)
func RenewMakeNCopies ¶
func RenewMakeNCopies(uuid, tag string)
func RenewResilver ¶
Types ¶
type Args ¶
type Args struct { 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 RenewBckMakeNCopies ¶
func RenewBckRename ¶
func RenewBckSummary ¶
func RenewBckSummary(bck *meta.Bck, msg *apc.BsummCtrlMsg) RenewRes
func RenewBucketXact ¶
RenewBucketXact is general function to renew bucket xaction without any additional or specific parameters.
func RenewDsort ¶ added in v1.3.19
func RenewElection ¶
func RenewElection() RenewRes
func RenewEvictDelete ¶
func RenewPrefetch ¶
func RenewPromote ¶
func RenewPutArchive ¶
func RenewPutMirror ¶
func RenewRebalance ¶
func RenewStoreCleanup ¶
func RenewTCObjs ¶
func RenewTCObjs(kind string, custom *TCObjsArgs) RenewRes
kind: (apc.ActCopyObjects | apc.ActETLObjects)
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() core.Xact WhenPrevIsRunning(prevEntry Renewable) (action WPR, err error) Bucket() *meta.Bck UUID() string }