Skip to content

Commit

Permalink
feat: enable proper healthchecks for blutgang (ethpandaops#295)
Browse files Browse the repository at this point in the history
* feat: enable proper healthchecks for blutgang

* make admin ns enabled by default

* fix ci
  • Loading branch information
barnabasbusa authored Mar 7, 2024
1 parent cf9b740 commit ed43463
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/blutgang/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ icon: https://github.com/rainshowerLabs/blutgang/assets/55022497/ec668c7a-5f56-4
sources:
- https://github.com/rainshowerLabs/blutgang
type: application
version: 0.0.3
version: 0.0.4
maintainers:
- name: barnabasbusa
email: [email protected]
2 changes: 1 addition & 1 deletion charts/blutgang/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# blutgang

![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Blutgang is a blazing fast, caching, minimalistic load balancer designed with Ethereum's JSON-RPC in mind. Historical RPC queries are cached in a local database, bypassing the need for slow, repeating calls to your node.

Expand Down
10 changes: 7 additions & 3 deletions charts/blutgang/ci/default-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ config: |
# Enable health checking
health_check = true
# Acceptable time to wait for a response in ms
ttl = 30
ttl = 300
# How many times to retry a request before giving up
max_retries = 32
# Block time in ms, used as a sanity check when not receiving subscriptions
expected_block_time = 13000
# Time between health checks in ms
health_check_ttl = 1250
health_check_ttl = 2000
# Supress the health check running info messages
supress_rpc_check = false
# Note: the admin namespace contains volatile functions and
# should not be exposed publicly.
[admin]
# Enable the admin namespace
enabled = false
enabled = true
# Address for the admin RPC
address = "0.0.0.0:5715"
# Only allow read-only methods
Expand Down
28 changes: 15 additions & 13 deletions charts/blutgang/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ image:
# -- blutgang container image repository
repository: makemake1337/blutgang
# -- blutgang container image tag
tag: "latest"
tag: latest
# -- blutgang container pull policy
pullPolicy: IfNotPresent

Expand Down Expand Up @@ -50,21 +50,21 @@ config: |
# Enable health checking
health_check = {{ .Values.blutgangNamespace.health_check | default true }}
# Acceptable time to wait for a response in ms
ttl = {{ .Values.blutgangNamespace.ttl | default 30 }}
ttl = {{ .Values.blutgangNamespace.ttl | default 300 }}
# How many times to retry a request before giving up
max_retries = {{ .Values.blutgangNamespace.max_retries | default 32 }}
# Block time in ms, used as a sanity check when not receiving subscriptions
expected_block_time = {{ .Values.blutgangNamespace.expected_block_time | default 13000 }}
# Time between health checks in ms
health_check_ttl = {{ .Values.blutgangNamespace.health_check_ttl | default 400 }}
health_check_ttl = {{ .Values.blutgangNamespace.health_check_ttl | default 2000 }}
# Supress the health check running info messages
supress_rpc_check = {{ .Values.blutgangNamespace.supress_rpc_check | default false }}
# Note: the admin namespace contains volatile functions and
# should not be exposed publicly.
[admin]
# Enable the admin namespace
enabled = {{ .Values.adminNamespace.enabled | default false }}
enabled = {{ .Values.adminNamespace.enabled | default true }}
# Address for the admin RPC
address = "0.0.0.0:{{ .Values.adminNamespace.adminPort | default 5715 }}"
# Only allow read-only methods
Expand Down Expand Up @@ -115,16 +115,16 @@ blutgangNamespace:
ma_length: 100
sort_on_startup: true
health_check: true
ttl: 30
ttl: 300
max_retries: 32
expected_block_time: 13000
health_check_ttl: 400
health_check_ttl: 2000
supress_rpc_check: false

# -- Admin Namespace
# @default -- See `values.yaml`
adminNamespace:
enabled: false
enabled: true
adminPort: 5715
jwt_enabled: false
jwt_key: ""
Expand Down Expand Up @@ -168,16 +168,18 @@ httpPort: 3000
# -- Liveness probe
# @default -- See `values.yaml`
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 60
periodSeconds: 30
httpGet:
path: /health
port: admin
initialDelaySeconds: 10
periodSeconds: 10

# -- Readiness probe
# @default -- See `values.yaml`
readinessProbe:
tcpSocket:
port: http
httpGet:
path: /ready
port: admin
initialDelaySeconds: 10
periodSeconds: 10

Expand Down

0 comments on commit ed43463

Please sign in to comment.