Live Edit monitoring#
This page covers how to observe a running Live Edit deployment: health checks, logs, metrics, traces, and the alerts to set up. It assumes the service is installed as described in Deployment. Every metric named here is described in the Metrics reference.
Health checks#
Each replica serves the standard gRPC health-checking protocol on its gRPC port (service.grpc.port, default 50001).
Health service name |
Reports |
|---|---|
|
The process is alive and answering. The chart’s liveness probe uses it. |
|
The replica is ready for traffic. The chart’s startup and readiness probes use it. |
A replica reports NOT_SERVING on the readiness name until startup finishes, and again whenever its backing store stops answering.
When a service-identity token file is configured, readiness also waits for the first token.
When backups are configured, readiness also waits for the startup check of the backup store’s counters record.
Readiness does not depend on the permissions or userinfo services, so an outage there does not take every replica out of rotation.
Readiness and liveness stay SERVING while the service is held for disaster recovery (Held for disaster recovery).
Kubernetes therefore neither restarts held replicas nor takes them out of rotation, and clients get a refusal naming the hold rather than a load-balancer error.
A replica, held or not, with no successful read of the hold state from the backing store for 30 seconds reports NOT_SERVING and sets live_edit_dr_hold_verdict_stale to 1.
It keeps reading with no time limit and does not exit while reads fail; once a read succeeds, a replica that is not held restarts, and a held one reports SERVING again (Health probes and startup).
A ready replica or a successful Ping does not prove that users can open their base assets or that backups are being written.
Use the alerts below for those.
Logs#
The service writes logs to standard output.
Set the level with observability.logging.level (default info).
Set observability.logging.structured.enabled: true for one JSON object per line, which log pipelines can parse; the chart default is human-readable text.
Each failed RPC logs exactly one line:
RPC failedatINFOfor client-caused failures, and atWARNfor authorization denials and server-side failures: capacity refusals, backing-store failures, andINTERNAL,UNKNOWNorDATA_LOSScodes without a recorded cause.internal erroratERRORfor a server-side fault with a recorded cause, in itserrorfield.RPC deadline exceededatWARNwhen the server deadline ran out, withendpoint,deadline_msandelapsed_ms.RPC abandoned before completionatINFOwhen the client cancelled, its own timeout expired or the connection closed first, withelapsed_msandclient_timeout_ms.
The first two lines carry endpoint, grpc_code, status_message and stage, plus the session_id, layer_name, client_id and base_path the request named.
The grpc_code and endpoint values match the labels of live_endpoint_calls_total, so a spike on a dashboard leads straight to its log lines.
Clients receive only a generic message for a server-side fault, so these lines are the place to find its cause.
The service never logs bearer tokens or other credentials.
A WARN line containing locally-reset streams reached limit (too many malformed or cut-off requests over one connection’s life) or remotely-reset pending-accept streams reached limit (many calls cancelled together as they started) means the service closed one client’s or proxy’s connection.
Its clients reconnect; calls still waiting for a response log RPC abandoned before completion, and open JoinSession and SubscribeReadLayer streams end without a line.
An occasional line on a proxy connection open for days can come from ordinary traffic; frequent lines mean a misbehaving client or proxy, or a deliberate flood.
The line names no client, so find the source in your ingress or proxy connection logs for that time.
Collecting metrics#
Each replica serves Prometheus metrics at /metrics on port 9090 (service.metrics.port) from the moment the process starts.
Prometheus Operator. Set
serviceMonitor.enabled: trueand add the labels your Prometheus selects on toserviceMonitor.labels. The ServiceMonitor scrapes every 30 s by default (serviceMonitor.interval). Install the Prometheus Operator’s CRDs first, or the install fails. The chart’s ServiceMonitor keeps the service’sendpointandservicelabels, which the Prometheus Operator’s scrape otherwise renames toexported_endpointandexported_service. Add your own metric relabeling rules as a list inserviceMonitor.metricRelabelings(default[]); they run after the chart’s, so they see the restored labels. Your own scrape that setsendpointorservice, such as a PodMonitor on server pods, needs the same rules: copy themetricRelabelingsblock thathelm template {RELEASE} {CHART} --set serviceMonitor.enabled=truerenders. A Prometheusscrape_configusesmetric_relabel_configs,source_labelsandtarget_labelinstead.Replica autoscaler. In the default
autoscaling.mode: scaler, the scaler pod serves its ownlive_edit_scaler_*metrics on port9090. It has no Service, so the ServiceMonitor does not reach it: scrape the pod, for example with a PodMonitor or with annotations set throughautoscaling.scaler.podAnnotations.OTLP push. To push the same metrics to an OpenTelemetry collector as well, set
observability.metrics.enabled: trueandobservability.metrics.endpoint.grpc, anhttp://orhttps://URL (Configuration). The/metricsendpoint stays on; names, labels and buckets are the same on both paths. After a push fails, aWARNlineOTLP metrics export failedappears at most once a minute, counting the failures since the previous line, with the collector’s last error inlast_export_error.
serviceMonitor:
enabled: true
labels:
release: {PROMETHEUS_RELEASE}
observability:
metrics:
enabled: true
endpoint:
grpc: "http://{COLLECTOR_HOST}:4317"
To verify, port-forward one pod and read a series:
kubectl -n {NAMESPACE} port-forward pod/{POD_NAME} 9090:9090 &
curl -s localhost:9090/metrics | grep '^live_endpoint_calls_total' | head -3
Success is three live_endpoint_calls_total{…} lines with a value of 0 or more.
Most counters start at 0, many metrics have no service label, and fleet-wide gauges must be aggregated with max(): read Reading the reference before building dashboards.
The examples on these pages group by your scrape target’s instance label.
Traces#
The service can export one span per LiveService RPC over OTLP/gRPC, to an http:// or https:// collector (Configuration).
observability:
serviceName: "" # defaults to the chart name
tracing:
enabled: true
endpoint:
grpc: "http://{COLLECTOR_HOST}:4317"
samplingRatio: "1.0"
filter: "live_edit=info"
A span is named after its method, for example
nvidia.omniverse.live.v1alpha.LiveService/UpdateLayer, and carries the call’s gRPC code inrpc.status_code. The service’s ownINFO-and-above log lines from the call are attached as span events.A request carrying a W3C
traceparentheader joins the caller’s trace and follows its sampling decision; other requests are sampled atsamplingRatio.A
JoinSessionorSubscribeReadLayerspan covers the whole stream and is exported only when the stream ends.Keep
filterat its default except while diagnosing: library spans add hundreds of spans per edit.Spans wait in a queue of
observability.tracing.batch.maxQueueSizespans (default 2048, about 1 KB of memory each); lost spans are counted onlive_edit_trace_spans_dropped_total.
Request rate, errors and latency#
live_endpoint_calls_total counts every completed RPC by endpoint and grpc_code; live_endpoint_duration_microseconds records each one’s duration.
Both are recorded once, when the call completes.
Calls to the health service, reflection and the capabilities service are counted under endpoint="other"; leave them out of service-level dashboards.
Error codes. Read the gRPC code to tell whose problem a failure is:
Code |
Meaning for an operator |
|---|---|
|
The request was wrong or not allowed. A sudden rise usually means a client change or a permissions change. |
|
A chained |
|
The client cancelled, disconnected, or its own deadline expired first. |
|
The server deadline ran out: |
|
Retryable: a capacity refusal, a backing store or auth service that is unreachable or refusing, a replica shutting down, or the service held offline for disaster recovery, when every call on every replica answers it. Clients normally retry. |
|
A server-side fault. Each logs an |
# Calls per second by endpoint and code
sum by (endpoint, grpc_code) (rate(live_endpoint_calls_total{endpoint!="other"}[5m]))
# p99 latency of single-response calls, in seconds
histogram_quantile(0.99, sum by (le, endpoint) (
rate(live_endpoint_duration_microseconds_bucket{endpoint!~"JoinSession|SubscribeReadLayer|other"}[5m])
)) / 1e6
The duration histogram is in microseconds, with buckets from 100 µs to 30 s; the top bucket matches the default deadline.
A CreateLayer or UpdateLayer duration includes receiving the upload, so large uploads over slow links read as slow calls.
Streaming RPCs. JoinSession and SubscribeReadLayer are recorded when the stream ends, so their “duration” is how long the user stayed connected.
They normally end CANCELLED when the client leaves, and UNAVAILABLE on every pod a rolling restart replaces.
Leave them out of error-ratio and latency objectives, and use these instead:
Question |
Metric |
|---|---|
How long does it take to open a layer or join a session? |
|
How late do other users’ edits arrive? |
|
How many streams are open? |
|
# p95 time to open a layer or join a session
histogram_quantile(0.95, sum by (le, endpoint) (rate(live_edit_join_latency_seconds_bucket[5m])))
# p95 live delivery lag by stage
histogram_quantile(0.95, sum by (le, stage) (rate(live_edit_subscriber_delivery_lag_seconds_bucket[5m])))
Capacity and saturation#
Live Edit’s limits are per replica, and established streams do not move when replicas are added. A fleet-wide average can look healthy while one replica refuses work, so build capacity panels per replica. How the limits are sized and how the autoscaler responds is on Scaling.
Resource |
In use |
Limit |
Refusal signal |
|---|---|---|---|
Live subscriptions |
|
|
|
Catch-ups of new subscribers |
|
|
|
Upload memory |
|
|
|
Released large values awaiting clean-up |
|
|
|
Pod memory |
|
the container memory limit, |
the pod is OOM-killed |
Backing-store memory |
|
|
|
A replica refusing subscriptions at its ceiling shows flat CPU and memory, so do not judge subscription capacity from pod utilisation.
Pod memory should return close to its post-start level within a few minutes of load ending, apart from the structural-edit cache.
That cache keeps up to live_edit_structural_cache_budget_bytes (about 310 MiB at the 5Gi limit) for 10 minutes after a layer’s last structural edit; live_edit_structural_cache_weight_bytes shows its size.
If live_edit_jemalloc_allocated_bytes keeps growing across load cycles beyond that, open a support case.
Store memory#
live_edit_store_memory_used_ratio is how full the backing store is (metric details); read it with max() across pods.
Above 0.7, plan to grow the store; above 0.85, grow it now, sizing it as Memory describes.
An alert on it is recommended, never required.
The series can be missing for a minute, so evaluate alerts over max_over_time(live_edit_store_memory_used_ratio[5m]), as the rules below do.
Recommended alerts#
Alerts give early warning; none is required for the service to work, and the service runs normally without any of them. If you set up only a few, start with these.
Alert |
Fires when |
Severity, |
Runbook |
|---|---|---|---|
|
The backing store is more than 70 % full |
warning, 15m |
|
|
The backing store is more than 85 % full |
page, 5m |
|
|
The backing store refused a write because it is out of memory |
page, 0m |
|
|
More than 1 % of an endpoint’s calls end in a server fault |
page, 10m |
|
|
p99 of calls other than uploads and streams is above 5 s |
warning, 15m |
|
|
Fewer replicas are ready than requested (needs kube-state-metrics) |
warning, 15m |
|
|
Backups lag more than five backup intervals; only when backups are on |
page, 5m |
|
|
A cached service or backing-store token has expired; only with a token file |
page, 1m |
|
|
The service is held for disaster recovery and refuses every call |
page, 0m |
The rules are in Prometheus rule-file format; for the Prometheus Operator, put the groups list under spec of a PrometheusRule.
The expressions group by instance; use pod if that is your scrape label.
{DEPLOYMENT} is the server Deployment’s name, as kubectl -n {NAMESPACE} get deployments lists it.
The latency threshold is a starting point: set it from your own baseline after a week of traffic.
groups:
- name: live-edit-recommended
rules:
- alert: LiveEditBackingStoreMemoryWarning
expr: max(max_over_time(live_edit_store_memory_used_ratio[5m])) > 0.7
for: 15m
labels: {severity: warning}
- alert: LiveEditBackingStoreMemoryHigh
expr: max(max_over_time(live_edit_store_memory_used_ratio[5m])) > 0.85
for: 5m
labels: {severity: page}
- alert: LiveEditBackingStoreFull
expr: |
sum by (instance) (increase(live_edit_store_write_refused_total{reason="out_of_memory"}[5m])) > 0
or sum by (instance) (increase(live_edit_snapshot_read_refused_total{kind="backend_out_of_memory"}[15m])) > 0
for: 0m
labels: {severity: page}
- alert: LiveEditServerErrors
expr: |
sum by (endpoint) (rate(live_endpoint_calls_total{endpoint!~"JoinSession|SubscribeReadLayer|other", grpc_code=~"INTERNAL|UNKNOWN|DATA_LOSS"}[5m]))
/ sum by (endpoint) (rate(live_endpoint_calls_total{endpoint!~"JoinSession|SubscribeReadLayer|other"}[5m])) > 0.01
for: 10m
labels: {severity: page}
- alert: LiveEditSlowRequests
expr: |
histogram_quantile(0.99, sum by (le, endpoint) (rate(live_endpoint_duration_microseconds_bucket{endpoint!~"CreateLayer|UpdateLayer|JoinSession|SubscribeReadLayer|other"}[5m]))) > 5e6
for: 15m
labels: {severity: warning}
- alert: LiveEditReplicasNotReady
expr: |
kube_deployment_status_replicas_available{namespace="{NAMESPACE}", deployment="{DEPLOYMENT}"}
< kube_deployment_spec_replicas{namespace="{NAMESPACE}", deployment="{DEPLOYMENT}"}
for: 15m
labels: {severity: warning}
- alert: LiveEditBackupsBehind
expr: |
histogram_quantile(0.99, sum by (le) (rate(live_edit_checkpoint_pending_age_seconds_bucket[5m])))
> 5 * max(live_edit_checkpoint_config_interval_seconds)
for: 5m
labels: {severity: page}
- alert: LiveEditCredentialExpired
expr: min by (instance, role) (live_edit_service_token_expires_in_seconds) < 0
for: 1m
labels: {severity: page}
- alert: LiveEditHeldForRecovery
expr: max(live_edit_dr_held) == 1
for: 0m
labels: {severity: page}
Runbooks: errors and backing-store refusals#
Server errors#
Search the logs for
internal errorlines (ERROR) andRPC failedlines (WARN) with the alert’sendpointand a server-faultgrpc_code; theerrororstatus_messagefield names the cause.If the lines name the backing store, check the store alerts on this page first.
Otherwise collect the lines and the replica’s logs around them, and open a support case.
Backing store full#
The store is configured never to evict, so it refuses every write that needs memory.
Uploads fail UNAVAILABLE with nothing applied.
On the first refused write, the service deletes the released large values the store holds, whatever their age.
If they filled the store, refusals stop within seconds; the store is still too small for its workload.
A store full of layer data keeps refusing until you add memory or, on self-hosted Valkey or Azure Managed Redis, until clients delete layers; waiting does not clear it.
While the clean-up runs, uploads carrying large values pause, usually for under a second.
Read
live_edit_gc_oom_collections_totalbyoutcome, and theWARNline clean-ups log. One replica runs them at a time, so search every replica’s logs. The outcomes mean:freed: the service freed memory; still grow the store.refused: the store does not let the service free memory while it is full; only adding memory helps.nothing_to_collect, orfreed_nothingwhose line showsoom_skipped=0, while writes stay refused: the store is full of data in use.freed_nothingwhose line showsoom_skippedabove 0: some released values cannot be deleted yet and are freed once the store has room; not a sizing signal.failed: the clean-up hit an error before it freed anything; itserrorfield and aGC pass failedline say why. While it keeps failing, adding memory is still the fix.
Raise
maxmemory(and the store’s memory limit with it), or free memory. On Azure Managed Redis, scale the cache to a larger SKU, then setvalkey.memoryBytesto the new total.Size the store again as described in Backing store.
Verify:
live_edit_store_write_refused_total{reason="out_of_memory"}stops increasing andlive_edit_store_memory_used_ratiofalls below0.85.
Store refusing reads or writes#
Read the kind or reason label; each points at a different owner.
Label value |
Fix |
|---|---|
|
The store rejected the credentials: check the connection credentials or the token sidecar (Backing store). |
|
Fix the store URL, its host name or the cluster-mode setting. |
|
Check the store’s shard health and slot coverage. |
|
The store cannot persist: usually a full disk. |
|
A failover that did not complete, or replicas lost. |
|
Collect the log line, whose |
Deleting layer keys does not help here.
Runbooks: lost or damaged data#
Keyspace lost#
The backing store lost its data while the service kept running: a restart without persistence, a failover to a stale replica, or eviction. Every live session and layer in the store is gone; clients are disconnected and reconnect.
With backups configured, one replica can also log a WARN containing is below the stored counters sidecar, repeating about every minute.
It means the backing store went back to older data, even when LiveEditKeyspaceLost did not fire, for example after a failover to a stale replica that still holds an older copy of the service’s keys.
Until a pod restarts, new layers can get ids that backups already hold, so restart the replicas: new layer ids then start above the backups’ record.
Confirm the event in your store’s own logs and metrics.
With backups configured, watch
live_edit_checkpoint_recovery_attempts_total{scope="layer"}climb as layers are restored on access, then work through After a restore.If
outcome="failed_after_repair"ticked, the store is dropping writes it already acknowledged: check that it runsmaxmemory-policy noevictionand is not failing over repeatedly. Nothing the service writes is durable until that is fixed.If only
outcome="failed"ticked, read the line logged for that repair. AnERRORnames whether the backup store or the backing store failed. AnINFOsaying the replica entered a disaster-recovery hold or lost contact with the store’s hold state means one of those stopped the repair. Iflive_edit_dr_heldreads1, follow Held for disaster recovery; otherwise the replica lost contact with the backing store and restarts by itself (Health probes and startup).
External-value integrity#
Large values (external values) are stored once and reference-counted.
live_edit_gc_underflow_totalincreased: collect the logs of every replica for the 15 minutes before and open a support case.live_edit_ext_ref_deficit_totalhas been above zero in the last 6 hours: a stored value may have been removed while a layer still uses it. With backups configured, comparelive_edit_checkpoint_ext_recovery_totalover the same window:result="recovered": the value was restored from the backup store; data is safe.result="adapter_miss": the backup store does not have it either. Re-upload the affected layer, and open a support case with the reconciler’sWARNlines, which name the value.neither: nothing has read the value yet.
LiveEditReleaseBudgetNearFull: clean-up is not keeping up. CheckLiveEditCleanupBehindandlive_edit_ext_read_holds; raisevalkey.extReleaseMaxBytesonly iflive_edit_store_memory_used_ratioshows the store has room.
Damaged layer keys#
Something other than Live Edit wrote to the service’s keys, which all start with le:.
The affected layer’s writes, and usually its reads and backups, fail with INTERNAL until the key is fixed; other layers keep working.
A re-upload of the layer refused at the named key leaves the layer refusing edits until you remove the key.
The service then completes the re-upload by itself, with no further call, although it answered the client INTERNAL.
If the named key is the layer’s own entry, the service does not complete the re-upload; see step 3.
If the named key is one of a deleted or replaced layer’s indices, ending in :obj:secs, :obj:dels, :obj:chs, :obj:flds or :obj:tss, the layer’s clean-up stopped partway; see step 4.
The deleted layer, or a replaced layer’s old content, is gone (a DeleteLayer that met the key answered INTERNAL), but its other keys stay in the store; its backups are still cleaned up.
LiveEditLayerKeysDamaged fires for such a key.
Find the
ERRORorWARNline from that time; it names the layer’s object id and the exact key.Find and stop the other writer: another application sharing the store, a debugging session, or a restore of foreign data.
If you can run commands against the store (for example
valkey-clion a self-hosted store), delete the named key; the service recreates it on the next write. Otherwise, for example on a private Azure Managed Redis cache, open a support case with the log line. One key is different: a layer’s own entry,le:{<session id>}:layer:<hex layer name>. Fix it first: until it is removed, the background clean-up stops at it on every pass, for the whole deployment. Removing it leaves that layer with no content, so a client must create the layer again.After a clean-up that stopped partway, also delete the layer’s remaining keys, except
obj:extretandobj:extret:attempts, which the background clean-up still needs, andobj:stream, which expires on its own. Set{OBJECT_ID}to the object id the line names, and{HOST}and{PORT}to your store; add--tlsor-aif your store needs them. Use the bare number, for exampleOBJECT_ID=42; the commands add the braces. These keys all live on one node, and a scan on any other cluster node finds and deletes nothing. So on a cluster, first run these on any node ({NODE_HOST},{NODE_PORT}): the first prints the keys’ slot, and the second lists each shard’s slot ranges and nodes. Use the primary of the shard whose range holds that slot as{HOST}and{PORT}below.OBJECT_ID={OBJECT_ID} valkey-cli -h {NODE_HOST} -p {NODE_PORT} CLUSTER KEYSLOT "{${OBJECT_ID}}" valkey-cli -h {NODE_HOST} -p {NODE_PORT} CLUSTER SHARDS
Check first, with the scan alone, that it lists keys starting
le:{<object id>}:obj:. If it lists nothing, the id or the node is wrong: stop and correct it. If it listsle:{<object id>}:obj:hdr, the layer is still live or its clean-up has not stopped yet: stop and recheck the id.OBJECT_ID={OBJECT_ID} valkey-cli -c -h {HOST} -p {PORT} --scan --pattern "le:{${OBJECT_ID}}:obj:*"
Then delete the keys:
OBJECT_ID={OBJECT_ID} valkey-cli -c -h {HOST} -p {PORT} --scan --pattern "le:{${OBJECT_ID}}:obj:*" \ | grep -v -e ':obj:extret$' -e ':obj:extret:attempts$' -e ':obj:stream$' \ | xargs -r valkey-cli -c -h {HOST} -p {PORT} unlink
Verify: the counters stop increasing and clients can edit the layer again. After step 4, run the same scan again:
OBJECT_ID={OBJECT_ID} valkey-cli -c -h {HOST} -p {PORT} --scan --pattern "le:{${OBJECT_ID}}:obj:*"
It lists nothing, or only the layer’s
obj:extretandobj:extret:attemptskeys, which the background clean-up removes later; for 30 seconds after the failure it can also listobj:stream. Ifobj:streamis still listed after a minute, unlink it too.
Runbooks: capacity and dependencies#
Capacity refusals#
Refusals reach clients as a retryable UNAVAILABLE; each one logs an RPC failed line at WARN naming the session and layer turned away.
Compare the replica’s usage with its limit in Capacity and saturation.
Subscriptions: add replicas so new subscriptions land elsewhere. In
scalermode, raiseautoscaling.maxReplicasiflive_edit_scaler_target_replicasalready equals it. To give each replica more subscriptions, raiseresources.limits.memory; the ceiling follows it.Catch-ups (
reason="catchup_capacity"): a join storm. Iflive_edit_catchup_payload_wait_seconds{outcome="refused_timeout"}rises, raiseresources.limits.memory; otherwise raisevalkey.subscriberMaxConcurrentCatchupsonly with the CPU limit. Or add replicas. Right after a disaster-recovery restore, that wait also covers first opens fetching large values from the backup store, and refusals from that cause stop by themselves once those values are fetched.Uploads: if
live_edit_upload_reserved_bytes / live_edit_upload_budget_bytesis near 1, raiseresources.limits.memoryor add replicas. If it is low, one session has too many uploads in flight; the refusal lines name it.Verify: the refusal counters stop increasing.
Backups behind or stopped#
Layers that are not backed up are lost if the backing store loses its data.
Check
live_edit_checkpoint_writes_total{result="error"}bykind: errors mean the backup store is failing or unreachable, except as in step 2.If the errors are
kind="counters_sidecar"only, and one replica logs aWARNcontaininganswered absent, but this process has already seen the counters sidecarabout every minute:Shortly after the first layer was created on a new backup prefix, this is expected for up to about 15 minutes, or as long as your Storage service caches “not found” answers, then stops by itself.
If it continues past that, the service’s layer-id record,
{BACKUP_PREFIX}/.live-edit/counters.json, was deleted. Restart the replicas withkubectl -n {NAMESPACE} rollout restart deployment/{DEPLOYMENT}; a replica writes it again within about two minutes.
If replicas log a
WARNcontainingthe post-write checkpoint listing is empty, backups are written but the service cannot list them: old backups are not deleted, and a restore finds no backup. Check that the pods reach the Storage service’s list endpoint through any gateway or proxy in front of it, and that the list endpoint resolvescheckpoint.basePath, in the form you set it, to the same prefix that writes use.Search for the
WARNline naming the stuck layer’sobject_id.If large layers fail while small ones succeed, the pod cannot reach the backup store’s blob-storage host; open the network access described in Durability.
If
LiveEditBackupLoopStoppedfired with no errors, collect the logs of every replica, then restart them withkubectl -n {NAMESPACE} rollout restart deployment/{DEPLOYMENT}.Verify: the p99 of
live_edit_checkpoint_pending_age_secondsfalls below the backup interval, andkind="counters_sidecar"errors and thepost-write checkpoint listing is emptywarnings stop.
Credential expired#
The role label names the token: valkey (backing-store connections) or storage-api (backup-store calls).
Check the token-provisioner sidecar’s logs and that both containers mount the shared token volume at the same path.
A
role="valkey"expiry makes the replica not ready; arole="storage-api"expiry stops backups.Verify:
live_edit_service_token_expires_in_secondsjumps back to a full token lifetime.
Connection repair disabled#
The service found connections to the backing store in an unexpected state, rebuilt them, and found the same state again, so it stopped rebuilding. This is almost always a proxy or connection broker in front of the store that rewrites replies. Restarting replicas does not help.
Read the
ERRORline’sdetail(the reply) andnodefields.Take the reply to whoever owns the proxy or the store endpoint.
Scaler not deciding#
While this fires, the replica count is frozen.
Check that the scaler pod is running and scraped.
Check
live_edit_scaler_poll_errors_totalbystage:endpointsorscalemeans the scaler’s Role or RoleBinding is missing a rule.If decisions are all
reason="no_data", the scaler cannot reach the server pods’ metrics port: check NetworkPolicies.Verify:
live_edit_scaler_decisions_totalincreases about once per poll interval.
Runbooks: delivery and self-checks#
Edits propagate slowly#
Work outward from the service:
stage="enqueued"lag high,live_edit_subscriber_send_stalls_total{phase="live"}flat: the service or the store is slow. CheckLiveEditBackingStoreTimeoutsand replica CPU. Thesubscriber delivery is lagginglog line names the affected subscriptions.stage="transport"lag well aboveenqueued, or live stalls rising: the client, or the proxy in front of the service, is not reading fast enough.Both low while users see delays: the delay is past the service, in a proxy’s buffers or the client. A proxy with a large HTTP/2 window hides a slow client from the service; check the proxy’s own flow-control statistics.
Self-check fired#
One of the service’s internal consistency checks failed.
The service has already protected the data, so no immediate action is needed.
Collect the logs of every replica for the 15 minutes before the alert, note which metric increased, and open a support case.
During or after an upgrade from, or a rollback to, a release that stores time samples at -0.0 as written, first check whether the upgrade note expects the increase: Upgrading from such a release.
Held for disaster recovery#
While held for disaster recovery, the service is offline for every user until the lost data is restored or its loss accepted. Every replica then:
refuses every call
UNAVAILABLE, with a message naming the incident and a hint to wait at least 30 seconds before retrying;ends every open
JoinSessionandSubscribeReadLayerstream;runs none of its background clean-up or backups;
keeps readiness and liveness
SERVING, so its pod is neither restarted nor taken out of rotation.
Each replica sets live_edit_dr_held to 1 and logs one ERROR, the fleet is held for disaster recovery, with the incident, reason and evidence; a replica serving when the hold began also counts it once on live_edit_dr_hold_entered_total with its reason.
While held, it logs a WARN, this replica is still held for disaster recovery, every 5 minutes.
A replica that starts during the hold, such as a rescheduled pod, starts held, logs that ERROR and reports live_edit_dr_held as 1 at once, so LiveEditHeldForRecovery keeps firing even after every pod restarts.
In scaler autoscaling mode the replica count stays where it is while any replica is held, counted on live_edit_scaler_decisions_total{reason="held"}.
LiveEditReleasesNotRecorded can also fire: a layer restore under way when the hold began leaves storage for the reconciler to reclaim.
A disaster-recovery Job checks that each large value a restored or kept layer uses is in the backing store, a restored backup or the backup store.
A value in none, or one the backup store could not confirm, keeps the service held.
The accept-loss Job removes the attribute values that use such values, then ends the hold as its last step.
If any value is unconfirmed, it removes nothing and the service stays held, unless it runs with a second --confirm discard-unconfirmed-data; a value of a session the Job removes goes with that session.
For each layer that uses values in no store, the Job logs one WARN, layer {LAYER} of session {SESSION_ID} references {N} values that are in no store; values the backup store could not confirm get a separate WARN ending whose presence the backup store could not confirm.
Each line lists up to 100 prims and attributes that use them, with a count and the start of each value’s hash.
The Job’s metrics are readable only on its own pod while it runs (Is the service held for disaster recovery?).
Keep its log and add it to the support case.
Find the
ERRORline on any replica and note itsincident,reasonandevidence; the reason values say what was lost.Do not restart or roll back the replicas to clear the hold: a restarted replica starts held. Never delete the hold from the backing store by hand. The restore or accept-loss Job removes it as its last step, after checking which large values are still in use; removed earlier, clean-up could delete the last backup copy of a large value.
Run the restore Job, or accept the loss when nothing can restore it (When the service is held). If the Job cannot clear the hold, open a support case with its log, the
ERRORline and the logs of every replica.Verify: within seconds of the hold clearing, each replica exits and Kubernetes restarts it, so expect one restart per pod.
live_edit_dr_heldthen reads0on every replica, and calls succeed again. The first open of a layer whose large values only the backup store held is slower while it fetches them (live_edit_checkpoint_ext_recovery_total{result="recovered", meta="present"}), and other first opens on that replica can be delayed. While many such layers open at once, a first open can be refused with a retryablecatchup_capacity.live_edit_checkpoint_ext_backup_owedcan read high until the backup repair has checked each such value. If one replica still reads1and is not ready after the others restart, a fault inside that pod keeps it from reading the store. Delete that pod: until then it keepsLiveEditHeldForRecoveryfiring and, inscalermode, the replica count frozen.
After a disaster-recovery restore#
A layer is restored when a client opens a layer or session the backing store has lost, or by a disaster-recovery Job (Run the restore Job).
For a day afterwards, watch these signals; the WARN lines they come with name the layers involved.
Signal |
What it means |
What to do |
|---|---|---|
|
A layer could not be restored because the backing store did not answer reliably. |
Check the store’s health; the next request for the layer tries again. |
|
A layer was restored but cannot be edited: another writer left a key in its place. |
Follow Damaged layer keys. |
|
A layer, usually a restored one, has not been backed up again yet; it is backed up at the next backup pass. |
Nothing, unless |
|
Some layers skipped one backup right after the restore. |
Nothing; they are backed up at a later backup pass. |
|
A restored layer’s leftover pending updates were discarded. |
Nothing; expected during a large restore. |
|
A large value a restored layer uses has no backup copy, so requests that open that layer fail with |
Have a user upload the value again or replace the attribute value that uses it (Backups of large values). |
Expect subscribers of restored layers to reconnect once, seen as live_edit_subscriber_stream_exits_total{reason="stream_gap"}.
Additional alert rules#
These rules cover narrower conditions. Add them as you need them; none is required.
Capacity and dependencies:
Alert |
Fires when |
Severity, |
Next step |
|---|---|---|---|
|
A replica refuses live subscriptions for lack of capacity |
page, 5m |
|
|
A replica refuses uploads for lack of upload memory |
page, 5m |
|
|
p99 upload processing wait is above 10 s |
warning, 10m |
|
|
More than 5 % of an endpoint’s calls end |
warning, 15m |
|
|
p95 time to open a layer or join a session is above 10 s |
warning, 15m |
|
|
p99 live delivery lag is above 5 s |
warning, 15m |
|
|
A pod’s working set is above 90 % of its limit (needs cAdvisor and kube-state-metrics) |
warning, 15m |
|
|
The store keeps refusing writes |
warning, 15m |
|
|
The store permanently refuses reads of layer state |
page, 0m |
|
|
Backing-store commands keep timing out |
warning, 10m |
store CPU and latency |
|
The full store refused the service’s clean-up of released large values |
warning, 0m |
|
|
Released large values are above 80 % of their budget |
warning, 10m |
|
|
Released large values wait more than 60 s for clean-up |
warning, 10m |
|
|
The service stopped repairing backing-store connections |
warning, 5m |
|
|
The autoscaler is not setting the replica count ( |
warning, 10m |
A client that sends each upload only once fails on the first refusal; on such a fleet set LiveEditUploadsRefused to for: 0m.
Specialised:
Alert |
Fires when |
Severity, |
|---|---|---|
|
Connection checks keep getting cluster-topology replies; check for a proxy in front of the store |
warning, 45m |
|
A replica of an older release acts on the same store; silence while upgrading |
warning, 0m |
|
The backing-store token rotated with under 180 s to spare; raise the sidecar’s refresh lead |
warning, 0m |
|
The reference-count reconciler keeps abandoning its pass; its |
warning, 0m |
|
A release of a large value could not be recorded |
warning, 0m |
|
Scale-down is held by a pod the scaler cannot account for |
warning, 15m |
|
A replica read no memory limit and sized itself as a 5 GiB pod; fix what its startup warning’s |
warning, 0m |
|
Trace spans are dropped; raise |
ticket, 15m |
Backup alert rules#
These optional rules watch backups. Add them only with checkpoint.adapter set: with backups off, LiveEditBackupLoopStopped fires permanently.
Alert |
Fires when |
Severity, |
Next step |
|---|---|---|---|
|
No layer evaluated for backup in 10 minutes; also fires on a deployment with no layers |
warning, 10m |
|
|
One layer has gone unbacked-up past three times its expected bound |
warning, 5m |
|
|
A layer has no backup at all |
warning, 10m |
|
|
Large backups cannot upload to the backup store’s blob storage |
warning, 15m |
|
|
Incremental backups were found with no full backup under them |
warning, 0m |
repair the backup store |
|
Copies of large values are skipped for lack of copy capacity; each is repaired minutes later |
warning, 5m |
the |
|
Large values have gone an hour without a backup copy |
warning, 0m |
|
|
Large-value clean-up stopped at a backup-store error, a malformed file, a file that vanished unexplained, or its time limit |
warning, 0m |
|
|
Backup-store clean-up backlogs kept growing for 6 hours, or deleted layers waited 6 hours with none cleaned up |
warning, 1h |
|
|
Restores are redirected through blob storage |
warning, 0m |
the backup store’s inline-read setting |
LiveEditExternalValueMirrorDropping warns that copy capacity is short: the service repairs each skipped copy a few minutes later, except an oversized one, and until then the value has no backup (Backups of large values).
It leaves out reason="shutdown", which rollouts under upload load raise and no setting prevents, and reason="collect_fenced", which says nothing about copy capacity.
LiveEditLargeValueBackupsMissing reads the result of the last check that finished.
A slow backup store does not silence it.
A check that cannot finish, or that meets a backing-store error or a move of data between shards, reports nothing, so the alert can stay silent while that repeats.
Look for repeated WARN lines containing backup repair pass did not complete its walk, and check the backing store’s latency and whether it is moving data between shards.
Backup clean-up alerts#
See Is backup clean-up keeping up? for what clean-up deletes and when.
These alerts mean storage is kept longer than needed, not that backups are behind; a layer’s backup waits for clean-up at most about 10 minutes at the default timeouts (outcome="publish_deferred").
Each pass logs one INFO line, checkpoint clean-up pass complete, with how long each step took and what it did.
LiveEditBackupCleanupBlocked: clean-up deleted no large values in at least one pass.
Find the WARN from that pass:
could not read the live ext-hash setcarries the reason. If it containsext-refs sidecarandis malformed, it names a.ext-refs.jsonfile under{BACKUP_PREFIX}/.live-edit/layers/that cannot be read. Open a support case, and do not delete the file: clean-up could then delete large values a backup still needs. Any other reason means the backup store failed or refused the request: check that it is reachable and accepts the service’s requests, as in Backups behind or stopped.listed ext-refs sidecar(s) and then read them absentnames files the backup store listed and then answered “not found” for, with nothing to explain it. One alone needs no action, though the alert stays up for 6 hours. If it recurs pass after pass, take theWARNlines to your Storage service’s owner: the store may be answering “not found” for files it holds.exceeded its collect-phase budget, withlive_edit_checkpoint_adapter_ceiling_elapsed_total{phase="enumeration"}rising, means the backup store answered too slowly for one pass: check its latency withlive_edit_checkpoint_adapter_call_duration_seconds.
LiveEditBackupStorageGrowing: check LiveEditBackupCleanupBlocked first, then these lines:
INFOcontainingcheckpoint clean-up skips the rest of this pass: a replica of an older release, or none, leads backups, so clean-up waits. Expected during an upgrade, and briefly after startup or while backup leadership moves. If it lasts, see Backups behind or stopped.WARNcontainingstorage-api refused a per-layer backup listing: the Storage service refuses to list one layer’s backups, so clean-up is slower on a large store. Check the service identity’s listing permission under{BACKUP_PREFIX}/.live-edit/layers/. Logged once per replica start.WARNcontainingexceeded its enumeration share: the backup store listed too slowly for one pass; check its latency.WARNcontainingcould not enumerate the layers namespace: clean-up could not list the backup store; see Backups behind or stopped.INFOcontaininglisted no artifacts in the layers namespace: clean-up listed no layer backups. On a store with none yet, deleted layers wait, and the backlog drains after the next layer backup. If replicas also logthe post-write checkpoint listing is empty, the service cannot list its backups; see Backups behind or stopped.INFOcontaininga deleted layer's store clean-up has not finished, so its backups are kept: that layer’s deletion is still finishing; its backups are deleted afterwards. If the same layer repeats for hours, look for the background clean-up’sWARNfailed to clean up orphaned object(Damaged layer keys).WARNcontainingtwo checkpoint listings in one reconciliation pass disagreed about a dead object: the backup store answered two listings differently; that deleted layer’s backups are kept and their clean-up retried next pass. One alone needs no action; if it recurs, take it to your Storage service’s owner.WARNcontainingcould not withdraw the deletion announcements: a backing-store error while clean-up kept a restored layer’s backups. If it recurs, open a support case.
Internal-check alerts#
These rules watch the service’s own consistency checks. If one fires, collect the logs of every replica and open a support case; the runbook says what to check first.
Alert |
Fires when |
Severity, |
Runbook |
|---|---|---|---|
|
The backing store lost its data while replicas kept running |
page, 0m |
|
|
A layer’s keys hold values the service did not write |
page, 0m |
|
|
A large value’s reference count went wrong |
warning, 0m |
|
|
Uploads give up waiting for a layer-id counter repair |
warning, 10m |
backup-store latency |
|
An internal consistency check fired |
warning, 0m |
Silence LiveEditOlderReleaseOnStore and LiveEditExternalValueIntegrity while you upgrade or roll back.
Additional alert rule definitions#
The rules for the tables above, in the same format as the recommended rules.
groups:
- name: live-edit-additional
rules:
- alert: LiveEditSubscriptionsRefused
expr: |
sum by (instance) (increase(live_edit_subscriber_admission_total{result=~"refused_saturated|refused_waiter_cap"}[5m])) > 0
or sum by (instance) (increase(live_edit_subscriber_stream_exits_total{reason=~"catchup_capacity|reader_capacity"}[5m])) > 0
for: 5m
labels: {severity: page}
- alert: LiveEditUploadsRefused
expr: |
sum by (instance) (increase(live_edit_upload_admission_total{result=~"refused_saturated|refused_waiter_cap|refused_growth"}[5m])) > 0
for: 5m
labels: {severity: page}
- alert: LiveEditUploadsWaiting
expr: histogram_quantile(0.99, sum by (instance, le) (rate(live_edit_upload_processing_wait_seconds_bucket[5m]))) > 10
for: 10m
labels: {severity: warning}
- alert: LiveEditUnavailableErrors
expr: |
sum by (endpoint) (rate(live_endpoint_calls_total{endpoint!~"JoinSession|SubscribeReadLayer|other", grpc_code="UNAVAILABLE"}[5m]))
/ sum by (endpoint) (rate(live_endpoint_calls_total{endpoint!~"JoinSession|SubscribeReadLayer|other"}[5m])) > 0.05
for: 15m
labels: {severity: warning}
- alert: LiveEditSlowJoins
expr: histogram_quantile(0.95, sum by (le, endpoint) (rate(live_edit_join_latency_seconds_bucket[5m]))) > 10
for: 15m
labels: {severity: warning}
- alert: LiveEditDeliveryLag
expr: histogram_quantile(0.99, sum by (le) (rate(live_edit_subscriber_delivery_lag_seconds_bucket{stage="enqueued"}[5m]))) > 5
for: 15m
labels: {severity: warning}
- alert: LiveEditMemoryNearLimit
expr: |
max by (namespace, pod) (container_memory_working_set_bytes{container="live-edit-service"})
/ max by (namespace, pod) (kube_pod_container_resource_limits{resource="memory", container="live-edit-service"}) > 0.9
for: 15m
labels: {severity: warning}
- alert: LiveEditBackingStoreRefusingWrites
expr: |
sum(rate(live_edit_store_write_refused_total{reason=~"misconf|readonly|noreplicas"}[5m])) > 0
or sum(rate(live_edit_snapshot_read_refused_total{kind="backend_unavailable"}[5m])) > 0
for: 15m
labels: {severity: warning}
- alert: LiveEditStoreRefusingReads
expr: |
sum by (instance, kind) (increase(live_edit_snapshot_read_refused_total{kind!~"backend_unavailable|backend_out_of_memory"}[15m])) > 0
for: 0m
labels: {severity: page}
- alert: LiveEditBackingStoreTimeouts
expr: sum by (instance) (rate(live_edit_valkey_errors_total{kind="command_timeout"}[5m])) > 0
for: 10m
labels: {severity: warning}
- alert: LiveEditStoreCleanupRefused
expr: sum(increase(live_edit_gc_oom_collections_total{outcome="refused"}[15m])) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditReleaseBudgetNearFull
expr: max(live_edit_ext_release_pending_bytes) > 0.8 * min(max without (source) (live_edit_ext_release_budget_bytes) > 0)
for: 10m
labels: {severity: warning}
- alert: LiveEditCleanupBehind
expr: max(live_edit_ext_release_oldest_age_seconds) > 60
for: 10m
labels: {severity: warning}
- alert: LiveEditConnectionRepairDisabled
expr: sum by (instance, reason) (rate(live_edit_valkey_txn_repair_ineffective_total[5m])) > 0
for: 5m
labels: {severity: warning}
- alert: LiveEditScalerNotDeciding
expr: |
absent(live_edit_scaler_decisions_total)
or sum(rate(live_edit_scaler_decisions_total[10m])) == 0
or (sum(rate(live_edit_scaler_decisions_total{reason="no_data"}[10m])) > 0
and on() sum(rate(live_edit_scaler_decisions_total{reason!="no_data"}[10m])) == 0)
for: 10m
labels: {severity: warning}
- name: live-edit-backups
rules:
- alert: LiveEditBackupLoopStopped
expr: sum(rate(live_edit_checkpoint_writes_total{kind="layer"}[10m])) == 0
for: 10m
labels: {severity: warning}
- alert: LiveEditLayerBackupStuck
expr: max(live_edit_checkpoint_oldest_pending_age_seconds) > 3 * max(live_edit_checkpoint_config_stuck_threshold_seconds)
for: 5m
labels: {severity: warning}
- alert: LiveEditLayerNeverBackedUp
expr: max(live_edit_checkpoint_layers_never_written) > 0
for: 10m
labels: {severity: warning}
- alert: LiveEditBackupBlobEndpointUnreachable
expr: increase(live_edit_checkpoint_adapter_redirect_total{verb="put", outcome=~"target_failed|complete_failed"}[15m]) > 0
for: 15m
labels: {severity: warning}
- alert: LiveEditBackupStoreDamaged
expr: increase(live_edit_checkpoint_tail_total{outcome="refused_lineage_unrootable"}[15m]) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditExternalValueMirrorDropping
expr: sum by (instance, reason) (rate(live_edit_checkpoint_ext_mirror_dropped_total{reason!~"shutdown|collect_fenced"}[5m])) > 0
for: 5m
labels: {severity: warning}
- alert: LiveEditLargeValueBackupsMissing
expr: min_over_time((max(live_edit_checkpoint_ext_backup_owed))[1h:]) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditBackupCleanupBlocked
expr: increase(live_edit_checkpoint_reconcile_total{outcome="live_set_failed"}[6h]) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditBackupStorageGrowing
expr: |
(min_over_time((max(live_edit_checkpoint_ext_tombstone_backlog))[6h:]) > 0
and deriv((max(live_edit_checkpoint_ext_tombstone_backlog))[6h:]) > 0)
or (min_over_time((max(live_edit_checkpoint_dead_object_backlog))[6h:]) > 0
and deriv((max(live_edit_checkpoint_dead_object_backlog))[6h:]) > 0)
or (min_over_time((max(live_edit_checkpoint_dead_object_backlog))[6h:]) > 0
and sum(increase(live_edit_checkpoint_reconcile_total{outcome="dead_retired"}[6h])) == 0)
for: 1h
labels: {severity: warning}
- alert: LiveEditRestoresRedirected
expr: increase(live_edit_checkpoint_adapter_redirect_total{verb="get", outcome="followed"}[1h]) > 0
for: 0m
labels: {severity: warning}
- name: live-edit-specialised
rules:
- alert: LiveEditTopologyRepliesPersist
expr: sum by (instance) (rate(live_edit_valkey_txn_dirty_checkouts_total{reason="topology_reply"}[15m])) > 0
for: 45m
labels: {severity: warning}
- alert: LiveEditOlderReleaseOnStore
expr: sum(increase(live_edit_gc_older_build_total[15m])) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditCredentialRefreshLeadShort
expr: min by (instance) (min_over_time(live_edit_service_token_refresh_headroom_seconds{role="valkey"}[1d])) < 180
for: 0m
labels: {severity: warning}
- alert: LiveEditReconcilerIncomplete
expr: sum(increase(live_edit_ext_reconcile_total{outcome="enumeration_failed"}[6h])) > 2
for: 0m
labels: {severity: warning}
- alert: LiveEditReleasesNotRecorded
expr: sum(increase(live_edit_ext_ref_release_enqueue_failed_total[1h])) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditScaleDownHeld
expr: increase(live_edit_scaler_scale_down_blocked_total{reason="unsettled"}[2m]) > 0
for: 15m
labels: {severity: warning}
- alert: LiveEditPodMemoryLimitUnread
expr: max by (instance) (live_edit_pod_memory_limit_bytes{source="reference"}) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditTraceSpansLost
expr: sum by (instance, reason) (increase(live_edit_trace_spans_dropped_total[15m])) > 0
for: 15m
labels: {severity: ticket}
- name: live-edit-internal-checks
rules:
- alert: LiveEditKeyspaceLost
expr: |
sum by (instance) (increase(live_edit_object_id_counter_repair_total{outcome=~"repaired_seeded|repaired_noop|failed|failed_after_repair"}[15m])) > 0
for: 0m
labels: {severity: page}
- alert: LiveEditLayerKeysDamaged
expr: |
sum by (instance) (increase(live_edit_keyspace_type_error_total[15m])) > 0
or sum by (instance) (increase(live_edit_snapshot_read_type_error_total[15m])) > 0
or sum by (instance) (increase(live_edit_stream_id_collision_total[15m])) > 0
for: 0m
labels: {severity: page}
- alert: LiveEditExternalValueIntegrity
expr: |
sum(increase(live_edit_gc_underflow_total[15m])) > 0
or max_over_time(max(live_edit_ext_ref_deficit_total)[6h:]) > 0
for: 0m
labels: {severity: warning}
- alert: LiveEditCounterRepairSlow
expr: increase(live_edit_object_id_counter_repair_total{outcome="wait_timeout"}[30m]) > 0
for: 10m
labels: {severity: warning}
- alert: LiveEditSelfCheckFired
expr: |
sum(increase(live_edit_structural_cache_divergence_total[15m])) > 0
or sum(increase(live_edit_structural_cache_audit_total{outcome="diverged"}[15m])) > 0
or sum(increase(live_edit_update_layer_structural_fallbacks_total{reason="repeat_divergence"}[15m])) > 0
or sum(increase(live_edit_storage_watch_unwatch_failures_total{site="drop"}[15m])) > 0
or sum(increase(live_edit_storage_watch_voided_total{disposition="committed_unwatched"}[15m])) > 0
or sum(increase(live_edit_stream_mux_poison_keys_total[15m])) > 0
or sum(increase(live_edit_ext_ref_undecodable_total[15m])) > 0
or sum(increase(live_edit_ext_index_drift_total{direction="under"}[15m])) > 0
for: 0m
labels: {severity: warning}
References#
gRPC health checking protocol — the protocol the health services implement.
Prometheus Operator API — the
ServiceMonitor,PodMonitorandPrometheusRuleresources.W3C Trace Context — the
traceparentheader.
See next#
Metrics reference describes every metric these alerts use.