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

# Scale Quivr

> Add capacity where work is waiting and protect live searches during imports and rebuilds.

Find where work is waiting before you add capacity. Start with a representative import and increase load only while completed work rises and live search stays within your latency target.

## Protect live traffic

Run live and bulk workers as separate processes against the same dependencies. Use `worker.queues` to select `live` or `bulk` and `worker.slots` to set how much work each process takes. Give live work its own slots. Bulk imports, rebuilds and backfills still share the database, embedding provider and vector index with live traffic.

For example, merge each fragment into the JSON configuration for its worker process:

```json Live worker theme={null}
{"worker":{"queues":["live"],"slots":{"live":4}}}
```

```json Bulk worker theme={null}
{"worker":{"queues":["bulk"],"slots":{"bulk":2}},"rebuild":{"concurrency":8}}
```

A slot runs one worker activity. An ingestion activity can handle up to 16 documents at once, so two bulk slots can offer up to 32 concurrent documents per worker when both slots run ingestion. `rebuild.concurrency` sets the number of document revisions in flight per rebuild step. These settings determine the work offered to shared dependencies. Check the [worker settings](https://docs.quivr.thevibecompany.co/reference/configuration.md#worker-queues) and [rebuild settings](https://docs.quivr.thevibecompany.co/reference/configuration.md#rebuild) before tuning them.

## Find the bottleneck

| Signal | What to check |
| - | - |
| Queue age keeps rising | Compare waiting and executing work with document completions. |
| Embedding latency or throttling rises | Reduce bulk concurrency or add provider capacity. Measure after the change. |
| Database waits rise | Check connection pool saturation, write latency and lock waits before adding workers. |
| Search slows during writes | Check vector index I/O and memory. Slow bulk writes or lower rebuild concurrency. |
| Search slows after idle time | Compare cold and warm queries. Check memory pressure and disk latency. |

Read `GET /v0/admin/queues` with a dedicated queue key containing only `queues:read` and `corpora: ["*"]`. Use separate keys for application and operator requests. If `admin_listen` is set, send this request there and configure the queue key under `admin_keys`. Watch `waiting`, `in_progress` and `oldest_waiting_age_seconds` for each lane. Bulk waiting includes estimates for background work whose scopes can overlap. A `503` means the signal is unavailable. Use the maximum across replicas when aggregating installation-wide queue metrics. See [worker autoscaling](https://docs.quivr.thevibecompany.co/operate/deploy.md#scale-workers-on-backlog) for deployment settings.

## Run a large import

**1. Measure a sample**

Use representative document sizes and formats. Measure searchable documents per minute, provider latency and errors, and database and index growth. Run searches during the sample to establish the live latency impact.

**2. Send historical work to bulk**

Set `work_queue: "bulk"` at the top level when you [create a connector instance](https://docs.quivr.thevibecompany.co/guides/connect-a-source.md#create-an-instance). Keep separate live workers. Finish intended embedding and passage configuration changes early so you can limit [rebuilds](https://docs.quivr.thevibecompany.co/operate/vector-model.md#rebuild-a-collection).

**3. Increase load in steps**

Budget provider concurrency across plugin processes. For example, eight processes capped at four concurrent requests can offer 32 total, before counting any additional live or query processes. Watch database connections, storage growth and index I/O. Leave disk and memory headroom for the old and new index during a rebuild.

**4. Confirm the queue drains**

Check Operations, quarantine and real searches in addition to queue totals. If shared dependencies cannot keep up, [pause collection](https://docs.quivr.thevibecompany.co/guides/connect-a-source.md#pause-and-resume-collection) to retain its checkpoint. Already accepted work continues.

## Run the vector index on a dedicated host

A separate Weaviate host gives the index its own RAM and disk I/O. Budget for the on-disk index's cache, vector graph, active writes and simultaneous rebuilds. Measure cold searches after a restart or idle period.

Use the repository's [vector host tooling](https://github.com/The-Vibe-Company/quivr/tree/main/deploy/vector-host) to render the deployment or provision the Azure example. The [infrastructure guide](https://github.com/The-Vibe-Company/quivr/blob/main/deploy/infrastructure.md) describes the shared profile and drift checks.

To move an installation, schedule search downtime. Pause writes and source collection, stop writers to the old index, and retain its disk. Keep PostgreSQL and the stored documents and vector artifacts. Configure `weaviate_url` and `weaviate_api_key` for migration, the API and all workers, or their `WEAVIATE_URL` and `WEAVIATE_API_KEY` bindings on the deployment image. Verify HTTPS and API-key access, then run `quivr migrate` against the new index.

Start the API and rebuild workers, then [rebuild each Corpus](https://docs.quivr.thevibecompany.co/operate/vector-model.md#rebuild-a-collection) from stored content. Check coverage and keyword, meaning and hybrid searches before resuming writes. The installation reset helper refuses an external or unverified index.

## Next

* [Run a local load test](https://docs.quivr.thevibecompany.co/operate/measure-search.md#run-local-load-tests).
* [Diagnose stuck documents](https://docs.quivr.thevibecompany.co/operate/troubleshoot.md).


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