-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allow admins to specify a few parameters to better suit their use of Chains. `--threads-per-controller` controls the number of concurrent threads the Chains controller processes. The default value is 2. `--kube-api-burst` controle the maximum burst for throttle. `--kube-api-qps` controles the maximum QPS to the server from the client. The approach taken here is the same one used by the Tekton Pipeline controller for the sake of consistency in the ecosystem. Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Performance | ||
|
||
Tekton Chains exposes a few parameters that can be used to fine tune the controllers execution to | ||
improve its performance as needed. | ||
|
||
The controller accepts the following parameters: | ||
|
||
`--threads-per-controller` controls the number of concurrent threads the Chains controller | ||
processes. The default value is 2. | ||
|
||
`--kube-api-burst` controle the maximum burst for throttle. The default value is 10. | ||
|
||
`--kube-api-qps` controles the maximum QPS to the server from the client. The default value is 5. | ||
|
||
Modify the `Deployment` to use those parameters, for example: | ||
|
||
```yaml | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- image: gcr.io/tekton-releases/github.com/tektoncd/chains/cmd/controller:v0.20.0 | ||
args: | ||
- --threads-per-controller=32 | ||
- --kube-api-burst=2 | ||
- --kube-api-qps=3 | ||
``` |