Skip to main content

Upload settings

Configure where the edge controller uploads recordings when you import them to your Primary Site.

Choose an upload destination​

Set PRIMARY_SITE_MODE explicitly to match your Primary Site. For Kubernetes, set the upload mode in values.yaml. See Kubernetes.

For a Foxglove-hosted Primary Site, set:

PRIMARY_SITE_MODE=hosted

No cloud credentials are needed. Foxglove provides the upload destination.

Kubernetes​

Set the upload mode, provider, and bucket in values.yaml. Put the provider credentials in a Secret in the foxglove namespace. The chart loads cloud-credentials and any Secrets listed in globals.secrets as environment variables, and mounts gcp-cloud-credential as a file. Values set by the chart take precedence over Secret environment variables.

For a Foxglove-hosted Primary Site, set:

globals:
upload:
primarySiteMode: hosted

For a self-hosted or BYOS Primary Site, set globals.upload.bucketName to the upload bucket, and configure your provider:

Install a Secret named gcp-cloud-credential into the foxglove namespace. This secret should contain a single key credentials.json with the contents of the service account key file.

You can use the kubectl command to set the secret from an existing credentials.json file:

kubectl create secret generic gcp-cloud-credential \
-n foxglove \
--from-file=./credentials.json

The chart mounts this secret at /secrets and sets GOOGLE_APPLICATION_CREDENTIALS=/secrets/credentials.json.

In values.yaml, set:

globals:
upload:
primarySiteMode: self-managed
provider: google_cloud
bucketName: your-upload-bucket

Object storage upload options​

For self-hosted and BYOS uploads, MULTIPART_PART_SIZE controls the size of multipart upload parts, in bytes. Files smaller than this size use a single upload request; files at or above it use multipart uploads. Foxglove-hosted uploads don't use this setting.

MULTIPART_PART_SIZE=8388608

AWS and Google Cloud Storage allow at most 10,000 parts in one upload. At the default size of 8 MiB, the largest file is 80,000 MiB (about 78 GiB). To upload larger files, increase this value. Both providers require parts of 5 MiB or more, except for the last part.

Each upload sends up to 5 parts at the same time and keeps each part in memory until it uploads. Memory use for an upload is approximately 5 times the part size.

On Kubernetes, add this variable to edgeController.env, using the quoting shown in the installation guide.

Upload connection options​

These settings control keepalive pings when an upload connection uses HTTP/2. Each value is a positive integer followed by a time unit (ms, s, m, or h). The values shown are the defaults.

UPLOAD_HTTP2_KEEP_ALIVE_INTERVAL=10s
UPLOAD_HTTP2_KEEP_ALIVE_TIMEOUT=30s

They apply only to connections that use HTTP/2. Google Cloud Storage uploads always use HTTP/1.1. S3-compatible uploads use HTTP/1.1 unless you set S3_COMPATIBLE_ALLOW_HTTP2=true. AWS and Azure uploads use HTTP/2 only if the storage endpoint supports it. If a Foxglove-hosted upload doesn't use HTTP/2, the log shows upload to foxglove-hosted storage used HTTP version ... that does not support keepalive pings once.

On Kubernetes, add these variables to edgeController.env.