From b9759b73d8c13fa5be54df70735fd014ca5f28a9 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Tue, 7 Sep 2021 15:38:37 -0700 Subject: [PATCH 1/5] documenting fbit tail plugin configmap settings. A customer asked for this to be documented. I think I added enough of a disclaimer (that uncommenting the settings is not supported). --- kubernetes/container-azm-ms-agentconfig.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kubernetes/container-azm-ms-agentconfig.yaml b/kubernetes/container-azm-ms-agentconfig.yaml index 21b31f76f8..61c2ce5395 100644 --- a/kubernetes/container-azm-ms-agentconfig.yaml +++ b/kubernetes/container-azm-ms-agentconfig.yaml @@ -144,6 +144,13 @@ data: tcp_listener_chunk_size = 10 tcp_listener_buffer_size = 10 tcp_listener_mem_buf_limit = 200 + + # The following settings are "undocumented", we don't recommend uncommenting them unless directed by Microsoft. + # They increase the maximum stdout/stderr log collection rate but will also cause higher cpu/memory usage. + # [agent_settings.fbit_config] + # log_flush_interval_secs = "1" + # tail_buf_chunksize_megabytes= "1" + # tail_buf_maxsize_megabytes = "1" metadata: name: container-azm-ms-agentconfig From 529c1e6761614d96e2b5d60168033cf09681f7ca Mon Sep 17 00:00:00 2001 From: David Michelman Date: Tue, 7 Sep 2021 15:48:14 -0700 Subject: [PATCH 2/5] added tail_mem_buf_limit_megabytes --- kubernetes/container-azm-ms-agentconfig.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/kubernetes/container-azm-ms-agentconfig.yaml b/kubernetes/container-azm-ms-agentconfig.yaml index 61c2ce5395..48151924af 100644 --- a/kubernetes/container-azm-ms-agentconfig.yaml +++ b/kubernetes/container-azm-ms-agentconfig.yaml @@ -151,6 +151,7 @@ data: # log_flush_interval_secs = "1" # tail_buf_chunksize_megabytes= "1" # tail_buf_maxsize_megabytes = "1" + # tail_mem_buf_limit_megabytes = "10" metadata: name: container-azm-ms-agentconfig From 09006e14f3b11f61b090ec24e4c9efad64b36a55 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Fri, 10 Sep 2021 16:41:32 -0700 Subject: [PATCH 3/5] set flush_interval and mem_buf_limit to their defaults in configmap --- kubernetes/container-azm-ms-agentconfig.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/container-azm-ms-agentconfig.yaml b/kubernetes/container-azm-ms-agentconfig.yaml index 48151924af..1eaf2e0171 100644 --- a/kubernetes/container-azm-ms-agentconfig.yaml +++ b/kubernetes/container-azm-ms-agentconfig.yaml @@ -148,10 +148,10 @@ data: # The following settings are "undocumented", we don't recommend uncommenting them unless directed by Microsoft. # They increase the maximum stdout/stderr log collection rate but will also cause higher cpu/memory usage. # [agent_settings.fbit_config] - # log_flush_interval_secs = "1" + # log_flush_interval_secs = "15" + # tail_mem_buf_limit_megabytes = "10" # tail_buf_chunksize_megabytes= "1" # tail_buf_maxsize_megabytes = "1" - # tail_mem_buf_limit_megabytes = "10" metadata: name: container-azm-ms-agentconfig From 4a91e0210c415c14a30e52367c5acb091b64a974 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Fri, 10 Sep 2021 16:42:47 -0700 Subject: [PATCH 4/5] added a space --- kubernetes/container-azm-ms-agentconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/container-azm-ms-agentconfig.yaml b/kubernetes/container-azm-ms-agentconfig.yaml index 1eaf2e0171..217b82a2d1 100644 --- a/kubernetes/container-azm-ms-agentconfig.yaml +++ b/kubernetes/container-azm-ms-agentconfig.yaml @@ -150,7 +150,7 @@ data: # [agent_settings.fbit_config] # log_flush_interval_secs = "15" # tail_mem_buf_limit_megabytes = "10" - # tail_buf_chunksize_megabytes= "1" + # tail_buf_chunksize_megabytes = "1" # tail_buf_maxsize_megabytes = "1" metadata: From 31fb7ea2b0d52e680a1405b0b450a24efefc9954 Mon Sep 17 00:00:00 2001 From: David Michelman Date: Fri, 10 Sep 2021 16:46:04 -0700 Subject: [PATCH 5/5] added note about 32kb defaults --- kubernetes/container-azm-ms-agentconfig.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kubernetes/container-azm-ms-agentconfig.yaml b/kubernetes/container-azm-ms-agentconfig.yaml index 217b82a2d1..328acb2018 100644 --- a/kubernetes/container-azm-ms-agentconfig.yaml +++ b/kubernetes/container-azm-ms-agentconfig.yaml @@ -148,10 +148,10 @@ data: # The following settings are "undocumented", we don't recommend uncommenting them unless directed by Microsoft. # They increase the maximum stdout/stderr log collection rate but will also cause higher cpu/memory usage. # [agent_settings.fbit_config] - # log_flush_interval_secs = "15" - # tail_mem_buf_limit_megabytes = "10" - # tail_buf_chunksize_megabytes = "1" - # tail_buf_maxsize_megabytes = "1" + # log_flush_interval_secs = "1" # default value is 15 + # tail_mem_buf_limit_megabytes = "10" # default value is 10 + # tail_buf_chunksize_megabytes = "1" # default value is 32kb (comment out this line for default) + # tail_buf_maxsize_megabytes = "1" # defautl value is 32kb (comment out this line for default) metadata: name: container-azm-ms-agentconfig