Hyperledger Fabric high availability

Hyperledger Fabric high availability depends on how ordering consensus, orderer placement, peer redundancy, Fabric CA and backups fit together. This page covers the decisions, build sequence, effort drivers and tests to verify failover.

On this page

Hyperledger Fabric high availability: what fails and when

A consortium Fabric network stays available only while enough ordering nodes, endorsing peers, certificate authorities and recoverable backups survive at the same time. Ordering consensus is the first limit: Fabric documents the Raft ordering service as crash fault tolerant, and it keeps working while a majority of its nodes are available. In the five node example, a Raft cluster tolerates the loss of two nodes, so a third failure halts ordering even though the network still has most of its infrastructure. Availability is therefore layered: ordering consensus, orderer placement across organizations and sites, peer redundancy per organization, clustered Fabric CA, and ledger and MSP backups that have been restored in practice. A weak point in any one layer can stop transactions, even when the others look healthy.

The harder part is that these failure domains belong to different organizations. Each member usually runs its own orderers, peers and CA, in its own cloud account or data center, and each follows its own change windows and on-call rota. The node counts that set your fault tolerance are governance decisions made during consortium design, not infrastructure defaults. If one member hosts two of five orderers in a single site, a site outage can break the majority even though the design looks balanced on paper. Before go-live, confirm in writing which organization hosts each orderer, which sites and failure zones they sit in, who can authorize a node replacement, and how quickly each member can respond to an outage at its own node. Fabric v3.0 adds a BFT ordering service based on SmartBFT, which has different node-count rules; the sizing and trade-offs are covered in the ordering section below.

Which Fabric components need redundancy and why

A Fabric network stays available only while enough of each component is running. Ordering nodes, peers, certificate authorities, key and ledger material, and the operations service each fail differently when they are missing. Plan redundancy for each one separately rather than assuming that adding nodes in one place covers the others.

Ordering service nodes

The ordering service sequences transactions into blocks for every channel. With the Raft ordering service, a cluster keeps working while a majority of its nodes are available, so a five node cluster tolerates the loss of two nodes. Losing majority halts ordering for all channels, even when peers are healthy. With BFT ordering (SmartBFT, introduced in v3.0), the cluster tolerates failures of up to, but not including, one third of nodes. Confirm node counts with your consensus choice before you size the cluster.

Ordering service docs

Peer nodes per organization

Peers endorse transactions, commit blocks and hold a copy of the ledger for their organization's channels. If an organization runs a single peer, its applications lose endorsement and query access during any outage of that peer. Gossip also depends on peers being reachable to share blocks. Run more than one peer per organization, spread across failure domains, and confirm that client applications can fail over between them.

Fabric CA servers and shared database

Fabric CA issues enrollment certificates, handles renewal and revocation, and generates certificate revocation lists. The default SQLite database is a single file tied to one server. For clustering, use PostgreSQL or MySQL so that several CA servers share one database behind a load balancer such as HAProxy. Without this, a CA host failure stops new enrollments and renewals, and the database becomes the single point to protect.

Fabric CA user guide

Ledger and MSP material backups

The ledger holds the committed history of each channel, and MSP material holds the identities and keys that peers and orderers use to sign and authenticate. Replicated nodes do not replace a backup, because a bad configuration or upgrade can propagate to every copy. The Fabric upgrade guide requires a backup of the ledger and MSPs before any upgrade step. Test restores on a separate host and record which keys sit in an HSM, since those keys must be recovered through the HSM itself.

Upgrade guide

Operations service for detecting node loss

Each peer and orderer exposes a health check, log level control, version information and metrics. The operations service lets you see a node drop out of the cluster before channel traffic stalls. Expose it only over mutual TLS with client certificates, and scrape the Prometheus metrics endpoint or push StatsD metrics to your monitoring system. A node that is down without an alert is a redundancy gap you will not see until a second failure occurs.

Operations service docs

Raft or BFT ordering, and how many nodes each needs

This table compares the ordering options available on each Fabric line, with the fault tolerance and operating cost of each. Read it by first choosing the release line, then checking which consensus options that line offers and how many orderers you can afford to run across organizations and sites. The main takeaway is that Raft is the documented default for most production networks, while BFT adds node count and operational complexity in exchange for tolerating Byzantine (arbitrary) faults.

OptionWhen it fitsWhat it costs operationally
Raft (crash fault tolerant), 2.5 LTS or 3.xDefault for most permissioned consortia where members trust the orderer operators to behave correctly but need tolerance for crashes and restarts. Recommended in the Fabric docs.Keeps working while a majority of nodes is available. A five-node cluster tolerates the loss of two nodes. Orderers must be spread across failure domains, and each added node adds replication and monitoring load.
BFT ordering (SmartBFT), 3.x only, added in v3.0Consortia that need tolerance for malicious or compromised orderer operators, not only crashes, and that accept a larger and more complex orderer set.Tolerates failures of up to, but not including, one third of ordering nodes. Confirm the minimum BFT node count and the maturity of BFT for your exact 3.x version in the official docs before you size the cluster.
Choice of Fabric line (2.5 LTS or 3.x)Teams that need a long-term production baseline should weigh 2.5 LTS. Teams that need BFT or 3.x features must move to 3.x.2.5 LTS is the documented long-term support line, and 3.x receives patch releases in parallel. Moving to 3.x determines whether BFT is available at all.
Kafka orderingNot an option for new networks. Existing Kafka networks must migrate to Raft before upgrading to v3.0.Removed in v3.0, so the migration is a required step, not a choice. Plan the migration window and channel validation as part of the upgrade.
Solo orderingDevelopment and test only in earlier releases. Not available in v3.0.Removed in v3.0. Do not use it as a stand-in for high availability testing, and move test environments to Raft.
Orderer placement across organizations and sitesApplies to both Raft and BFT. Spreading orderers across organizations and sites determines whether a single outage or a single operator can stop ordering.Each site adds network, storage and certificate work. Confirm with your network team the latency and failure domain assumptions your chosen consensus option requires.

How orderers, peers and Fabric CA spread across sites

The layout starts with client applications submitting transactions to peers in each organization, which endorse them and gossip blocks to other peers. Endorsed transactions go to an ordering cluster whose nodes are spread across two or more organizations or sites, so no single failure removes the majority. Each organization's identities come from a clustered Fabric CA that shares one database behind a load balancer, and backup stores hold ledger and MSP copies. Check that no single site holds a majority of orderers, that every organization has more than one peer, and that CA and backup paths survive the loss of one site. This is one illustrative layout, not a prescribed topology.

Illustrative layout of trust boundaries, ordering, peers, CA and backups, not a prescribed topology.

Spreading orderers across organizations and sites

Orderer placement matters more than the raw number of orderers. A Raft cluster keeps ordering only while a majority of its nodes are available, so the question is whether one data center, one cloud account or one organization's administrative control can take out enough orderers to break that majority. If all orderers sit in one site or under one member's administration, a single outage or a single dispute over access can stop every channel at once, however many nodes the cluster has. Consortium members should agree in writing which organizations host orderers, in which sites, and who can change orderer configuration, before any node is deployed.

Work through the failure cases with the consortium's agreed layout. With five Raft orderers, the cluster tolerates the loss of two nodes, as the Fabric docs describe for crash fault tolerance. The layout fails when a site outage removes more nodes than that. For example, an illustrative even split of four orderers across two sites leaves two nodes in each site; losing either site leaves exactly half the cluster, which is not a majority, so ordering stops. Spreading across three sites, or using an odd number of orderers distributed so that no single site holds a majority, avoids that trap. Confirm the exact Raft quorum behavior, and the BFT sizing rules introduced with v3.0, against the Fabric ordering service documentation before fixing the layout.

Peer redundancy is set per organization, and it must hold up during an outage. Each member should run enough peers that endorsement and query traffic keeps flowing when one peer, or one site, is down. The practical check is to take each endorsing organization offline in a test environment and confirm that the channel's endorsement policy can still be satisfied by the remaining organizations. If a policy requires signatures from two organizations and one of them has a single peer in one data center, a routine outage can halt transactions even though the network is otherwise healthy. Ask each member to document its peer count, locations and the policy combinations that survive one failure, and have the consortium sign off on that map together with the orderer layout.

How to build a highly available Fabric network step by step

This sequence takes a permissioned Fabric network from agreed consensus and node placement to tested failover, with a check that closes each stage. It produces an ordering cluster, redundant peers, a clustered Fabric CA and restorable backups that the team has proven on a separate host.

  1. Agree ordering consensus and node placement

    Consortium members agree in writing on the consensus type, Raft or BFT, the number of ordering nodes, and which organization and site hosts each one. Raft tolerates the loss of a minority of nodes, so a five node cluster survives two failures, while BFT ordering in Fabric v3.0 tolerates failures of up to, but not including, one third of ordering nodes. Confirm that no single organization or data center holds enough nodes to stop the network alone. This step is closed when the placement map and failure assumptions are signed off by every member.

  2. Deploy the ordering cluster and confirm quorum

    Deploy the orderers with the agreed consensus, using the Raft ordering service recommended in the Fabric documentation unless BFT was chosen for a specific reason. Start the nodes, join them to the system and application channels, and confirm that a leader is elected and that every node reports the same ledger height. Stop one node at a time and check that the cluster keeps accepting transactions while a majority remains. This step is closed when leader election is visible in the logs and the cluster accepts transactions with one node down.

  3. Deploy redundant peers per organization

    Each organization runs at least two peers, placed on separate hosts or sites where possible, and each peer joins the channels it needs. Confirm that gossip distributes blocks to every peer, including ones that were offline and rejoined. Then run a test transaction through each peer's organization and check that endorsement succeeds with another peer of the same organization stopped. Ask your platform team which anchor peer settings and gossip bootstrap peers they will use. This step is closed when every peer has the same block height and endorsement succeeds from each organization.

  4. Cluster Fabric CA on a shared database

    Fabric CA supports SQLite by default, but a highly available setup needs PostgreSQL or MySQL as a shared backend so that several CA servers can use the same identity and certificate data. Place the CA instances behind a load balancer such as HAProxy, as the Fabric CA user guide describes, and point each instance at the same database. Confirm the health of each CA instance directly, then enroll a test identity through the load balancer and through each instance separately. Check that a certificate issued by one instance can be renewed or revoked through another. This step is closed when enrollment succeeds through any instance and the load balancer.

  5. Set up ledger and MSP backups

    Back up the ledger and the MSP directories on every orderer and peer, and back up the CA database on a schedule your operations team sets. The Fabric upgrade guide's first step, backing up the ledger and MSPs, applies here too, so the same backup procedure should run before any future upgrade. Store copies outside the host that produced them and record which keys and certificates they contain. Encrypt backups and restrict who can read them, because MSP material includes private keys unless it sits in an HSM. This step is closed when backup jobs have run and their files are listed with checksums in your operations record.

  6. Confirm a restore on a separate host

    Restore a peer and an orderer from the latest backups onto a separate host that is not part of the live network, using a staging copy of the configuration. Check that the restored node starts, reports the expected ledger height, and reconnects to its channels without forking the chain. Also restore the CA database into a test instance and confirm that identities can authenticate. Record the steps and any manual fixes so the runbook is accurate. This step is closed when the restored nodes match the source ledger height and the restore procedure is written down.

  7. Run the failover tests

    With the cluster, peers, CA and backups in place, run the failover tests described in the verification section. Stop orderers, peers and CA instances in controlled sequences and record how the network behaves, including how long clients take to recover. Compare the results against the failure assumptions agreed in the first step. Anything that falls short becomes a fix, followed by a retest. This step is closed when every planned failure has a recorded result and each gap has either a fix or a documented accepted risk.

How the layout changes by environment

A single site with one cluster suits a pilot or a case where one data center is the only place the consortium can host nodes. Every orderer, peer and CA sits in the same failure domain, so a power, network or facility event can stop the whole network regardless of how many nodes exist. Raft remains the recommended ordering service, and it keeps ordering running only while a majority of its nodes are available, so the node count matters less than whether those nodes can fail independently.

  • Availability ceiling: Losing the site is a network-wide outage, so the design can protect against node failure but not site failure.
  • Raft quorum: A five node Raft cluster tolerates the loss of two nodes, but those nodes should not share a rack, power feed or hypervisor host.
  • Peer redundancy: Run more than one peer per organization so endorsement and gossip continue when one peer is down.
  • CA and backups: Run a clustered Fabric CA with a shared database where supported, and store ledger and MSP backups off the cluster's storage.
  • Upgrade windows: Rolling upgrades still need spare capacity, so confirm how many nodes can be taken out of service at once.

Confirm with the consortium whether a single site is a permanent decision or a stepping stone, and with the infrastructure team which failure domains the site actually has.

What drives the effort and cost of high availability

This table lists the design choices that most change the effort and cost of a highly available Fabric network, with how each raises work and how to keep it down. Read the one-time rows as build work that happens once and the recurring rows as the operating load that continues for the life of the network. The main takeaway is that placement decisions made early, especially across organizations and sites, are the hardest to change later.

DriverHow it raises effort or costHow to keep it down
Number of member organizations (one-time and recurring)Each organization runs its own peers, orderers or CA, MSP administration and key handling. Coordination grows with every member, and each adds an operations team to the on-call rota.Limit the initial consortium to members who need to endorse or order. Agree a standard node runbook so each member's work is identical and repeatable.
Number of orderers and peers (recurring)Raft needs a majority of orderers to stay available, so five nodes tolerate two failures but also means five sets of certificates, storage, upgrades and monitoring. BFT ordering adds further node count and tuning.Size the orderer count to the failure modes you must survive, not to the number of members. Standardize node images and configuration so each added node is a repeatable change.
Number of sites and network links between them (one-time and recurring)Orderers spread across sites need reliable, low-latency links and separate failure domains. Each site adds network design, firewall rules for mutual TLS traffic, and failover testing across the links.Confirm the latency and link redundancy each site pair can carry before choosing placement. Keep the number of sites that must reach consensus as small as the design allows.
Fabric CA layout and database (one-time and recurring)Several CA servers sharing a database behind a load balancer such as HAProxy need a database that is itself highly available, load balancer configuration, and CA backups. The default SQLite backend is not suited to shared multi-server use, so a PostgreSQL or MySQL backend adds a database to operate.Choose one database platform the organization already operates and backs up. Document which CA servers serve which roles and test a CA server failover before go-live.
HSM use for MSP keys (one-time and recurring)Fabric uses PKCS#11 to keep peer and orderer MSP keys in an HSM, which adds HSM procurement, partition setup, and HSM redundancy per site. The prebuilt Docker images are not built with PKCS#11, so a custom image must be built, tested and rebuilt for each Fabric upgrade. TLS keys must remain file-based, so two key-handling paths must be documented and reviewed.Decide early whether MSP keys must sit in an HSM under your policy. If so, budget for a custom image build and pipeline, and confirm the HSM vendor's PKCS#11 support and its redundancy model with that vendor.
Backup storage and restore testing (one-time setup, recurring operation)Fabric's upgrade guide starts with backing up the ledger and MSPs. Backups must be taken on every node, stored in separate locations, and restored on a schedule. Restore tests take staff time and temporary capacity, and they are often skipped under deadline pressure.Automate ledger and MSP backups with the same schedule across nodes. Run a restore test into a non-production environment after each major change and record the time it takes.
Governance time for agreeing placement (one-time, with recurring change control)Each member must agree on the number of orderers, which organization hosts each node, which sites are used, and who pays for each. Disagreements delay design and can force a rebuild. Later changes to placement need the same agreement and a documented change.Put placement, failure tolerance and cost split in a written consortium decision before build starts. Use a standard change template so that adding or moving a node does not reopen the whole design.
Certificate operations and upgrade cycles (recurring)Enrollment and TLS certificates for every orderer, peer and CA must be renewed, and revocations must be distributed. More nodes and more organizations mean more expiry dates to track, and each Fabric upgrade adds rolling orderer and peer changes plus channel capability updates.Keep one inventory of certificate expiry dates per node. Schedule rolling upgrades one node at a time, with a backup taken before each step, and confirm the recovery procedure before starting.

Securing the high availability paths

Redundant orderers, peers and certificate authorities only help if the paths between them stay authenticated, administered by the right members and recoverable. The cards below cover the controls that connect those components and the material you must protect while the network stays available.

Mutual TLS between all parties

Orderers, peers and client applications should authenticate each other with mutual TLS, so every connection in the ordering and gossip paths proves who is on the other end. Check that every orderer-to-orderer, peer-to-orderer and client-to-peer connection requires a client certificate, and that no node falls back to one-way TLS during a failover. A single unauthenticated endpoint can undermine an otherwise redundant design.

Ordering service docs

Keep TLS keys file-based

MSP signing keys can sit in an HSM through PKCS#11, but TLS keys must stay file-based. Plan for that split from the start, because it determines how TLS key material is stored, rotated and restored after a node is rebuilt. Confirm with your HSM vendor and your own image build process that the PKCS#11 capability is present in any custom images you use, since the prebuilt Docker images do not include it.

HSM docs

Lock down operations service endpoints

Health checks, log level changes, version output and metrics all run through the operations service. Secure these endpoints with mutual TLS client certificates and restrict which networks can reach them, because a load balancer or monitoring system that polls /healthz should not also be able to change log levels. Ask your team to document which clients hold operations certificates and how those certificates are rotated.

Operations service docs

Separate orderer administration across members

Each orderer in a multi-organization cluster should be run and administered by the member that owns it, with channel and consenter changes governed by the consortium's agreed policies. Concentrating administrative control in one member recreates a single point of failure even when the infrastructure is spread across sites. Agree in writing who may add or remove consenters, who approves configuration updates and who holds emergency access.

Protect ledger and MSP backups

The backups taken before upgrades and for disaster recovery contain ledger data and MSP material, which is sensitive in its own right. Store them encrypted, restrict who can restore them and keep copies in a location separate from the production nodes they protect. Test a restore on a non-production environment, because a backup that has never been restored is an unverified control.

Upgrade guide

Restrict Fabric CA database and load balancer

Clustered Fabric CA servers share a database behind a load balancer, so that database and the balancer become high-value targets. Limit network access to the database to CA servers only, use authenticated database connections and restrict administrative access to the balancer. Confirm which database backend and balancer your design uses, and document how identity records are backed up and recovered.

Fabric CA user guide

How to test that the network keeps working and fails safely

Before go-live and again after every upgrade, run a scripted set of failure tests against a staging copy of the network and record the outcome of each one. The first test stops a single orderer and confirms that the Raft cluster keeps ordering transactions and that the remaining nodes still report a healthy /healthz status. The second test stops enough orderers to break the majority. The pass condition is not that transactions succeed, but that the network halts without producing a divergent chain: no orderer should keep cutting blocks on its own, and the surviving nodes should report that they cannot reach quorum. Use the operations service metrics to confirm the state, and keep the logs from each node as evidence for the test record.

The third test stops one peer in each organization and confirms that transactions still endorse and that queries still return results, provided the endorsement policy can be satisfied by the peers that remain. Test a transaction that needs endorsements from several organizations, not only one, because that is where a single missing peer blocks writes. The fourth test takes one Fabric CA instance offline and confirms that a new enrollment succeeds through another instance sharing the same database behind the load balancer. The fifth test restores a ledger and MSP backup onto a separate host and confirms that the peer starts, catches up through gossip and reports the expected block height. For each test, record the start and end time, the expected and observed result, the metrics and health output relied on, and the exact recovery steps used. Confirm the recovery steps with your own runbook, since the timing and tooling depend on your environment.

How much does Hyperledger Fabric high availability cost and take?

What drives the cost of Hyperledger Fabric high availability, and is it one-time or recurring?

The cost is driven mainly by how many organizations join, how many orderer and peer nodes each one runs, how many environments you maintain, and whether HSMs and a clustered Fabric CA are included. Most of the spend is split between one-time design and build work (architecture, channel and policy design, deployment, testing and cutover) and recurring work (node hosting, monitoring, certificate renewals, backups, patching and upgrades). Fabric itself is Apache 2.0 with no license fee, so the money goes to infrastructure, staff and services. Ask any quote to separate one-time and recurring lines, and to name who pays for each node in a consortium.

Is Raft or BFT ordering cheaper to run for high availability?

Raft is usually cheaper to run because the Fabric documentation recommends it, it is crash fault tolerant, and it needs fewer nodes for the same failure budget. BFT ordering, added in Fabric v3.0 on SmartBFT, protects against malicious or arbitrarily faulty orderers, but it requires more nodes and more careful operation, so it adds hosting, monitoring and staff effort. Choose BFT only when your governance model genuinely requires tolerance of faulty members. Ask a partner to price both options from the same written architecture so the difference is visible.

How many orderers should a consortium plan for with Raft or BFT?

Plan for the number of failures you must survive. Raft keeps working while a majority of nodes are available, and the supplied guidance notes that a five node Raft cluster tolerates the loss of two nodes. BFT ordering tolerates failures of up to, but not including, one third of ordering nodes, so you need more nodes than Raft for the same count of tolerated faults. Spread orderers across organizations and sites so that one member or one data center failure does not remove the majority. Confirm the exact node counts for your chosen version with the current Fabric ordering service documentation before you fix the design.

Can an internal team build Hyperledger Fabric high availability without a partner?

Yes, many teams do, provided they have people who can run each part of the design. The work needs skills in Fabric channel and chaincode lifecycle, Raft or BFT consensus operations, TLS and MSP certificate handling, Fabric CA administration with a shared database and load balancer, backup and restore of ledgers and MSPs, and monitoring through the operations service. It also needs someone who can coordinate with other member organizations. Check whether your team has run a multi-organization network through a failed orderer, a certificate expiry and a rolling upgrade before committing to build it alone.

What does the work need from each member organization?

Each member must make governance decisions and provide infrastructure. Governance covers who runs which orderer and peer, the endorsement and channel policies, who holds admin rights, and how disputes and certificate revocations are handled. Infrastructure covers hosts or cloud accounts in each organization, network paths between sites, DNS and TLS endpoints, and HSMs if MSP keys must be held there. Members also need backup storage for ledgers and MSPs, with a defined retention period and access rules. Agree these items in writing before scope is fixed, because delays in any one organization slow the whole network.

How do I ask a partner for a fixed-scope quote for Fabric high availability?

Ask for a written scope that lists the organizations, orderers, peers and Fabric CA servers in the design, the consensus type and node count, the sites and hosting environments, the HSM and backup decisions, and the environments included (for example development, test and production). Ask which deliverables you receive, such as architecture documents, runbooks, tested failover results and handover training, and which items are excluded. Ask for one-time and recurring costs separately, the assumptions behind each, and what changes the quote, such as adding an organization or moving to a new major release. Fixed-scope agreements are normally signed before work starts, so confirm acceptance criteria for each phase.

How DeployOpen scopes, builds and hands over Fabric HA

DeployOpen plans, implements, hardens, documents and supports self-hosted Hyperledger Fabric networks inside the client's own infrastructure. For high availability, the work starts with a written scope that fixes the ordering topology, peer redundancy, Fabric CA clustering and backup design before any node is deployed.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • The written scope names the ordering model, orderer count per organization and site, and the failure cases the design must survive.
  • Scope also covers peer redundancy per organization, clustered Fabric CA databases, and backup targets for ledgers and MSPs.
  • Each scope item should state who owns hosting, DNS, certificates and on-call duties for each member organization.

How we build

  • Build deploys Raft orderers across the agreed organizations and sites, with each orderer on separate infrastructure.
  • Peers are deployed in pairs or more per organization, with anchor peer and gossip settings reviewed against the topology.
  • Fabric CA servers are placed behind a load balancer and share a database backend, with TLS and MSP keys handled as scoped.
  • Operations service endpoints are secured with mutual TLS and wired to the monitoring stack the client already runs.

How we hand over

  • Handover includes runbooks for orderer and peer failover, Fabric CA recovery, and ledger and MSP restore steps.
  • Failover tests are run and recorded, including stopping an orderer, losing a peer and restoring from a backup.
  • Documentation maps each node to its owning organization, host, certificate expiry date and backup location.
  • The client receives the configuration, network diagrams and test results needed for internal and external reviews.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover rolling orderer and peer upgrades, channel capability updates and periodic backup restore tests.
  • Confirm in the quote whether on-call response, certificate renewal and version tracking are included or billed separately.
  • DeployOpen prepares systems and evidence for compliance assessments, but independent auditors issue any audit reports.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.