Skip to content

Commit 3bdf51e

Browse files
kubelet: enable configurable rotation duration and parallel rotate
1 parent 08fb708 commit 3bdf51e

File tree

1 file changed

+10
-1
lines changed
  • content/en/docs/concepts/cluster-administration

1 file changed

+10
-1
lines changed

content/en/docs/concepts/cluster-administration/logging.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ using the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-co
110110
These settings let you configure the maximum size for each log file and the maximum number of
111111
files allowed for each container respectively.
112112

113+
In order to perform an efficient log rotation in clusters where the volume of the logs generated by
114+
the workload is large, kubelet also provides a mechanism to tune how the logs are rotated in
115+
terms of how many concurrent log rotations can be performed and the interval at which the logs are
116+
monitored and rotated as required.
117+
You can configure two kubelet [configuration settings](/docs/reference/config-api/kubelet-config.v1beta1/),
118+
`containerLogMaxWorkers` and `containerLogMonitorInterval` using the
119+
[kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file/).
120+
121+
113122
When you run [`kubectl logs`](/docs/reference/generated/kubectl/kubectl-commands#logs) as in
114123
the basic logging example, the kubelet on the node handles the request and
115124
reads directly from the log file. The kubelet returns the content of the log file.
@@ -202,7 +211,7 @@ as your responsibility.
202211

203212
## Cluster-level logging architectures
204213

205-
While Kubernetes does not provide a native solution for cluster-level logging, there are
214+
While Kubernetes does not provide a native solution for cluster-level logging, there are
206215
several common approaches you can consider. Here are some options:
207216

208217
* Use a node-level logging agent that runs on every node.

0 commit comments

Comments
 (0)