Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for throttle (0.04 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 n, err
    	}
    	b := r.throttle.Burst()  // maximum available tokens
    	need := len(buf)         // number of bytes requested by caller
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 3.3K 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
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. docs/throttle/README.md

    MinIO server allows to throttle incoming requests:
    
    - limit the number of active requests allowed across the cluster
    - limit the wait duration for each request in the queue
    
    These values are enabled using server's configuration or environment variables.
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 16 08:43:49 UTC 2024
    - 1.5K bytes
    - Viewed (1)
  4. docs/contribute/concurrency.md

    Framing rules make it impractical to implement http/2 correctly on a single blocking thread. The flow-control features introduce feedback between reads and writes, requiring writes to acknowledge reads and reads to throttle writes.
    
    In OkHttp we expose a blocking API over a framed protocol. This document explains the code and policy that makes that work.
    
    ### Threads
    
    #### Application's calling thread
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 7K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

          fail<Any>()
        } catch (expected: IOException) {
        }
        server
          .url("/b")
          .toUrl()
          .openConnection()
          .getInputStream() // Should succeed.
      }
    
      /**
       * Throttle the request body by sleeping 500ms after every 3 bytes. With a 6-byte request, this
       * should yield one sleep for a total delay of 500ms.
       */
      @Test
      fun throttleRequest() {
        assumeNotWindows()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

       * body, which it will attempt to do otherwise:
       *
       *  * Don't cache the response. The cache will try to read the entire response body so that it
       *    can successfully complete the cache entry.
       *
       *  * Throttle the response. The HTTP/1 connection pool will attempt to read the entire response
       *    body so that it can pool the connection.
       */
      private fun trailersWithClientPrematureClose(protocol: Protocol) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        val inputStream =
          server
            .url("/a")
            .toUrl()
            .openConnection()
            .getInputStream()
        assertThat(inputStream!!.read()).isEqualTo('B'.code)
      }
    
      /**
       * Throttle the request body by sleeping 500ms after every 3 bytes. With a 6-byte request, this
       * should yield one sleep for a total delay of 500ms.
       */
      @Test
      fun throttleRequest() {
        assumeNotWindows()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * allow in normal conditions. This is enforced by "throttling" incoming requests as needed. For
       * example, we could compute the appropriate throttle time for an incoming request, and make the
       * calling thread wait for that time.
       *
       * The simplest way to maintain a rate of QPS is to keep the timestamp of the last granted
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. docs/config/README.md

    ```
    KEY:
    api  manage global HTTP API call specific features, such as throttling, authentication types, etc.
    
    ARGS:
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 18.1K bytes
    - Viewed (1)
  10. 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
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:19 UTC 2025
    - 23.3K bytes
    - Viewed (0)
Back to top