Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for updateStats (0.5 sec)

  1. cmd/http-stats.go

    	serverStats.TotalS3Canceled = ServerHTTPAPIStats{
    		APIStats: st.totalS3Canceled.Load(toLowerKeys),
    	}
    	return serverStats
    }
    
    // Update statistics from http request and response data
    func (st *HTTPStats) updateStats(api string, w *xhttp.ResponseRecorder) {
    	st.totalS3Requests.Inc(api)
    
    	// Increment the prometheus http request response histogram with appropriate label
    	if api == apiGetObject {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 06:25:13 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. cmd/handler-utils.go

    		f.ServeHTTP(w, r)
    		globalHTTPStats.currentS3Requests.Dec(api)
    
    		tc, _ := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if tc != nil {
    			globalHTTPStats.updateStats(api, tc.ResponseRecorder)
    			globalConnStats.incS3InputBytes(int64(tc.RequestRecorder.Size()))
    			globalConnStats.incS3OutputBytes(int64(tc.ResponseRecorder.Size()))
    
    			if countBktStat {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. pkg/kubelet/server/server_test.go

    }
    func (*fakeKubelet) RlimitStats() (*statsapi.RlimitStats, error) { return nil, nil }
    func (*fakeKubelet) GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error) {
    	return nil, nil, nil
    }
    func (*fakeKubelet) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, error) {
    	return nil, nil
    }
    
    type fakeAuth struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet.go

    func (kl *Kubelet) GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error) {
    	return kl.StatsProvider.GetCgroupStats(cgroupName, updateStats)
    }
    
    // GetCgroupCPUAndMemoryStats is delegated to StatsProvider, which implements stats.Provider interface
    func (kl *Kubelet) GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  5. pkg/kubelet/eviction/helpers_test.go

    				}
    			}
    
    		})
    	}
    }
    
    type fakeSummaryProvider struct {
    	result *statsapi.Summary
    }
    
    func (f *fakeSummaryProvider) Get(ctx context.Context, updateStats bool) (*statsapi.Summary, error) {
    	return f.result, nil
    }
    
    func (f *fakeSummaryProvider) GetCPUAndMemoryStats(ctx context.Context) (*statsapi.Summary, error) {
    	return f.result, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  6. pkg/controller/cronjob/cronjob_controllerv2.go

    			deleteFromActiveList(cronJob, j.UID)
    			updateStatus = true
    		case err != nil:
    			return nil, updateStatus, err
    		}
    		// the job is missing in the lister but found in api-server
    	}
    
    	if cronJob.DeletionTimestamp != nil {
    		// The CronJob is being deleted.
    		// Don't do anything other than updating status.
    		return nil, updateStatus, nil
    	}
    
    	logger := klog.FromContext(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/crdclient/types.gen.go

    	default:
    		return nil, fmt.Errorf("unsupported type: %v", cfg.GroupVersionKind)
    	}
    }
    
    func updateStatus(c kube.Client, cfg config.Config, objMeta metav1.ObjectMeta) (metav1.Object, error) {
    	switch cfg.GroupVersionKind {
    	case gvk.AuthorizationPolicy:
    		return c.Istio().SecurityV1beta1().AuthorizationPolicies(cfg.Namespace).UpdateStatus(context.TODO(), &apiistioioapisecurityv1beta1.AuthorizationPolicy{
    			ObjectMeta: objMeta,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  8. tensorflow/cc/training/queue_runner.cc

      if (coord_ != nullptr) {
        coord_->WaitForStop();
      }
      if (!cancel_op_name_.empty()) {
        UpdateStatus(RealRun(sess, cancel_op_name_, false));
      }
      stopped_ = true;
    }
    
    Status QueueRunner::Join() {
      thread_pool_.reset();
      mutex_lock l(mu_);
      return status_;
    }
    
    void QueueRunner::UpdateStatus(const Status& status) {
      {
        mutex_lock l(mu_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. pkg/controller/storageversionmigrator/storageversionmigrator.go

    		}
    	} else {
    		// we can't migrate a resource that doesn't exist in the GC
    		_, err = svmc.kubeClient.StoragemigrationV1alpha1().
    			StorageVersionMigrations().
    			UpdateStatus(
    				ctx,
    				setStatusConditions(toBeProcessedSVM, svmv1alpha1.MigrationFailed, migrationFailedStatusReason),
    				metav1.UpdateOptions{},
    			)
    		if err != nil {
    			return err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/customresourcedefinition.go

    		Body(customResourceDefinition).
    		Do(ctx).
    		Into(result)
    	return
    }
    
    // UpdateStatus was generated because the type contains a Status member.
    // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top