Skip to content

Commit

Permalink
increase client-go QPS and Burst
Browse files Browse the repository at this point in the history
  • Loading branch information
Zihan Jiang committed Jan 8, 2024
1 parent 1abacb1 commit 34c9500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func newKubernetesClient(localMode string) *kubernetes.Clientset {
if err != nil {
log.Fatalln("cannot load kubernetes config from InCluster")
}
config.QPS = 600
config.Burst = 2000
}
return kubernetes.NewForConfigOrDie(config)
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/service/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ func (mgr *Manager) Start() {
// process events from stream
for message := range mgr.eventStream {

startTime := time.Now()
event, err := mgr.newEvent(message, queueURL)
log.Debugf("create and validate new event took %v ms", time.Since(startTime).Milliseconds())
if err != nil {
mgr.RejectEvent(err, event)
continue
Expand Down

0 comments on commit 34c9500

Please sign in to comment.