Skip to content

Commit a927502

Browse files
authored
Merge pull request #48674 from my-git9/pp-17464
[zh-cn]sync manage-resources-containers.md
2 parents ec962ba + b02b593 commit a927502

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/zh-cn/docs/concepts/configuration/manage-resources-containers.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ limits you defined.
350350
{{< glossary_tooltip text="CGroups" term_id="cgroup" >}},负责应用并实施所定义的请求。
351351
352352
<!--
353-
- The CPU limit defines a hard ceiling on how much CPU time that the container can use.
353+
- The CPU limit defines a hard ceiling on how much CPU time the container can use.
354354
During each scheduling interval (time slice), the Linux kernel checks to see if this
355355
limit is exceeded; if so, the kernel waits before allowing that cgroup to resume execution.
356356
-->
@@ -443,11 +443,11 @@ kubelet 会将 Pod 的资源使用情况作为 Pod
443443
If you do not specify a `sizeLimit` for an `emptyDir` volume, that volume may
444444
consume up to that pod's memory limit (`Pod.spec.containers[].resources.limits.memory`).
445445
If you do not set a memory limit, the pod has no upper bound on memory consumption,
446-
and can consume all available memory on the node. Kubernetes schedules pods based
446+
and can consume all available memory on the node. Kubernetes schedules pods based
447447
on resource requests (`Pod.spec.containers[].resources.requests`) and will not
448448
consider memory usage above the request when deciding if another pod can fit on
449-
a given node. This can result in a denial of service and cause the OS to do
450-
out-of-memory (OOM) handling. It is possible to create any number of `emptyDir`s
449+
a given node. This can result in a denial of service and cause the OS to do
450+
out-of-memory (OOM) handling. It is possible to create any number of `emptyDir`s
451451
that could potentially consume all available memory on the node, making OOM
452452
more likely.
453453
-->
@@ -463,23 +463,23 @@ Kubernetes 基于资源请求(`Pod.spec.containers[].resources.requests`)调
463463
<!--
464464
From the perspective of memory management, there are some similarities between
465465
when a process uses memory as a work area and when using memory-backed
466-
`emptyDir`. But when using memory as a volume like memory-backed `emptyDir`,
467-
there are additional points below that you should be careful of.
466+
`emptyDir`. But when using memory as a volume, like memory-backed `emptyDir`,
467+
there are additional points below that you should be careful of:
468468
-->
469469
从内存管理的角度来看,进程使用内存作为工作区与使用内存作为 `emptyDir` 的介质有一些相似之处。
470470
但当将内存用作存储卷(例如内存为介质的 `emptyDir` 卷)时,你需要额外注意以下几点:
471471

472472
<!--
473473
* Files stored on a memory-backed volume are almost entirely managed by the
474-
user application. Unlike when used as a work area for a process, you can not
474+
user application. Unlike when used as a work area for a process, you can not
475475
rely on things like language-level garbage collection.
476476
* The purpose of writing files to a volume is to save data or pass it between
477-
applications. Neither Kubernetes nor the OS may automatically delete files
477+
applications. Neither Kubernetes nor the OS may automatically delete files
478478
from a volume, so memory used by those files can not be reclaimed when the
479479
system or the pod are under memory pressure.
480480
* A memory-backed `emptyDir` is useful because of its performance, but memory
481481
is generally much smaller in size and much higher in cost than other storage
482-
media, such as disks or SSDs. Using large amounts of memory for `emptyDir`
482+
media, such as disks or SSDs. Using large amounts of memory for `emptyDir`
483483
volumes may affect the normal operation of your pod or of the whole node,
484484
so should be used carefully.
485485
-->

0 commit comments

Comments
 (0)