Stream Load Practices in Complex Network Environments
Use the Stream Load connection details generated by the VeloDB Cloud console for the selected warehouse, cluster, and public or private network path. Clients may need to follow an HTTP redirect and reach the redirected upload address. A successful connection to the initial endpoint alone does not verify the full load path.
Prerequisites
- A warehouse SQL user with the required database-level or table-level load privileges.
- A target database and table, and a local data file in a supported format.
- The endpoint, URL template, credentials, and TLS settings from Connect. See connection methods.
- For a private connection, a ready endpoint and the required routing and DNS configuration. See Access VeloDB from Your VPC.
These instructions apply to SaaS and BYOC warehouses. Endpoint provisioning and connectivity depend on the deployment type and selected network path.
Understand the upload path
- The client sends the request to the generated warehouse endpoint.
- The service selects the load coordinator. If the endpoint returns a redirect, the client follows it and uploads to the selected address.
- Workers process the data and write the accepted rows to the target table through a transaction.
- The client receives a load result. In Group Commit
async_mode, the acknowledgment can precede transaction visibility.
Ensure that the client's proxy, firewall, routing, and DNS allow the addresses used by the generated connection path. Keep the generated HTTPS scheme when TLS is required. Forwarding credentials across a redirect requires trusting the destination, so use the service-generated endpoint and investigate an unexpected redirect address.
Configure the client connection
Copy the request URL template from Connect. Replace the database and table fields with your target names. Set STREAM_LOAD_URL to the complete URL, preserving its generated scheme, host, and port. Set WAREHOUSE_USER to your warehouse SQL user name.
For example, create data.csv for a table with id and name columns:
1,Alice
2,Bob
Run the load from the same network environment as the application:
curl --location-trusted --user "$WAREHOUSE_USER" \
--header "column_separator:," \
--header "label:<unique-batch-label>" \
--upload-file data.csv \
"$STREAM_LOAD_URL"
Replace <unique-batch-label> with a unique label for this logical batch. curl prompts for the password. Check the JSON Status, loaded and filtered row counts, and error information. An HTTP response alone is not proof of a successful load. Query the target table to verify the accepted rows.
Use Group Commit behind the endpoint
Group Commit merges eligible small writes to a table. The service can forward requests internally to preserve batching when a load balancer sends requests to different workers. This forwarding is service-managed and must be enabled consistently across the relevant components.
To use Group Commit, omit the client-supplied label header and select a mode explicitly:
curl --location-trusted --user "$WAREHOUSE_USER" \
--header "column_separator:," \
--header "group_commit:sync_mode" \
--upload-file data.csv \
"$STREAM_LOAD_URL"
Check GroupCommit and the generated Label in the JSON response to confirm the Group Commit path. sync_mode waits for grouped transaction processing. async_mode returns after the local WAL write and can delay data visibility, with an additional durability boundary before commit. See Group Commit before choosing asynchronous acknowledgment or retry behavior.
Core 26.1.3 release notes include fixes for forwarded Group Commit requests and healthy-worker selection through virtual compute groups. This is release-specific fix information, not confirmation that forwarding is enabled for every warehouse. Contact VeloDB Cloud support if Group Commit forwarding fails. See Core 26.1 release notes.
Distinguish service routing from upstream BE endpoints
The upstream Apache Doris procedure configures individual BE public_endpoint and private_endpoint tags using ALTER SYSTEM ADD BACKEND or ALTER SYSTEM MODIFY BACKEND. Those are self-managed cluster operations. Do not run them against a managed VeloDB Cloud warehouse.
The upstream redirect-policy header selects a BE address type. It does not provision VeloDB Cloud connectivity, create a VPC endpoint, or replace the generated warehouse URL. Use the Cloud connection method for your deployment and ask VeloDB Cloud support before changing service routing headers or configuration.
Performance and cost
Measure throughput, errors, and visibility delay from the application's actual network path. Start with a small file, then increase batch size and concurrency gradually. Group Commit can reduce transaction overhead, but no fixed forwarding latency or percentage throughput gain is established for a Cloud warehouse by this guide.
The Apache Doris network guide reports 20-50% throughput differences and millisecond-level forwarding overhead. It does not identify a complete dataset, hardware, or measurement procedure. These are unverified upstream observations, not VeloDB Cloud measurements or guarantees.
Load tests consume compute and storage. Stop test clients and remove test data after validation. See Billing.
Common errors
| Symptom | Possible cause | Resolution |
|---|---|---|
| Initial request succeeds, upload fails after redirect | The client cannot resolve or reach the redirect destination. | Check the generated connection path, DNS, proxies, and firewall rules from the application environment. Contact support with the unexpected destination if needed. |
| TLS or certificate error | The scheme, hostname, private DNS, or client trust does not match the generated connection. | Preserve the generated TLS settings and configure the required DNS and trust. Do not disable certificate verification. |
| Authentication or authorization error | Credentials are invalid or the user lacks the target load privilege. | Verify credentials and database/table privileges. Do not grant global privileges solely to work around a forwarding error. |
| Group Commit forwarding fails | Service forwarding configuration or routing is inconsistent. | Preserve the load response and timestamp, then contact support. Customers do not edit fe.conf or be.conf. |
| Throughput stops improving as concurrency rises | Network or cluster resources are saturated. | Reduce concurrency, batch appropriately, and compare resource use and latency before increasing it again. |