Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for loadRequestsInQueue (0.18 sec)

  1. cmd/healthcheck-handler.go

    	}
    	if r.Header.Get(xhttp.MinIOPeerCall) != "" {
    		writeResponse(w, http.StatusOK, nil, mimeNone)
    		return
    	}
    
    	if int(globalHTTPStats.loadRequestsInQueue()) > globalAPIConfig.getRequestsPoolCapacity() {
    		apiErr := getAPIError(ErrBusy)
    		switch r.Method {
    		case http.MethodHead:
    			writeResponse(w, apiErr.HTTPStatusCode, nil, mimeNone)
    		case http.MethodGet:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 03 21:13:20 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  2. cmd/http-stats.go

    	totalS3Errors           HTTPAPIStats
    	totalS34xxErrors        HTTPAPIStats
    	totalS35xxErrors        HTTPAPIStats
    	totalS3Canceled         HTTPAPIStats
    }
    
    func (st *HTTPStats) loadRequestsInQueue() int32 {
    	return atomic.LoadInt32(&st.s3RequestsInQueue)
    }
    
    func (st *HTTPStats) addRequestsInQueue(i int32) {
    	atomic.AddInt32(&st.s3RequestsInQueue, i)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top