• Clayton Coleman's avatar
    Provide backpressure to clients when etcd goes down · 3da15535
    Clayton Coleman authored
    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.
    3da15535
Name
Last commit
Last update
..
componentstatus Loading commit data...
controller Loading commit data...
daemonset Loading commit data...
deployment Loading commit data...
endpoint Loading commit data...
event Loading commit data...
experimental/controller/etcd Loading commit data...
generic Loading commit data...
horizontalpodautoscaler Loading commit data...
ingress Loading commit data...
job Loading commit data...
limitrange Loading commit data...
namespace Loading commit data...
node Loading commit data...
persistentvolume Loading commit data...
persistentvolumeclaim Loading commit data...
pod Loading commit data...
podtemplate Loading commit data...
registrytest Loading commit data...
resourcequota Loading commit data...
secret Loading commit data...
service Loading commit data...
serviceaccount Loading commit data...
thirdpartyresource Loading commit data...
thirdpartyresourcedata Loading commit data...
doc.go Loading commit data...