Backlog growth
A subscription falls behind when its oldest unacknowledged message keeps getting older. Watch lowtide_subscription_oldest_unacked_age_seconds (the maximum over pods) and lowtide_subscription_backlog_messages (the sum over pods), or the subscription’s row on the cluster page in the console.
Check these in order.
1. Consumers
Section titled “1. Consumers”Compare the delivered and acknowledged rates. On the pods:
- High
lowtide_ack_deadline_expired_totalorlowtide_messages_redelivered_total: consumers don’t acknowledge in time. Scale them, raise their ack deadline, or look for crash loops. - High
lowtide_messages_nacked_totalwith a retry policy: messages wait out the backoff (10 seconds to 10 minutes unless you set it). - No consumers at all: the console shows the subscription’s consumers during a migration, and
lowtide_streaming_pull_streamsshows open streams per pod.
2. Shards and pod capacity
Section titled “2. Shards and pod capacity”A subscription is split into shards, 8 per zone by default. A zone’s shards are served by pods in that zone that have consumers attached. Consumers connected to a pod that serves no shard are proxied to one that does, in the same zone when there is one.
- Check CPU on the pods serving the subscription. If they are busy, give the pods more CPU or add pods (Sizing).
- Spread consumers over both zones. Each zone’s consumers serve the messages published in their zone. If one zone’s consumers fall behind by 5 seconds, the other zone takes part of its shards (
lowtide_subscription_spill), but only while the other zone keeps up. - A subscription keeps the shard count it was created with. For a very busy subscription, create it with more shards: the label
lowtide-shardssets the count at creation, for example--labels=lowtide-shards=16with gcloud.
3. Ordering keys
Section titled “3. Ordering keys”With ordering, each key has at most one batch in flight until it is acknowledged. A message that keeps failing blocks its key: it is retried with backoff until it goes to the dead-letter topic, or forever if the subscription has none. If dead-lettering itself fails, it is retried every 5 seconds (dead-letter topic unavailable in the logs).
4. Reads from the other zone
Section titled “4. Reads from the other zone”A zone without consumers is served from the other zone (Cross-zone delivery). With the Lowest cost setting, its messages are read from Cloud Storage one segment at a time, so they arrive about one segment window later (1 second by default). Many reads from Cloud Storage (lowtide_reads_gcs_total) are expected for those, and for any subscription that has fallen out of the in-memory cache. That raises latency, not backlog, unless Cloud Storage is slow or failing.
5. Uploads stalled on another pod
Section titled “5. Uploads stalled on another pod”Messages a pod has not uploaded yet are invisible to subscribers outside its zone. Check lowtide_pending_upload_bytes and lowtide_upload_errors_total on every pod. If uploads stall, see WAL disk full.
6. A stream that stopped moving
Section titled “6. A stream that stopped moving”If reading stream or reading remote stream repeats in the logs with a Cloud Storage 404, the index points to a segment that is gone. This can happen when the bucket’s lifecycle rule deleted it while a subscription still lagged behind it. The subscription keeps retrying that read and does not skip ahead.
Seek the subscription past it, with gcloud pointed at lowtide or a client library’s seek:
gcloud pubsub subscriptions seek SUBSCRIPTION --time=2026-12-01T10:00:00Z --project PROJECTThen keep the bucket’s lifecycle age above the longest lag you tolerate (max_retention_days and retention_margin_days in the module). lowtide’s own cleanup never deletes a segment the index still refers to.
7. Database load
Section titled “7. Database load”Each pod checks for new messages once per active topic every 250 ms, and every subscription shard records its acknowledgement position every second. Many active subscriptions show up as CPU on the Cloud SQL instance. Slow queries slow delivery and lease renewals. Repeated subscription ownership lost in the logs means renewals take longer than a third of the lease time. Raise the Cloud SQL tier (sql_tier).