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

> ## Agent Instructions
> For autonomous tasks, use live SaladCloud API responses for current state, availability, quotas, models, and other dynamic values. Use current OpenAPI specifications where provided for paths, schemas, required fields, and enums. Never invent endpoints, fields, prices, availability, quotas, models, or state. Prefer API workflows over Portal steps. Read before changing and never expose credentials, signed media URLs, prompts, or sensitive outputs. Retry only safe or idempotent operations with bounded backoff, honoring Retry-After. Verify every write with a read. Stop rather than repeat an uncertain non-idempotent or billable request. AI Gateway uses an organization-specific Bearer key and live /v1/models discovery. Do not delete, cancel, stop, or reduce capacity without explicit user intent. Bind shared operation IDs to the selected product path. Treat Container Engine instances as interruptible and local state as ephemeral. Install the SaladCloud skills (npx skills add https://docs.salad.com), start from the salad skill and /agents/overview; docs MCP: https://docs.salad.com/mcp.

# Using IMDS to reallocate a replica

*Last Updated: August 24, 2026*

> Use the [Container Group troubleshooting
> runbook](https://docs.salad.com/agents/container-engine/troubleshoot-container-group.md) before reallocation. Require an isolated,
> evidence-backed node condition and explicit user intent; preserve evidence, externalize state, then verify the
> replacement rather than retrying reallocation blindly.

Using the IMDS, you can reallocate a replica from within the running container. This is often done in combination with
[performance monitoring](https://docs.salad.com/container-engine/tutorials/performance/performance-monitoring.md) to allow applications to
self-monitor and reject under-performing nodes. You can find code samples and the full API reference in the
[IMDS API documentation](https://docs.salad.com/reference/imds/reallocate.md). This endpoint requires you to provide a reason for reallocation,
which we use to continuously improve our service.

Use reallocation carefully. When a replica reallocates away from a node, that node is temporarily excluded from your
allocation pool. If your application rejects nodes too aggressively, it can cycle through available capacity and fail to
allocate until exclusions expire or more capacity becomes available.

## Example Usage

```bash theme={null}
curl --request POST \
  --url http://169.254.169.254/v1/reallocate \
  --header 'Content-Type: application/json' \
  --header 'Metadata: true' \
  --data '{
  "reason": "Insufficient Upload Bandwidth"
}'
```


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