Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for Resource (0.17 sec)

  1. cmd/metrics-resource.go

    	lastDriveStatsRefresh time.Time
    )
    
    // PeerResourceMetrics represents the resource metrics
    // retrieved from a peer, along with errors if any
    type PeerResourceMetrics struct {
    	Metrics map[MetricSubsystem]ResourceMetrics
    	Errors  []string
    }
    
    // ResourceMetrics is a map of unique key identifying
    // a resource metric (e.g. reads_per_sec_{node}_{drive})
    // to its data
    type ResourceMetrics map[string]ResourceMetric
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  2. cmd/metrics-v3-system-cpu.go

    	cpuNiceVal := math.Round(ts.Nice/tot*100*100) / 100
    	m.Set(sysCPUNice, cpuNiceVal)
    	cpuStealVal := math.Round(ts.Steal/tot*100*100) / 100
    	m.Set(sysCPUSteal, cpuStealVal)
    
    	// metrics-resource.go runs a job to collect resource metrics including their Avg values and
    	// stores them in resourceMetricsMap. We can use it to get the Avg values of CPU idle and IOWait.
    	cpuResourceMetrics, found := resourceMetricsMap[cpuSubsystem]
    	if found {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    		// Built-in user should be imported without errors even if LDAP is
    		// enabled.
    		allUsersFile: `{
      "foo": {
        "secretKey": "foobar123",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. istioctl/pkg/util/ambient/util.go

    	if err != nil {
    		return isZtunnel
    	}
    	if v, ok := pod.Labels["app"]; ok {
    		return v == "ztunnel"
    	}
    	return isZtunnel
    }
    
    // InAmbient returns true if a resource is in ambient data plane mode.
    func InAmbient(obj metav1.Object) bool {
    	if obj == nil {
    		return false
    	}
    	switch t := obj.(type) {
    	case *corev1.Pod:
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  5. cmd/api-errors.go

    	},
    	ErrSlowDownRead: {
    		Code:           "SlowDownRead",
    		Description:    "Resource requested is unreadable, please reduce your request rate",
    		HTTPStatusCode: http.StatusServiceUnavailable,
    	},
    	ErrSlowDownWrite: {
    		Code:           "SlowDownWrite",
    		Description:    "Resource requested is unwritable, please reduce your request rate",
    		HTTPStatusCode: http.StatusServiceUnavailable,
    	},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  6. cmd/metrics-v3-handler.go

    func (h *metricsV3Server) handle(path string, isListingRequest bool, buckets []string) http.Handler {
    	var notFoundHandler http.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		http.Error(w, "Metrics Resource Not found", http.StatusNotFound)
    	})
    
    	// Require that metrics path has at least component.
    	if path == "/" {
    		return notFoundHandler
    	}
    
    	if isListingRequest {
    		handler := h.listMetrics(path)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. istioctl/pkg/workload/workload.go

    	return entryCmd
    }
    
    func createCommand(ctx cli.Context) *cobra.Command {
    	createCmd := &cobra.Command{
    		Use:   "create",
    		Short: "Creates a WorkloadGroup resource that provides a template for associated WorkloadEntries",
    		Long: `Creates a WorkloadGroup resource that provides a template for associated WorkloadEntries.
    The default output is serialized YAML, which can be piped into 'kubectl apply -f -' to send the artifact to the API Server.`,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  8. cni/pkg/iptables/iptables.go

    	iptablesBuilder.AppendRuleV4(
    		iptableslog.UndefinedCommand, ChainHostPostrouting, iptablesconstants.NAT,
    		"-m", "owner",
    		"--socket-exists",
    		"-p", "tcp",
    		"-m", "set",
    		"--match-set", fmt.Sprintf(ipset.V4Name, ProbeIPSet),
    		"dst",
    		"-j", "SNAT",
    		"--to-source", hostSNATIP.String(),
    	)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    			t.Fatal(failTestStr(unknownSignTestStr, "error response failed to parse error XML"))
    		}
    
    		if path.Clean(actualError.Resource) != pathJoin(SlashSeparator, bucketName, SlashSeparator, objectName) {
    			t.Fatal(failTestStr(unknownSignTestStr, "error response resource differs from expected value"))
    		}
    	}
    
    	// expected error response when the unsigned HTTP request is not permitted.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    	for k, v := range userMeta {
    		// skip tier metadata when copying metadata from source object
    		switch k {
    		case metaTierName, metaTierStatus, metaTierObjName, metaTierVersionID:
    			continue
    		}
    		defaultMeta[k] = v
    	}
    
    	// remove SSE Headers from source info
    	crypto.RemoveSSEHeaders(defaultMeta)
    
    	// Storage class is special, it can be replaced regardless of the
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top