Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 192 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/namespace-lock.go

    	resource := pathJoin(volume, path)
    
    	n.lockMapMutex.Lock()
    	defer n.lockMapMutex.Unlock()
    	if _, found := n.lockMap[resource]; !found {
    		return
    	}
    	if readLock {
    		n.lockMap[resource].RUnlock()
    	} else {
    		n.lockMap[resource].Unlock()
    	}
    	n.lockMap[resource].ref--
    	if n.lockMap[resource].ref < 0 {
    		logger.CriticalIf(GlobalContext, errors.New("resource reference count was lower than 0"))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  3. istioctl/pkg/internaldebug/internal-debug.go

    	// Gather the statuses before printing so they may be sorted
    	mappedResp := map[string]string{}
    	for id, dr := range drs {
    		for _, resource := range dr.Resources {
    			if s.InternalDebugAllIstiod {
    				mappedResp[id] = string(resource.Value) + "\n"
    			} else {
    				_, _ = s.Writer.Write(resource.Value)
    				_, _ = s.Writer.Write([]byte("\n"))
    			}
    		}
    	}
    	if len(mappedResp) > 0 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-handlers_test.go

    			t.Fatalf("Test %d: %s: Unable to marshal response body %s", i+1, instanceType, rec.Body.String())
    		}
    		if errorResponse.Resource != testCase.errorResponse.Resource {
    			t.Errorf("Test %d: %s: Expected the error resource to be `%s`, but instead found `%s`", i+1, instanceType, testCase.errorResponse.Resource, errorResponse.Resource)
    		}
    		if errorResponse.Message != testCase.errorResponse.Message {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  5. istioctl/pkg/admin/istiodconfig_test.go

    			args: args{
    				ctrzClient:      ctrzClient,
    				reset:           false,
    				outputLogLevel:  "resource:info",
    				stackTraceLevel: "",
    				outputFormat:    "",
    			},
    			want: &istiodConfigLog{state: &logLevelState{
    				client:         ctrzClient,
    				outputLogLevel: "resource:info",
    			}},
    		},
    		{
    			name: "given --stack-trace-level flag return stackTraceLevelState",
    			args: args{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. istioctl/pkg/precheck/precheck.go

    	}
    	return nil
    }
    
    func ObjectToInstance(c controllers.Object) *resource.Instance {
    	return &resource.Instance{
    		Origin: &legacykube.Origin{
    			Type: kubetypes.GvkFromObject(c),
    			FullName: resource.FullName{
    				Namespace: resource.Namespace(c.GetNamespace()),
    				Name:      resource.LocalName(c.GetName()),
    			},
    			ResourceVersion: resource.Version(c.GetResourceVersion()),
    			Ref:             nil,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. istioctl/pkg/checkinject/checkinject.go

    	cmd := &cobra.Command{
    		Use:   "check-inject [<type>/]<name>[.<namespace>]",
    		Short: "Check the injection status or inject-ability of a given resource, explains why it is (or will be) injected or not",
    		Long: `
    Checks associated resources of the given resource, and running webhooks to examine whether the pod can be or will be injected or not.`,
    		Example: `  # Check the injection status of a pod
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. istioctl/pkg/cli/kubectl_factory.go

    import (
    	"k8s.io/apimachinery/pkg/api/meta"
    	"k8s.io/cli-runtime/pkg/resource"
    	openapiclient "k8s.io/client-go/openapi"
    	"k8s.io/kubectl/pkg/cmd/util"
    	"k8s.io/kubectl/pkg/util/openapi"
    	"k8s.io/kubectl/pkg/validation"
    
    	"istio.io/istio/pkg/kube"
    )
    
    type Factory struct {
    	kube.PartialFactory
    	full util.Factory
    }
    
    func (f Factory) NewBuilder() *resource.Builder {
    	return f.full.NewBuilder()
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 2K bytes
    - Viewed (0)
  9. istioctl/pkg/multixds/gather.go

    		if err != nil {
    			return nil, fmt.Errorf("could not get XDS from the agent pod %q: %v", pod.Name, err)
    		}
    		for _, resource := range response.GetResources() {
    			switch resource.GetTypeUrl() {
    			case "type.googleapis.com/envoy.service.status.v3.ClientConfig":
    				clientConfig := xdsstatus.ClientConfig{}
    				err := resource.UnmarshalTo(&clientConfig)
    				if err != nil {
    					return nil, err
    				}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. 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)
Back to top