Skip to main content

Azure SQL DB tiers Short Overview

שלום לכולם
היום אסקור בקצרה את ה tiers השונים לבחירת DB.
במילה tiers מסתתרת משמעות רחבה מאד, טווח רחב מאד של אפשרויות ביצועים.
בפוסט שפרסמתי בחודש מרץ ביצעתי השוואות ביצועים בין tiers שונים:
http://www.sqlazure.co.il/2019/03/azure-sql-db-tiers-comparison.html

והיום אציג טבלה ובה החומרה מתחת לפני השטח נכון להיום!
כידוע יש 2 קבוצות שונות של שרתים שאפשר לבחור עבור Azure SQL DB

  1. DTU
  2. vCore

כאשר באפשרות הראשונה אין אפשרות לבחור קומבינציה של רכיבים - פשוט  בוחרים:
 Basic\Standard1..12\Premium1...15
שזה שוני שנובע מ Local SSD

וכאשר באפשרות השנייה יש אפשרות לבחור בין סוגי CPU שונים
Gen 4 / Gen 5
Gen 4 CPUs are based on Intel E5-2673 v3 (Haswell) 2.4 GHz processors
Gen 5 CPUs are based on Intel E5-2673 v4 (Broadwell) 2.3 GHz processors

שזה גם משפיע על כמות ה RAM
והאם
Busines critical \ General purpose
שגם זה שוני שנובע מ Local SSD
תחת vCore - יש אפשרות לבצע תשלום מראש לכמה שנים ובכך לחסוך המון כסף למי שמשתמש ב  vCore (ועל זה בפעם אחרת)

יש עוד קומבינציות ועוד אפשרויות אבל גם את זה נשמור לפעם אחרת.

מכיוון שאי אפשר לכמת מה יש תחת DTU מבחינת חומרה להלן ההשוואה

 
Tier CPU RAM in GB
s0   1, 1
s1   1, 2
s2   1, 2
s3   2, 9
s4   4, 19
s6   6, 28
s7   12, 56
s9   24, 113
s12  44, 173
p1   2, 9
p2   4, 19
p4   6, 28
p6   12, 56
p11  18, 82
p15  42, 171
GeneralPurpose GP_Gen4_1 1, 4
GeneralPurpose GP_Gen4_24 24, 80
GeneralPurpose GP_Gen5_80 80, 190

 מפה כל אחד ילמד ויבין מה טוב לו
ניתן להסתכל בלינק הבא על כל מיני פרטים נוספים

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers-general-purpose-business-critical

את המידע שלפתי לפי השאילתא הבאה:
 
-- CPU assigned to database
SELECT
scheduler_id, cpu_id, status, is_online
FROM sys.dm_os_schedulers
WHERE status = 'VISIBLE ONLINE'
-- Memory allocated to database
SELECT  *, cntr_value / 1024/1024 AS RAM_in_GB
FROM sys.dm_os_performance_counters
WHERE counter_name LIKE '%Target Server Memory%'
 
 
 

Comments

Popular posts from this blog

How to restore deleted Azure Synapse dedicated SQL pool

  Existing dedicated pool can be easily restored from Azure portal or PowerShell command, but for now deleted pool could be restored from PowerShell only! Example: # Connect to Azure with system-assigned managed identity $AzureContext = (Connect-AzAccount -Identity).context # set and store context $AzureContext = Set-AzContext -SubscriptionName $AzureContext.Subscription -DefaultProfile $AzureContext # $AzureContext = Set-AzContext -SubscriptionName $SubscriptionName -DefaultProfile $AzureContext $SubscriptionName="Databases" $ResourceGroupName="stg-rg-we" $ServerName="stg-synapse-we"   $DatabaseName="sql_we_2023_11_07_13_42" $NewDatabaseName="sql_dp_we_deleted" ######################################## $token = (Get-AzAccessToken -ResourceUrl https://database.windows.net).Token $SubscriptionId = "ce088f9e-1111111a3914b" $DedicatedPoolEndPoint = "stg-synapse-we.sql.azuresynapse.net" $DedicatedPoolName = $DatabaseNam...

Back to Basic - create new Azure SQL DB

Hi All Long time no posts, i have been busy in last few months on a hard day 2 day work and did not  had the chance to publish some posts. So i have decided to sit and write some "Back to Basic" posts. Today i will write about how to create an Azure SQL Db from the portal. Choose the Subscription. RG - if its in special Project connect to its RG (Resource group is a virtual collection of resources in order to easy manage budgets.) DB Name Server - choose the correct or create one(Server has limited manage capabilities on the DB like security, backup policies and other rules) Choose no (elastic pool is a feature that will not be explained here) This is the server tier, means the power of the DB and by pass the payments of the DB (i will have special post on the new tiers options, for this post i will leave the default) This is the Storage redundancy , for now leave it in the default option. now we will move to the Networking tab: 8 - 9. Configuration of networking and s...

Configuring secondary database in Azure SQL DB - Bug found

Hi All Last week we had an issue with a secondary DB in geo replication and fail over group. To make the long story short we had to delete the secondary and recreate a secondary from scratch . And now let me tell you the story, we build a DB in P6 tier - very high, expensive and highly available. Then we add a geo replication copy via the platform, like it shows here. This is take from MSFT documentation: https://docs.microsoft.com/en-us/azure/azure-sql/database/active-geo-replication-overview It is written:  " Both primary and secondary databases are required to have the same service tier. It is also strongly recommended that the secondary database is created with the same backup storage redundancy and compute size (DTUs or vCores) as the primary. If the primary database is experiencing a heavy write workload, a secondary with lower compute size may not be able to keep up with it. That will cause redo lag on the secondary, and potential unavailability of the secondary. To mit...