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

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Deploying a Dedicated Synchronizer

> Step-by-step guide to configure, start, bootstrap, and verify a dedicated Canton synchronizer

This tutorial walks you through deploying a **dedicated synchronizer** (also called an extension synchronizer): configure sequencer and mediator nodes, start them, bootstrap topology, connect validators, and verify the deployment.

It is for operators who run their own synchronizer alongside — or instead of relying solely on — the [Global Synchronizer](https://docs.canton.network/overview/understand/global-synchronizer.md). It is **not** the Super Validator / Global Synchronizer operator guide.

For concepts first, see [Dedicated Synchronizers](https://docs.canton.network/global-synchronizer/extension-synchronizers/dedicated-synchronizers.md). For deep reference (all bootstrap variants, HA, pruning, and so on), use [Synchronizer Operations](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md) — this page is the end-to-end walkthrough; that page is the reference.

> [!NOTE]
>
> **Setup order**
>
> 1. **Configure** — APIs, sequencer backend, TLS, and storage
> 2. **Start** — Deploy and start sequencer and mediator
> 3. **Bootstrap** — Initialize synchronizer topology
> 4. **Connect** — Attach validators / participants
> 5. **Verify** — Health, topology, and a test transaction
> 6. **Harden** (optional) — HA, monitoring, backups, and related ops

## Who this guide is for

Use this guide when:

* You need a dedicated synchronizer for privacy, performance, governance, or cost reasons
* A single organization will own and operate the sequencer and mediator (the default path below)
* You may later connect the same validators to the Global Synchronizer ([hybrid pattern](https://docs.canton.network/global-synchronizer/extension-synchronizers/hybrid-synchronizer-pattern.md))

If you only need Canton Network public connectivity and Canton Coin, deploy a [validator on the Global Synchronizer](https://docs.canton.network/global-synchronizer/deployment/deployment-options.md) instead of standing up your own synchronizer.

## Choose your topology

| Choose… | When… | Then follow… |
| - | - | - |
| **Centralized, single-operator** (default) | One org owns sequencer and mediator | This tutorial |
| **Decentralized / multi-owner** | Distinct operators must co-sign topology | [Decentralized bootstrap](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#set-up-a-decentralized-synchronizer) |
| **HA / multi-sequencer** | Production redundancy | Finish this tutorial, then [High Availability](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#high-availability-in-synchronizer) |
| **Hybrid (dedicated + Global Synchronizer)** | Need CN connectivity as well | This tutorial, then [hybrid pattern](https://docs.canton.network/global-synchronizer/extension-synchronizers/hybrid-synchronizer-pattern.md) and [linking validators](https://docs.canton.network/global-synchronizer/extension-synchronizers/linking-validator-multi-sync.md) |

**Default path for this guide:** one sequencer + one mediator, single owner, [BFT sequencer backend](https://docs.canton.network/global-synchronizer/extension-synchronizers/bft-orderer.md) (minimal single-node network). Background on the orderer is in [BFT Orderer Architecture](https://docs.canton.network/global-synchronizer/extension-synchronizers/bft-orderer.md). API, backend, and TLS details are in [Synchronizer Operations — configure](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#configure-synchronizer-apis).

> [!NOTE]
>
> The database sequencer backend is unsupported. Use the BFT sequencer backend for new dedicated synchronizers. Multi-node BFT peer networks and advanced backend options are covered under [Configure Sequencer Backend](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#configure-sequencer-backend).

## Prerequisites

Before you begin:

* Familiarity with [Canton's synchronizer architecture](https://docs.canton.network/overview/reference/synchronizer-overview.md)
* **PostgreSQL 14+** — separate databases for sequencer and mediator; for production, a managed service with automated backups, at least **4 vCPUs / 16 GB memory**, and SSD-backed storage
* **TLS certificates** for the sequencer **public API** (validators connect here)
* The Canton 3.5 release (`canton-open-source-3.5.<patch>.tar.gz` from [Canton releases](https://github.com/digital-asset/canton/releases)) for the sequencer and mediator
* Shell access to the host that runs the sequencer and mediator, for the **Canton Console**

## 1. Configure APIs, backend, and TLS

Write configuration **before** starting nodes. At minimum you need:

1. **Sequencer and mediator APIs** — public and admin ports/addresses ([Configure Synchronizer APIs](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#configure-synchronizer-apis))
2. **Sequencer backend** — `sequencer.type = BFT` for the default path ([Configure Sequencer Backend](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#configure-sequencer-backend))
3. **TLS** on the sequencer public API ([Secure Synchronizer APIs](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#secure-synchronizer-apis))
4. **Storage** — Postgres for each node (next section)

Save this configuration as `synchronizer.conf` and fill in each node's Postgres connection from [step 2](#2-set-up-databases). The public API listens on `127.0.0.1` unless you set `address`, so validators on other hosts need `address = "0.0.0.0"` (or a specific interface):

```scala theme={"theme":{"light":"github-light","dark":"github-dark"}}
canton {
  sequencers {
    sequencer1 {
      storage.type = postgres
      // ... postgres connection ...
      public-api {
        address = "0.0.0.0"
        port = 5001
        // TLS: see Secure Synchronizer APIs
      }
      admin-api.port = 5002
      sequencer.type = BFT
    }
  }

  mediators {
    mediator1 {
      storage.type = postgres
      // ... postgres connection ...
      admin-api.port = 5202
    }
  }
}
```

For peers, endpoint authentication, dedicated BFT storage, external sequencers, and client authentication, use the operations reference — do not expand this tutorial into those variants.

## 2. Set up databases

Create separate PostgreSQL databases and dedicated users, for example `sequencer_db` / `sequencer_user` and `mediator_db` / `mediator_user`. Each node stores its own state independently.

Point the sequencer and mediator storage configuration at those databases before you start the nodes.

## 3. Deploy and start sequencer and mediator

Download the Canton 3.5 release (`canton-open-source-3.5.<patch>.tar.gz`) from [Canton releases](https://github.com/digital-asset/canton/releases) and unpack it. From the unpacked directory, start both nodes with the configuration from [step 1](#1-configure-apis-backend-and-tls):

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
./bin/canton daemon --config synchronizer.conf
```

This runs the sequencer and mediator in one process. To run them as separate processes, put each node's block in its own file (each wrapped in `canton { }`) and start one `daemon` per file.

> [!NOTE]
>
> The published `canton-sequencer` and `canton-mediator` Docker images ship with their own built-in configuration (node names, ports, manual identity initialization, and the database sequencer backend), so this guide's configuration doesn't apply to them unchanged. See [Canton Docker Operations](https://docs.canton.network/global-synchronizer/deployment/docker.md).

### Open a Canton Console

Bootstrap runs in a Canton Console that reaches the nodes' admin APIs. The admin APIs in `synchronizer.conf` listen on `127.0.0.1` by default, so run the console on the same host. Save this as `remote.conf`:

```scala theme={"theme":{"light":"github-light","dark":"github-dark"}}
canton {
  remote-sequencers {
    sequencer1 {
      public-api {
        address = "localhost"
        port = 5001
      }
      admin-api {
        address = "localhost"
        port = 5002
      }
    }
  }
  remote-mediators {
    mediator1 {
      admin-api {
        address = "localhost"
        port = 5202
      }
    }
  }
}
```

If you enabled TLS on the public API, add the matching client TLS settings to `public-api` in this file. Then start the console:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
./bin/canton --config remote.conf
```

### Confirm nodes are healthy

Before bootstrap:

* The sequencer and mediator processes are running
* Sequencer health endpoint returns HTTP 200 (when exposed)
* `nodes.remote.foreach(_.health.wait_for_running())` returns in the console

## 4. Bootstrap (initialize) the synchronizer

Nodes must be **fresh** (not previously initialized), **started**, and already configured with backend, APIs, TLS, and storage.

In the console you opened in [step 3](#open-a-canton-console) (default **centralized** bootstrap — single owner, threshold 1):

```scala theme={"theme":{"light":"github-light","dark":"github-dark"}}
@ bootstrap.synchronizer(synchronizerName = "my-private-sync", sequencers = Seq(sequencer1), mediators = Seq(mediator1), synchronizerOwners = Seq(sequencer1), synchronizerThreshold = PositiveInt.one, staticSynchronizerParameters = StaticSynchronizerParameters.defaultsWithoutKMS(ProtocolVersion.forSynchronizer))
    res1: PhysicalSynchronizerId = PhysicalSynchronizerId(
      logical = SynchronizerId(
        uid = UniqueIdentifier(
          identifier = String185(str = "my-private-sync"),
          namespace = Namespace(fingerprint = 122032922613...)
        )
      ),
      serial = NonNegativeNumeric(value = 0),
      protocolVersion = 36
    )
```

This creates the synchronizer identity and registers the sequencer and mediator in the synchronizer topology. You should see a physical synchronizer id for `my-private-sync` (or the name you chose).

Other bootstrap flows (do not inline here):

* [Decentralized synchronizer](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#set-up-a-decentralized-synchronizer)
* [Decentralized with a subset of sequencers as owners](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#set-up-a-decentralized-synchronizer-with-a-subset-of-sequencers-as-owners)
* [Permissioned synchronizer](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#bootstrap-a-permissioned-synchronizer)

Full bootstrap reference: [Bootstrap a Synchronizer](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#bootstrap-a-synchronizer).

## 5. Connect validators

Once the synchronizer is initialized, connect each validator (participant). On the Canton Console:

```scala theme={"theme":{"light":"github-light","dark":"github-dark"}}
@ participant1.synchronizers.connect_local(sequencer1, "my-private-sync")
```

> [!NOTE]
>
> This command works when the same console manages the sequencer and the validator. A validator run by another organization connects by URL instead; see [Connect to a Sequencer by URL](https://docs.canton.network/global-synchronizer/extension-synchronizers/linking-validator-multi-sync.md#connect-to-a-sequencer-by-url).

Or configure the connection in the validator's Helm values:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
extraDomains:
  - alias: "my-private-sync"
    url: "https://sequencer.example.com:5001"
```

`extraDomains` accepts only `alias` and `url`. If the sequencer's TLS certificate isn't signed by a CA the Java runtime trusts by default, connect from the console with `connect(..., certificatesPath = ...)` instead.

Use a stable **alias** (here `my-private-sync`) consistently in console and Helm. After changing connection config at runtime, disconnect and reconnect the synchronizer on the participant so the update takes effect.

For validators that also stay on the Global Synchronizer, see [linking a validator to multiple synchronizers](https://docs.canton.network/global-synchronizer/extension-synchronizers/linking-validator-multi-sync.md).

## 6. Verify the deployment

Work through this checklist:

1. **Sequencer health** — HTTP health endpoint returns 200
2. **Mediator in topology** — Mediator is registered on the synchronizer
3. **Participant connected** — `participant.synchronizers.list_connected()` shows your alias
4. **Ping** — Participant can ping across the synchronizer (see bootstrap examples in [Synchronizer Operations](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#set-up-a-centralized-synchronizer))
5. **Optional smoke test** — Allocate a test party and create a contract assigned to the dedicated synchronizer

## Production hardening and next steps

* **TLS everywhere** — Validators to sequencer public API; prefer TLS for peer and admin paths in production ([Secure Synchronizer APIs](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#secure-synchronizer-apis))
* **Network policies** — Restrict sequencer endpoint access to known validator networks
* **Monitoring** — [Synchronizer monitoring](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-monitoring.md); reuse your validator metrics stack where possible
* **Backups** — Back up sequencer and mediator databases regularly ([Backup and Restore](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#backup-and-restore))
* **HA** — [High Availability in Synchronizer](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#high-availability-in-synchronizer)
* **Traffic management** — If you enable traffic controls on a dedicated synchronizer, see [Sequencer Traffic Management](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#sequencer-traffic-management)
* **Pruning** — [Synchronizer Pruning](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md#synchronizer-pruning)

## Related reference

* [Dedicated Synchronizers](https://docs.canton.network/global-synchronizer/extension-synchronizers/dedicated-synchronizers.md) — Why and when to use them
* [Hybrid Synchronizer Pattern](https://docs.canton.network/global-synchronizer/extension-synchronizers/hybrid-synchronizer-pattern.md) — Dedicated + Global Synchronizer
* [Linking Validators](https://docs.canton.network/global-synchronizer/extension-synchronizers/linking-validator-multi-sync.md) — Multi-synchronizer participants
* [Synchronizer Operations](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-operations.md) — Configure, bootstrap variants, HA, traffic, pruning, backup
* [BFT Orderer Architecture](https://docs.canton.network/global-synchronizer/extension-synchronizers/bft-orderer.md) — Ordering backend background
* [Synchronizer Monitoring](https://docs.canton.network/global-synchronizer/extension-synchronizers/synchronizer-monitoring.md) — Observability
