Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

Pushing the Limits of AGs

Many of you reading this likely have an Availability Group (AG) set up on at least one database in your organization. Maybe not most, but many of you as this has proven to be a technology that many people like for HA/DR, upgrades, and probably other uses. As the technology has evolved from it's SQL Server 2012 debut, it has improved in many ways. This might be one of the few features that has received regular attention from the developers in Redmond across multiple versions.

That's not to imply this is a foolproof or bug-free feature. Numerous people have had issues with the various types of AGs. From setup to performance to scale, I've seen many people post questions and search for answers on how to get their system running smoothly and reduce any late-night calls.

Over the last decade I've seen various people test different parts of the AG technology, but not many pieces about how much you can stress the technology at high levels. Microsoft supports up to 8 replicas, but what about groups and databases? The recommendation page says MS has tested 10 AGs and 100 databases, but nothing else.

I ran across a post on LinkedIn from Calin Oprea that covers his AG testing. He hasn't written about it, but says he can make the scripts available. He tested 50,000 databases, maybe more. He says 50k+ in the post and notes anything beyond 500 databases per instances starts to fall apart and 1000 seems to be a hard limit. Failover doesn't work, even without a workload.

That's quite a test of the technology at it's extreme. I've never run more than a few AGs or databases, and I see people posting and talking about dozens. Most of the people I know doing things at scale are using less than 10 AGs and usually no more than 100 databases max.

I wonder how many of you out there use more than 2 AGs on any instance and more than 20 databases. I'm sure there are lots of systems at this scale or larger, but I'd guess the majority are 1 AG and less than 10 databases.

Take a look around your environment today and see what the average and extremes are for Availability Groups. And if you've never looked at them, it's a piece of technology you ought to become familiar with. HA/DR is becoming a base requirement in many situations and it's available in the cloud with the toggle of a setting. If you work on premises, it's likely your clients expect your systems to easily failover to another location. Check out Stairway to Always On to get started.

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
 Featured Contents
Stairway to Hyperscale

Stairway to Azure SQL Hyperscale – Level 2: Page Server Architecture Explained

Chandan Shukla from SQLServerCentral

In Level 2 of the Stairway to Hyperscale, we learn about Page Servers in more detail.

External Article

How to Measure Replication Latency in SQL Server AlwaysOn Synchronous Availability Groups

Additional Articles from SimpleTalk

Synchronous replicas in SQL Server Availability Groups promise no data loss, but they don’t promise zero delay; under heavy load they can still fall behind. This article shows how to measure and track that hidden replication delay using SQL Server performance counters, so you can see how well your system keeps up during IO‑intensive operations and plan maintenance more safely.

Blog Post

From the SQL Server Central Blogs - How to: Regain SysAdmin Access to a SQL Server Instance Without the SA Password

gbargsley from GarryBargsley

Hello, reader! Today, I’m going to walk you through a scenario that many DBAs encounter: accessing a SQL Server instance when you don’t have the SA password, and no...

From the SQL Server Central Blogs - Fabric Real Time Data: Making the Shift from Batch to Live Insights

Chris Yates from The SQL Professor

Embracing the New Paradigm Fabric real-time data signals a fundamental shift in how organizations transform raw information into actionable insights. For decades, leaders have relied on batch processing as...

The Definitive Guide to Azure Data Engineering: Modern ELT, DevOps, and Analytics on the Azure Cloud Platform

The Definitive Guide to Azure Data Engineering: Modern ELT, DevOps, and Analytics on the Azure Cloud Platform

Site Owners from SQLServerCentral

Build efficient and scalable batch and real-time data ingestion pipelines, DevOps continuous integration and deployment pipelines, and advanced analytics solutions on the Azure Data Platform. This book teaches you to design and implement robust data engineering solutions using Data Factory, Databricks, Synapse Analytics, Snowflake, Azure SQL database, Stream Analytics, Cosmos database, and Data Lake Storage Gen2.

 

 Question of the Day

Today's question (by dbakevlar):

 

SQL Server, Heaps and Fragmentation

A table without a clustered index (heap) will NOT suffer from fragmentation during frequent updates or deletes. True or False?

Think you know the answer? Click here, and find out if you are right.

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Minimum Change Tracking Retention

If I am running this code:

ALTER DATABASE AdventureWorks2017 SET CHANGE_TRACKING = ON (CHANGE_RETENTION=xxx);

What is the minimum amount of time I can set?

Answer: 1 minute

Explanation: The minimum is one minute. Ref: ALTER DATABASE - https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-set-options?view=sql-server-ver16

Discuss this question and answer on the forums

 

 

 

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.


SQL 2012 - General
SQL Server authentication vs. Trusted connection - I maintain an application written years ago, where the database is on a Windows 2012 R2 Server and the database is SQL Server 2012. The people who configured this application made it so that it used SQL Server Authentication. I've always taken it to be the case that SQL Authentication was the only way of […]
SQL Server 2019 - Development
Is there a way to have dynamic table headers? - Hi everyone I have a SP which compares two tables and outputs mismatching entries: SELECT T1.QUOTE_DATE AS REPORT_UNIT_DATE FROM #UNIT AS T1 SELECT MAX(TRADE_DATE) AS REPORT_DIVISION_DATE FROM DBO.DIVISION SELECT T1.UNIT_SYMBOL AS UNIT_TABLE, T2.DIVISION_SYMBOL AS DIVISION_TABLE FROM #UNIT AS T1 FULL JOIN #DIVISION AS T2 ON T1.UNIT_SYMBOL = T2.DIVISION_SYMBOL WHERE T2.DIVISION_SYMBOL IS NULL OR T1.UNIT_SYMBOL IS […]
is there a way to "detect" schema like changes on a server? - Hi, we have a few people who like to experiment on our prod sql server with new tables, schema changes, dependency chain breaks, maybe ssis, even ssrs  etc etc without telling anyone till its too late.  They hold high ranking positions so forget your first thought.   I often end up with technical debt or sheer […]
SSDT
Visual Studio SSIS Package Showing Up Blank - Hi all, this is my first time posting on this forum, thank you all very much in advance. I have a .dtsx package open in Visual Studio, and one of the Script Tasks are erroring with "The binary code for the script is not found. Please open the script in the designer by clicking Edit […]
Snowflake, DataBricks, Redshift, and other cloud warehouse platforms
just finished a deep dive into snowflake - Hi, i know this is a sql forum but snowflake purports to interface with everything so i was hoping to get an opinion from some of the pundits in this forum. Does anyone in this community have an opinion either way of the snowflake product? One of the biggest areas of confusion is that they […]
Editorials
Requiring Technical Debt Payments - Comments posted to this topic are about the item Requiring Technical Debt Payments
Learning a New Language - Comments posted to this topic are about the item Learning a New Language
Guidelines and Requirements - Comments posted to this topic are about the item Guidelines and Requirements
Concerns over AI Chat Privacy - Comments posted to this topic are about the item Concerns over AI Chat Privacy
Article Discussions by Author
Using the FP-Growth Algorithm to Mine Useful Patterns in Data - Comments posted to this topic are about the item Using the FP-Growth Algorithm to Mine Useful Patterns in Data
Copying Production Schema - Comments posted to this topic are about the item Copying Production Schema
Workspace Identity Authentication for your Power BI Semantic Models in Microsoft Fabric - Comments posted to this topic are about the item Workspace Identity Authentication for your Power BI Semantic Models in Microsoft Fabric
Database File Growth Report Script - Comments posted to this topic are about the item Database File Growth Report Script
The Duplicate Cursor - Comments posted to this topic are about the item The Duplicate Cursor
Introduction of Azure SQL Hyperscale: Stairway to Azure SQL Hyperscale Level 1 - Comments posted to this topic are about the item Introduction of Azure SQL Hyperscale: Stairway to Azure SQL Hyperscale Level 1
 

 

RSS FeedTwitter

This email has been sent to {email}. To be removed from this list, please click here. If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com. This newsletter was sent to you because you signed up at SQLServerCentral.com.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -