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

# Spot nodes

> Where Inframan uses Spot capacity, how to choose it for your own pools, and what happens when a node is reclaimed.

Spot capacity is spare cloud capacity sold at a steep discount. The trade-off: your cloud provider can reclaim a Spot node at short notice. Inframan uses Spot wherever a short interruption is acceptable, and lets you choose for your own pools.

## Where Inframan uses Spot

| Pool | Non-production | Production |
| - | - | - |
| System | Spot | On-demand |
| Monitoring (Google Cloud) | Spot | On-demand |
| Builds in the cluster | Spot | On-demand |
| PostgreSQL and Redis (Google Cloud) | Spot | Spot |
| Your application pools | Your choice | Your choice |

Builder machines on Google Cloud run on-demand.

## Choose Spot for an application pool

* **Google Cloud:** the **spot** switch on each pool when you [create the infrastructure](https://inframan.mintlify.site/provision/create-infrastructure.md). It's on by default in the console, and can't be changed later.
* **AWS:** **Capacity** on each pool, **Spot** or **On-demand**. It's Spot by default, and you can change it any time on the infrastructure's **Node pools** tab.

> [!NOTE]
>
> An AI assistant that creates an infrastructure turns Spot **off** unless it's asked for it.

## When a node is reclaimed

* Kubernetes reschedules the node's pods onto other nodes, and the pool replaces the node.
* On AWS, Inframan listens for interruption notices and drains the node before it's reclaimed, so pods move first.
* Services with more than one replica keep serving while one is moved.

## When to use on-demand

* Services that can't tolerate a restart at an arbitrary moment, such as long-running jobs without checkpoints.
* Services that run a single replica and must stay up.

For most web services that run two or more replicas, Spot is the right default.


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