mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
apf: add initial and final seats to httplog
This commit is contained in:
parent
0cae5f5006
commit
be085b6345
@ -111,6 +111,7 @@ func WithPriorityAndFairness(
|
|||||||
httplog.AddKeyValue(ctx, "apf_pl", truncateLogField(pl.Name))
|
httplog.AddKeyValue(ctx, "apf_pl", truncateLogField(pl.Name))
|
||||||
httplog.AddKeyValue(ctx, "apf_fs", truncateLogField(fs.Name))
|
httplog.AddKeyValue(ctx, "apf_fs", truncateLogField(fs.Name))
|
||||||
httplog.AddKeyValue(ctx, "apf_fd", truncateLogField(flowDistinguisher))
|
httplog.AddKeyValue(ctx, "apf_fd", truncateLogField(flowDistinguisher))
|
||||||
|
<<<<<<< HEAD
|
||||||
}
|
}
|
||||||
// estimateWork is called, if at all, after noteFn
|
// estimateWork is called, if at all, after noteFn
|
||||||
estimateWork := func() flowcontrolrequest.WorkEstimate {
|
estimateWork := func() flowcontrolrequest.WorkEstimate {
|
||||||
@ -123,7 +124,12 @@ func WithPriorityAndFairness(
|
|||||||
return workEstimator(r, "", "")
|
return workEstimator(r, "", "")
|
||||||
}
|
}
|
||||||
|
|
||||||
return workEstimator(r, classification.FlowSchemaName, classification.PriorityLevelName)
|
workEstimate := workEstimator(r, classification.FlowSchemaName, classification.PriorityLevelName)
|
||||||
|
if klog.V(4).Enabled() {
|
||||||
|
httplog.AddKeyValue(ctx, "apf_iseats", workEstimate.InitialSeats)
|
||||||
|
httplog.AddKeyValue(ctx, "apf_fseats", workEstimate.FinalSeats)
|
||||||
|
}
|
||||||
|
return workEstimate
|
||||||
}
|
}
|
||||||
|
|
||||||
var served bool
|
var served bool
|
||||||
|
Loading…
Reference in New Issue
Block a user