From e19def558c6f78c9ad2f280075344e51d7097fcd Mon Sep 17 00:00:00 2001 From: dja-fr Date: Thu, 17 Aug 2023 15:07:37 +0000 Subject: [PATCH 1/2] [docs] log rotation: add expected unit for interval and filesize --- doc/charts/globals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/charts/globals.md b/doc/charts/globals.md index 64ec06782c..d507450832 100644 --- a/doc/charts/globals.md +++ b/doc/charts/globals.md @@ -2443,7 +2443,7 @@ global: By default, the GitLab Helm chart does not rotate logs. This can cause ephemeral storage issues for containers that run for a long time. -To enable log rotation, set the `GITLAB_LOGGER_TRUNCATE_LOGS` environment variable to true. You can also configure the log rotation frequency and the maximum log size by setting the `GITLAB_LOGGER_TRUNCATE_INTERVAL` and `GITLAB_LOGGER_MAX_FILESIZE` environment variables, respectively: +To enable log rotation, set the `GITLAB_LOGGER_TRUNCATE_LOGS` environment variable to true. You can also configure the log rotation frequency (in seconds) and the maximum log size (in bytes) by setting the `GITLAB_LOGGER_TRUNCATE_INTERVAL` and `GITLAB_LOGGER_MAX_FILESIZE` environment variables, respectively: ```yaml global: -- GitLab From 9f5f9f782629492c4c1db569c42709eca8baa27b Mon Sep 17 00:00:00 2001 From: Jason Plum Date: Fri, 18 Aug 2023 06:37:48 +0000 Subject: [PATCH 2/2] Apply 1 suggestion(s) to 1 file(s) --- doc/charts/globals.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/charts/globals.md b/doc/charts/globals.md index d507450832..4790ca77a8 100644 --- a/doc/charts/globals.md +++ b/doc/charts/globals.md @@ -2450,5 +2450,6 @@ global: extraEnv: GITLAB_LOGGER_TRUNCATE_LOGS: true GITLAB_LOGGER_TRUNCATE_INTERVAL: 300 - GITLAB_LOGGER_MAX_FILESIZE: 1000 + GITLAB_LOGGER_TRUNCATE_INTERVAL: 300 # 5 minutes + GITLAB_LOGGER_MAX_FILESIZE: 1000 # 1 KB ``` -- GitLab