- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for costly (0.2 sec)
-
cmd/background-heal-ops.go
// healRoutine receives heal tasks, to heal buckets, objects and format.json type healRoutine struct { tasks chan healTask workers int } func activeListeners() int { // Bucket notification and http trace are not costly, it is okay to ignore them // while counting the number of concurrent connections return int(globalHTTPListen.Subscribers()) + int(globalTrace.Subscribers()) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 4.6K bytes - Viewed (0) -
internal/hash/reader.go
} // Options are optional arguments to NewReaderWithOpts, Options // simply converts positional arguments to NewReader() into a // more flexible way to provide optional inputs. This is currently // used by the FanOut API call mostly to disable expensive md5sum // calculation repeatedly under hash.Reader. type Options struct { MD5Hex string SHA256Hex string Size int64 ActualSize int64 DisableMD5 bool ForceMD5 []byte }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 18 17:00:54 GMT 2023 - 10.8K bytes - Viewed (0) -
cmd/erasure-sets_test.go
testCases := []struct { objectName string sipHash int }{ // cases which should pass the test. // passing in valid object name. {"object", 37}, {"The Shining Script <v1>.pdf", 38}, {"Cost Benefit Analysis (2009-2010).pptx", 59}, {"117Gn8rfHL2ACARPAhaFd0AGzic9pUbIA/5OCn5A", 35}, {"SHØRT", 49}, {"There are far too many object names, and far too few bucket names!", 8}, {"a/b/c/", 159}, {"/a/b/c", 96},
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Feb 12 07:21:56 GMT 2024 - 6.9K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
iptablesBuilder := builder.NewIptablesRuleBuilder(ipbuildConfig(cfg.cfg)) // Insert jumps to our custom chains // This is mostly just for visual tidiness and cleanup, as we can delete the secondary chains and jumps // without polluting the main table too much. // -t mangle -A PREROUTING -j ISTIO_PRERT iptablesBuilder.AppendRule(
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue May 07 19:54:50 GMT 2024 - 19.7K bytes - Viewed (0) -
internal/disk/stat_linux.go
devName = dstat.DeviceName break } } if devName != "" { info.Name = devName qst, err := bfs.SysBlockDeviceQueueStats(devName) if err != nil { // Mostly not found error // Check if there is a parent device: // e.g. if the mount is based on /dev/nvme0n1p1, let's calculate the // real device name (nvme0n1) to get its sysfs information
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Feb 26 19:34:50 GMT 2024 - 4.8K bytes - Viewed (0) -
cmd/erasure-server-pool-decom.go
for k := range specifiedPools { pi, ok := rememberedPools[k] if !ok { // we do not have the pool anymore that we previously remembered, since all // the CLI checks out we can allow updates since we are mostly adding a pool here. update = true } if ok && pi.completed { return false, fmt.Errorf("pool(%s) = %s is decommissioned, please remove from server command line", humanize.Ordinal(pi.position+1), k) } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 15:18:21 GMT 2024 - 41.5K bytes - Viewed (1) -
cmd/xl-storage.go
// errors upwards. return nil, dmTime, errFileNotFound } return nil, dmTime, errUnsupportedDisk } return nil, dmTime, err } if discard { // This discard is mostly true for DELETEEs // so we need to make sure we do not keep // page-cache references after. defer disk.Fdatasync(f) } defer f.Close() // Get size for precise allocation.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 28 17:53:50 GMT 2024 - 84.7K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns.go
return true } func GetFd(f fs.File) (uintptr, error) { if fdable, ok := f.(interface{ Fd() uintptr }); ok { return fdable.Fd(), nil } return 0, fmt.Errorf("unable to get fd") } /// mostly copy pasted from spire below: // regexes listed here have to exclusively match a cgroup path // the regexes must include two named groups "poduid" and "containerid"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 11K bytes - Viewed (0) -
cmd/data-scanner.go
factor float64 // maximum sleep cap, // set to <= 0 to disable. maxSleep time.Duration // Don't sleep at all, if time taken is below this value. // This is to avoid too small costly sleeps. minSleep time.Duration // cycle will be closed cycle chan struct{} // isScanner should be set when this is used by the scanner // to record metrics. isScanner bool }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 03 11:18:58 GMT 2024 - 47.6K bytes - Viewed (0) -
cmd/erasure-object.go
} } if !readData { for i := range v2bufs { metaDataPoolPut(v2bufs[i]) } } // Return all the metadata. return metaFileInfos, errs } // Checking if an object is dangling costs some IOPS; hence implementing this function // which decides which condition it is useful to check if an object is dangling // // errs: errors from reading xl.meta in all disks // err: reduced errs
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun May 05 16:56:21 GMT 2024 - 77.2K bytes - Viewed (2)