Skip to main content

Load High Availability

VeloDB Cloud separates compute from shared object storage. Load availability depends on the selected cluster, connectivity to the source, transaction processing, and available resources. The majority-write and min_load_replica_num procedures for self-managed Apache Doris do not apply to this architecture.

Applicability of replica settings​

The Cloud table-property analyzer ignores min_load_replica_num and rewrites replica-allocation properties. Setting these properties does not select a minimum number of local BE replicas that must acknowledge a Cloud load.

Upstream setting or procedureVeloDB Cloud behavior and action
Table property min_load_replica_numIgnored in Cloud mode. Do not use it to change load durability or availability.
Table properties replication_num and replication_allocationManaged by the service. A value such as replication_num=1 does not create a customer-controlled single-replica storage policy.
Global FE min_load_replica_numDo not configure FE files to change Cloud write behavior. Contact VeloDB Cloud support for service-side issues.
Repairing missing local BE replicasManaged shared storage and compute recovery replace the self-managed replica-repair workflow.

Check the load result before retrying​

A timeout or lost connection does not prove that a transaction failed. It may have committed before the response reached the client. Use the result and status interface for the load method before submitting the data again.

Load methodCheckRetry or recovery action
Stream LoadInspect the JSON result, label, transaction ID, row counts, and available load history.For ordinary label-based Stream Load, preserve the logical batch label and check its status before retrying. Publish Timeout requires a status check, rather than an immediate load with a new label.
Broker LoadRun SHOW LOAD and inspect the job state and error message.Wait for FINISHED. Investigate a failed job before resubmitting. Successful SQL submission alone does not mean that the data is loaded.
Routine LoadRun SHOW ROUTINE LOAD and inspect state, progress, Kafka lag, and the pause reason.Eligible failures can auto-resume. Manual pauses, data-quality failures, and unrecoverable errors require intervention. Keep Kafka retention long enough for recovery.
INSERTInspect statement results and query the target table.A lost response can leave the outcome uncertain. Use an application retry design that accounts for the target table model and possible prior commit.
Group CommitInspect the returned mode-related fields and query for the expected data.In async_mode, acknowledgment precedes transaction visibility. Group Commit generates shared labels, so ordinary per-request label deduplication does not apply.

Plan for recoverable failures​

  1. Use the endpoint and network path generated for the selected warehouse and cluster. See connection methods.
  2. Retain the source data until the load outcome is confirmed. For streaming sources, size retention for the expected outage and catch-up period.
  3. Use bounded retries with backoff. Avoid creating a new batch identifier after every timeout without checking the original outcome.
  4. Monitor load failures, visibility delay, Kafka lag when applicable, and cluster utilization. Reduce concurrency if retries are adding pressure to an overloaded cluster.
  5. Preserve job IDs, labels, transaction IDs, timestamps, and error messages when contacting VeloDB Cloud support. Exclude credentials and sensitive row data.

Understand the Group Commit durability boundary​

async_mode acknowledges data after writing its local write-ahead log (WAL), before the grouped transaction becomes visible. A lost or corrupt WAL can cause data loss before commit. Use sync_mode when the application needs a successful load response to follow synchronous transaction processing. Inspect the returned status and verify visibility when the response is uncertain.

Cluster maintenance and WAL recovery are service-managed. Do not run self-managed BE decommission, filesystem repair, or WAL deletion commands. See Group Commit for mode selection and limitations.

Common errors​

SymptomCheck and resolution
Loads fail while queries still workCheck write privileges, source access, selected cluster, and resource utilization. Query connectivity alone does not establish that the source-to-worker path works.
The client times out but rows appear laterCheck the original load or transaction state before retrying to avoid duplicate ingestion.
A Routine Load job remains pausedInspect the pause reason, correct the source or data-quality problem, and resume the job when appropriate.
Group Commit returns success but rows are not visible yetCheck whether async_mode is active and allow for commit scheduling. Persistent delay or WAL errors need service investigation.

See also​

Ask AI