Skip to content

Investigate "client-side throttling, not priority and fairness, request" when running the audit scanner #280

@fabriziosestito

Description

@fabriziosestito

Is your feature request related to a problem?

The audit scanner was reported to cause client-side throttling when creating or updating policy report

Waited for 1.000137379s due to client-side throttling, not priority and fairness, request: GET:(omitted)/policyreports/4771d2aa-2573-4b47-961f-0d4fe9d8a9b1)

Solution you'd like

Maybe we need to tune QPS/Burst of the k8s client:

https://pkg.go.dev/k8s.io/client-go/rest#Config

	// QPS indicates the maximum QPS to the master from this client.
	// If it's zero, the created RESTClient will use DefaultQPS: 5
	QPS float32

	// Maximum burst for throttle.
	// If it's zero, the created RESTClient will use DefaultBurst: 10.
	Burst int
	
	// Rate limiter for limiting connections to the master from this client. If present overwrites QPS/Burst
	RateLimiter flowcontrol.RateLimiter

Alternatives you've considered

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions