Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for throttle (0.15 sec)

  1. internal/bucket/bandwidth/reader.go

    type MonitorReaderOptions struct {
    	BucketOptions
    	HeaderSize int
    }
    
    // Read implements a throttled read
    func (r *MonitoredReader) Read(buf []byte) (n int, err error) {
    	if r.throttle == nil {
    		return r.r.Read(buf)
    	}
    	if r.lastErr != nil {
    		err = r.lastErr
    		return
    	}
    	b := r.throttle.Burst()  // maximum available tokens
    	need := len(buf)         // number of bytes requested by caller
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. internal/bucket/bandwidth/monitor.go

    	limitBytes := limit / int64(m.NodeCount)
    	throttle, ok := m.bucketsThrottle[BucketOptions{Name: bucket, ReplicationARN: arn}]
    	if !ok {
    		throttle = &bucketThrottle{}
    	}
    	throttle.NodeBandwidthPerSec = limitBytes
    	throttle.Limiter = rate.NewLimiter(rate.Limit(float64(limitBytes)), int(limitBytes))
    	m.bucketsThrottle[BucketOptions{Name: bucket, ReplicationARN: arn}] = throttle
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. cmd/api-router.go

    // the name displayed in logs and trace to be accurate. The name is extracted
    // via reflection.
    //
    // When **no** flags are passed, the behavior is to trace both headers and body,
    // gzip the response and throttle the handler via `maxClients`. Each of these
    // can be disabled via the corresponding `s3HFlag`.
    //
    // CAUTION: for requests involving large req/resp bodies ensure to pass the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  4. cmd/handler-api.go

    		return nil, 10 * time.Second
    	}
    
    	if t.requestsDeadline <= 0 {
    		return t.requestsPool, 10 * time.Second
    	}
    
    	return t.requestsPool, t.requestsDeadline
    }
    
    // maxClients throttles the S3 API calls
    func maxClients(f http.HandlerFunc) http.HandlerFunc {
    	return func(w http.ResponseWriter, r *http.Request) {
    		globalHTTPStats.incS3RequestsIncoming()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  5. cmd/data-scanner.go

    	scannerCycle                         = uatomic.NewDuration(dataScannerStartDelay)
    	scannerIdleMode                      = uatomic.NewInt32(0) // default is throttled when idle
    	scannerExcessObjectVersions          = uatomic.NewInt64(100)
    	scannerExcessObjectVersionsTotalSize = uatomic.NewInt64(1024 * 1024 * 1024 * 1024) // 1 TB
    	scannerExcessFolders                 = uatomic.NewInt64(50000)
    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)
Back to top