• Dmitry Shulyak's avatar
    Count ttl for assumed pod when binding is finished · 530ee716
    Dmitry Shulyak authored
    In such cases when api server is overloaded and returns a lot of
    429 (too many requests) errors - binding may take a lot of time
    to succeed due to retry policy implemented in rest client.
    In such events cache ttl for assumed pods wasn't big enough.
    
    In order to minimize probability of such errors ttl for assumed pods
    will be counted from the time when binding for particular pod is finished
    (either with error or success)
    
    Change-Id: Ib0122f8a76dc57c82f2c7c52497aad1bdd8be411
    530ee716
scheduler_test.go 17 KB