SQL Tip14

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

SQL TIP14.

Some of the Real-time scenarios where you can reduce the cost of Azure
SQL?
Answer:
1. Keep the database in right service tier. No excessive resources. No inadequate resources.
Regularly monitor the resource usage graph and take the decision.
2. You can keep the Databases in low tier(scale down) in non-business hours/Night
times/Weekends As the usage is the low. Better automate this task
3. In Geo-replication, you can keep the Secondary database in lower tier. There is no rule to
keep the databases (primary and secondary) in same tier.
4. Very important thing is, try to use Failover groups only for HA(Reports) option. No need
to use DR purpose as no failure cases of Azure SQL Databases. These DB’s are always
available
5. Also use Data-Sync option for HA. Data-Sync is a table level and works like as a
Transaction replication. Here you can keep the schedule s well to sync target DB.
6. If possible make the DB’s in elastic pool rather keeping in single DB model. Check the All
database utilization and go for this, if DB usages are unpredictable
7. Stop the VM’s, when you not using on schedule basis. You can automate this task.
8. If you have requirements like need more storage with less CPU and Memory and/or less
CPU with more memory and/or vice-versa, go for VCore model rather DTU Model. Vcore
model is like Independent scaling IO, CPU and Memory.
9. You can use azure calculator to know more about the price differences. Cost also vary
depend on region
10. Take help of DTU-Calculator and AZURE-Calculator to estimates the costs and know the
price differences.
11. Go for reservations/Hybrid concept for discounts. You can get almost 75% discount.
12. If Intermittent, unpredictable usage of databases, go for servers less model in General
purpose Vcoremodel to save the huge cost.
https://docs.microsoft.com/en-us/azure/azure-sql/database/serverless-tier-overview
13. For automating the jobs, go for using runbooks which are very cheaper rather elastic
jobs but Monitoring is tough in runbooks.
14. Check out the databases backup retention and their redundant storages. Don’t blindly
depended on default options.
15. Go for purging/Archiving/Partitioning on large tables
16. Use the Read-Scale benefit when the DB is in Premium/Business critical tiers
<Contact me (WhatsApp https://wa.me/919966246368 ) for Real-time Azure SQL DBA
Training's & Live class room recorded sessions and Material and scripts>

You might also like