From a4b9cd5eec750fa5deed5b078ce89946ddb87a93 Mon Sep 17 00:00:00 2001 From: nsarras Date: Tue, 28 Nov 2023 17:27:08 -0800 Subject: [PATCH] Adding MINIO_REPORT_METRICS option on deployment to enable bandwidth/iops collection --- group_vars/all.yml | 1 + roles/start_dss_minio/defaults/main.yml | 1 + roles/start_dss_minio/templates/minio_startup.sh.j2 | 3 +++ 3 files changed, 5 insertions(+) diff --git a/group_vars/all.yml b/group_vars/all.yml index 43f0878..c3b1266 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -128,6 +128,7 @@ # minio_nkv_checksum: 1 # minio_ulimit: 1048576 # minio_nkv_max_meta_size: 8192 +# minio_report_metrics: false ### DCQCN Defaults # dcqcn_roce_cc_prio_mask_p1: 8 diff --git a/roles/start_dss_minio/defaults/main.yml b/roles/start_dss_minio/defaults/main.yml index dcaac3e..03ddcba 100644 --- a/roles/start_dss_minio/defaults/main.yml +++ b/roles/start_dss_minio/defaults/main.yml @@ -65,6 +65,7 @@ minio_nkv_shared: 1 minio_nkv_checksum: 1 minio_ulimit: 1048576 minio_nkv_max_meta_size: 8192 +minio_report_metrics: false ### VLAN defaults rocev2_vlans: diff --git a/roles/start_dss_minio/templates/minio_startup.sh.j2 b/roles/start_dss_minio/templates/minio_startup.sh.j2 index 00106cd..e5b7e8d 100644 --- a/roles/start_dss_minio/templates/minio_startup.sh.j2 +++ b/roles/start_dss_minio/templates/minio_startup.sh.j2 @@ -60,6 +60,9 @@ export MINIO_ON_KV={{ minio_on_kv }} export MINIO_DISABLE_EC={{ minio_disable_ec }} export MINIO_KV_MAX_SIZE={{ minio_kv_max_size }} export MINIO_NKV_MAX_META_SIZE={{ minio_nkv_max_meta_size }} +{% if minio_report_metrics %} +export MINIO_REPORT_METRICS=1 +{% endif %} {% if standalone_minio %}#{% endif %}export MINIO_NKV_SHARED={{ minio_nkv_shared }} #export MINIO_NKV_CHECKSUM={{ minio_nkv_checksum }}