r/SQLServer • u/mr_shush • Mar 23 '26
Discussion FCI vs AG question
Our current environment consists of 3 bare-metal hosts running 3 instances of SQL in a Failover Cluster. These are all active nodes with shared storage. Total of 235 databases, but they are not distributed evenly. A few of the databases hit the 2-4 TB size, but most are < 500 GB (most significantly less). One of the instances hits ~900k transactions per minute (this one has ~2/3 of the databases, the other 2 instances are <75k TPM), but none of the dbs is an OLTP system. Most of those transactions are reads from some very chatty apps.
The time has come to upgrade the hardware and my intent was to re-architect and shift to Availability Groups on several VM hosts. We don't currently have good DR and everything is Enterprise license. I expect my number of hosts would increase as would the burden for keeping them updated, but since the hardware we're currently running on is ~7 years old the increase in performance on a 1-1 core basis is about 3x as is the clock speed on the RAM. We aren't currently experiencing undo performance issues.
The question I have is am I going in the right direction here? I know ~100 dbs is the upper limit for AGs and that my storage needs will double, but I felt the ability to add nodes in our DR location when bandwidth is sufficient and being able to perform rolling updates without down time in the future were a good tradeoff. Initially I was told a good chunk of the databases had 30 minute RTOs and thought I might be able to shift some of them to standalone Standard Edition servers to save money, but that has been called into question. So now I'm wondering if keeping the old architecture (maybe just running it on VMs) would be a better call.
3
u/Grogg2000 Mar 23 '26
Technically you get small disruptions in service when doing failover in AG, even with Enterprise Ed. So the software needs to utilise designpatterns that actually robust enough to handle a failover.
1
u/clitoral_damage Mar 23 '26
I've seen successful set ups with 3 AGs on three separate nodes, all with readonly failovers to each other. You could then fail over one node to another in an emergency or when patching. I think it's an expensive set up, more hardware and storage plus you're paying for all the cores. But maybe a variant of that would keep your AG db count more manageable.
1
u/muaddba 1 Mar 23 '26
First: There is no such thing as "rolling updates without downtime." Any kind of failover, whether it's FCI or AG, requires the client to reconnect to the database, which is a disruption. It's usually faster with an AG, though if you've got over 100 DBs it might not be.
Be aware that on bare metal software assurance isn't required but on VMs it is, starting with SQL 2022. It's a bullshit rule, but it's the rule. It does give you the benefit of being able to run a DR and HA node without buying licenses, which is nice, and it gives you upgrade rights, which is also nice. But you can't do anything on those (HA/DR) nodes other than DBCC checks, or you gotta pay.
Running AGs on VMs requires careful planning and some additional rules since you don't want the hypervisor trying to automatically balance your VM workload or other weird stuff.
As has been said, the 100 DB limitation is not truly real, I have seen folks do several multiples of that, but you use a LOT of cpu power just maintaining the AG at that point.
"Am I going in the right direction" depends on a lot of things. What are you trying to accomplish? Will your budget accommodate it? Are you pretty well versed in clustering and AGs? Because they can get finicky if not properly configured and even sometimes when they are. Do you have a directive to put together a fully remote DR plan? What are the requirements? What other options have you considered?
1
u/Bubbly-Homework-5164 Mar 23 '26
Firstly, there is no limitation on the max number of databases in AG. Microsoft has tested only up to 100 databases, but there is no limit. The performance of AG depends on the underlying hardware.
Also you need to understand that AG fails over as a group. Meaning, in case of any issues on primary, all the 100+ databases will be failed over.
I understand you are planning mainly for a DR purpose. There is a license program in Microsoft where you get a free passive license for DR; where you get a free SQL license only for DR with no read or write connections (you'll still be charged for the compute and OS license) check with MS for more details on the passive license.
1
u/Simple_Brilliant_491 Mar 24 '26
A couple of thoughts to add:
If all 235 are heavily written to, I'd consider splitting into smaller AG clusters to reduce risk. I hadn't seen a hard limit of 100, but Azure SQL Managed Instance, which uses AG technology under the hood in Business Critical had a limit of 100 databases until a few months ago, so they must have had a reason.
1
u/Lost_Term_8080 Mar 24 '26
100 db isn't the limit, its the recommended limit.
If your databases are really active transactionally, AAGs can pose failover and performance issues that FCIs do not have, but given reasonably ok hardware, you are generally well over 1000 write transactions per second.
What AAGs provide you that FCIs do not, is better geographic redundancy without much expensive and exotic storage networking/networking and storage hardware.
You can combine both - run an FCI for local HA then put the FCI in an AAG for DR
Big thing to be mindful of in an AAG, at least for synchronous nodes, you will want them to have as close to identical storage performance as possible and even async nodes need to be pretty close.