Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FlushMetrics (0.14 sec)

  1. pkg/scheduler/metrics/metric_recorder.go

    	for {
    		select {
    		case <-r.stopCh:
    			close(r.IsStoppedCh)
    			return
    		default:
    		}
    		r.FlushMetrics()
    		time.Sleep(r.interval)
    	}
    }
    
    // FlushMetrics tries to clean up the bufferCh by reading at most bufferSize metrics.
    func (r *MetricAsyncRecorder) FlushMetrics() {
    	for i := 0; i < r.bufferSize; i++ {
    		select {
    		case m := <-r.bufferCh:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 16 07:27:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/runtime/framework_test.go

    			// Stop the goroutine which records metrics and ensure it's stopped.
    			cancel()
    			<-recorder.IsStoppedCh
    			// Try to clean up the metrics buffer again in case it's not empty.
    			recorder.FlushMetrics()
    
    			collectAndCompareFrameworkMetrics(t, tt.wantExtensionPoint, tt.wantStatus)
    			collectAndComparePluginMetrics(t, tt.wantExtensionPoint, testPlugin, tt.wantStatus)
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue_test.go

    			for i, op := range test.operations {
    				for _, pInfo := range test.operands[i] {
    					op(t, logger, queue, pInfo)
    				}
    			}
    
    			recorder.FlushMetrics()
    
    			if err := testutil.GatherAndCompare(metrics.GetGather(), strings.NewReader(test.wants), test.metricsName); err != nil {
    				t.Fatal(err)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top