> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Customer-hosted Mixpeek

> Run Mixpeek in your own Kubernetes: what runs where, every permission it asks for, what leaves your account, and how your cluster is qualified.

Customer-hosted Mixpeek runs the Mixpeek runtime in a Kubernetes namespace you grant, in your account and on your network. You provide Kubernetes, nodes, storage, networking and IAM. Mixpeek deploys and operates the software in that namespace: the API and services, the vector store (MVS) that holds your index, a Ray cluster that runs extraction and inference, and the models. Your content and the GPUs that process it stay in your environment. The API, SDKs and primitives are the same as on Mixpeek Cloud; [Deployment options](https://docs.mixpeek.com/docs/production/deployment.md) compares the three shapes. To install, see [Install customer-hosted](https://docs.mixpeek.com/docs/production/customer-hosted-install.md).

## What runs where

```text Layout of a customer-hosted install theme={null}
Your account / VPC
└── Your Kubernetes cluster
    └── Mixpeek namespace
        ├── Mixpeek API and services
        ├── MVS (the vector store)
        ├── Redis and required stateful services
        └── Mixpeek RayService: our Ray, image, Python and CUDA userspace, models

You provide: CPU and GPU nodes, persistent volumes and storage classes,
object storage (S3 or GCS), a MongoDB, networking, IAM
```

| Runs in your namespace | Stays with Mixpeek |
| - | - |
| API and services handling your requests | The pipeline compiler |
| MVS, holding your index | Evaluation and tuning logic |
| Ray, running extraction and inference | Prompts and model-selection rules |
| The models, on your GPUs | Source repositories and the build chain |
| Redis and stateful services | Release engineering |

The line is drawn around data: everything that touches your content runs where your content is, and everything that decides how Mixpeek works, touching no customer data, stays with Mixpeek. A pipeline change is Mixpeek's to ship and never becomes a Kubernetes change in your environment.

Mixpeek pins its own Ray, Python and CUDA userspace in one image, so it can upgrade without asking your platform team to upgrade a dependency first, and your Ray version is not an input to whether Mixpeek works. Your node pools, quotas, taints, tolerations, autoscaler policy and network policy stay yours; Mixpeek's workloads schedule under your rules, and the [qualification suite](#qualification) tests that.

## Supported environments

| | Requirement |
| - | - |
| Kubernetes | EKS or GKE |
| Compute | NVIDIA GPU nodes at a known driver baseline |
| Storage | S3 or GCS for objects, plus approved CSI storage classes for persistent volumes |
| KubeRay | **1.1 or newer, hard requirement**: below it `submissionMode: HTTPMode` does not exist and batch cannot be submitted. Mixpeek qualifies specific operator versions |
| Kubernetes version | 1.33 or newer is optional; it enables in-place vertical scaling (`pods/resize`) for Ray's autoscaler. Older clusters replace pods to resize |
| Database | A MongoDB you provide (driver: pymongo 4.9; tested against current MongoDB) |
| Install | The Mixpeek Helm chart |

| Environment | Status |
| - | - |
| GKE | Mixpeek's own production runs here; the qualification fixture builds a GKE cluster from scratch |
| EKS | Supported. A deployment starts with a qualification run against your cluster |
| Other distributions | Not qualified. Tell Mixpeek what you run and it scopes a qualification |

Compatibility results come from qualification runs, not a hand-maintained table. For a direct answer about your cluster, ask Mixpeek to run the suite against it.

## Permissions

The install kit creates six namespaced objects: one `ServiceAccount` (`mixpeek-submitter`), two `Role`s with their `RoleBinding`s, and one `ResourceQuota`.

| Does Mixpeek install | Answer |
| - | - |
| CustomResourceDefinitions | No. KubeRay's three are the prerequisite below |
| Operators or controllers | No |
| ClusterRoles or ClusterRoleBindings | No |
| Admission webhooks, mutating or validating | No. Your admission and scheduling policy applies to Mixpeek's pods with nothing of Mixpeek's in front of it |
| Aggregated API servers (`APIService`) | No |
| Anything outside the granted namespace | No |

### The one cluster-scoped prerequisite: KubeRay

KubeRay has no namespace-only install. kuberay-operator 1.5.1 installs 3 CRDs (`rayclusters`, `rayjobs`, `rayservices`), 5 ClusterRoles and 1 ClusterRoleBinding. You install it once and on upgrades; everything Mixpeek does after that is continuous and confined to one namespace. If you already run KubeRay, there is nothing to grant. You can instead grant Mixpeek `create` on `customresourcedefinitions`, `clusterroles` and `clusterrolebindings`; if you keep it, a Mixpeek release that needs a newer KubeRay waits for your change window. On GKE, `container.customResourceDefinitions.create` and `container.clusterRoles.create` are separate permissions, so the qualification suite checks all three verbs.

### The two Roles

**`rayjob-manager`** submits batch work:

| API group | Resources | Verbs |
| - | - | - |
| `ray.io` | `rayjobs` | `create`, `get`, `list`, `watch`, `delete`, `patch` |
| core | `secrets`, only `mixpeek-engine-secrets` (via `resourceNames`) | `get` |
| core | `resourcequotas` | `get`, `list` |
| core | `services` | `list` |

The engine reads its own Secret's key names so each batch `RayJob` takes credentials by `secretKeyRef` instead of inline values; the Role can read no other Secret. If you rename the engine Secret (`MIXPEEK_ENGINE_SECRET_NAME`), put that name in `resourceNames`, or the read fails and batch `RayJob`s carry the credentials inline on the CR. Batch CRs are submitted with `ttlSecondsAfterFinished: 120`, so a finished job's CR deletes itself two minutes after completion. `resourcequotas` is read so batches are sized to fit your quota; `services` is listed to resolve the Ray head.

**`ray-autoscaler-generation-stable`** lets Ray's own autoscaler scale its workers:

| API group | Resources | Verbs |
| - | - | - |
| core | `pods` | `get`, `list`, `watch`, `patch` |
| core | `pods/resize` | `patch` |
| `ray.io` | `rayclusters` | `get`, `patch` |

It binds to a generation-stable subject because KubeRay creates a new ServiceAccount per cluster generation; a name-bound Role would silently stop worker scale-up on the first `RayService` swap. If you will share the namespace with your own workloads, tell Mixpeek and it pins the generation instead.

Mixpeek asks for no cluster-scoped read of any kind, and cannot create namespaces, read other namespaces or touch nodes. Verify it:

```bash Check the submitter's permissions theme={null}
kubectl auth can-i --list \
  --as=system:serviceaccount:mixpeek:mixpeek-submitter -n mixpeek
```

> [!WARNING]
>
> `kubectl auth can-i --as` needs impersonation rights. Without them every answer is `no`, which reads like a clean result. Check that you got a mix of answers.

### Network policy

`networkpolicy.yaml` ships as a template with the endpoints blank and is not applied by default: an incomplete egress policy fails hours later, mid-batch, as a timeout that looks like something else. The qualification suite warns when no NetworkPolicy governs the namespace, and separates a policy that exists from one whose `podSelector` actually selects Mixpeek's pods.

## Data flow

### Where the control plane sits

Six collections are control-plane by definition: API keys, organizations, users, tenant routing, the Canvas app registry and an internal repair queue. Where they live is chosen at install time.

| | Managed control plane | Fully self-hosted |
| - | - | - |
| Control-plane collections | A Mixpeek-operated database; your namespace egresses to it (the egress the install kit's network policy opens) | The MongoDB in your namespace |
| Outbound to Mixpeek for the pipeline | Yes, to the control plane | None |
| Canvas apps | Available | Unavailable: the build worker, bundle store and app runtime share one registry they cannot reach in your namespace |
| Usage reporting | Automatic | None; metering becomes a commercial arrangement |

The pipeline stages are identical in both. Tell Mixpeek which shape you need; it is configured from the first deploy.

### One object, from arrival to decision

| Stage | What happens | Where |
| - | - | - |
| 1. Arrival | `POST /v1/buckets/{bucket_id}/uploads` returns a `presigned_url` and the client PUTs straight to object storage, or a sync pulls from a source (`google_drive`, `s3`, `snowflake`, `sharepoint`, `tigris`, `iconik`). Continuous sync polls on `polling_interval_seconds` | Your object storage; the API only mints the URL and never touches the bytes |
| 2. Object | A bucket row with `blobs[]`; declared fields are type-checked against the bucket schema; unique-key policy dedupes | API pod and your MongoDB |
| 3. Batch | Plan gates (`max_batch_size`, `max_active_batches`), cost estimate, and exclusion of objects already extracted with the same content and config | Your namespace; billing meters back to Mixpeek on a managed control plane |
| 4. Schedule | The extractor resolves to a compute profile and a worker count | Your namespace |
| 5. Execute | An ephemeral `RayJob` per batch reads blobs, decomposes them and calls models held by the long-lived `RayService` | Your nodes, under your taints and quotas |
| 6. Persist | Documents go to MVS, which appends a write-ahead log, flushes the index and ships sealed WAL segments and snapshots to object storage | Your disks and object storage |
| 7. Enrich | Taxonomies label documents; clustering runs as its own `RayJob` | Your namespace |
| 8. Decide | A retriever with a threshold, or a taxonomy label, gives a pass, flag or hold verdict; an alert or trigger acts on it | Your namespace, plus any provider a stage calls |

There is no moderation resource in the API: stage 8 composes retrievers, taxonomies, [alerts and triggers](https://docs.mixpeek.com/docs/enrich/alerts-and-triggers.md). Writing a decision back out as a file with lineage, such as into a `reviewed/` bucket, is integration work today.

A video is one object with several blobs; splitting it into segments, frames and scenes happens in stage 5. A batch that finishes with a failed tier reports `COMPLETED_WITH_ERRORS`, so a gate that polls batch status must accept that value.

> [accordion] Scheduling and sizing
>
> The compute profile comes from the first rule that matches: an explicit `profile_name`; a `gke_profile` the extractor declares; `plugin` (isolated on a tainted node) for a plugin job without `requires_gpu`; `cpu-only` without `requires_gpu`; the job-type default (batch `default`, cluster and benchmark `small`); otherwise `default`, which carries a GPU worker group. 6 of the 12 built-in extractors declare a profile; for the rest `requires_gpu` decides the hardware, so choosing an extractor chooses a node pool.
>
> Worker count is `object_count / objects_per_worker`, clamped by the tenancy slice and a 350 Gi ceiling. Shared tenancy gets GPU 2, CPU 32, API 4; a dedicated GPU tenant gets GPU 8, API 12. A `cpu-only` worker peaks near 0.27 core and 0.77 GiB, so it requests 1 CPU and 2 Gi, and one node holds 7 or 8 concurrent batches. Kubernetes CPU requests and Ray `num-cpus` are decoupled by `cpu_workers.ray_num_cpus`. Requests drive the autoscaler; limits stay generous so a decode burst is absorbed instead of OOMKilled.

> [accordion] Vector store settings
>
> | Setting | Default | Effect |
> | - | - | - |
> | `MVS_NPROBE` | 8 | Partitions searched per query: recall against latency |
> | `pq_subvectors` / `pq_bits` | 32 / 8 | About 32 times less memory; raw vectors kept for re-ranking |
> | `pq_training_threshold` | 50,000 | Below this, compression is skipped |
> | `max_vectors` per shard | 50,000,000 | Split point for more shards |
> | `MVS_IDLE_EVICT_MINUTES` | 30 | Idle namespaces are evicted and restored on demand; the first query after idle is slower |
> | `MVS_WAL_MAX_SHIP_AGE_SECS` | 30 | A sealed WAL segment ships to object storage within this time |
>
> Filter predicates are evaluated on the coordinator after shards return. Replica counts vary by namespace; read the actual pod counts in yours before depending on them.

### Durability

| Store | Holds | Recovery |
| - | - | - |
| Object storage | Source objects, MVS snapshots and sealed WAL, exports | The durability floor. Versioned object storage loses nothing (RPO 0) |
| MVS | Vectors and the `_internal` payload | Replays shipped WAL over its last snapshot: RPO 30 seconds. Rebuildable from source objects at extraction cost |
| MongoDB | Resource metadata, batch state, non-vector fields, usage events | Recoverable within its 10-minute oplog capture window (RPO 600 seconds) |
| Redis | Locks, caches, heartbeats (on a PersistentVolume) | In-flight work only; size and back it up like any stateful workload |

**Durability, stated plainly:** the vector store's RPO is 30 seconds, the WAL ship age; replicas serve reads and do not shorten that gap. A namespace restore is held to 30 minutes (RTO 1800 seconds). The 30 seconds holds for the WAL-shipping layout. The newer object-store layout writes index files and WAL into one bucket with no object versions or soft delete, so a deleted file there has no restore copy today. Until a restore drill measures a recovery point for that layout, treat it as having none.

### What leaves your account

Egress depends on which extractors and retriever stages you configure, at ingest and at query time.

* **Model-backed extractors send the content itself.** `gemini_multifile_extractor` sends image and PDF bytes to Google. So do `multimodal_extractor` v2 Gemini embedding, `universal_extractor`, `scrolling_text_extractor`, the `document_graph_extractor` VLM corrector and the `web_scraper` semantic router. Cluster labeling calls a model too. The customer-hosted install omits the Gemini embedding model and does not offer it at collection create, so that choice fails at configuration time instead of on real data.
* **Seven retriever stages call providers:** `enrich/llm`, `enrich/agentic`, `filter/llm`, `filter/agent_search`, `filter/attribute`, `filter/query_expand` and `reduce/summarize`. An enrich stage over 100 results makes 100 calls. They also run at ingest, once per document, when a taxonomy or a collection's `retriever_enrichments` points at a retriever that uses them; the collection only carries a `retriever_id`, so follow it to the retriever's stages.
* **`POST /v1/inference`** (`universal__api`) dispatches to OpenAI, Google or Anthropic by model name. It is off the path of standard indexing and search, and accepts a self-hosted OpenAI-compatible endpoint.
* **Model weights.** Four model sets download from `huggingface.co` the first time a replica loads them: `bge-reranker-v2-m3` (2.2 GB), `siglip-base-patch16-224` (779 MB), `all-MiniLM-L6-v2` (88 MB) and CLAP `630k-audioset-best.pt` (1.86 GB, on the first audio object). ArcFace `buffalo_l` (601 MB) and `multilingual-e5-large-instruct` (1.1 GB) are baked into the image. Nothing of yours is sent, but with no route to `huggingface.co` Ray comes up healthy and those applications never load. Allow that egress on first start, or ask for an image with all six baked (adds 4.9 GB).
* **Error reports.** `SENTRY_DSN` defaults to Mixpeek's Sentry project and is not in the chart. Set `SENTRY_DSN: ""` in your Secret to turn it off ([Install customer-hosted](https://docs.mixpeek.com/docs/production/customer-hosted-install.md#create-the-secret)).

| Does not leave | With the shipped configuration |
| - | - |
| Product analytics (PostHog) | Off: no API key by default |
| Requests to the Mixpeek control plane | Off unless a `CONTROL_PLANE_*` URL is configured (the managed shape) |
| Your objects and documents | Read from and written to the endpoints you configure |

To keep provider calls under your own contract, set organization-default LLM credentials so calls run on your OpenAI, Anthropic or Vertex account; serve models from your own Ray Serve deployments to keep them in your VPC; or replace the call with a [custom extractor](https://docs.mixpeek.com/docs/extract/custom-extractors.md). For the exact set in one namespace, ask Mixpeek to run the namespace egress check: it reads your collections, taxonomies, clusters and retrievers, names every component that reaches a provider, and refuses to report clean when it hits a reference it could not follow. A fully disconnected deployment depends on the extractors and stages you choose; bring the pipeline to the deployment conversation first.

## Qualification

Before anything is deployed, Mixpeek runs a qualification suite against your cluster and gives you the plain-text report, one line per check.

| | Substrate suite | Ray suite |
| - | - | - |
| Asks | Can the plane be installed here, and what does it cost in permissions | Does Mixpeek behave correctly here, and did it disturb anything of yours |
| Runs | Before anything of Mixpeek's exists | After the plane is installed |
| Needs | A kubeconfig, `kubectl` and `python3` | A running Ray cluster |
| You can run it | Yes, read-only by default | After install |

> [accordion] Substrate checks (13)
>
> | Check | Establishes |
> | - | - |
> | `k8s-reachable` | The API server answers, and which cluster it is |
> | `k8s-version` | Whether the version is tested; untested warns rather than fails |
> | `kuberay` | Present and at least 1.1. Absent is expected before install |
> | `storage-class` | A class can provision volumes; binding mode, expansion and reclaim policy |
> | `pvc-durability` | Data one pod writes is read back by a second pod after the first is gone. Read this row first |
> | `storage-throughput` | Sequential write and read on that class; informational unless you give a floor |
> | `crd-install-grant` | Who holds the cluster-scoped grant KubeRay needs; never fails |
> | `namespace-grant` | The identity can create everything the install creates |
> | `workload-identity` | Whether a ServiceAccount is bound to a cloud identity |
> | `pod-security` | Whether PodSecurity admission would reject Mixpeek's pods |
> | `node-capacity` | Enough untainted allocatable capacity; tainted and cordoned nodes are listed |
> | `gpu-nodes` | Whether any node advertises a GPU |
> | `namespace-census` | What the cluster held before, for comparison afterwards |
>
> Only `pvc-durability` and `storage-throughput` write anything, behind `--allow-provision`: two small PersistentVolumeClaims and three short-lived pods, all deleted. The durability row writes a marker unique to the run, deletes the pod, and requires a second pod to read that exact marker, so an `emptyDir` or a reused volume fails.

> [accordion] Ray suite checks (20)
>
> | Group | Checks |
> | - | - |
> | Cluster | `ray-reachable`, `fingerprint` (the cluster is the one you meant), `kuberay` (CRDs served at a version whose fields Mixpeek emits) |
> | Security | `rbac-minimal-sa` (5 required verbs, 5 forbidden: including `create clusterroles`, `create namespaces`, `delete nodes`, RayJobs in another namespace), `rayjob-cr-secrets`, `dashboard-secrets`, `network-policy`, `canary-secret` |
> | Connectivity, run from inside the cluster | `registry-pull` (your nodes can pull the engine image), `object-storage` (and whether with workload identity or static keys), `control-plane`, `api-health`, `engine-on-target` |
> | Workloads | `scheduling` (a tolerating pod lands, the same pod without the toleration is refused naming the taint, an oversized pod is rejected by your quota), `autoscaling` (never past your `maxReplicas`), `failure-recovery` (different faults give different named diagnoses), `serve-lifecycle`, `golden-e2e` (a real document from ingestion to retrieval) |
> | Isolation | `non-interference` (every foreign app, job and actor unchanged), `cleanup` (no residue after uninstall), `serve-full-config-hazard` (opt-in destructive control, throwaway clusters only) |

| Verdict | Meaning |
| - | - |
| `QUALIFIED` | Every required check passed |
| `NOT QUALIFIED` | A required check failed; the row names it |
| `INCOMPLETE` | Nothing failed, and some checks could not run. Neither a pass nor a failure |
| `UNREACHABLE` | The cluster did not answer; no other row means anything |

A skipped row says what it could not do, such as an identity that cannot create pods, instead of blaming your cluster. Absence is reported the same way: `network-policy` says when it could not read your policies, and `kuberay` separates "not installed" from "could not tell". Row-by-row fixes are in [Install customer-hosted](https://docs.mixpeek.com/docs/production/customer-hosted-install.md#what-goes-wrong).

Some behavior is a property of the software and holds on any cluster: a batch orphaned by node death, preemption or SIGTERM is resubmitted automatically within a bound (one orphaned by a deploy is not), and recreating the `RayCluster` costs a cold start and the work in flight, nothing durable.

## When your platform team changes the cluster

Measured on a throwaway cluster running the same install kit and chart:

| What you do | What happens | Recovery |
| - | - | - |
| Delete the `RayCluster` | KubeRay rebuilds it under the same name and a new UID | Automatic, about 1 second |
| Delete the `RayService` | The `RayCluster` is garbage-collected with it; no Ray pods are left billing | Redeploy the chart (`helm upgrade --install`) |
| Drain the head's node | The head waits for capacity, then returns to `Running` | Automatic |
| Upgrade KubeRay (1.5.1 to 1.6.2 measured) | The running `RayCluster` keeps its UID and keeps running | Nothing to do |
| Upgrade the Kubernetes control plane | Not measured yet | Unknown |

Key your own health checks on `.metadata.uid`, since a rebuilt `RayCluster` keeps its name. All results were measured on an idle cluster; what happens to a batch in flight across a deletion, drain or upgrade is not measured. None of these touch your index: vectors are durable in object storage, and losing an MVS pod costs a rebuild of its unreplayed WAL window from local disk.

## Running inside a Ray cluster you already operate

This is not part of customer-hosted v1; Mixpeek deploys its own `RayService`. Running in your existing `RayCluster` is a separate enterprise integration, scoped and priced per deployment, because your Ray, Python and CUDA versions would enter Mixpeek's build matrix. Bring those three versions first; they decide feasibility.

Ray Serve's config API is declarative over the whole application set, so a whole-config deploy removes any declaratively deployed application it does not name (`serveConfigV2` or a config `PUT`) and leaves imperatively deployed ones (`serve.run`) alone. An application with an empty `deployed_app_config` in `GET /api/serve/applications/` was deployed imperatively. Measured on Ray 2.53.0 with KubeRay 1.5.1. On a cluster it does not own, Mixpeek adds, scales and removes one named application at a time, refuses a route prefix that collides with yours, and does not take `/` unless told to. The `serve-lifecycle` and `non-interference` rows check this, including your applications' deploy timestamps, after a quiet-window control that reports `INCONCLUSIVE` if anything moves on its own.

## Teardown

Uninstalling removes the namespace-scoped objects and the workloads. Run the substrate suite with `--expect-clean` afterwards; it fails if Mixpeek residue remains.

## Related

* [Install customer-hosted](https://docs.mixpeek.com/docs/production/customer-hosted-install.md): prerequisites, steps and troubleshooting
* [Deployment options](https://docs.mixpeek.com/docs/production/deployment.md): Mixpeek Cloud, dedicated and customer-hosted compared
* [Authentication and access](https://docs.mixpeek.com/docs/production/security.md): API keys, roles and network controls


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.