From c47df83d1690e2f313e7c8d5a5fa098f0b83fe06 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..16f2de0 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' }}" + - name: AKASH_MONITOR_RETRY_PERIOD_JITTER + value: "{{ .Values.monitor.retryPeriodJitter | default '15s' }}" + - name: AKASH_MONITOR_HEALTHCHECK_PERIOD + value: "{{ .Values.monitor.healthcheckPeriod | default '10s' }}" + - name: AKASH_MONITOR_HEALTHCHECK_PERIOD_JITTER + value: "{{ .Values.monitor.healthcheckPeriodJitter | default '5s' }}" 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