Large files
A file larger than one request is sent in parts. The deployment checks every part as it arrives, checks the whole file once all parts are there, and saves nothing to the project until you confirm. Up to the deployment’s request limit nothing changes: a file goes in one request, as before.
Two numbers decide what happens, and the deployment states both (Python: client.served_limits()):
| Limit | What it bounds | Packaged example | With nothing configured |
|---|---|---|---|
upload_bytes | one request, and so one part | 32 MiB | 8 MiB |
file_bytes | the largest original | 4 GiB | equal to upload_bytes |
Seismic volumes (SEG-Y) can be as large as file_bytes. Other files sent in parts are read whole by their reader, so
they stay within 64 MiB. What is served stays bounded as before: one slice or representation is at most 32 MiB.
In the Workspace
Section titled “In the Workspace”- Choose the file on the upload page. The page says “This deployment accepts files up to 4 GiB.” and, for a file larger than one request, “The file is sent to this deployment and checked there. Nothing is saved to the project until you confirm.”
- Press Upload and check this file (2.6 GiB). The page first reads the file on your computer (“Reading your file on this computer: 38%”), then sends it: “Sending 1.2 of 2.6 GiB (47%). You can pause, or close this page and continue later.” Pause stops after the current part; Cancel upload discards what was sent.
- “Checking your volume on the server. This can take a few minutes; you can leave this page.” The check reads every trace header and stores each inline as a verified chunk.
- Review what the deployment found (for a volume: “Inlines 1595-2393, crosslines 1142-1620”), tick that you have permission to retain the file, and press Save as private file. Discard removes it instead.
Continue later. Closing the page keeps the unfinished upload in this browser for this project. Opening the upload page again says “An upload of NAME (47%) was not finished. Choose the same file to continue.” Choosing it reads the parts the deployment already holds on your computer again and compares them (“Checking that this is the same file…”); only the missing parts are sent. Another file is refused: “This is not the file you started with. Choose the same file, or discard the unfinished upload.” An unfinished upload is removed after 7 days.
In Python
Section titled “In Python”from ophiolite import Client
client = Client.from_configuration("configuration.json")print(client.served_limits()["file_bytes"]) # 4294967296 in the packaged examplevolume = client.upload_data( "Q13a_AMSTELFIELD_4501NEP_KPSDM_FINAL_FULL_STACK_TIME.SEGY", profile="segy/1", declared={"z_domain": "time"}, name="Q13a full stack (time)", attribution="Source: NLOG.NL ...", audience=[], rights_confirmed=True, command_id="q13a-full-stack-time") # the same command continues an interrupted uploadinline = client.read_slice(volume.asset_id, volume.revision, "inline", 1595)client.download_original(volume.asset_id, volume.revision, "copy.segy") # by ranges, verifiedupload_data reads the file one part at a time, so memory stays one part whatever the file’s size. Calling it again
with the same command_id after an interruption sends only the parts the deployment does not hold yet. The revision is
the file’s SHA-256; the SDK refuses a result with any other. download_original reads by byte ranges and leaves
nothing at the destination unless the whole file matches the digest the deployment states. To read only part of a
volume, without the file, see Read part of a volume.
The notebook Send a large file does the same with a synthetic volume.
8-bit seismic cubes
Section titled “8-bit seismic cubes”An 8-bit cube (SEG-Y with one-byte samples, the segy/2 profile) enters the same ways as a float cube: in parts from
the Workspace or upload_data, in a single request when it is small, and from ophiolite starter export. It is stored
once: the original, plus its trace order kept in 1 MiB parts. No float copy is made, so it counts about its own size
against retained_bytes.
It is read by windows at its native size, one byte per sample, with the codes exactly as the file holds them and the
code that means “no value” stated beside them. In Python, read_window and iter_window decode the codes to floats,
with the “no value” code (for example -128) as NaN; each piece also keeps its codes as they were stored.
ophiolite exchange get --window writes the window as a SEG-Y file with one-byte samples.
- An application that does not know this form is told “This is an 8-bit cube. Update your application to read part of
it. Nothing was read.” (
native-form, 422). Update the application or the SDK. - Inline, crossline and time slices are not offered for an 8-bit cube; read a window instead (
native-form). - A file whose traces are fully shuffled is accepted but stays slow to read; sort it by inline and crossline first.
- A portable bundle carries the cube’s description, not the whole volume; read windows from the deployment.
When an upload is refused
Section titled “When an upload is refused”| You see | Why | Code |
|---|---|---|
| “This file is 5.2 GiB. This deployment accepts files up to 4 GiB. Ask your administrator to raise the limit, or crop the volume.” | over file_bytes; nothing was sent | file-too-large (413) |
| “This deployment has 1.5 GiB left for uploads in total; this file needs 2.6 GiB.” | over upload_total_bytes | no-room (413) |
| “This deployment has 1.5 GiB left to keep this file and the readable copies made from it; it needs 5.1 GiB.” | over retained_bytes (the original and its readable copies) | no-room (413) |
| “This deployment has 1.1 GiB of free disk for uploads; this file needs 2.6 GiB.” | the free disk where the payloads are kept | no-room (413) |
| “This deployment has no room left to keep this file and the readable copies made from it (16 GiB in all). Nothing was added.” | retained_bytes was reached while the file was saved | no-room (413) |
| “This cube has 1,200,000 traces; this deployment accepts at most 1,000,000. Nothing was added.” | over max_traces (or max_samples: “samples per trace”) | file-too-large (413) |
| “This cube has 1,200,000 traces; this format accepts at most 1,000,000 here. Nothing was added.” | over the format’s own ceiling (below) | file-too-large (413) |
| “One inline of this cube holds 40,000,000 bytes (2,000 crosslines of 5,000 samples); this deployment accepts at most 33,554,432 bytes per inline. Nothing was added.” | over max_inline_bytes | file-too-large (413) |
| “Part 3 arrived damaged twice. Check your connection and continue.” | a part did not match its digest twice | part-corrupt (422) |
| “The copy held by this deployment does not match your file. Nothing was saved; upload it again.” | the whole file did not match | file-mismatch (409) |
| “Your access to this project was removed. The unfinished upload was discarded.” | you lost write access | access-lost (403) |
| “One upload is already in progress. This one continues when one finishes.” | the deployment’s concurrent uploads | busy (503, retried) |
| “This unfinished upload was removed after 7 days. Start it again.” | the upload expired | expired (410) |
A volume the reader cannot use (not a full inline × crossline grid, an unsupported sample format) is refused with the reader’s own sentence, not a size sentence.
Each size sentence names the limit that stopped the file and the file’s own figure; a size below 1 MiB is given in exact bytes. Which setting it was, with both numbers exact, is under Technical details (and in the unfinished upload’s record on the deployment), never in the sentence. An upload refused at the check ends there; a check interrupted by a restart runs again when the deployment starts, and an upload whose check cannot finish is removed when it expires. What an ended upload sent is reclaimed like any other ended upload’s parts.
For administrators
Section titled “For administrators”config.json limits takes the table’s keys; each is bounded by the schema and served by the deployment as it applies
it:
"limits": {"upload_bytes": 33554432, "file_bytes": 4294967296, "upload_total_bytes": 17179869184, "retained_bytes": 17179869184, "uploads_per_project": 10000, "grid_cells": 3000000}| Key | Default | Bounds |
|---|---|---|
file_bytes | upload_bytes | 1 KiB - 64 GiB |
upload_total_bytes (every uploaded file and version, companion files, unfinished uploads) | 128 MiB | up to 1 TiB |
retained_bytes (all retained originals and the readable copies kept beside them: representations, a float cube’s inline chunks, every cube’s trace order) | 512 MiB | up to 1 TiB |
uploads_per_project (uploaded files, each version counted, and unfinished uploads in one project), concurrent_uploads, finish_jobs | 100, 2, 1 | up to 100,000; 64; 16 |
session_seconds (unfinished upload kept) | 604800 (7 days) | 1 hour - 30 days |
grid_cells (an uploaded grid) | 3000000 | up to 4,194,304 |
max_traces, max_samples, max_inline_bytes (a volume) | 1,000,000; 20,000; 32 MiB | up to 50,000,000; 65,535; 1 KiB - 32 MiB |
package_companion_bytes (a map layer’s companion files together, such as a Shapefile’s .dbf) | 16 MiB | 1 KiB - 64 MiB |
The packaged example allows 10,000 uploads per project rather than the default 100, so that a project with many wells has room for one file per well.
Each format’s own ceiling. max_traces and max_samples are the deployment’s numbers; a format’s published
description caps them first. A float cube (segy/1) holds at most 1,000,000 traces and an 8-bit cube (segy/2) at most
50,000,000; every cube holds at most 20,000 samples per trace. Setting max_traces above a format’s ceiling does not
admit a larger cube of that format: the refusal says “this format accepts at most … here”. The deployment serves its
own number, not the ceiling.
After upgrading to this release. The retained capacity now counts the readable copies kept beside each float
seismic cube (one chunk per inline, about the cube’s size again) and every cube’s trace order, which it missed before.
Compare ophiolite_store_used_bytes{limit="retained_bytes"} with retained_bytes
(OPHIOLITE_MAX_RETAINED_BYTES). A deployment that holds float cubes reports more stored data; one now at or over its
capacity refuses new uploads by number until you raise retained_bytes (a float cube counts about twice its file size)
or remove items. Stored items keep reading either way, and a cube already kept keeps reading if any bound is later
lowered below its own figures.
Survey archives. ophiolite starter export unpacks a survey archive of at most 8 GiB uncompressed, all members
together; --max-uncompressed-bytes sets another number. It is a setting of the computer that unpacks, not of the
deployment, and is not served.
Disk. An upload needs free space of 2.5 times its size where the payloads are kept (the parts, the inline chunks
and slack); a smaller remainder is refused before any byte is sent. /healthz answers 503 disk when the disk cannot
hold 2.5 times file_bytes, and the packaged compose file’s health check reports the server unhealthy. Leave the
qualification margin of 25 GB beside that.
Memory. Parts are verified and stored as they arrive and the check reads the file by ranges, so the gateway’s
memory does not grow with the file. The packaged image is qualified with mem_limit: 1g (commented in
compose.yaml). Measured on the packaged image, one operation at a time (gateway, above its idle of about 165 MiB):
| Operation | Payloads on the deployment’s disk | Payloads in an S3 bucket |
|---|---|---|
| Upload of a 1.1 GiB volume (36 parts) | 154 MiB, 33 s | 392 MiB, 74 s |
| Upload of the 2.8 GB Q13a volume (83 parts) | 166 MiB, 67 s | |
| One inline, crossline or time slice | 14-103 MiB | 14-70 MiB |
| A 64 MiB range of the original | 75-85 MiB | 98 MiB |
| A 2.8-million-cell grid, uploaded / read | 248 / 192 MiB |
With an S3 store the check holds up to four 32 MiB parts while it reads the file, and each part read over HTTP is held
twice for a moment; the figure was flat through the 1.1 GiB upload, because it is set by the part size, not the file. A
slice’s memory follows the slice (bounded by max_inline_bytes). A grid is parsed whole, so its memory is bounded by
grid_cells, not by file_bytes. Two uploads at once (concurrent_uploads) can add their parts’ memory together.
Backups carry the parts and chunks like any other payload; sweep_payloads keeps every part an original or an
unfinished upload names.
