# Performance

Performance considerations for vCon MCP Server.

## Resource Recommendations

| Workload           | CPU  | Memory | Replicas |
| ------------------ | ---- | ------ | -------- |
| Development        | 0.25 | 256Mi  | 1        |
| Production (small) | 0.5  | 512Mi  | 2        |
| Production (large) | 1    | 1Gi    | 3+       |

## Multi-Instance Deployments

Enable stateless mode for horizontal scaling:

```bash
MCP_HTTP_STATELESS=true
```

## Embedding Performance

Process embeddings in batches to avoid rate limits:

```bash
docker run --rm \
  -e SUPABASE_URL=your-url \
  -e SUPABASE_SERVICE_ROLE_KEY=your-key \
  -e OPENAI_API_KEY=your-key \
  public.ecr.aws/r4g1k2s3/vcon-dev/vcon-mcp:main \
  script embed-vcons --batch-size=50 --delay=100
```

## Search Performance

| Search Type | Speed  | Use Case             |
| ----------- | ------ | -------------------- |
| Full-text   | Fast   | Keyword matching     |
| Semantic    | Slower | Meaning-based search |
| Hybrid      | Medium | Best of both         |

## Caching (Optional)

Enable Redis for caching:

```bash
REDIS_URL=redis://localhost:6379
```

## Observability

Enable OpenTelemetry for performance monitoring:

```bash
OTEL_ENABLED=true
OTEL_ENDPOINT=http://jaeger:4318
```

## Next Steps

* [Docker Deployment](/deployment/docker.md)
* [Production Setup](/deployment/production.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mcp.conserver.io/deployment/performance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
