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
..
2020-07-21 12:50:40 -04:00
2020-07-23 11:24:20 -04:00
2020-07-27 23:11:11 +02:00
2020-07-21 12:19:25 -04:00
2020-07-21 12:19:25 -04:00
2020-07-21 12:50:40 -04:00
2020-07-27 23:11:11 +02:00
2020-07-21 12:19:25 -04:00
2020-07-24 10:00:51 -04:00
2020-06-17 16:49:46 -04:00
2020-06-16 13:10:11 -04:00
2020-06-04 14:50:52 +02:00
2020-07-08 11:05:44 -04:00
2020-07-27 23:11:11 +02:00
2020-06-16 13:21:11 -04:00
2020-06-24 17:09:50 -04:00
2020-07-23 16:05:28 -04:00
2020-07-14 09:53:55 -04:00
2020-07-13 15:44:44 -05:00
2020-05-28 11:59:58 -04:00
2019-10-29 11:13:36 -07:00
2020-06-16 13:21:11 -04:00
2020-07-03 17:00:20 -04:00
2020-07-21 12:50:40 -04:00
2020-07-03 17:00:20 -04:00
2020-07-21 12:19:25 -04:00
2020-06-24 13:00:14 -04:00
2020-04-28 09:42:46 -04:00
2020-07-27 23:11:11 +02:00
2020-07-27 23:11:11 +02:00
2020-05-28 14:39:37 -04:00
2020-07-10 13:01:45 -06:00
2020-06-15 11:01:25 -04:00
2019-12-09 21:26:41 -05:00
2020-04-20 09:02:35 -05:00
2020-06-05 14:54:29 -07:00
2020-06-15 11:01:25 -04:00
2020-03-31 16:13:44 -04:00
2019-11-21 17:40:29 +00:00
2020-05-19 16:50:14 -04:00
2019-10-29 11:13:36 -07:00
2020-05-29 14:19:16 -04:00
2020-05-29 14:19:16 -04:00
2020-06-16 13:21:11 -04:00
2020-06-15 11:01:25 -04:00
2020-06-24 16:35:23 -05:00
2020-07-01 01:51:16 +01:00
2020-07-01 03:41:44 +01:00
2020-06-16 13:21:11 -04:00
2020-01-28 17:50:41 -06:00
2020-03-09 15:59:02 -05:00
2020-06-16 13:21:11 -04:00
2020-06-15 11:01:25 -04:00
2020-06-24 13:00:14 -04:00
2020-07-02 17:21:12 -04:00
2020-06-26 16:59:15 -05:00
2020-06-26 16:59:15 -05:00
2020-07-09 16:42:19 -04:00
2020-07-09 17:42:33 -04:00
2020-06-26 16:59:15 -05:00
2020-06-26 16:59:15 -05:00
2020-06-26 16:59:15 -05:00
2020-03-31 17:14:55 -04:00
2020-02-13 20:35:09 +01:00
2020-05-19 16:50:14 -04:00
2020-03-09 11:13:40 +01:00
2020-03-31 16:13:44 -04:00
2019-10-29 11:13:36 -07:00
2020-06-16 13:21:11 -04:00
2020-07-01 03:41:44 +01:00
2020-03-31 16:13:44 -04:00
2020-01-28 17:50:41 -06:00
2020-03-09 15:59:02 -05:00
2020-03-09 15:59:02 -05:00
2020-03-31 16:13:44 -04:00
2020-03-31 17:14:55 -04:00
2020-06-16 12:15:57 -04:00
2020-06-16 13:10:11 -04:00
2020-03-05 15:34:55 -05:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00
2020-03-31 16:13:44 -04:00
2020-04-13 12:32:57 -04:00
2020-03-31 16:13:44 -04:00
2019-07-25 14:26:22 -04:00
2020-07-21 12:50:40 -04:00
2020-01-24 09:27:25 -05:00
2020-03-31 16:13:44 -04:00
2020-03-09 11:13:40 +01:00
2020-07-02 17:21:12 -04:00
2020-06-24 16:35:23 -05:00
2020-03-31 16:13:44 -04:00
2020-02-07 15:50:24 -06:00
2020-06-16 13:10:11 -04:00
2020-02-07 15:50:24 -06:00
2020-07-10 17:18:32 -04:00
2020-07-10 17:18:32 -04:00