Skip to content

Gateway flags

The gateway is the lowtide binary, the entry point of the container image. On Kubernetes, the Helm chart sets these for you from its values (Helm values). Most flags also have a LOWTIDE_* environment variable, named after the flag: --segment-interval-ms is LOWTIDE_SEGMENT_INTERVAL_MS.

Flag / env Default Description
--listen / LOWTIDE_LISTEN 0.0.0.0:8085 Pub/Sub API, gRPC and REST, in plaintext. Also pod-to-pod traffic.
--tls-listen, --tls-cert, --tls-key off Pub/Sub API, gRPC and REST, over TLS. PEM files, reloaded when they change.
--tls-reload-ms 30000 How often the certificate files are checked.
--http-listen / LOWTIDE_HTTP_LISTEN 0.0.0.0:9090 /metrics, /healthz, /readyz, and admin endpoints protected by the internal token.
--advertise / LOWTIDE_ADVERTISE $HOSTNAME:port Address other pods use to reach this pod.
Flag / env Default Description
--data-dir / LOWTIDE_DATA_DIR /var/lib/lowtide WAL directory, on a regional disk in production.
--blob-url / LOWTIDE_BLOB_URL mem:// Segment store: gs://bucket/prefix, file:///dir or mem://.
--meta-url / LOWTIDE_META_URL memory:// Metadata store: postgres://… or memory://.
--stream-name / LOWTIDE_STREAM_NAME $HOSTNAME Writer stream name. Must stay the same for a given WAL volume.
--zone / LOWTIDE_ZONE none The pod’s zone. Each zone gets its own shards of every subscription.
--segment-interval-ms 1000 WAL rotation and upload window.
--tail-cache-mb 256 In-memory cache of recent messages.
--max-pending-upload-mb 8192 Refuse publishes while this much WAL waits for upload.
--gc-interval-ms 300000 Retention and cleanup pass.
--min-retention-ms 3600000 Shortest retention for topics nothing else retains.
--acked-gc-grace-ms 300000 Delete fully acknowledged segments after this long. 0 keeps them until retention.
Flag / env Default Description
--cross-zone / LOWTIDE_CROSS_ZONE fastest How a zone’s shards served from the other zone read their messages: fastest (pod to pod) or lowest-cost (Cloud Storage, about 1 s later). The subscription label lowtide-cross-zone and a default set in the console override it. See Cross-zone delivery.
--peer-reads not set From earlier versions. off reads everything from Cloud Storage. Without --cross-zone, same-zone means lowest-cost and all means fastest.
--spill-after-ms 5000 A zone spills when a message of its shards has waited this long for a consumer.
--spill-recover-ms, --spill-hold-ms 1000, 60000 Spill continues while the wait stays above the first, and ends the second after it dropped below.
--layout-settle-ms twice the lease time How long every pod serving a subscription must support zone shards before they switch to them, during an upgrade.
--lease-ttl-ms 15000 Shard lease time; bounds failover time.
--subscription-shards 8 Shards per new subscription. The subscription label lowtide-shards overrides it.
--writer-streams 8 Writer streams per pod, 1 to 16. A shard serves whole writer streams, so more streams spread one pod’s messages over more shards (and let spill move part of a zone’s load). They share the pod’s WAL and its Cloud Storage objects. Each ordering key stays on one stream.
--sub-idle-ms 60000 How long a pod keeps its share of a subscription after its last local consumer leaves.
--ordering-lanes 64 Ordering-key lanes. 0 writes ordered messages on the pod that received them.
--push-max-concurrency 400 Push requests in flight per push subscription and pod. The label lowtide-push-max-concurrency overrides it.
--iam-credentials-url, --google-access-token Google Minting OIDC tokens for push subscriptions.
--bigquery-url, --bq-write-method, --bq-flush-ms Google, load, 120000 BigQuery subscriptions. The labels lowtide-bq-* override them per subscription.
Flag / env Default Description
--auth off static, google, or gcp-iam. See Authentication modes.
--auth-tokens-file, --auth-policy-file none static tokens and the lowtide policy.
--internal-token none Shared pod-to-pod token.
--tokeninfo-url Google Token verification for google mode.
--iam-pubsub-url, --iam-crm-url, --iam-url Google gcp-iam: permission checks, shadows, and actAs checks on push service accounts.
--iam-allow-ttl-ms, --iam-deny-ttl-ms, --iam-stale-ms 300000, 30000, 600000 gcp-iam decision cache, and reuse of expired allows during an IAM outage.
--iam-shadow-reconcile-ms 600000 How often missing shadows are created.
Flag / env Default Description
--mirror-pubsub-url / LOWTIDE_MIRROR_PUBSUB_URL the region’s endpoint, else --iam-pubsub-url Pub/Sub API the mirror publishes to.
--mirror-pubsub-region / LOWTIDE_MIRROR_PUBSUB_REGION none Publish through https://REGION-pubsub.googleapis.com.
--mirror-max-inflight 32 Publish requests in flight per topic and pod (one per ordering key at a time).
--mirror-batch-delay-ms 10 How long a batch waits for more messages.
--mirror-park-retry-ms 60000 Retry interval of a parked mirror.
Flag / env Default Description
--licence-url or --licence-file none Where the licence comes from: the agent, or a file for clusters without outbound access. Checked every minute.
--licence-public-keys none Licence verification keys (JWKS file).

The licence is only reported in metrics. It never affects message traffic.

LOWTIDE_LOG sets the log level in tracing filter syntax (default info). LOWTIDE_LOG_JSON=true writes JSON lines.

STORAGE_EMULATOR_HOST points the Cloud Storage client at an emulator, for local testing.