Skip to content

Commit

Permalink
feat(beacon): add heartbeat interval
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Oct 31, 2023
1 parent 658872e commit 560a4c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/beacon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion charts/beacon/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -9,6 +9,7 @@ Highly available Wormhole RPC
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| beacon.heartbeatInterval | int | `10` | 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 |
Expand Down
2 changes: 1 addition & 1 deletion charts/beacon/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/beacon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 10

# -- Batch size for the writer. When the batch size is reached, the writer will flush the batch to the NATS stream.
writerBatchSize: 1000

Expand Down

0 comments on commit 560a4c9

Please sign in to comment.