consul/agent/config
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
..
agent_limits.go config: validate system limits against limits.http_max_conns_per_client (#7434) 2020-04-02 09:22:17 +02:00
agent_limits_test.go config: rename Flags to BuilderOpts 2020-06-16 12:51:19 -04:00
builder.go Added ratelimit to handle throtling cache (#8226) 2020-07-27 23:11:11 +02:00
builder_oss.go agent/config: include Audit struct as a pointer on Config, fix tests 2020-05-11 14:13:05 -07:00
builder_oss_test.go Update enterprise configurations to be in OSS 2020-05-04 10:21:05 -04:00
builder_test.go config: warn when a config file is skipped 2020-06-17 13:08:54 -04:00
config.go Added ratelimit to handle throtling cache (#8226) 2020-07-27 23:11:11 +02:00
config_oss.go agent/config: add auditing config to OSS and add to enterpriseConfigMap exclusions 2020-05-11 13:27:35 -07:00
default.go Implement Client Agent Auto Config 2020-06-17 16:49:46 -04:00
default_oss.go OSS changes to allow for parsing the enterprise DNS config prop… (#6959) 2019-12-18 10:16:35 -05:00
doc.go Metrics service prefix (#3498) 2017-09-26 17:49:55 -07:00
flags.go config: Make ConfigFormat not a pointer 2020-06-16 12:52:22 -04:00
flags_test.go config: rename Flags to BuilderOpts 2020-06-16 12:51:19 -04:00
flagset.go New config parser, HCL support, multiple bind addrs (#3480) 2017-09-25 11:40:42 -07:00
limits.go Add unconvert linter 2020-05-12 13:47:25 -04:00
limits_windows.go config: validate system limits against limits.http_max_conns_per_client (#7434) 2020-04-02 09:22:17 +02:00
merge.go Agent Auto Configuration: Configuration Syntax Updates (#8003) 2020-06-16 15:03:22 -04:00
merge_test.go Agent Auto Configuration: Configuration Syntax Updates (#8003) 2020-06-16 15:03:22 -04:00
runtime.go Added ratelimit to handle throtling cache (#8226) 2020-07-27 23:11:11 +02:00
runtime_oss.go Sync of OSS changes to support namespaces (#6909) 2019-12-09 21:26:41 -05:00
runtime_oss_test.go Enable gofmt simplify 2020-06-16 13:21:11 -04:00
runtime_test.go Added ratelimit to handle throtling cache (#8226) 2020-07-27 23:11:11 +02:00
segment_oss.go Update to use a consulent build tag instead of just ent (#5759) 2019-05-01 11:11:27 -04:00
segment_oss_test.go Update enterprise configurations to be in OSS 2020-05-04 10:21:05 -04:00