Skip to content

Commit a83ece5

Browse files
Merge pull request #15479 from deads2k/controller-12-rate
Automatic merge from submit-queue make each SA client QPS/Burst proportional to the old limit
2 parents c932c27 + 854e47a commit a83ece5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/cmd/server/start/controllers.go

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ func getControllerContext(options configapi.MasterConfig, controllerManagerOptio
1919
if err != nil {
2020
return origincontrollers.ControllerContext{}, err
2121
}
22+
// divide up the QPS since it re-used separately for every client
23+
// TODO, eventually make this configurable individually in some way.
24+
if loopbackConfig.QPS > 0 {
25+
loopbackConfig.QPS = loopbackConfig.QPS/10 + 1
26+
}
27+
if loopbackConfig.Burst > 0 {
28+
loopbackConfig.Burst = loopbackConfig.Burst/10 + 1
29+
}
2230

2331
rootClientBuilder := controller.SimpleControllerClientBuilder{
2432
ClientConfig: loopbackConfig,

0 commit comments

Comments
 (0)