Skip to content

Commit 22fccf5

Browse files
qlijinwindsonsea
andcommitted
[zh-cn] sync blog file 2024-12-17-api-streaming/index.md
Co-authored-by: Michael Yao <[email protected]>
1 parent b6b9de2 commit 22fccf5

File tree

1 file changed

+20
-2
lines changed
  • content/zh-cn/blog/_posts/2024-12-17-api-streaming

1 file changed

+20
-2
lines changed

content/zh-cn/blog/_posts/2024-12-17-api-streaming/index.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ kube-apiserver 免受 CPU 过载,但其对内存保护的影响却明显较弱
4444
为了更直观地查验这个问题,我们看看下面的图表。
4545

4646
<!--
47-
{{< figure src="kube-apiserver-memory_usage.png" alt="Monitoring graph showing kube-apiserver memory usage" >}}
47+
{{< figure src="kube-apiserver-memory_usage.png" alt="Monitoring graph showing kube-apiserver memory usage" class="diagram-large" clicktozoom="true" >}}
4848
-->
49-
{{< figure src="kube-apiserver-memory_usage.png" alt="显示 kube-apiserver 内存使用量的监控图表" >}}
49+
{{< figure src="kube-apiserver-memory_usage.png" alt="显示 kube-apiserver 内存使用量的监控图表" class="diagram-large" clicktozoom="true" >}}
5050

5151
<!--
5252
The graph shows the memory usage of a kube-apiserver during a synthetic test.
@@ -203,3 +203,21 @@ Special shout out to [@deads2k](https://github.com/deads2k) for his help in shap
203203
结果令人担忧,仅需 16 个 informer 就足以导致测试服务器内存耗尽并崩溃,展示了在这些状况下内存消耗快速增长的方式。
204204

205205
特别感谢 [@deads2k](https://github.com/deads2k) 在构造此特性所提供的帮助。
206+
207+
<!--
208+
## Kubernetes 1.33 update
209+
210+
Since this feature was started, [Marek Siarkowicz](https://github.com/serathius) integrated a new technology into the
211+
Kubernetes API server: _streaming collection encoding_.
212+
Kubernetes v1.33 introduced two related feature gates, `StreamingCollectionEncodingToJSON` and `StreamingCollectionEncodingToProtobuf`.
213+
These features encode via a stream and avoid allocating all the memory at once.
214+
This functionality is bit-for-bit compatible with existing **list** encodings, produces even greater server-side memory savings, and doesn't require any changes to client code.
215+
In 1.33, the `WatchList` feature gate is disabled by default.
216+
-->
217+
## Kubernetes 1.33 更新 {#kubernetes-1.33-update}
218+
219+
自该功能启动以来,[Marek Siarkowicz](https://github.com/serathius) 在 Kubernetes API
220+
服务器中加入了一项新技术:**流式集合编码**。在 Kubernetes v1.33 中,引入了两个相关的特性门控:
221+
`StreamingCollectionEncodingToJSON``StreamingCollectionEncodingToProtobuf`。它们通过流的方式进行编码,
222+
避免一次性分配所有内存。该功能与现有的 **list** 编码实现了比特级完全兼容,不仅能更显著地节省服务器端内存,
223+
而且无需修改任何客户端代码。在 1.33 版本中,`WatchList` 特性门控默认是禁用的。

0 commit comments

Comments
 (0)