Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for decrease (0.17 sec)

  1. cmd/dynamic-timeouts_test.go

    		timeout.LogSuccess(20 * time.Second)
    	}
    
    	adjusted := timeout.Timeout()
    
    	if initial <= adjusted {
    		t.Errorf("Failure to decrease timeout, expected %v to be less than %v", adjusted, initial)
    	}
    }
    
    func TestDynamicTimeoutDualDecrease(t *testing.T) {
    	timeout := newDynamicTimeout(time.Minute, time.Second)
    
    	initial := timeout.Timeout()
    
    	for i := 0; i < dynamicTimeoutLogSize; i++ {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  2. cmd/dynamic-timeouts.go

    package cmd
    
    import (
    	"math"
    	"sync"
    	"sync/atomic"
    	"time"
    )
    
    const (
    	dynamicTimeoutIncreaseThresholdPct = 0.33 // Upper threshold for failures in order to increase timeout
    	dynamicTimeoutDecreaseThresholdPct = 0.10 // Lower threshold for failures in order to decrease timeout
    	dynamicTimeoutLogSize              = 16
    	maxDuration                        = math.MaxInt64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  3. internal/lock/lock_test.go

    		t.Fatal(err)
    	}
    	isClosed := rlk.IsClosed()
    	if isClosed {
    		t.Fatal("File ref count shouldn't be zero")
    	}
    
    	// Increase reference count to 2.
    	rlk.IncLockRef()
    
    	isClosed = rlk.IsClosed()
    	if isClosed {
    		t.Fatal("File ref count shouldn't be zero")
    	}
    
    	// Decrease reference count by 1.
    	if err = rlk.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	isClosed = rlk.IsClosed()
    	if isClosed {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  4. istioctl/pkg/cli/context.go

    	rc, err := kube.DefaultRestConfig(kubeconfig, configContext, func(config *rest.Config) {
    		// We are running a one-off command locally, so we don't need to worry too much about rate limiting
    		// Bumping this up greatly decreases install time
    		config.QPS = 50
    		config.Burst = 100
    	})
    	if err != nil {
    		return nil, err
    	}
    	return kube.NewCLIClient(kube.NewClientConfigForRestConfig(rc), kube.WithRevision(revision))
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. cmd/storage-errors.go

    var errFileVersionNotFound = StorageErr("file version not found")
    
    // errTooManyOpenFiles - too many open files.
    var errTooManyOpenFiles = StorageErr("too many open files, please increase 'ulimit -n'")
    
    // errFileNameTooLong - given file name is too long than supported length.
    var errFileNameTooLong = StorageErr("file name too long")
    
    // errVolumeExists - cannot create same volume again.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  6. istioctl/pkg/authz/analyzer.go

    // limitations under the License.
    
    // The auth package provides support for checking the authentication and authorization policy applied
    // in the mesh. It aims to increase the debuggability and observability of auth policies.
    // Note: this is still under active development and is not ready for real use.
    package authz
    
    import (
    	"fmt"
    	"io"
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jul 13 01:59:17 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  7. cmd/peer-s3-server.go

    		}, index)
    	}
    
    	var recreate bool
    	errs := g.Wait()
    	for index, err := range errs {
    		if errors.Is(err, errVolumeNotEmpty) {
    			recreate = true
    		}
    		if err == nil && recreate {
    			// ignore any errors
    			localDrives[index].MakeVol(ctx, bucket)
    		}
    	}
    
    	// Since we recreated buckets and error was `not-empty`, return not-empty.
    	if recreate {
    		return errVolumeNotEmpty
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top