Documentation ¶
Index ¶
- func Init()
- type Legacy
- type MultiTenantI
- type Stats
- func (t *Stats) CalculateSuccessFailureCounts(workspace, destType string, isSuccess, isDrained bool)
- func (t *Stats) GetRouterPickupJobs(destType string, noOfWorkers int, routerTimeOut time.Duration, ...) map[string]int
- func (t *Stats) ReportProcLoopAddStats(stats map[string]map[string]int, dbPrefix string)
- func (t *Stats) Start() error
- func (*Stats) Stop()
- func (t *Stats) UpdateWorkspaceLatencyMap(destType, workspaceID string, val float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MultiTenantI ¶
type MultiTenantI interface { CalculateSuccessFailureCounts(workspace, destType string, isSuccess, isDrained bool) GetRouterPickupJobs(destType string, noOfWorkers int, routerTimeOut time.Duration, jobQueryBatchSize int) map[string]int ReportProcLoopAddStats(stats map[string]map[string]int, tableType string) UpdateWorkspaceLatencyMap(destType, workspaceID string, val float64) // contains filtered or unexported methods }
type Stats ¶
type Stats struct { // have DBs also RouterDBs map[string]jobsdb.MultiTenantJobsDB // contains filtered or unexported fields }
TODO: delete this once we remove the old fair pickup algorithm
func (*Stats) CalculateSuccessFailureCounts ¶
func (*Stats) GetRouterPickupJobs ¶
func (*Stats) ReportProcLoopAddStats ¶
func (*Stats) UpdateWorkspaceLatencyMap ¶
Click to show internal directories.
Click to hide internal directories.