Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for cacheSizes (0.41 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    }
    
    func TestParseWatchCacheSizes(t *testing.T) {
    	testCases := []struct {
    		name                  string
    		cacheSizes            []string
    		expectWatchCacheSizes map[schema.GroupResource]int
    		expectErr             string
    	}{
    		{
    			name:       "test when invalid value of watch cache size",
    			cacheSizes: []string{"deployments.apps#65536", "replicasets.extensions"},
    			expectErr:  "invalid value of watch cache size",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/etcd.go

    	var cacheSizes []string
    
    	for resource, size := range watchCacheSizes {
    		if size < 0 {
    			return nil, fmt.Errorf("watch cache size cannot be negative for resource %s", resource)
    		}
    		cacheSizes = append(cacheSizes, fmt.Sprintf("%s#%d", resource.String(), size))
    	}
    	return cacheSizes, nil
    }
    
    var _ serverstorage.StorageFactory = &SimpleStorageFactory{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 15:02:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go

    						Timeout:    &metav1.Duration{Duration: 3 * time.Second},
    						CacheSize:  &cacheSize,
    						APIVersion: "v1",
    					},
    				}, {
    					KMS: &apiserver.KMSConfiguration{
    						Name:       "foo",
    						Endpoint:   "unix:///tmp/kms-provider-2.socket",
    						Timeout:    &metav1.Duration{Duration: 3 * time.Second},
    						CacheSize:  &cacheSize,
    						APIVersion: "v1",
    					},
    				}},
    			}},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 33.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/metrics/metrics_test.go

    			} else {
    				validMetrics++
    			}
    		}
    	}
    	if validMetrics != cacheSize {
    		t.Fatalf("expected total valid metrics to be the same as cacheSize %d, got %d", cacheSize, validMetrics)
    	}
    }
    
    func TestRecordKeyIDFromStatus(t *testing.T) {
    	RegisterMetrics()
    
    	cacheSize = 3
    	registerLRUMetrics()
    	KeyIDHashStatusLastTimestampSeconds.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 09 22:31:32 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go

    	if c.APIVersion != "v1" && c.CacheSize != nil {
    		allErrs = append(allErrs, field.Invalid(fieldPath, *c.CacheSize, "cachesize is not supported in v2"))
    	}
    	if c.APIVersion == "v1" && *c.CacheSize == 0 {
    		allErrs = append(allErrs, field.Invalid(fieldPath, *c.CacheSize, fmt.Sprintf(nonZeroErrFmt, "cachesize")))
    	}
    
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope_test.go

    func TestEnvelopeCaching(t *testing.T) {
    	testCases := []struct {
    		desc                     string
    		cacheSize                int
    		simulateKMSPluginFailure bool
    		expectedError            string
    	}{
    		{
    			desc:                     "positive cache size should withstand plugin failure",
    			cacheSize:                1000,
    			simulateKMSPluginFailure: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 14:23:50 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/metrics/metrics.go

    	lastToStorage                                   time.Time
    	keyIDHashTotalMetricLabels                      *lru.Cache
    	keyIDHashStatusLastTimestampSecondsMetricLabels *lru.Cache
    	cacheSize                                       = 100
    
    	// This metric is only used for KMS v1 API.
    	dekCacheFillPercent = metrics.NewGauge(
    		&metrics.GaugeOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 09 22:31:32 UTC 2023
    - 12K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/zz_generated.conversion.go

    func autoConvert_v1_KMSConfiguration_To_apiserver_KMSConfiguration(in *KMSConfiguration, out *apiserver.KMSConfiguration, s conversion.Scope) error {
    	out.APIVersion = in.APIVersion
    	out.Name = in.Name
    	out.CacheSize = (*int32)(unsafe.Pointer(in.CacheSize))
    	out.Endpoint = in.Endpoint
    	out.Timeout = (*metav1.Duration)(unsafe.Pointer(in.Timeout))
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  9. plugin/pkg/admission/eventratelimit/admission_test.go

    					Burst:     tc.namespaceBurst,
    					QPS:       qps,
    					CacheSize: tc.namespaceCacheSize,
    				}
    				config.Limits = append(config.Limits, namespaceLimit)
    			}
    			if tc.userBurst > 0 {
    				userLimit := eventratelimitapi.Limit{
    					Type:      eventratelimitapi.UserLimitType,
    					Burst:     tc.userBurst,
    					QPS:       qps,
    					CacheSize: tc.userCacheSize,
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 17 13:19:08 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      uint64 start = Env::Default()->NowSeconds();
      do {
        Env::Default()->SleepForMicroseconds(100000);
      } while (cache.CacheSize() == 24 && Env::Default()->NowSeconds() - start < 3);
      // There should be one block left in the cache, and it should be the first
      // block of "b".
      EXPECT_EQ(cache.CacheSize(), 8);
      TF_EXPECT_OK(ReadCache(&cache, "b", 0, 1, &out));
      EXPECT_EQ(calls, 3);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:57 UTC 2021
    - 23.2K bytes
    - Viewed (0)
Back to top