Skip to content

Commit

Permalink
feat: add support for monitor-related flags in provider helm chart
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
andy108369 committed Nov 19, 2024
1 parent 10b74c5 commit 8912fbc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/akash-provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions charts/akash-provider/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions charts/akash-provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8912fbc

Please sign in to comment.