Skip to content

Commit

Permalink
Add documentation for new cache config parameters (#6518)
Browse files Browse the repository at this point in the history
Related to commit: f063c90

Signed-off-by: Rudrakh Panigrahi <rudrakh97@gmail.com>
  • Loading branch information
rudrakhp committed Jan 10, 2024
1 parent f063c90 commit 018b8ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/content/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ keys:
caching:
inter_query_builtin_cache:
max_size_bytes: 10000000
forced_eviction_threshold_percentage: 70
stale_entry_eviction_period_seconds: 3600

distributed_tracing:
type: grpc
Expand Down Expand Up @@ -865,6 +867,8 @@ Caching represents the configuration of the inter-query cache that built-in func
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `caching.inter_query_builtin_cache.max_size_bytes` | `int64` | No | Inter-query cache size limit in bytes. OPA will drop old items from the cache if this limit is exceeded. By default, no limit is set. |
| `caching.inter_query_builtin_cache.forced_eviction_threshold_percentage` | `int64` | No | Threshold limit configured as percentage of `caching.inter_query_builtin_cache.max_size_bytes`, when exceeded OPA will start dropping old items permaturely. By default, set to `100`. |
| `caching.inter_query_builtin_cache.stale_entry_eviction_period_seconds` | `int64` | No | Stale entry eviction period in seconds. OPA will drop expired items from the cache every `stale_entry_eviction_period_seconds`. By default, set to `0` indicating stale entry eviction is disabled. |

### Bundles

Expand Down

0 comments on commit 018b8ad

Please sign in to comment.