Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 340 for tiers (0.04 sec)

  1. cmd/warm-backend-s3.go

    	if err != nil {
    		return false, s3.ToObjectError(err)
    	}
    	return len(result.CommonPrefixes) > 0 || len(result.Contents) > 0, nil
    }
    
    func newWarmBackendS3(conf madmin.TierS3, tier string) (*warmBackendS3, error) {
    	u, err := url.Parse(conf.Endpoint)
    	if err != nil {
    		return nil, err
    	}
    
    	// Validation code
    	switch {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/runtime/time.go

    	lockInit(&t.mu, lockRankTimer)
    	t.f = f
    	t.arg = arg
    }
    
    // A timers is a per-P set of timers.
    type timers struct {
    	// mu protects timers; timers are per-P, but the scheduler can
    	// access the timers of another P, so we have to lock.
    	mu mutex
    
    	// heap is the set of timers, ordered by heap[i].when.
    	// Must hold lock to access.
    	heap []timerWhen
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  3. cmd/warm-backend.go

    	case madmin.Azure:
    		d, err = newWarmBackendAzure(*tier.Azure, tier.Name)
    	case madmin.GCS:
    		d, err = newWarmBackendGCS(*tier.GCS, tier.Name)
    	case madmin.MinIO:
    		d, err = newWarmBackendMinIO(*tier.MinIO, tier.Name)
    	default:
    		return nil, errTierTypeUnsupported
    	}
    	if err != nil {
    		return nil, errTierTypeUnsupported
    	}
    
    	if probe {
    		if err = checkWarmBackend(ctx, d); err != nil {
    			return nil, err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. cmd/tier-last-day-stats_gen.go

    Krishnan Parthasarathi <******@****.***> 1711041695 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/testprog/futile-wakeup.go

    	done.Add(4 * procs)
    	for p := 0; p < procs; p++ {
    		const iters = 1e3
    		go func() {
    			trace.WithRegion(context.Background(), "special", func() {
    				for i := 0; i < iters; i++ {
    					runtime.Gosched()
    					c0 <- 0
    				}
    				done.Done()
    			})
    		}()
    		go func() {
    			trace.WithRegion(context.Background(), "special", func() {
    				for i := 0; i < iters; i++ {
    					runtime.Gosched()
    					<-c0
    				}
    				done.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/time/sleep_test.go

    	})
    }
    
    func BenchmarkStartStop1000(b *testing.B) {
    	benchmark(b, func(pb *testing.PB) {
    		for pb.Next() {
    			const N = 1000
    			timers := make([]*Timer, N)
    			for i := range timers {
    				timers[i] = AfterFunc(Hour, nil)
    			}
    
    			for i := range timers {
    				timers[i].Stop()
    			}
    		}
    	})
    }
    
    func BenchmarkReset(b *testing.B) {
    	b.Run("impl=chan", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  7. cmd/tier_test.go

    package cmd
    
    import (
    	"testing"
    	"time"
    )
    
    func TestTierMetrics(t *testing.T) {
    	tier := "WARM-1"
    	globalTierMetrics.Observe(tier, 200*time.Millisecond)
    	expSuccess := 10
    	expFailure := 5
    	for i := 0; i < expSuccess; i++ {
    		globalTierMetrics.logSuccess(tier)
    	}
    	for i := 0; i < expFailure; i++ {
    		globalTierMetrics.logFailure(tier)
    	}
    	metrics := globalTierMetrics.Report()
    	var succ, fail float64
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Dec 21 04:13:40 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/internal/coverage/cmerge/merge_test.go

    		cgran         coverage.CounterGranularity
    		src, dst, res []uint32
    		iters         int
    		merr          bool
    		overflow      bool
    	}{
    		{
    			cmode:    coverage.CtrModeSet,
    			cgran:    coverage.CtrGranularityPerBlock,
    			src:      []uint32{1, 0, 1},
    			dst:      []uint32{1, 1, 0},
    			res:      []uint32{1, 1, 1},
    			iters:    2,
    			overflow: false,
    		},
    		{
    			cmode:    coverage.CtrModeCount,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:37 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/reproduciblebuilds_test.go

    	"testing"
    )
    
    func TestReproducibleBuilds(t *testing.T) {
    	tests := []string{
    		"issue20272.go",
    		"issue27013.go",
    		"issue30202.go",
    	}
    
    	testenv.MustHaveGoBuild(t)
    	iters := 10
    	if testing.Short() {
    		iters = 4
    	}
    	t.Parallel()
    	for _, test := range tests {
    		test := test
    		t.Run(test, func(t *testing.T) {
    			t.Parallel()
    			var want []byte
    			tmp, err := os.CreateTemp("", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. cmd/tier-last-day-stats_gen_test.go

    Klaus Post <******@****.***> 1708383286 -0800
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top