kubernetes/pkg/storage
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
..
etcd Provide backpressure to clients when etcd goes down 2015-11-04 16:05:12 -05:00
testing Autogenerate files. 2015-10-16 10:20:02 +02:00
cacher_test.go Refactor code for creating Cacher. 2015-11-02 20:56:46 +01:00
cacher.go Refactor code for creating Cacher. 2015-11-02 20:56:46 +01:00
doc.go Move StorageInterface to pkg/storage. 2015-07-30 09:32:04 +02:00
interfaces.go Pass resource version to storage List operation. 2015-10-27 10:03:58 +01:00
util_test.go rewrite go imports 2015-08-05 17:30:03 -07:00
util.go Validate names in BeforeCreate 2015-10-21 14:11:41 -04:00
watch_cache_test.go Initial support for listing from in-memory cache. 2015-10-30 20:58:13 +01:00
watch_cache.go Initial support for listing from in-memory cache. 2015-10-30 20:58:13 +01:00