Skip to content

Commit ee87c1c

Browse files
authored
Merge pull request #46912 from serathius/kep2340beta2
Beta documentation for Consistent Reads from Cache
2 parents 11de940 + 4b71738 commit ee87c1c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

content/en/docs/reference/command-line-tools-reference/feature-gates/consistent-list-from-cache.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ stages:
99
- stage: alpha
1010
defaultValue: false
1111
fromVersion: "1.28"
12+
toVersion: "1.30"
13+
- stage: beta
14+
defaultValue: true
15+
fromVersion: "1.31"
1216
---
13-
Allow the API server to serve consistent lists from cache.
17+
Enhance Kubernetes API server performance by serving consistent **list** requests
18+
directly from its watch cache, improving scalability and response times.
19+
To consistent list from cache Kubernetes requires a newer etcd version (v3.4.31+ or v3.5.13+),
20+
that includes fixes to watch progress request feature.
21+
If older etcd version is provided Kubernetes will automatically detect it and fallback to serving consistent reads from etcd.
22+
Progress notifications ensure watch cache is consistent with etcd while reducing
23+
the need for resource-intensive quorum reads from etcd.
24+
25+
See the Kubernetes documentation on [Semantics for **get** and **list**](/docs/reference/using-api/api-concepts/#semantics-for-get-and-list) for more details.
1426

content/en/docs/reference/using-api/api-concepts.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,11 @@ Any
11681168
Most recent
11691169
: Return data at the most recent resource version. The returned data must be
11701170
consistent (in detail: served from etcd via a quorum read).
1171+
For etcd v3.4.31+ and v3.5.13+ Kubernetes {{< skew currentVersion >}} serves “most recent” reads from the _watch cache_:
1172+
an internal, in-memory store within the API server that caches and mirrors the state of data
1173+
persisted into etcd. Kubernetes requests progress notification to maintain cache consistency against
1174+
the etcd persistence layer. Kubernetes versions v1.28 through to v1.30 also supported this
1175+
feature, although as Alpha it was not recommended for production nor enabled by default until the v1.31 release.
11711176

11721177
Not older than
11731178
: Return data at least as new as the provided `resourceVersion`. The newest

0 commit comments

Comments
 (0)