rpc-router

by Chronicle Labs

Helm chartv0.2.10App 0.54.0Verified publisher

A Helm chart for deploying p2p-org Dshackle - Fault Tolerant Load Balancer for Blockchain API, to Kubernetes,

About this chart

rpc-router

A Helm chart for deploying p2p-org Dshackle - Fault Tolerant Load Balancer for Blockchain API, to Kubernetes,

Maintainers

NameEmailUrl
chronicleprotocolhttps://chroniclelabs.org

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamiredis16.x.x

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
dshackleobject{"accessLog":{"enabled":false,"includeMessages":false},"compression":{"grpc":{"client":{"enabled":false},"server":{"enabled":false}}},"health":{"host":"0.0.0.0"},"metrics":{"bind":"0.0.0.0","enabled":true,"extended":false,"jvm":false,"path":"/metrics"},"proxy":{"preserveBatchOrder":false},"routes":[{"blockchain":"ethereum","id":"eth","upstreams":[{"disableValidation":false,"id":"blast-eth","labels":{"fullnode":true,"provider":"publicnode"},"method_whitelist":["eth_maxPriorityFeePerGas"],"role":"primary","url":"https://eth-mainnet.public.blastapi.io","validateCallLimit":false,"validatePeers":false,"validateSyncing":true,"validationInterval":"500"},{"disableValidation":false,"id":"drpc-eth","labels":{"archive":true,"provider":"drpc"},"role":"fallback","url":"https://eth.drpc.org","validateCallLimit":false,"validatePeers":false,"validateSyncing":true}]}],"signedResponse":false}Ref: https://github.com/p2p-org/dshackle/blob/master/docs/reference-configuration.adoc
dshackle.accessLog.enabledboolfalseenable access log, expensive so use only to debug
dshackle.accessLog.includeMessagesboolfalseinclude messages in the access log
dshackle.metricsobject{"bind":"0.0.0.0","enabled":true,"extended":false,"jvm":false,"path":"/metrics"}enable metrics for dshackle
dshackle.metrics.bindstring"0.0.0.0"host bind address
dshackle.metrics.enabledbooltrueenable metrics for dshackle
dshackle.metrics.extendedboolfalsecollect extended metrics
dshackle.metrics.jvmboolfalsecollect jvm metrics
dshackle.metrics.pathstring"/metrics"path to metrics
dshackle.proxy.preserveBatchOrderboolfalseShould proxy preserve request-response correspondence when sending batch request via http
dshackle.routes[0]object{"blockchain":"ethereum","id":"eth","upstreams":[{"disableValidation":false,"id":"blast-eth","labels":{"fullnode":true,"provider":"publicnode"},"method_whitelist":["eth_maxPriorityFeePerGas"],"role":"primary","url":"https://eth-mainnet.public.blastapi.io","validateCallLimit":false,"validatePeers":false,"validateSyncing":true,"validationInterval":"500"},{"disableValidation":false,"id":"drpc-eth","labels":{"archive":true,"provider":"drpc"},"role":"fallback","url":"https://eth.drpc.org","validateCallLimit":false,"validatePeers":false,"validateSyncing":true}]}the http path the chain is configured on (eg, /eth, /bsc, /matic, etc.), Route id must be alphanumeric and lowercase
dshackle.routes[0].upstreamslist[{"disableValidation":false,"id":"blast-eth","labels":{"fullnode":true,"provider":"publicnode"},"method_whitelist":["eth_maxPriorityFeePerGas"],"role":"primary","url":"https://eth-mainnet.public.blastapi.io","validateCallLimit":false,"validatePeers":false,"validateSyncing":true,"validationInterval":"500"},{"disableValidation":false,"id":"drpc-eth","labels":{"archive":true,"provider":"drpc"},"role":"fallback","url":"https://eth.drpc.org","validateCallLimit":false,"validatePeers":false,"validateSyncing":true}]upstreams are the RPC providers
dshackle.routes[0].upstreams[0]object{"disableValidation":false,"id":"blast-eth","labels":{"fullnode":true,"provider":"publicnode"},"method_whitelist":["eth_maxPriorityFeePerGas"],"role":"primary","url":"https://eth-mainnet.public.blastapi.io","validateCallLimit":false,"validatePeers":false,"validateSyncing":true,"validationInterval":"500"}id is the unique name of the upstream (eg eth-infura, usa-east-1-eth, eth-alchemy, etc.)
dshackle.routes[0].upstreams[0].disableValidationboolfalsedisableValidation (optional) is used to disable the validation of the RPC provider, default is false
dshackle.routes[0].upstreams[0].labelsobject{"fullnode":true,"provider":"publicnode"}add additional labels to the upstream.
dshackle.routes[0].upstreams[0].method_whitelistlist["eth_maxPriorityFeePerGas"]add additional method whitelist to the upstream
dshackle.routes[0].upstreams[0].rolestring"primary"role can be on of primary, secondary or fallback. default is primary
dshackle.routes[0].upstreams[0].urlstring"https://eth-mainnet.public.blastapi.io"RPC (http) url is the RPC provider endpoint
dshackle.routes[0].upstreams[0].validateCallLimitboolfalsevalidateCallLimit (optional) is used to validate the call limit of the RPC provider, default is true
dshackle.routes[0].upstreams[0].validatePeersboolfalsevalidatePeers (optional) is used to validate the peers of the RPC provider, default is true
dshackle.routes[0].upstreams[0].validateSyncingbooltruevalidateSyncing (optional) is used to validate the syncing of the RPC provider, default is true
dshackle.routes[0].upstreams[0].validationIntervalstring"500"validationInterval (optional) is used to validate the call limit of the RPC provider, default is 30
dshackle.routes[0].upstreams[1].disableValidationboolfalsedisableValidation (optional) is used to disable the validation of the RPC provider, default is false
dshackle.routes[0].upstreams[1].labelsobject{"archive":true,"provider":"drpc"}add additional labels to the upstream
dshackle.routes[0].upstreams[1].rolestring"fallback"role can be on of primary, secondary or fallback. default is primary
dshackle.routes[0].upstreams[1].urlstring"https://eth.drpc.org"RPC (http) url is the RPC provider endpoint
dshackle.routes[0].upstreams[1].validateCallLimitboolfalsevalidateCallLimit (optional) is used to validate the call limit of the RPC provider, default is true
dshackle.routes[0].upstreams[1].validatePeersboolfalsevalidatePeers (optional) is used to validate the peers of the RPC provider, default is true
dshackle.routes[0].upstreams[1].validateSyncingbooltruevalidateSyncing (optional) is used to validate the syncing of the RPC provider, default is true
envlist[{"name":"HEAP_DUMP_ENABLE","value":"true"},{"name":"HEAP_DUMP_PATH","value":"/tmp"},{"name":"DSHACKLE_LOG_LEVEL","value":"info"}]create env vars from secrets, eg RPC provider API keys (eg, Blast API, DRPC, Infura, Alchemy, etc. )
env[2]object{"name":"DSHACKLE_LOG_LEVEL","value":"info"}log level can be debug, info, warn, error, trace etc.
fullnameOverridestring""
global_method_whitelistlist[]global method whitelist applied to all upstreams
image.pullPolicystring"IfNotPresent"
image.repositorystring"drpcorg/dshackle"
image.tagstring"0.54.0@sha256:8858fae1859d28a86f563a137cb238824955ff78e069b30fec49ad13ca2b82f6"
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
livenessProbeobjectSee values.yamlLiveness probe
maxSurgestringnildefault is 1
maxUnavailablestringnildefault is 0
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{}
preStopSleepSecondsstringnildefault is 20 seconds
readinessProbeobjectSee values.yamlReadiness probe
redis.auth.passwordstring"yourRedisSecret"
redis.enabledboolfalseIf enabled a redis chart will be deployed as a dependency
redis.master.persistence.enabledbooltrue
redis.master.persistence.sizestring"8Gi"
redis.replica.persistence.enabledboolfalse
redis.replica.persistence.sizestring"8Gi"
redis.replica.replicaCountint1
replicaCountint1
resourcesobject{}
securityContextobject{}
service.annotationsobject{}
service.ports.grpc.portint12448
service.ports.grpc.protocolstring"TCP"
service.ports.health.portint8082
service.ports.health.protocolstring"TCP"
service.ports.metricsobject{"port":8080,"protocol":"TCP"}metrics port, affects the .Values.dshackle.metrics
service.ports.proxy.portint8545
service.ports.proxy.protocolstring"TCP"
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"1m"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/metrics"Path to scrape
serviceMonitor.portstring"metrics"port to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
tolerationslist[]
updateStrategystringnildefault RollingUpdate

Autogenerated from chart metadata using helm-docs v1.13.1

Deploy rpc-router with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rpc-router on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartrpc-router is pinned at v0.2.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply