Skip to content

Commit e7ef405

Browse files
committed
Changed default pod chunk size to 10
1 parent 7f8161b commit e7ef405

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

build/common/installer/scripts/tomlparser-agent-config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# 250 Node items (15KB per node) account to approximately 4MB
1919
@nodesChunkSize = 250
2020
# 1000 pods (10KB per pod) account to approximately 10MB
21-
@podsChunkSize = 1000
21+
@podsChunkSize = 10
2222
# 4000 events (1KB per event) account to approximately 4MB
2323
@eventsChunkSize = 4000
2424
# roughly each deployment is 8k

kubernetes/container-azm-ms-agentconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ data:
258258
# kube_meta_cache_ttl_secs = 60 # if this is not applied, default value is 60s
259259
260260
# [agent_settings.chunk_config]
261-
# PODS_CHUNK_SIZE = 10 # default value is 1000 and for large clusters with high number of pods, this can reduced to smaller value if the gaps in KubePodInventory/KubeNodeInventory data.
261+
# PODS_CHUNK_SIZE = 10 # default value is 10 to cover large clusters with high number of pods, this can adjusted if the gaps in KubePodInventory/KubeNodeInventory data.
262262
263263
metadata:
264264
name: container-azm-ms-agentconfig

source/plugins/ruby/in_kube_perfinventory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def start
5252
else
5353
# this shouldnt happen just setting default here as safe guard
5454
$log.warn("in_kube_perfinventory::start: setting to default value since got PODS_CHUNK_SIZE nil or empty")
55-
@PODS_CHUNK_SIZE = 1000
55+
@PODS_CHUNK_SIZE = 10
5656
end
5757
$log.info("in_kube_perfinventory::start: PODS_CHUNK_SIZE @ #{@PODS_CHUNK_SIZE}")
5858

source/plugins/ruby/in_kube_podinventory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def start
8080
else
8181
# this shouldnt happen just setting default here as safe guard
8282
$log.warn("in_kube_podinventory::start: setting to default value since got PODS_CHUNK_SIZE nil or empty")
83-
@PODS_CHUNK_SIZE = 1000
83+
@PODS_CHUNK_SIZE = 10
8484
end
8585
$log.info("in_kube_podinventory::start: PODS_CHUNK_SIZE @ #{@PODS_CHUNK_SIZE}")
8686

0 commit comments

Comments
 (0)