关于AlwaysOn SQL故障转移集群(含可用性组)多数据库部署可行性的咨询
First off, let's cut to the chase: both the 4-server and 3-server failover cluster architectures you're considering fully support deploying multiple databases with AlwaysOn Availability Groups (AGs)—they're not limited to single-database deployments at all.
Here's a deeper breakdown to clarify:
Core AG Capabilities
AlwaysOn AGs are built as logical groups of databases, not single-database containers. A single AG can include multiple user databases, as long as each database meets the AG prerequisites:
- Uses the full recovery model
- Has a valid full backup taken
- Isn't a system database (master, model, msdb, tempdb)
- Isn't read-only or using the simple recovery model
4-Server Architecture
This setup is often either two separate failover clusters (e.g., a primary cluster paired with a disaster recovery cluster) or a stretched cluster across two sites. Either way:
- You can add multiple databases to a single AG
- Alternatively, you can create multiple AGs on the same server set to group databases by business line, criticality, or failure isolation needs (e.g., one AG for customer-facing databases, another for internal reporting)
3-Server Architecture
Typically this is a single cluster with 1 primary node + 2 replica nodes (could be a mix of synchronous and asynchronous replicas). For this setup:
- Same multi-database support applies: a single AG can host multiple databases that will all failover together when needed
- If you need individual databases to failover independently, you can create separate AGs for each (or groups of) databases
Key Considerations
- Coordinated Failover: All databases in a single AG failover as a unit. If you need different databases to have independent failover paths, separate AGs are the way to go.
- Resource Overhead: Synchronizing multiple databases will consume additional network bandwidth and IO resources. Make sure your server and network hardware can handle the load based on your database sizes and transaction rates.
内容的提问来源于stack exchange,提问作者user129291

