What is high availability in Azure HorizonDB?
Imagine your order-processing app runs on a single PostgreSQL server. At 2 AM the host it runs on loses power, or the whole availability zone has a network problem. Orders stop, the on-call engineer gets paged, and someone has to decide whether to restore from backup and how much data might be lost. With classic PostgreSQL, the usual answer is a streaming-replication standby that you size, monitor and fail over to yourself – and that standby may be a few transactions behind.
Azure HorizonDB takes a different approach. Because compute and storage are separate, every compute node in a cluster reads the same zone-redundant storage. A standby doesn’t keep its own copy of the data and doesn’t wait for WAL to be shipped to it. When the primary fails, the service fences it, promotes a standby in a healthy zone, and points the read-write endpoint at the new primary – with every committed transaction already in place. The same standbys also serve read-only queries, so the nodes you pay for HA can do useful work.
This is the third article in my Azure HorizonDB series. In Article 1 I explained the architecture, and in Article 2 we created a small demo cluster with one node and high availability disabled. In this article we add a reader node to that cluster, turn on zone-redundant high availability, run a failover and look at what applications see. No code – just concepts and the portal.
Status and docs
- HorizonDB is generally available since 17 November 2026. Several Learn pages about high availability and failover still have “(Preview)” in their titles and were last updated in July 2026; the reader-node how-to was refreshed for GA in November 2026.
- The portal has moved on since the July docs. The docs describe a Manage replicas and failover page; in my portal the same job is done on the High availability page, which has the node count, HA option, node/zone table and a Failover button in one place. This article describes what the portal showed me on 4 December 2026.
Step 1 – Understand primary, standby and reader nodes
A HorizonDB cluster has a read/write pool (the portal calls it defaultpool). The pool contains:
- One read/write node – the primary. It accepts writes and can also serve reads.
- Up to 15 read nodes – readable replicas. They serve read-only queries and act as standbys: any of them can be promoted if the primary fails.
So in HorizonDB “standby” and “read replica” are not two different things. A reader in the read/write pool is both. There is no separate, idle standby you pay for but can’t use.
1.1 Why shared storage changes failover
| Aspect | Classic PostgreSQL HA (streaming replication) | Azure HorizonDB |
|---|---|---|
| Where the data lives | Each server has its own copy on its own disk | One shared, zone-redundant storage layer; nodes keep only a local NVMe cache of hot pages |
| Durability of a commit | Depends on synchronous vs asynchronous replication settings | The WAL service persists each commit across zones before acknowledging it |
| Adding a replica | Copy the whole database, then start streaming | Attach a new node to the shared storage – no data copy |
| Failover | Promote the standby, possibly rewind or rebuild the old primary | Fence the primary, promote a standby, move the endpoint – no WAL rewind or rebuild of the old primary |
| Committed data after failover | Can lose recent transactions with asynchronous replication | All committed transactions are visible on the new primary; only in-flight, uncommitted transactions roll back |
1.2 HA disabled still keeps your data safe
Storage is always zone-redundant, even on a one-node cluster. If you run without HA and the node fails, your committed data is not lost – but there’s no standby to promote, so the service has to restart the node or provision new compute. That takes longer than a failover. High availability is about how fast you’re back, not about whether your data survives.
1.3 The two endpoints
| Endpoint | Goes to | With no readers | During failover |
|---|---|---|---|
Read-write (<cluster>.rw.<id>.<region>.horizondb.azure.com) | Always the current primary | The primary | Moves to the new primary; the name doesn’t change |
Read-only (defaultpool.<cluster>.ro.<id>…) | Load-balanced across the readers | Falls back to the primary (and can write) | Keeps balancing across the remaining readers |
Applications should always connect through these endpoints, never to a specific node. That’s what makes failover transparent apart from a reconnect.
Step 2 – Check the current state on the High availability page
Open your cluster in the portal and, under Settings, select High availability. Our demo cluster from Article 2 shows the status card Disabled – “High availability is currently disabled on the read/write pool”. The toolbar has Save, Discard, Failover (greyed out, because there’s nothing to fail over to) and Refresh.

Figure 1: The High availability page of the demo cluster – high availability is Disabled
Scroll down and the page shows what you actually have: Allocated nodes “1 of 1 nodes allocated”, Effective zone protection “Not protected”, and a small table with one node – node-0, role Read/write, availability zone 1. Below it, Storage high availability says “Always zone-redundant”.

Figure 2: One node allocated, not zone protected: node-0 is the read/write node in zone 1
This page is the most useful one for HA in the portal. It shows the configured HA mode, the nodes that really exist, which zone each one is in and which one is the primary – everything the July docs spread across a separate “Manage replicas and failover” page.
Step 3 – Add a reader node and enable zone-redundant HA
3.1 Choose the number of nodes
Open the Nodes drop-down. It runs from “1 read/write node” up to “16 nodes (1 read/write, 15 read)”. I chose 2 nodes (1 read/write, 1 read) – the minimum for high availability. You can do the same from Settings → Compute → defaultpool → Configure, which is the path the Learn how-to describes; both places change the same pool.

Figure 3: The Nodes drop-down – one read/write node plus up to 15 readers
3.2 Choose the HA option
- Disabled – only allowed with one node.
- Zone redundant – “Distribute compute nodes across multiple availability zones. If required cross-zone capacity is unavailable, the operation fails.” This is what you want in production.
- Any zone (check box under Zone redundant) – “Allow flexible compute node placement. Nodes may be placed in a single zone; cross-zone placement is not guaranteed.” You still get a standby for node failures, but not guaranteed protection against a zone outage. Use it only when zone-redundant placement fails for capacity reasons.
I selected Zone redundant and left Any zone unticked. The Save and Discard buttons become active.

Figure 4: 2 nodes (1 read/write, 1 read) with Zone redundant high availability selected
3.3 Check the cost before you save
At the bottom of the same page the Estimated monthly costs panel updates straight away. With 2 nodes × 2 vCores it showed INR 44,384 per month for compute – exactly double the single-node INR 22,192 – at INR 11,096 per vCore, plus storage at USD 0.25 per GiB. Every node is billed, whether it’s the primary or a reader, so HA doubles compute cost.

Figure 5: The cost estimate doubles to INR 44,384 per month for two 2-vCore nodes
3.4 Save and wait
Select Save. A “Save the configuration – defaultpool” notification appears and the form locks while the new node is provisioned. The cluster stayed Ready the whole time – adding a reader doesn’t take the cluster down, because the new node simply attaches to the shared storage. In my subscription the save took about 5 minutes, much faster than creating the cluster.

Figure 6: Saving the new pool configuration
When it finished, the status card changed to Zone redundant – “Nodes in the read/write pool must be spread across at least 2 availability zones”. The node table now lists two nodes: node-0 as Read/write in zone 1 and node-1 as Read in zone 3, with Effective zone protection: Protected. The Failover button is now enabled.

Figure 7: HA enabled: node-0 read/write in zone 1, node-1 read in zone 3, zone protection Protected
Step 4 – Understand the failover types
| Type | Who starts it | When it happens | What the service does |
|---|---|---|---|
| Automatic (unplanned) | The service | Zone hardware failure, network partition, OS or PostgreSQL process failure | Detects the failure, fences the primary, promotes the standby closest to the primary’s LSN in a healthy zone, moves the read-write endpoint |
| Planned | You, or Azure for maintenance | HA testing, moving the primary to another zone, minor version upgrades and patches | Prepares the standby while the primary keeps running, then switches roles. Usually faster, because there’s no detection step |
| Forced | You | Testing how your app copes with a real outage, or a primary that has stopped responding | Stops the primary straight away and promotes a standby, like an automatic failover |
The automatic sequence from the Learn docs is worth remembering: detect → fence → promote → wait until writable → update the read-write endpoint → clients reconnect. Fencing is the important part – it guarantees the old primary can’t accept another write once a new primary exists, so you never end up with two writers.
The July Learn how-to shows separate Planned failover and Forced failover buttons. In my portal there was a single Failover button, and its dialog says it “immediately stops the current read/write node” – which reads more like the forced behaviour. If you need to choose explicitly between planned and forced, check the Azure CLI for your version.
Step 5 – Run a test failover
Before you start, note which node is primary and which zone it’s in (Figure 7: node-0, zone 1). Then select Failover on the toolbar. The Fail over to standby node dialog warns: “Initiating failover immediately stops the current read/write node and transfers that role to another node in the same read/write pool. The database cluster may be briefly unavailable during failover.”

Figure 8: The Fail over to standby node dialog
Select Fail over. A “Failing over cluster” notification appears – “Failing over cluster ‘hdb-series-demo’ to a standby node” – and the page locks while it runs.

Figure 9: The failover in progress
About a minute later the notification Cluster failover completed appeared: “Successfully failed over cluster ‘hdb-series-demo’ to a standby node”. Remember that this is the time of the whole management operation. Microsoft points out that the time shown in the portal can be longer than the time your application is actually unable to connect, so measure downtime from the application side.

Figure 10: Cluster failover completed after about a minute (billing notice blurred)
Back on the node table the roles have swapped: node-0 in zone 1 is now Read, and node-1 in zone 3 is Read/write. Zone protection is still Protected, because the old primary came back as a reader – no rebuild, no data copy. The endpoint names didn’t change; the read-write endpoint now simply points to node-1.

Figure 11: After failover the roles have swapped – node-1 in zone 3 is now the read/write node
A tip for real tests: run a small script or your app’s health check against the read-write endpoint during the failover and log every failed connection and every reconnect. That gives you a real number for “how long were we down”, which is the number your business actually cares about.
Step 6 – What applications see during failover
- Existing connections are dropped. Every session on the old primary ends; the app gets a connection error on its next query.
- Uncommitted transactions roll back. Anything committed is safe on the new primary; anything still in flight is lost, exactly as with a normal PostgreSQL restart.
- No connection string changes. The read-write endpoint follows the new primary, so reconnecting with the same settings just works.
- Read-only sessions on the reader endpoint can also be dropped if their node changes role.
6.1 Checklist for HA-ready applications
| Do this | Why |
|---|---|
| Retry transient connection errors with exponential backoff | The failover window is short; a few retries over 30–60 seconds ride through it |
| Connect only through the read-write and read-only endpoints | Node names change role during failover; endpoints don’t |
| Keep transactions short | Long transactions delay a planned failover and lose more work in an unplanned one |
| Make writes idempotent where you can | If a commit’s acknowledgement is lost in the failover, a retry shouldn’t create a duplicate order |
| Don’t create schema objects in temporary tablespaces | They may not survive restarts or HA failovers |
| Set connection pool timeouts and validation | Pools should throw away dead connections instead of handing them back to the app |
Step 7 – Use readers for read scale-out
Readers aren’t just insurance. Point reporting, dashboards, search pages and other read-heavy work at the read-only endpoint and the service load-balances connections across the readers, leaving the primary for writes.
- Up to 15 readers per cluster, all in the same region. There are no cross-region readers – regional disaster recovery is a backup topic (Article 4).
- Same size for every node. You can’t make readers smaller or larger than the primary. Scaling vCores changes every node in the pool.
- Fast to add or remove, with no downtime for the cluster, because there’s no data to copy.
- Each reader has its own local cache. A brand-new reader starts with a cold cache, so its first queries read more from storage.
- With no readers, the read-only endpoint connects to the primary and can even write – so don’t rely on it to block writes from a reporting tool.
7.1 How many nodes do I need?
| Scenario | Nodes | HA setting |
|---|---|---|
| Dev/test, demos, learning | 1 | Disabled |
| Production that must survive a node or zone failure | 2 (1 read/write + 1 read) | Zone redundant |
| Production with read-heavy reporting | 3 or more | Zone redundant – readers share the read load and are all failover candidates |
| Production where the region is short of zone capacity | 2 or more | Zone redundant + Any zone (accept the reduced zone protection knowingly) |
My recommendation: two nodes with Zone redundant for anything in production, and add readers only when monitoring shows the primary is busy with reads. Don’t add readers “just in case” – each one costs as much as the primary.
Step 8 – Remove the reader (back to one node)
To keep the demo cheap I went back to a single node. On the High availability page, set Nodes to 1 read/write node. If HA is still set to Zone redundant, the portal stops you with a clear message: “High availability requires at least 2 nodes. Increase the node count to 2 or more before enabling high availability.” Select Disabled as well, then Save.

Figure 12: The portal won’t let you keep HA enabled with one node
Removing the last reader turns HA off, so do this only on non-production clusters or during a planned window. The save took about 5 minutes. Interestingly, the node that stayed was node-1 in zone 3 – the one promoted during the failover – and the old primary node-0 was removed. The cluster stayed Ready and the endpoints didn’t change.

Figure 13: Back to one node – the promoted node-1 in zone 3 is the one that stays
In this demo the reader ran for about 20 minutes, which cost roughly INR 10.
Governance and operations
- Who can fail over: changing nodes and starting a failover are management-plane actions, so anyone with Contributor on the cluster can do them. Limit Contributor on production clusters and use Privileged Identity Management for just-in-time access.
- Audit: failovers and pool changes appear in the Activity log. Set up activity log alerts so the team hears about every failover, planned or not (Article 7 covers alerts).
- Test regularly: run a failover in a non-production environment every quarter, measure downtime from the app, and record the result.
- Protect against deletion: HA doesn’t help if someone deletes the cluster, and deleted clusters can’t be restored. Add a CanNotDelete resource lock on production.
- Maintenance: Azure uses planned failover for minor version upgrades and patches when HA is enabled, which shortens maintenance downtime. Without HA, maintenance restarts the single node.
Pricing and limitations
| Item | Detail (checked 4 December 2026) |
|---|---|
| Compute | Billed per vCore-hour for every node. 2 vCores in East US 2 ≈ USD 0.37 per node-hour; the portal showed INR 22,192/month for 1 node and INR 44,384/month for 2 |
| Storage | Billed once for the cluster, not per node – readers share it (about USD 0.25–0.28 per GiB-month) |
| Maximum readers | 15 per cluster (16 nodes in total) |
| Node sizes | All nodes in the pool have the same vCores and memory |
| Regions | Readers are in the same region only; no cross-region replicas |
| Zone redundancy | Fails if the region can’t place nodes in different zones; Any zone relaxes this |
| RPO / RTO | Microsoft doesn’t publish numbers. Committed data is durable across zones; failover time depends on detection and promotion – about a minute end-to-end in my test |
Summary
In this article, we learnt how Azure HorizonDB uses shared, zone-redundant storage for high availability, how to add a reader and turn on zone-redundant HA in the portal, how a failover works and what applications see, and how readers double as read scale-out.
| Topic | What to Remember |
|---|---|
| Readers = standbys | Every read node serves reads and is a failover candidate; there’s no separate idle standby |
| Shared storage | Storage is always zone-redundant; commits are durable across zones before they’re acknowledged |
| Enabling HA | Settings → High availability: Nodes = 2 or more, High availability = Zone redundant, Save (about 5 minutes, no downtime) |
| Any zone | Helps provisioning succeed but doesn’t guarantee zone-outage protection |
| Failover types | Automatic, planned and forced; sequence is detect → fence → promote → move endpoint → reconnect |
| Portal failover | One Failover button; took about a minute end-to-end; roles and zones swap in the node table |
| Applications | Connections drop, uncommitted work rolls back, endpoints stay the same – add retry with backoff |
| Read scale-out | Up to 15 readers behind the read-only endpoint, same size as the primary, same region |
| Cost | Every node is billed – 2 nodes doubles compute; storage is shared |
| Removing readers | Back to 1 node requires High availability = Disabled |
Do you like this article? If you want to get more updates about these kind of articles, you can join my Learning Groups
Discover more from Praveen Kumar Sreeram's Blog
Subscribe to get the latest posts sent to your email.
2 comments