From 72a31777553aac3a7cfe63dfd11ca7d303041842 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Tue, 19 Nov 2024 11:32:40 +0100 Subject: [PATCH] feat: add support for monitor-related flags in provider helm chart - Introduced `monitor` block in `values.yaml` for better organization of monitoring settings. - Added support for the following new flags in `statefulset.yaml`: - `AKASH_MONITOR_MAX_RETRIES` - `AKASH_MONITOR_RETRY_PERIOD` - `AKASH_MONITOR_RETRY_PERIOD_JITTER` - `AKASH_MONITOR_HEALTHCHECK_PERIOD` - `AKASH_MONITOR_HEALTHCHECK_PERIOD_JITTER` - Updated comments in `values.yaml` for clarity and documentation. --- charts/akash-provider/Chart.yaml | 2 +- charts/akash-provider/templates/statefulset.yaml | 10 ++++++++++ charts/akash-provider/values.yaml | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/charts/akash-provider/Chart.yaml b/charts/akash-provider/Chart.yaml index 889606e..2026e68 100644 --- a/charts/akash-provider/Chart.yaml +++ b/charts/akash-provider/Chart.yaml @@ -17,7 +17,7 @@ type: application # Versions are expected to follow Semantic Versioning (https://semver.org/) # Major version bit highlights the mainnet release (e.g. mainnet4 = 4.x.x, mainnet5 = 5.x.x, ...) -version: 11.1.0 +version: 11.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/akash-provider/templates/statefulset.yaml b/charts/akash-provider/templates/statefulset.yaml index 7c2d00b..e3033fe 100644 --- a/charts/akash-provider/templates/statefulset.yaml +++ b/charts/akash-provider/templates/statefulset.yaml @@ -249,6 +249,16 @@ spec: value: "{{ .Values.minimumbalance }}" - name: AKASH_BID_DEPOSIT value: "{{ .Values.bidmindeposit }}" + - name: AKASH_MONITOR_MAX_RETRIES + value: "{{ .Values.monitor.maxRetries | default 40 }}" + - name: AKASH_MONITOR_RETRY_PERIOD + value: "{{ .Values.monitor.retryPeriod | default '4s' | quote }}" + - name: AKASH_MONITOR_RETRY_PERIOD_JITTER + value: "{{ .Values.monitor.retryPeriodJitter | default '15s' | quote }}" + - name: AKASH_MONITOR_HEALTHCHECK_PERIOD + value: "{{ .Values.monitor.healthcheckPeriod | default '10s' | quote }}" + - name: AKASH_MONITOR_HEALTHCHECK_PERIOD_JITTER + value: "{{ .Values.monitor.healthcheckPeriodJitter | default '5s' | quote }}" ports: - name: api diff --git a/charts/akash-provider/values.yaml b/charts/akash-provider/values.yaml index 0f607bf..aac47e2 100644 --- a/charts/akash-provider/values.yaml +++ b/charts/akash-provider/values.yaml @@ -93,6 +93,13 @@ ipoperator: false debug: "false" +monitor: + maxRetries: 40 # Maximum retry attempts before closing a lease + retryPeriod: 4s # Time interval between retries + retryPeriodJitter: 15s # Jitter for retry period + healthcheckPeriod: 10s # Health check period + healthcheckPeriodJitter: 5s # Jitter for health check period + # Percentage of CPU overcommit overcommit_pct_cpu: 0 # Percentage of memory overcommit