Best Practices For Running SQL Server in Windows Azure Virtual Machine - TechNet
Best Practices For Running SQL Server in Windows Azure Virtual Machine - TechNet
Best Practices for Running SQL Server in Windows Azure Virtual Machine - TechNet Articles - United
Best Practices for Running SQL Server in Windows Azure Virtual Machine
We'll use this wiki to communicate best practices you should consider when provisioning and deploying SQL Server in a Windows Azure Virtual Machine.
Table of Contents
Identifying SQL Server Workloads for Testing Virtual Machine Provisioning and Connectivity Virtual Machine Security Reccomendations Storage Recommendations Database Recommendations High Availability Recommendations Disaster Recovery for an on-premise SQL Server using a SQL Server VM in Windows Azure
Storage Recommendations
Do not use write caching. Note that by default the write cache is turned on for new OS disks, and it is turned off for new data disks. If you are using a SQL Server gallery image and keeping data on the OS drive, it is recommended that the OS disk write cache is turned off. If you are using a stock image, avoid using OS drive for large databases. Instead, add an additional virtual drive and store your databases there. Remember to re-configure the default database, log and backup directories in management studio to point to your new drive. Consider putting database and transaction log files on separate drives. Consider putting tempdb on the non-persistent cache disk (see the community contribution Change TEMPDB to Temporary Drive on Azure SQL IaaS for one person's approach.
microsoft.com//11578.best-practices-for-running-sql-server-in-windows-azure-virtual-machine.a
1/2
1/15/13
Best Practices for Running SQL Server in Windows Azure Virtual Machine - TechNet Articles - United
Database Recommendations
Consider using database page compression to reduce I/O. Speeding up restores of large databases (by skipping the zeroing process for data files) Determine the windows account under which SQL service runs Grant the windows account the "Perform Volume Maintenance Tasks" right Restart SQL service The next restore process should skip the zeroing of database files.
Disaster Recovery for an on-premise SQL Server using a SQL Server VM in Windows Azure
A SQL Server VM in Windows Azure can be added as a replica to an on-premise AlwaysOn Availability Group . This enables a disaster recovery solution for an onpremise SQL Server. If the on-premise SQL Server fails, you can failover the Availability Group to the SQL Server VM replica. In addition, you can configure the SQL Server
VM as readable, to offload read workloads and backups. The steps involved are:
1. Configure a virtual network for connectivity between on-premise and Windows Azure (how to create VNet for cross-premise connectivity
2. Join a WA VM to the on-premise (Active Directory) Windows Domain (how to join computer to a domain ) 3. Install the Windows Server Failover Clustering (WSFC) feature in the VM (how to install WSFC ) 4. Add the VM as a node of an existing on-premise Windows Server Failover Cluster, or create a new cluster adding it (how to create a failover cluster or add a node ) 5. Remove the cluster quorum vote from the VM so that it doesn't impact the quorum of the on-premise cluster (how to configure cluster quorum votes ) 6. If you have an existing Listener, you'll need to add a static IP address from the Windows Azure subnet to the listener (how to configure a listener ) 7. Add the SQL Server VM as a secondary replica of an existing Availability Group, or create a new Availability Group adding it (how to create an availability group or how to add a replica to an availability group ). As part of this, configure the secondary replica as Availability Mode = Asynchronous - To ensure no impact to primary replica's throughput Failover Mode = Manual (Only failover mode supported for asynchronous availability mode) Allow Connections = All (to make the replica readable) Please note the following caveats with regards to application connectivity: Currently, Availability Group Listeners (virtual network names) are not supported on Windows Azure VMs. Specifically, the listener can't be bound to a Windows Azure VM. Applications can still connect to the primary replica out of 2 replicas only (1 primary and 1 secondary), and reconnect to it after failover specifying a failover partner in their connection string (same approach used by Database Mirroring). Notice that applications can connect to and run read workloads on secondary replicas marked as readable . Return to SQL Server in Windows Azure Virtual Machine Early Adoption Cook Book (en-US)
). Notice that this requires configuring an on-premise VPN device today. VPN software solutions (e.g. TMG 2010) are not officially supported today (though some people have used them successfully. Windows 8 Remote Access will be supported in the future.
microsoft.com//11578.best-practices-for-running-sql-server-in-windows-azure-virtual-machine.a
2/2