Cloud and Managed Database Platforms

Cloud architecture, managed databases, migrations, and cloud operating tradeoffs.

131 associated posts50 primary posts

[Video] Office Hours 2017/06/07 (With Transcriptions)

This week, Brent, Erik, and Richie discuss running SQL Server 2017 CTP on Linux, receive side scaling on servers and VMware, query tuning, nested roles vs. assigning roles to users, hierarchical data type, apps and scripts for automating restores, and learning Azure and AWS. The audio's kinda rough this week because Brent & Erik were…

Read more about [Video] Office Hours 2017/06/07 (With Transcriptions) 7 comments — Join the discussion

[Video] Office Hours 2017/05/24 (With Transcriptions)

This week, Brent, Erik, and Richie discuss disabling telemetry in SQL Server 2016, proper place for log files, Availability Groups, measuring data returned from a single query, whether CHECKDB should be done on tempdb, limiting tempdb usage for each session, transferring large amounts of data from on-prem to the cloud, and Iron Chef spoilers.

Here’s the video on YouTube:

Read more about [Video] Office Hours 2017/05/24 (With Transcriptions) Be the first to comment
Production DBA

Building a Faux PaaS, Part 3: What the Ideal Engineering Team Looks Like

Background: I'm working with kCura to build a Faux PaaS: something akin to Microsoft's Azure SQL DB, but internally managed. You can catch up with what we've discussed so far in Part 1 and Part 2 of the series.

In the last post, I talked about measuring backup and restore throughputs across different instance types, regions, storage configs, and backup locations. It's a lot of work to answer questions like "How should we configure our new SQL Server VMs?"

Read more about Building a Faux PaaS, Part 3: What the Ideal Engineering Team Looks Like 4 comments — Join the discussion
Production DBA

Building a Faux PaaS, Part 1: The SQL Server DevOps Scene in 2017

In the cloud, treat your servers like cattle, not like pets.

In the cloud, systems administration is very different than the on-premises stuff you're used to. When you build VMs in the cloud with Infrastructure-as-a-Service (IaaS, meaning AWS EC2, GCE, or Azure VMs), you expect them to die. It's just a matter of time. If you're lucky, it'll be years from now, but if you're unlucky, it'll be tomorrow.

Read more about Building a Faux PaaS, Part 1: The SQL Server DevOps Scene in 2017 13 comments — Join the discussion
Production DBA

Migrating from SQL Server to MySQL, PostgreSQL, and Aurora

I'm getting an increasing number of requests these days that say: "We're considering migrating our application from SQL Server to a cheaper, easier-to-scale database. Can you help?" Well, kinda: why are you doing it? If you're doing it to get easier scalability, we start by taking a step back and looking at the performance problems…

Read more about Migrating from SQL Server to MySQL, PostgreSQL, and Aurora 19 comments — Join the discussion
Production DBA

SQL Server Timeouts During Backups and CHECKDB

So you're hosting your SQL Server in the cloud - say Amazon EC2, Azure VM, or Google Compute Engine - and you've noticed that when you're running a backup or a DBCC CHECKDB, you suffer from extreme performance problems.

Queries run slow, and even worse, applications report timeout errors even just trying to connect to SQL Server. More symptoms can include database mirroring and cluster failovers. What's going on?

Read more about SQL Server Timeouts During Backups and CHECKDB 19 comments — Join the discussion
Performance Tuning

Enabling Query Store in Azure SQL Database

Enter Query Store Query Store, in short, is a way to track query performance over time. In Microsoft's words, "The feature automatically captures a history of queries, plans, and runtime statistics, and retains these for your review". It's like sys.dm_exec_query_stats but it persists across reboots! And it has execution plans! The Query Store is a…

Read more about Enabling Query Store in Azure SQL Database 6 comments — Join the discussion
Performance Tuning

When Did My Azure SQL Database Server Restart?

In Azure SQL Database, no one can hear you scream query common system objects that tell you when a restart happened. You don't get the access you need to sys.dm_os_sys_info, sys.dm_exec_sessions, sys.traces, or sys.databases. The closest I've been able to get is to query sys.dm_os_wait_stats for several common wait types that seem to correspond with…

Read more about When Did My Azure SQL Database Server Restart? 22 comments — Join the discussion

The Easiest Way to Restore Transaction Logs to A Point In Time (Spoiler: Use AmazonRDS)

... is to use a SQL Server where a robot does it for you! Let's take a look at how you can do this in AmazonRDS's hosted SQL Server these days.  Normally, restoring transaction logs is super tedious. You've got to restore all the files in the right order, for every single database. Even if…

Read more about The Easiest Way to Restore Transaction Logs to A Point In Time (Spoiler: Use AmazonRDS) 28 comments — Join the discussion

What Amazon RDS for SQL Server Users Need to Know about Multi-AZ Mirroring

Amazon Relational Database Service (RDS) now supports multi-availability-zone SQL Servers. This means you can have a primary database in one data center, and a secondary replica in another data center.

When your primary server goes down, OR when the entire AZ goes down, you can fail over to the secondary with zero data loss and keep right on going. When the primary comes back online, you can fail right back, again with no data loss.

Read more about What Amazon RDS for SQL Server Users Need to Know about Multi-AZ Mirroring 11 comments — Join the discussion