Commit 9eac540
authored
Allow quota buckets to be specified in flagd experiment config (#10753)
This PR allows for an easier application of quota buckets using the
flagd config, which is evaluated at runtime. When the context of a
request matches the config, the quota manager will attempt to create a
new quota bucket and store it. If this group+namespace already has a
matching bucket, the bucket creation will be skipped and the existing
bucket will be used. Quota manager refresh or a restart will clear the
buckets, and enable fresh loading from `flagd` for existing buckets, new
buckets will be added automatically.1 parent 1ec0747 commit 9eac540
File tree
3 files changed
+427
-45
lines changed- enterprise/server/quota
3 files changed
+427
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
0 commit comments