From 60c381f21bb9ffbd8c46cb4e5040e26748adf22c Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Tue, 31 Oct 2023 14:25:56 +0100 Subject: [PATCH] feat(beacon): add heartbeat interval --- charts/beacon/Chart.yaml | 4 ++-- charts/beacon/README.md | 3 ++- charts/beacon/templates/deployment.yaml | 2 +- charts/beacon/values.yaml | 4 ++++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/beacon/Chart.yaml b/charts/beacon/Chart.yaml index 1d67b85..2fee30f 100644 --- a/charts/beacon/Chart.yaml +++ b/charts/beacon/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: beacon description: Highly available Wormhole RPC type: application -version: 0.1.2 -appVersion: v0.1.1 +version: 0.1.3 +appVersion: v0.1.2 diff --git a/charts/beacon/README.md b/charts/beacon/README.md index 0014ce8..8321e69 100644 --- a/charts/beacon/README.md +++ b/charts/beacon/README.md @@ -1,6 +1,6 @@ # beacon -![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.1](https://img.shields.io/badge/AppVersion-v0.1.1-informational?style=flat-square) +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.2](https://img.shields.io/badge/AppVersion-v0.1.2-informational?style=flat-square) Highly available Wormhole RPC @@ -9,6 +9,7 @@ Highly available Wormhole RPC | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | +| beacon.heartbeatInterval | int | `5` | Heartbeat interval in seconds. The liveness probe will fail if the latency between the VAAs and the current time is greater than the heartbeat interval. Must be set. | | beacon.logLevel | string | `"warn"` | Beacon log level. Valid values are: trace, debug, info, warn, error | | beacon.natsStream | string | `nil` | NATS stream name. Must be set. Example: mainnet-vaas | | beacon.natsUrl | string | `nil` | NATS server URL. Must be set. Example: 1.2.3.4:4222 | diff --git a/charts/beacon/templates/deployment.yaml b/charts/beacon/templates/deployment.yaml index 499889b..0d9d99d 100644 --- a/charts/beacon/templates/deployment.yaml +++ b/charts/beacon/templates/deployment.yaml @@ -38,7 +38,7 @@ spec: - name: HEARTBEAT_URL value: :9000 - name: HEARTBEAT_INTERVAL - value: "10" + value: "{{ .Values.beacon.heartbeatInterval }}" - name: LOG_LEVEL value: {{ .Values.beacon.logLevel }} - name: WORMHOLE_NETWORK_ID diff --git a/charts/beacon/values.yaml b/charts/beacon/values.yaml index 487b27a..71e2600 100644 --- a/charts/beacon/values.yaml +++ b/charts/beacon/values.yaml @@ -9,6 +9,10 @@ beacon: # -- NATS stream name. Must be set. Example: mainnet-vaas natsStream: + # -- Heartbeat interval in seconds. The liveness probe will fail if the latency between the VAAs and the current time + # is greater than the heartbeat interval. Must be set. + heartbeatInterval: 5 + # -- Batch size for the writer. When the batch size is reached, the writer will flush the batch to the NATS stream. writerBatchSize: 1000