linera-block-exporter

by Linera

Helm chartv0.3.0App 0.13.0Apache-2.0Verified publisher

Linera block exporter: a side-car that reads blocks from a validator's storage backend (ScyllaDB) and pushes them to an indexer over gRPC. Recommended on every validator — it lets the wider network reconstruct chain history and powers the public explorer. The block exporter MUST run in the same cluster as a Linera validator and connect to the same ScyllaDB cluster. It cannot be operated standalone: it depends on a running validator's database.

About this chart

linera-block-exporter

Linera block exporter: a side-car that reads blocks from a validator's storage backend (ScyllaDB) and pushes them to an indexer over gRPC. Recommended on every validator — it lets the wider network reconstruct chain history and powers the public explorer.

The block exporter MUST run in the same cluster as a Linera validator and connect to the same ScyllaDB cluster. It cannot be operated standalone: it depends on a running validator's database.

Homepage: https://linera.io

Running a block exporter on your validator is strongly encouraged: it makes chain history available to the rest of the network without affecting the validator's hot path.

Hard requirements

  • Must be deployed in the same Kubernetes cluster as a Linera validator (this chart's linera-validator).
  • Must connect to the same ScyllaDB cluster the validator uses.
  • A reachable indexer endpoint to push blocks to.

If you don't already run a validator, install linera-validator first. You also need an indexer endpoint reachable from the cluster to receive the pushed blocks.

TL;DR

helm install validator-1-exporter \
  oci://ghcr.io/linera-io/charts/linera-block-exporter \
  --namespace linera \
  --set exporterImage.repository=us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-exporter \
  --set exporterImage.tag=testnet_conway_release \
  --set clientImage.repository=us-docker.pkg.dev/linera-io-dev/linera-public-registry/linera-client \
  --set clientImage.tag=testnet_conway_release \
  --set storage.uri='scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042' \
  --set destinations[0].kind=Indexer \
  --set destinations[0].endpoint=indexer.example.com \
  --set destinations[0].port=8081 \
  --set destinations[0].tls=ClearText

How it works

The exporter is a StatefulSet. Each replica:

  1. Waits for the validator's ScyllaDB to be initialized (linera storage check-existence).
  2. Loads its TOML config (one per replica, keyed by the pod ordinal — see templates/configmap.yaml).
  3. Waits for every configured indexer endpoint to respond on TCP.
  4. Runs linera-exporter run --storage <uri> --config-path <toml> --metrics-port <port>.

Multiple replicas shard the work between them via the id field in each TOML.

Maintainers

NameEmailUrl
Linera infrastructure teamhttps://github.com/linera-io

Source Code

Values

KeyTypeDefaultDescription
clientImage.digeststring""Image digest. Takes precedence over tag when set.
clientImage.repositorystring""Image repository for the linera CLI. Empty falls back to image.
clientImage.tagstring""Image tag. Defaults to image.tag, then .Chart.appVersion.
committeeDestinationbooltrue
commonLabelsobject{}
destinations[0]object{"endpoint":"","kind":"Indexer","port":8081,"tls":"ClearText"}One or more indexer endpoints to push blocks to.
destinations[0].endpointstring""DNS name or IP of the indexer.
destinations[0].portint8081gRPC port of the indexer.
destinations[0].tlsstring"ClearText"TLS mode: "ClearText" (in-cluster) or "Tls" (e.g. external indexer behind a Gateway with cert-manager TLS).
exporter.affinityobject{}
exporter.extraEnvlist[]
exporter.extraVolumeMountslist[]
exporter.extraVolumeslist[]
exporter.indexerReadinessCheckobject{"enabled":true,"image":"curlimages/curl:8.10.1","retryIntervalSeconds":5}Wait for each indexer destination to respond before starting.
exporter.indexerReadinessCheck.imagestring"curlimages/curl:8.10.1"Image used for the curl probe. Defaults to upstream curlimages/curl.
exporter.livenessProbeobject{}
exporter.nodeSelectorobject{}Pod scheduling.
exporter.persistenceobject{"accessMode":"ReadWriteOnce","enabled":true,"size":"1Gi","storageClass":""}Persistent volume claim template for exporter state. Disable for ephemeral storage (data lost on pod restart).
exporter.podAnnotationsobject{}
exporter.podLabelsobject{}
exporter.podSecurityContext.fsGroupint65534
exporter.podSecurityContext.runAsNonRootbooltrue
exporter.podSecurityContext.runAsUserint65534
exporter.priorityClassNamestring""
exporter.readinessProbeobject{}
exporter.replicasint1Number of exporter replicas. Each replica gets its own TOML config (id = pod ordinal) so they can shard the work.
exporter.resourcesobject{}Resource requests and limits.
exporter.securityContext.allowPrivilegeEscalationboolfalse
exporter.securityContext.capabilities.drop[0]string"ALL"
exporter.securityContext.readOnlyRootFilesystembooltrue
exporter.startupProbeobject{}
exporter.storageInitCheckobject{"enabled":true,"retryIntervalSeconds":5}Wait for the validator's database to exist before starting.
exporter.terminationGracePeriodSecondsint30
exporter.tolerationslist[]
exporter.topologySpreadConstraintslist[]
exporterImage.pullPolicystring"IfNotPresent"
exporterImage.pullSecretslist[]
exporterImage.repositorystring""Image with the linera-exporter binary (REQUIRED). Since the upstream image split this is linera-exporter. It is NOT the linera-validator image, which carries only linera-server and linera-proxy.
exporterImage.tagstring""Image tag. Defaults to .Chart.appVersion when empty.
fullnameOverridestring""
limits.auxiliaryCacheSizeMbint1024
limits.blobCacheItemsCapacityint8192
limits.blobCacheWeightMbint1024
limits.blockCacheItemsCapacityint8192
limits.blockCacheWeightMbint1024
limits.persistencePeriodMsint5000
limits.workQueueSizeint256
log.backtracestring"1"
log.levelstring"info"
nameOverridestring""
ports.grpcint8882gRPC port the exporter exposes for service-config peers.
ports.metricsint9091Prometheus metrics port.
service.annotationsobject{}
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
serviceMonitor.enabledboolfalse
serviceMonitor.intervalstring"30s"
serviceMonitor.labelsobject{}
serviceMonitor.scrapeTimeoutstring"10s"
storage.uristring""Connection string for the validator's storage backend. Same value passed to linera-validator (typically "scylladb:tcp:scylla-client.scylla .svc.cluster.local:9042"). The exporter reads blocks from this database.

License

Apache 2.0.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy linera-block-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has linera-block-exporter 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 chartlinera-block-exporter is pinned at v0.3.0 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