Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Get the most out of yourWindows Azure VMs 
Or how SQL Server best practices 
apply in the cloud
About me 
2| 
@ikdonev 
/ivan.donev 
/in/ikdonev
Agenda 
3|
TIERSIZE
What do you get? 
Hyper-V VM with TIER and SIZE 
Multi-tenant configuration 
Windows Server and SQL Server installed 
...
Tip #1 –VM Size 
Start from Standard A2 
2CPUs and 3,5GB Memory 
Basic Tier use different hardware 
For intensive work...
Tip #2 –Storage account settings 
Keep it close to the VM 
Disable GEO replication
Tip #3 –Disks and Storage caching 
Disable caching on data disks 
Changing cache settings require VM restart 
Disktype 
...
Random I/O (8 KB Pages) 
Sequential I/O (64 KB Extents) 
Reads 
Writes 
Reads 
Writes 
8000 
8000 
2400 
4000 
60 MB/s 
60...
Disk striping vs Storage Pools 
Dynamic volume on OS level 
No Protection 
Multiple volumes 
Storage Pools 
You can u...
Options for storage layout 
Single volume (striped or from Storage pool)
Options for storage layout -cntnd 
Multiple striped volumes
Tip #5 –Single vs. Multiple storage accounts 
Avoid mixing up 
Recovery is more difficult with mixed accounts 
Be caref...
Tip #6 –NTFS Allocation size 
Default = 4 KB 
Recommended = 64 KB 
Test with 256 KB cluster size
Tip #7 –Instant file initialization 
Part of the local security policy
Performance impact of IFI 
0 
10 
20 
30 
40 
50 
60 
Create 100 GB database 
Restore 100 GB database 
Time (minutes) 
Imp...
Tip #8 –Data compression 
PAGE compression perform better 
Reduced I/O 
Improved OLTP Throughput
400000 
500000 
600000 
700000 
800000 
900000 
1000000 
100000 
150000 
200000 
250000 
NONE 
PAGE 
Reads 
Time (ms) 
Que...
0 
10 
20 
30 
40 
50 
60 
70 
NONE 
PAGE 
CPU Time (%), Throughput (Business Transactions/sec) 
OLTP Throughput and CPU U...
Tip #9 –Locked pages in memory
Tip #10 –Growing and shrinking 
Disable autoshrink 
Limit or disable autogrowth
What I did not mention 
Adaptive partitioning and load balancing 
Backups to Azure BLOB storage 
-NumberOfColumnsand –I...
Sponsors
Resources 
http://blogs.technet.com/b/yungchou/archive/ 2012/08/31/windows-server-2012-storage- virtualization-explained....
Get the most out of your Windows Azure VMs
Upcoming SlideShare
Loading in …5
×

Get the most out of your Windows Azure VMs

486 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Get the most out of your Windows Azure VMs

  1. 1. Get the most out of yourWindows Azure VMs Or how SQL Server best practices apply in the cloud
  2. 2. About me 2| @ikdonev /ivan.donev /in/ikdonev
  3. 3. Agenda 3|
  4. 4. TIERSIZE
  5. 5. What do you get? Hyper-V VM with TIER and SIZE Multi-tenant configuration Windows Server and SQL Server installed 3 disks OS Temporary Data disk
  6. 6. Tip #1 –VM Size Start from Standard A2 2CPUs and 3,5GB Memory Basic Tier use different hardware For intensive workloads –A8 and A9 Standard Utilize the Standard D_XX VMs Non-persistent data BPE
  7. 7. Tip #2 –Storage account settings Keep it close to the VM Disable GEO replication
  8. 8. Tip #3 –Disks and Storage caching Disable caching on data disks Changing cache settings require VM restart Disktype ReadOnly ReadWrite None(disabled) Operatingsystemdisk Supported Defaultmode Notsupported Datadisk Supported Supported Defaultmode
  9. 9. Random I/O (8 KB Pages) Sequential I/O (64 KB Extents) Reads Writes Reads Writes 8000 8000 2400 4000 60 MB/s 60 MB/s 150 MB/s 250 MB/s Tip #4 –Multiple disks for I/O bandwidth Single disk performance Multiple disks Striping/Storage pools (WS2012) Random I/O (8 KB Pages) Sequential I/O (64 KB Extents) Reads Writes Reads Writes IOPS 500 500 500 300 Bandwidth 4 MB/s 4 MB/s 30 MB/s 20 MB/s 8/16 disks Random I/O (8 KB Pages) Sequential I/O (64 KB Extents) Reads Writes Reads Writes IOPS 4000 4000 2400 2400 Bandwidth 30 MB/s 30 MB/s 150 MB/s 150 MB/s
  10. 10. Disk striping vs Storage Pools Dynamic volume on OS level No Protection Multiple volumes Storage Pools You can use RAID protection Multiple volumes on the same pool
  11. 11. Options for storage layout Single volume (striped or from Storage pool)
  12. 12. Options for storage layout -cntnd Multiple striped volumes
  13. 13. Tip #5 –Single vs. Multiple storage accounts Avoid mixing up Recovery is more difficult with mixed accounts Be careful with limits! 500TB per account
  14. 14. Tip #6 –NTFS Allocation size Default = 4 KB Recommended = 64 KB Test with 256 KB cluster size
  15. 15. Tip #7 –Instant file initialization Part of the local security policy
  16. 16. Performance impact of IFI 0 10 20 30 40 50 60 Create 100 GB database Restore 100 GB database Time (minutes) Impact of Instant File Initialization Without Instant File Initialization With Instant File Initialization
  17. 17. Tip #8 –Data compression PAGE compression perform better Reduced I/O Improved OLTP Throughput
  18. 18. 400000 500000 600000 700000 800000 900000 1000000 100000 150000 200000 250000 NONE PAGE Reads Time (ms) Query Performance with Data Compression CPU Time Elapsed Time Logical Reads Physical Reads (+RA)
  19. 19. 0 10 20 30 40 50 60 70 NONE PAGE CPU Time (%), Throughput (Business Transactions/sec) OLTP Throughput and CPU Usage with Data Compression Throughput CPU Time (%)
  20. 20. Tip #9 –Locked pages in memory
  21. 21. Tip #10 –Growing and shrinking Disable autoshrink Limit or disable autogrowth
  22. 22. What I did not mention Adaptive partitioning and load balancing Backups to Azure BLOB storage -NumberOfColumnsand –Interleave when adding disk to Storage Pools Preconfigured and optimized VMs DWH OLTP
  23. 23. Sponsors
  24. 24. Resources http://blogs.technet.com/b/yungchou/archive/ 2012/08/31/windows-server-2012-storage- virtualization-explained.aspx http://msdn.microsoft.com/en- us/library/azure/dn248436.aspx http://thomaslarock.com/2014/08/qa-azure- webinar-scott-klein/ http://sqlmag.com/sql-server/know-your-raid- levels

×