Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 280 for loads (0.18 sec)

  1. cmd/metrics-v3-api.go

    		}
    
    		httpStats := globalBucketHTTPStats.load(bucket)
    		for k, v := range httpStats.currentS3Requests.Load(false) {
    			m.Set(apiRequestsInFlightTotal, float64(v), "bucket", bucket, "name", k, "type", "s3")
    		}
    
    		for k, v := range httpStats.totalS3Requests.Load(false) {
    			m.Set(apiRequestsTotal, float64(v), "bucket", bucket, "name", k, "type", "s3")
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/configdump.go

    )
    
    // ConfigWriter is a writer for processing responses from the Ztunnel Admin config_dump endpoint
    type ConfigWriter struct {
    	Stdout      io.Writer
    	ztunnelDump *ZtunnelDump
    	FullDump    []byte
    }
    
    // Prime loads the config dump into the writer ready for printing
    func (c *ConfigWriter) Prime(b []byte) error {
    	cd := ZtunnelDump{}
    	// TODO(fisherxu): migrate this to jsonpb when issue fixed in golang
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    		inputFile   string
    		wantErr     bool
    	}{
    		{
    			name:        "errors if unable to unmarshal bytes",
    			inputFile:   "",
    			wantConfigs: 0,
    			wantErr:     true,
    		},
    		{
    			name:        "loads valid ztunnel config_dump",
    			inputFile:   "testdata/dump.json",
    			wantConfigs: 27,
    			wantErr:     false,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			cw := &ConfigWriter{}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Feb 02 18:21:48 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. fastapi/openapi/docs.py

            Doc(
                """
                Load and use Google Fonts.
                """
            ),
        ] = True,
    ) -> HTMLResponse:
        """
        Generate and return the HTML response that loads ReDoc for the alternative
        API docs (normally served at `/redoc`).
    
        You would only call this function yourself if you needed to override some parts,
        for example the URLs to use to load ReDoc's JavaScript and CSS.
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  5. cmd/metrics-v3-types.go

    	buckets     []string
    }
    
    // NewMetricsGroup creates a new MetricsGroup. To create a metrics group for
    // metrics with a `bucket` dimension (label), use `NewBucketMetricsGroup`.
    //
    // The `loader` function loads metrics from the cache and the system.
    func NewMetricsGroup(path collectorPath, descriptors []MetricDescriptor,
    	loader MetricsLoaderFn,
    ) *MetricsGroup {
    	mg := &MetricsGroup{
    		CollectorPath: path,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  6. docs/en/docs/deployment/concepts.md

    ### Server Memory
    
    For example, if your code loads a Machine Learning model with **1 GB in size**, when you run one process with your API, it will consume at least 1 GB of RAM. And if you start **4 processes** (4 workers), each will consume 1 GB of RAM. So in total, your API will consume **4 GB of RAM**.
    
    And if your remote server or virtual machine only has 3 GB of RAM, trying to load more than 4 GB of RAM will cause problems. 🚨
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/envoy/configdump/configdump.go

    }
    
    // includeConfigType is a flag to indicate whether to include the config type in the output
    var includeConfigType bool
    
    func SetPrintConfigTypeInSummary(p bool) {
    	includeConfigType = p
    }
    
    // Prime loads the config dump into the writer ready for printing
    func (c *ConfigWriter) Prime(b []byte) error {
    	w := &configdump.Wrapper{}
    	err := w.UnmarshalJSON(b)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. cmd/bucket-metadata.go

    func (b *BucketMetadata) SetCreatedAt(createdAt time.Time) {
    	if b.Created.IsZero() {
    		b.Created = UTCNow()
    	}
    	if !createdAt.IsZero() {
    		b.Created = createdAt.UTC()
    	}
    }
    
    // Load - loads the metadata of bucket by name from ObjectLayer api.
    // If an error is returned the returned metadata will be default initialized.
    func readBucketMetadata(ctx context.Context, api ObjectLayer, name string) (BucketMetadata, error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  9. cmd/event-notification.go

    			if onlyActive {
    				if _, err := target.IsActive(); err != nil {
    					continue
    				}
    			}
    			arns = append(arns, targetID.ToARN(region).String())
    		}
    	}
    
    	return arns
    }
    
    // Loads notification policies for all buckets into EventNotifier.
    func (evnot *EventNotifier) set(bucket BucketInfo, meta BucketMetadata) {
    	config := meta.notificationConfig
    	if config == nil {
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  10. cmd/common-main.go

    				// Manually load the certificate and private key into memory.
    				// We need to check whether the private key is encrypted, and
    				// if so, decrypt it using the user-provided password.
    				certBytes, err := os.ReadFile(certFile)
    				if err != nil {
    					return tls.Certificate{}, fmt.Errorf("Unable to load KES client certificate as specified by the shell environment: %v", err)
    				}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
Back to top