From 16b7bee56db55c0d5a3101b17bfb7f99dcef3ff6 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Thu, 26 Jan 2017 12:54:25 -0800 Subject: [PATCH] Adjust global log limit to 1ms --- staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go b/staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go index c1c9bdabfbc..748174e1919 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go @@ -87,7 +87,10 @@ var ErrorHandlers = []func(error){ logError, (&rudimentaryErrorBackoff{ lastErrorTime: time.Now(), - minPeriod: 500 * time.Millisecond, + // 1ms was the number folks were able to stomach as a global rate limit. + // If you need to log errors more than 1000 times a second you + // should probably consider fixing your code instead. :) + minPeriod: time.Millisecond, }).OnError, }