# Managed Dedicated: Fleets

> **Scope of this page**
>
> This page documents the Zuplo **gateway** runtime (API, AI, and MCP gateways), not the Developer Portal.
>
> It applies only to Managed Dedicated hosting. It doesn't apply to Managed Edge or Self-Hosted, so don't use it for those deployments. See [Hosting options](https://zuplo.com/docs/articles/hosting-options).

On Zuplo Managed Dedicated, a _fleet_ is one or more clusters of dedicated
infrastructure, with its own networking, compute, and storage, that runs your
environments. Most customers have one fleet and run everything on it, production
and development included.

:::note

Fleets exist only on Managed Dedicated. On Managed Edge, every environment is
equally isolated.

:::

## Terminology

| Term        | What it is                                                                                         |
| ----------- | -------------------------------------------------------------------------------------------------- |
| Fleet       | One or more clusters of dedicated infrastructure, with its own networking, compute, and storage.   |
| Cluster     | The part of a fleet that runs in one region. A fleet in two regions is made up of two clusters.    |
| Environment | A running copy of your gateway, created from a branch, with its own URL and environment variables. |
| Deployment  | One release of an environment. Each push to a branch creates a deployment for its environment.     |

## The typical setup: one fleet

The setup that most customers choose is a single fleet in two regions.
Production, development, and every other environment run on it side by side.

<Diagram height="h-[420px]">
  <DiagramGroup id="us" label="US East cluster">
    <DiagramNode id="us-main" variant="zuplo">
      main (production)
    </DiagramNode>
    <DiagramNode id="us-dev" variant="blue">
      dev
    </DiagramNode>
  </DiagramGroup>
  <DiagramGroup id="eu" label="EU cluster">
    <DiagramNode id="eu-main" variant="zuplo">
      main (production)
    </DiagramNode>
    <DiagramNode id="eu-dev" variant="blue">
      dev
    </DiagramNode>
  </DiagramGroup>
  <DiagramNode id="network">Your network</DiagramNode>
  <DiagramEdge
    from="us"
    to="network"
    label="Private connection"
    toArrow={false}
  />
  <DiagramEdge
    from="eu"
    to="network"
    label="Private connection"
    toArrow={false}
  />
</Diagram>

The two clusters together are one fleet. This setup works well because:

- **Production gets two regions.** Traffic is distributed geographically, and
  one region can fail without taking your API down.
- **You pay for two clusters, not more.** Development and preview environments
  use the same clusters as production.
- **Environments stay isolated.** Zuplo runs each environment as its own
  Kubernetes workload, with its own URL, configuration, and
  [environment variables](../articles/environment-variables.mdx). Running
  development next to production is a supported, common choice.

Environments on a fleet share its network connectivity. They can still call
different backends: `dev` can point at `https://dev-api.example.com` and `main`
at `https://api.example.com` through environment variables. A different backend
URL is never a reason to add a fleet.

## When to add a second fleet

Add one only for a hard requirement that Kubernetes isolation doesn't cover:

- **Different networking.** Some environments must connect to a different
  private network, or need different peering, firewall rules, or ingress. For
  example, development must have no network path to production backends.
- **Separate hardware.** A policy requires that development never runs on the
  same hardware as production.

In that case, each fleet has its own private connection, and you choose which
branches deploy to which one:

<Diagram height="h-[480px]">
  <DiagramGroup id="prod" label="Production">
    <DiagramNode id="prod-main" variant="zuplo">
      main (production)
    </DiagramNode>
    <DiagramNode id="prod-qa" variant="zuplo">
      qa
    </DiagramNode>
  </DiagramGroup>
  <DiagramGroup id="dev" label="Development">
    <DiagramNode id="dev-dev" variant="blue">
      dev
    </DiagramNode>
    <DiagramNode id="dev-feature-x" variant="blue">
      feature-x
    </DiagramNode>
    <DiagramNode id="dev-feature-y" variant="blue">
      feature-y
    </DiagramNode>
  </DiagramGroup>
  <DiagramNode id="prod-network">Your production network</DiagramNode>
  <DiagramNode id="dev-network">Your development network</DiagramNode>
  <DiagramEdge
    from="prod"
    to="prod-network"
    label="Private connection"
    toArrow={false}
    variant="zuplo"
  />
  <DiagramEdge
    from="dev"
    to="dev-network"
    label="Private connection"
    toArrow={false}
    variant="blue"
  />
</Diagram>

Zuplo sets up the branch rules with you during onboarding. To learn about the
connectivity options, see [Networking](./networking.mdx).

## Count your clusters

Each region of each fleet is one cluster. The total is the number to ask for
when you request Managed Dedicated pricing.

| Setup                                               | Clusters |
| --------------------------------------------------- | -------- |
| One fleet in two regions (typical)                  | 2        |
| One fleet in one region                             | 1        |
| Production fleet in two regions, development in one | 3        |

Zuplo deploys every environment to all regions of its fleet. You deploy once.

## Related resources

- [Managed Dedicated architecture](./architecture.mdx)
- [Environments](../articles/environments.mdx)
- [Branch-based deployments](../articles/branch-based-deployments.mdx)
