consul/agent/proxycfg
Pierre Souchay 505de6dc29
Added ratelimit to handle throtling cache (#8226)
This implements a solution for #7863

It does:

    Add a new config cache.entry_fetch_rate to limit the number of calls/s for a given cache entry, default value = rate.Inf
    Add cache.entry_fetch_max_burst size of rate limit (default value = 2)

The new configuration now supports the following syntax for instance to allow 1 query every 3s:

    command line HCL: -hcl 'cache = { entry_fetch_rate = 0.333}'
    in JSON

{
  "cache": {
    "entry_fetch_rate": 0.333
  }
}
2020-07-27 23:11:11 +02:00
..
manager.go Add service id context to the proxycfg logger 2020-05-18 09:08:05 -05:00
manager_test.go Added ratelimit to handle throtling cache (#8226) 2020-07-27 23:11:11 +02:00
proxycfg.go Proxy Config Manager (#4729) 2018-10-10 16:55:34 +01:00
snapshot.go Enable gofmt simplify 2020-06-16 13:21:11 -04:00
state.go Merge pull request #8034 from hashicorp/dnephin/add-linter-staticcheck-4 2020-06-17 12:16:02 -04:00
state_test.go Enable gofmt simplify 2020-06-16 13:21:11 -04:00
testing.go Disable background cache refresh for Connect Leaf Certs 2020-07-21 12:19:25 -04:00