kubernetes/pkg/client
Clayton Coleman 3da15535b6 Provide backpressure to clients when etcd goes down
When etcd is down today we don't specifically handle the error involved,
which means clients get a generic 500 error. This commit adds a formal
error type internally for both WatchExpired and EtcdUnreachable, and
then converts them to api/errors before returning to the client. It also
upgrades the client to retry on any 429 or 5xx error that has a
Retry-After header, instead of just 429.

In combination, this allows the apiserver to exert backpressure on
controllers that are hotlooping.  Picked 2 seconds by default, but we
could potentially ramp that up even further in a future iteration.
2015-11-04 16:05:12 -05:00
..
cache Merge pull request #16179 from madhusudancs/master-out-of-disk 2015-10-29 11:57:25 -07:00
chaosclient Refactor SSH tunneling, fix proxy transport TLS/Dial extraction 2015-10-12 11:17:01 -04:00
metrics Improve documentation for client/metrics pkg 2015-09-15 18:36:02 +03:00
record "Force events to be non-blocking on the client side" 2015-10-20 11:52:09 -05:00
testdata Added test cases for NewKubeletClient with TLS enabled 2014-12-18 00:57:33 -08:00
unversioned Provide backpressure to clients when etcd goes down 2015-11-04 16:05:12 -05:00