Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for limits (0.31 sec)

  1. cmd/handler-api.go

    	if runtime.GOOS == "linux" {
    		// Useful in container mode
    		limit := cgroupMemLimit()
    		if limit > 0 {
    			// A valid value is found, return its 75%
    			available = (limit * 3) / 4
    			return
    		}
    	} // for all other platforms limits are based on virtual memory.
    
    	memStats, err := mem.VirtualMemory()
    	if err != nil {
    		return
    	}
    	// A valid value is available return its 75%
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 09:22:27 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. cmd/routers.go

    	// prefix.
    	setBrowserRedirectMiddleware,
    	// Adds 'crossdomain.xml' policy middleware to serve legacy flash clients.
    	setCrossDomainPolicyMiddleware,
    	// Limits all body and header sizes to a maximum fixed limit
    	setRequestLimitMiddleware,
    	// Validate all the incoming requests.
    	setRequestValidityMiddleware,
    	// Add upload forwarding middleware for site replication
    	setUploadForwardingMiddleware,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  3. internal/ioutil/hardlimitreader.go

    // This will ensure that at most n bytes are returned and EOF is reached.
    func HardLimitReader(r io.Reader, n int64) io.Reader { return &HardLimitedReader{r, n} }
    
    // A HardLimitedReader reads from R but limits the amount of
    // data returned to just N bytes. Each call to Read
    // updates N to reflect the new amount remaining.
    // Read returns EOF when N <= 0 or when the underlying R returns EOF.
    type HardLimitedReader struct {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat May 06 02:53:12 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. cmd/metrics-v3-system-process.go

    	} else {
    		loadProcStatMetrics(ctx, stat, m)
    	}
    
    	io, err := p.IO()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else {
    		loadProcIOMetrics(ctx, io, m)
    	}
    
    	l, err := p.Limits()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else {
    		if l.OpenFiles > 0 {
    			m.Set(processFileDescriptorLimitTotal, float64(l.OpenFiles))
    		}
    
    		if l.AddressSpace > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. cmd/generic-handlers.go

    				usersize += length
    				break
    			}
    		}
    		if usersize > maxUserDataSize || size > maxHeaderSize {
    			return true
    		}
    	}
    	return false
    }
    
    // Limits body and header to specific allowed maximum limits as per S3/MinIO API requirements.
    func setRequestLimitMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  6. src/arena/arena.go

    best used in bulk, on the order of MiB of memory allocated on each use.
    
    Note that by allowing for this limited form of manual memory allocation
    that use-after-free bugs are possible with regular Go values. This package
    limits the impact of these use-after-free bugs by preventing reuse of freed
    memory regions until the garbage collector is able to determine that it is
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    func checkPathLength(pathName string) error {
    	// Apple OS X path length is limited to 1016
    	if runtime.GOOS == "darwin" && len(pathName) > 1016 {
    		return errFileNameTooLong
    	}
    
    	// Disallow more than 1024 characters on windows, there
    	// are no known name_max limits on Windows.
    	if runtime.GOOS == "windows" && len(pathName) > 1024 {
    		return errFileNameTooLong
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.ConsoleLogAdminAction)
    	if objectAPI == nil {
    		return
    	}
    	node := r.Form.Get("node")
    	// limit buffered console entries if client requested it.
    	limitStr := r.Form.Get("limit")
    	limitLines, err := strconv.Atoi(limitStr)
    	if err != nil {
    		limitLines = 10
    	}
    
    	logKind := madmin.LogKind(strings.ToUpper(r.Form.Get("logType"))).LogMask()
    	if logKind == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  9. clause/limit.go

    // Limit limit clause
    type Limit struct {
    	Limit  *int
    	Offset int
    }
    
    // Name where clause name
    func (limit Limit) Name() string {
    	return "LIMIT"
    }
    
    // Build build where clause
    func (limit Limit) Build(builder Builder) {
    	if limit.Limit != nil && *limit.Limit >= 0 {
    		builder.WriteString("LIMIT ")
    		builder.AddVar(builder, *limit.Limit)
    	}
    	if limit.Offset > 0 {
    		if limit.Limit != nil && *limit.Limit >= 0 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 942 bytes
    - Viewed (0)
  10. cmd/data-scanner.go

    //
    // Whenever a branch is scanned, it is assumed that it will be un-compacted
    // before it hits any of the above limits.
    // This will make the branch rebalance itself when scanned if the distribution of objects has changed.
    
    // scanDataFolder will scanner the basepath+cache.Info.Name and return an updated cache.
    // The returned cache will always be valid, but may not be updated from the existing.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
Back to top