Tuning Hyperledger Fabric Raft orderer settings: when your team needs it
Tune Raft orderer settings only when a measured problem or a planned capacity change justifies a controlled change window. Fabric documentation recommends the Raft ordering service because it is crash fault tolerant: it keeps processing transactions while a majority of its consenters are available. A five node Raft cluster therefore tolerates the loss of two nodes, and a three node cluster tolerates one. Timing and storage changes touch that majority logic directly, so they belong in a written change plan with a rollback path, not in routine maintenance.
Most Raft parameters, including the tick and election settings, are part of the channel configuration and are shared by every consenter. Changing them means a config update that all orderers must agree on, and a mismatch between nodes can destabilize leader election. The exception is snapshot frequency: SnapshotIntervalSize is the only Raft option the Fabric documentation says you can adjust at runtime. Confirm the current behavior of each setting in the Fabric Raft configuration docs for your release line before you plan the change.
Before you touch any value, record the current settings on every orderer, confirm that all nodes are healthy and that a majority is online, and take a backup of the ledger and MSP material. Decide where WALDir and SnapDir will live and whether the target disks have room for write-ahead logs and snapshots under peak load. Test the planned values in a non-production network that matches your consenter count and channel layout. Ask your team to name who approves the change and who can reverse it if leader elections become frequent after the restart.
Raft orderer settings and when each one fits
This table compares the five Raft orderer settings covered on this page: what each controls, whether it can change at runtime, and the situation where it is the right lever. Read the runtime column first, because only one of these settings can be changed without a planned restart and coordination across nodes. The main takeaway is that most tuning work should start with storage placement and snapshot frequency, and timing values should stay untouched unless you have a measured reason.
| Setting | What it controls and runtime behavior | When it is the right lever |
|---|---|---|
| WALDir | Location of the etcd/raft write-ahead log. Set per orderer node. Changing it means moving existing data, so treat it as a deployment-time choice. | Disk layout changes, such as placing the log on a faster or dedicated volume during node build or replacement. |
| SnapDir | Location of Raft snapshots. Set per orderer node. Like WALDir, moving it is a maintenance task, not a live tweak. | Separating snapshot storage from the log, or relocating snapshots when a volume fills and capacity must be added. |
| TickIntervalOverride | Length of one Raft tick. Must match across all consenters in the cluster. Changing it without care can destabilize leader election and replication. | Rarely justified. Consider it only when network latency between sites is well outside the defaults and you have tested the effect across every node. |
| ElectionTick | Number of ticks a follower waits without hearing from the leader before starting an election. Its effect depends on the tick interval, so review it together with TickIntervalOverride. | Tuning leader failover speed for a cluster spread over high-latency links, where elections should wait longer before triggering. |
| SnapshotIntervalSize | Number of bytes of log data written before a snapshot is taken. This is the only Raft option adjustable at runtime. | Controlling log growth and recovery time when channels carry heavy transaction volume and disk use rises faster than expected. |
How tick interval and election tick govern leader failover
ElectionTick is the number of ticks a follower waits without hearing from the leader before it starts an election. On its own, that number means nothing. The tick interval converts it into elapsed time: each tick is one period of the Raft logic's internal clock, so the time a follower waits before calling an election is roughly the election tick multiplied by the tick interval. When you tune failover speed, you are really tuning that product. Faster detection of a dead leader means a shorter wait, but a shorter wait also means followers may give up on a leader that is merely slow, so the two values have to be chosen together and reviewed together.
Every consenter in a channel must agree on the tick interval. Raft nodes compare their timers against each other through the leader's heartbeats, so a node with a different tick interval effectively runs on a different clock. If one orderer ticks much faster than its peers, it can time out and start elections while the leader is still healthy, which causes spurious elections and leadership churn. If one orderer ticks much slower, it detects a real leader failure late, which slows failover for the whole channel. Both problems are hard to see in normal operation and usually appear only under load or during a node restart. Fabric's own configuration guidance warns that TickIntervalOverride should be set only with great care for this reason.
Before you change either value, confirm the effective tick interval and election tick on every consenter in the channel configuration, not just on the node you are editing. Check that the values match across all orderers, and record the reasoning for the choice so that a future change to one node is caught in review. Test failover in a non-production network by stopping the leader and measuring how long the channel takes to elect a new one, then repeat under representative load. The Fabric Raft configuration documentation is the reference for these settings and should be read alongside your own test results.
Risks of mismatched Raft values across consenters
Raft settings only work when consenters agree on them, and several of the most damaging mistakes come from one node drifting from the rest. The cards below name the symptom to watch for and the check that confirms or rules out each risk before and after a change.
Mismatched tick interval override
The TickIntervalOverride value sets how often each consenter's Raft clock advances. If one node runs a different tick interval from the others, timing-based decisions such as heartbeats and elections no longer line up across the cluster. Check the effective value on every orderer in the consenter set, and treat any override as a deliberate, documented exception rather than a tuning default. Compare the value in each node's configuration file before and after any change.
Raft configuration docsElection timeouts too short
ElectionTick controls how many ticks a follower waits without hearing from the leader before it starts an election. When this value is small relative to the network latency between data centers or cloud zones, followers can time out during normal delays and call elections repeatedly. The symptom is frequent leader changes in orderer logs with no node failure. Check leader churn over time and measure round-trip latency between consenter hosts before lowering the value.
WAL and snapshot on slow storage
WALDir and SnapDir decide where etcd/raft writes its write-ahead log and snapshots. Raft commits wait on these writes, so a slow disk, a network file system or a volume shared with other workloads can delay consensus on every channel the orderer serves. The symptom is rising commit latency and orderer log warnings about slow disk operations. Confirm each directory sits on dedicated local storage with the latency and throughput your channel volume needs.
Snapshot interval outgrowing disk
SnapshotIntervalSize sets how much data accumulates before Raft takes a snapshot and trims older log entries. A large interval lets the WAL grow faster than the disk can absorb, especially on busy channels with large transactions. The symptom is steady disk growth in the WAL directory between snapshots. Estimate WAL growth from your current throughput, then confirm the interval keeps the directory within the free space you have set aside for it. This is the one Raft option you can change at runtime.
Changing one node only
Raft settings are read per node, so editing a value on one orderer and leaving the others unchanged creates a cluster whose members disagree about timing and snapshots. The symptom may appear only under load or during a leader change, which makes it harder to link to the edit. Keep a single written record of the intended value for every consenter and compare the live configuration on each node after each edit.
Changing values without a rolling plan
Restarting consenters together, or changing several Raft values at once, can remove quorum and make it unclear which change caused a fault. A rolling plan changes one node at a time, waits for it to rejoin and confirms health before moving to the next. Write down the order of nodes, the expected log messages, the rollback values and the health checks for each step. Use the operations service /healthz endpoint and orderer logs to confirm each node is back in step before continuing.
Sequence for changing Raft orderer settings safely
This sequence turns a Raft tuning change into a controlled, reversible operation that keeps the ordering cluster in quorum and leaves a record of what changed on each node.
Record current configuration and ledger state
The orderer administrator captures the current orderer configuration for every consenter, including the Raft section of each node's configuration file (the TickIntervalOverride, ElectionTick, SnapshotIntervalSize, WALDir and SnapDir values), the Fabric version each node runs, and the block height and last config block of every channel. Store these in version control or a change record so the previous values can be restored exactly. The step is done when every consenter has a dated copy of its settings and each channel's height has been noted on each node, so the team can later confirm the nodes agree.
Back up ledgers, WAL and snapshot directories
Before any edit, the team takes a backup of the orderer ledger and the directories set by WALDir and SnapDir on each consenter, and of the MSP and TLS material the node uses. Confirm the backup is readable and stored outside the node. Fabric's upgrade guidance also begins with backing up the ledger and MSPs, so the same discipline applies here. The step is complete when a restore test or checksum comparison has confirmed that each backup is usable and that the node's current files are not the only copy.
Confirm quorum and node health
Before touching anything, the operator checks that every consenter is reachable and that a majority of the cluster is available, because a five node Raft cluster tolerates the loss of two nodes and any change that takes a node down reduces that margin. Query the operations service on each orderer: /healthz should report healthy and /metrics should show the cluster as stable with a leader present. Check logs for recent election churn. The step is done when all consenters are healthy, a leader is stable, and the team agrees on a change window with a fallback plan.
Confirm which settings apply at runtime
Establish the path before editing. The Raft configuration documentation states that SnapshotIntervalSize is the only Raft option adjustable at runtime, while settings such as TickIntervalOverride and ElectionTick are applied through configuration and normally require a node restart. Ask the vendor or check your version's configuration reference to confirm which path applies to your Fabric release, and record the answer in the change request. The step is complete when each planned setting is marked either runtime or restart required, with the source noted.
Change one setting on one node
Apply the change to a single consenter first, editing only the planned key in that node's configuration file. If the setting requires a restart, plan the restart for this node alone and keep the other consenters unchanged. Avoid changing TickIntervalOverride on one node without a matching plan for the others, because a mismatched tick interval across nodes causes problems. The step is done when the edited file is saved, the diff against the recorded configuration shows only the intended key, and the change is logged in the change record.
Restart in a rolling fashion and verify
Restart the edited node and let it rejoin before proceeding. Verify through the operations service: /healthz returns healthy, /version confirms the expected release, and /metrics shows the node following the current leader with its block height catching up to the rest of the cluster. Read the orderer logs for errors about the Raft configuration, WAL or snapshot paths, or leader elections. The step is complete when the node has caught up on every channel and the logs show no new warnings tied to the change.
Repeat across consenters and keep the record
Apply the same change to each remaining consenter one at a time, running the health, quorum and verification checks before each restart and waiting until the node has caught up before moving to the next. Keep the cluster in majority throughout. When every consenter runs the new settings, compare the final configuration files and the block heights across nodes, then close the change record with the old and new values, the verification results and the rollback procedure used if a step failed.
Decision path for a Raft tuning change
The path starts with a symptom on the ordering nodes, such as repeated elections, growing WAL directories or snapshot pressure. The first decision is whether the setting can change at runtime: per the Fabric Raft configuration docs, only SnapshotIntervalSize can, so tick and election settings need a planned change window. Before any edit, confirm that every consenter will carry the same TickIntervalOverride, because a mismatch across nodes causes problems. Apply changes one node at a time, then verify health and quorum before moving on; if leader churn or disk alerts appear, roll the node back.
Decision path from symptom to rolling change, with rollback on instability.
Security and operational considerations for orderer tuning
Tuning Raft settings changes how the ordering service behaves under load and failure, so the controls around it matter as much as the values. The cards below cover who can reach the operations endpoints, who can read the directories holding consensus data, what to back up before a change, and how to record what changed.
Require mutual TLS on the operations endpoint
The operations service exposes health checks, log level control, version information and metrics on each orderer. Log level changes and metrics access can reveal internal state, so the endpoint should accept only clients that present a certificate trusted by your operations CA. Before you change any Raft value, confirm that your monitoring and automation use client certificates and that anonymous access is disabled. Test the endpoint from a host without a certificate to confirm it is refused.
Operations service docsRestrict access to WAL and snapshot directories
The directories set by WALDir and SnapDir hold the etcd/raft write-ahead log and snapshots that the orderer uses to recover consensus state. Anyone who can read or alter these files can reconstruct or corrupt ledger-related data, so access should be limited to the orderer process user and the administrators who run it. Confirm owner, group and mode bits on each directory in your environment, and confirm that the volumes are encrypted at rest under your storage policy.
Back up the ledger and MSPs first
Before changing a snapshot interval, moving WAL or snapshot locations, or restarting orderers with new values, take a backup of the ledger and the MSP material for each node. Fabric's upgrade guidance starts with the same backup step, which signals that recovery depends on those assets. Store backups separately from the orderer host, record where they are, and test a restore on a non-production node so the rollback path is known before the change window opens.
Stage changes one node at a time
Mismatched TickIntervalOverride values across consenters can destabilize elections, so apply each Raft change to one orderer, verify that it rejoins and that the cluster reports a leader, then move to the next. Keep at least a majority of consenters healthy during the window. A five node cluster tolerates the loss of two nodes, so a change that takes a third node out of service leaves no margin for an unrelated failure.
Record every change for audit
Keep a change record for each tuning action that names the node, the setting, the old and new values, the reason, the approver, the time applied and the verification result. Include the operations endpoint responses and the metrics you checked before and after. Auditors and incident responders often need to know which orderer ran with which configuration on a given date, so the record should live in a system your change management process controls. Ask your auditor which evidence format they accept.
Questions teams ask before changing Raft settings
Can our own team tune Raft orderer settings without a partner?
Yes, if your team already operates Fabric orderers and can test changes outside production first. Tuning is a configuration exercise, but the settings interact with consensus, so the risk lies in judgment and testing rather than in the edit itself. Your engineers need to understand the consenter set, the TLS material each node presents, and how the orderer behaves during a leader change. Before touching anything, confirm which values are currently set on every node, record them, and agree on a rollback path. Teams new to Raft usually benefit from an outside review of the plan, because a value that looks harmless on one node can cause trouble when it differs from the rest of the cluster. A partner can run that review and the test rehearsal, while your team keeps ownership of the production change.
What drives the effort of a Raft tuning engagement?
The main drivers are the number of consenters, the number of channels each orderer serves, how storage is laid out, and how narrow your change window is. Every consenter needs its settings checked and changed in a controlled order, so five nodes take far more verification than one. Each channel adds its own configuration and monitoring surface, so a node hosting many channels needs more time to confirm that behavior holds across all of them. Storage layout matters because WALDir and SnapDir may sit on different volumes, and moving them is a different task from changing a snapshot threshold. A short change window forces smaller steps and more rollback preparation. Ask any partner to itemize the work by node, channel and storage path, and to state which steps need your change board's approval. No duration is supplied here, so treat any schedule without that breakdown as incomplete.
Does changing Raft settings cause downtime on the network?
It depends on the setting, and the safest approach assumes that a restart may be needed unless your environment proves otherwise. The Fabric documentation states that SnapshotIntervalSize is the only Raft option adjustable at runtime, so other values such as TickIntervalOverride, ElectionTick, WALDir and SnapDir should be treated as changes that require a node restart. Restarting one orderer at a time keeps a majority available, but only if the cluster is healthy before you begin. A five node Raft cluster tolerates the loss of two nodes, so taking down more than one node at once can stop ordering. Plan the restart sequence, confirm leader status and quorum between steps, and check that each node rejoins before moving to the next. Confirm the exact restart behavior for your Fabric version with the Raft configuration documentation before scheduling.
What should we ask a partner to include in a written scope?
Ask for a scope that names every setting to change, the node and channel each change applies to, and the evidence that will show the change worked. Most engagements are fixed-scope, so scope, deliverables and timelines should be agreed in writing before work starts. The document should list the current values on each node, the target values, the order of changes, and the restart plan. It should state what is tested in a non-production network first, what production checks run before and after each step, and who approves a rollback. Ask how the partner handles mismatched tick intervals across nodes, since that is a documented hazard. Confirm whether the work includes documentation of the final configuration and whether a retainer for follow-up is offered. DeployOpen does not publish a price list, so request a quote that follows from this written scope.
Which Raft settings are safe to leave at their defaults?
For most networks, the safest approach is to leave TickIntervalOverride and ElectionTick unchanged unless you have a measured reason to change them. The Fabric documentation advises setting TickIntervalOverride only with great care, because a tick interval that differs across nodes causes problems. ElectionTick controls how long a follower waits without leader messages before starting an election, so changing it alters failover timing for the whole cluster. SnapshotIntervalSize is the one value that can change at runtime, which makes it the most common candidate for adjustment, but it still affects disk growth and recovery speed, so test it before applying. WALDir and SnapDir should be chosen during the initial deployment on suitable storage, then left alone. Confirm current defaults and recommended values against the Raft configuration documentation for your release rather than relying on memory or older guides.
How do we know a Raft tuning change actually worked?
A change worked when every consenter shows the same intended configuration, the cluster elects and keeps a leader, and transactions continue to order without new errors. Check the operations service on each orderer, including the /healthz endpoint for health, the /version endpoint to confirm the running build, and the /metrics endpoint for Raft and ledger indicators. Compare metrics before and after the change, and watch for elections, lagging nodes or growing snapshot and write-ahead log directories. Confirm that each node's log level is still at the expected setting through /logspec, since debugging changes often leave verbose logging behind. Run a controlled test transaction on each channel and confirm it commits. Record the results against the written scope so that the change has an audit trail. Ask any partner to show these checks as part of the deliverable, not as an informal sign-off.
What the work needs from your team
Tuning Raft settings is a consortium decision before it is a technical one. The values for TickIntervalOverride and ElectionTick affect every consenter on the channel, so a change made by one member organization can alter election timing for the whole ordering service. Before any work starts, the consortium should agree in writing which settings may change, who approves each value, and which organization operates the change. Name one accountable owner at each member organization, plus a contact who can stop a change if the ordering service shows instability.
On the technical side, the team needs administrative access to each orderer's configuration file, the ability to read the channel configuration that holds the consenter set, and access to the operations service endpoints used for health and log level checks. Confirm that the mutual TLS client certificates needed for those endpoints are available to the people doing the work, and that the orderers' current Raft section, WAL and snapshot directories, and version are documented. Ask each member for baseline metrics and orderer logs covering leader changes and election attempts, so you can compare behavior before and after a change.
Agree a change window with every member, long enough to restart orderers one at a time and watch leader election, log output and block delivery to peers and clients between steps. Plan a rollback path that every owner has reviewed, and confirm with the consortium how it will record who changed what and when. Keep in mind that SnapshotIntervalSize is the only Raft option adjustable at runtime, so most other settings will require a coordinated restart. Confirm that restart procedure and its timing with each organization before the window opens, since a member who has not agreed to the window cannot be expected to absorb its effects.

