SlideShare uma empresa Scribd logo
1 de 106
@murilocmiranda
http://www.sql.pt/
murilo.miranda@gmail.com
AGENDA
1.
2.
3.
4.
5.
6.

What is a VLDB?
Typical Troubles
OS Config
Instance Config
DB Config
Maintenance

AGENDA
VLDB??
There’s no official definition.

VLDB??
There’s no official definition.
Typically occupying TB range.

VLDB??
There’s no official definition.
Typically occupying TB range.
Billions of rows.

VLDB??
There’s no official definition.
Typically occupying TB range.
Billions of rows.
Typically: OLAP or OLTP with
large amount of users.

VLDB??
Wikipedia…
A very large database, or VLDB, is a database that contains an
extremely high number of tuples (database rows), or occupies
an extremely large physical filesystem storage space. The
most common definition of VLDB is a database that occupies
more than 1 terabyte or contains several billion rows,
although naturally this definition changes over time.

VLDB??
SQL VS. VLDB
Maximum database size

SQL VS. VLDB
Maximum database size

524,272 TB

SQL VS. VLDB
Maximum data file size

Maximum log file size

16 TB
2 TB

A limit of 32.767 files which can be distributed between 32.767 filegroups.

SQL VS. VLDB
TYPICAL TROUBLES
Maintenance

TYPICAL TROUBLES
Backups

Maintenance

TYPICAL TROUBLES
Backups

Maintenance

Indexes

TYPICAL TROUBLES
Backups

Maintenance

Indexes

Statistics

TYPICAL TROUBLES
Backups

Maintenance

Indexes

Statistics
Disaster
Recovery

TYPICAL TROUBLES
Backups

Maintenance

Indexes

Performanc
e

Statistics
Disaster
Recovery

TYPICAL TROUBLES
OS CONFIG
Perform Volume
Maintenance

OS CONFIG
Turning on Instant Initialization to
speed up data file growth
and restores.

OS CONFIG
Storage
Layout

OS CONFIG
Plan an efficient storage layout.

OS CONFIG
Plan an efficient storage layout.
Normally, the more spread, the more
effective.

OS CONFIG
Plan an efficient storage layout.
Normally, the more spread, the more
effective.
Suggestion
:
SQL BIN SQL DATA SQL IDX SQL LOGS SQL TMP

OS CONFIG
Mountpoint
s

OS CONFIG
Mountpoints could be a good strategy.

OS CONFIG
Mountpoints could be a good strategy.
Mountpoints are persistent
directories that point to disk
volumes.

OS CONFIG
Pros:
•
•
•
•

Scalable.
Save drive letters (limited to 26).
Easy to add.
No need to restart SQL Server.

OS CONFIG
Cons:
• Looks like a simple folder.
• Need a different approach to monitor.

OS CONFIG
So, if you don’t know the server….

OS CONFIG
Partition
Alignment

OS CONFIG
Setting the partition offset properly can
improve up to 30% the performance.

OS CONFIG
Setting the partition offset properly can
improve up to 30% the performance.
Partition alignment increases throughput
(bytes/sec) and reduce disk queues.

OS CONFIG
Setting the partition offset properly can
improve up to 30% the performance.
Partition alignment increases throughput
(bytes/sec) and reduce disk queues.
A partition that is track misaligned will occasionally
cause 2 I/O operations instead of one.

OS CONFIG
Unless performed at the time of partition
creation, the default alignment offset (31,5
Kb) will result in unaligned partitions on
versions of Windows up to and including
Windows Server 2003.

OS CONFIG
This offset is associated with hidden sectors,
which basically store partition information.

OS CONFIG
This offset is associated with hidden sectors,
which basically store partition information.
Considering that:
- Each disk sector has 512 bytes.
- Win. 2003 has 63 hidden sectors.

OS CONFIG
This offset is associated with hidden sectors,
which basically store partition information.
Considering that:
- Each disk sector has 512 bytes.
- Win. 2003 has 63 hidden sectors.

512 * 63 = 31,5 Kb

OS CONFIG
Example:
Stripe Unit Size:
Allocation Unit Size:

Optimal
values

64Kb*
64Kb

OS CONFIG

* Defined by storage team.
Example:
Stripe Unit Size:
Allocation Unit Size:

Optimal
values

64Kb*
64Kb

Data (Alloc. Unit Size)

OS CONFIG
Stripe Size

* Defined by storage team.
Optimal solution:
Data (Alloc. Unit Size)

Stripe Size

OS CONFIG
Best Practice:
- Set an offset of 1024 Kb.
-

This value works for mostly disks out there.

- Allocation Unit Size = Stripe Unit Size.
The rule:
Offset / Allocation unit = INTEGER
Eg: 1024/64=16

OS CONFIG
WARNIG
Some I/O subsystem vendors intercepting what
Windows is trying to do and are still creating
partitions with the incorrect offset – Even for
Windows 2008+.

ALWAYS check!
Anti-Virus
servers…
is really a need?

OS CONFIG

in
•
•
•
•

Cost money to license.
Maintenance costs.
Can cause problems in Prod.
Can’t protect to zero-day exploits.

OS CONFIG
What can we do instead?

OS CONFIG
•
•
•
•

Keep the servers patched.
Configure the firewall properly.
Restrict server’s access.
You can install AV… in workstations!

OS CONFIG
What’s the big problem for
SQL Server?

OS CONFIG
• One more app fighting for resources.
• SQL Server files can be locked.

OS CONFIG
How can AV and SQL Server
live together?

OS CONFIG
Add exceptions!

OS CONFIG
Basically the AV should ignore:
•
•
•
•
•
•
•

SQL Server data and log files (.mdf, .ndf and .ldf).
Backup files (.bak and .trn).
Full-text Catalog files.
Trace files (.trc).
ERRORLOG files.
SQL Server binaries folder.
Filestream folder.

OS CONFIG
More on: http://support.microsoft.com/kb/309422
INSTANCE CONFIG
Memory

INSTANCE CONFIG
Memory
This is a very open subject.

INSTANCE CONFIG
Memory
This is a very open subject.

There are lots of discussions about that…

INSTANCE CONFIG
Memory
This is a very open subject.

There are lots of discussions about that…
There’s no perfect formula, because the correct awnser is….

INSTANCE CONFIG
Memory
This is a very open subject.

There are lots of discussions about that…
There’s no perfect formula, because the correct answer is….

… it depends !!

INSTANCE CONFIG
Memory
An efficient general rule…

Baseline: 1 GB for the OS
Up to 16 GB available
• 1 GB for each 4 GB
More than 16 GB
• 1 GB for every 8 GB

INSTANCE CONFIG
Memory
This is for 64 bit servers…
For 32 bit, here is a good article to follow:
http://www.eraofdata.com/understanding-and-configuring-sql-servers-memory-settings/

INSTANCE CONFIG
TempDB

INSTANCE CONFIG
TempDB
Two common behaviors:

INSTANCE CONFIG
TempDB
Two common behaviors:
• Ignore.
• Overvalue.

INSTANCE CONFIG
TempDB
As per Brent Ozar:
“TempDb is the SQL’s public
toilet”

INSTANCE CONFIG
TempDB

And this is
true!

INSTANCE CONFIG
TempDB

INSTANCE CONFIG
TempDB
There’s a myth:
• tempdb should always have one data file per processor core.

INSTANCE CONFIG
TempDB
There’s a myth:
• tempdb should always have one data file per processor core.

Again….

INSTANCE CONFIG
TempDB
There’s a myth:
• tempdb should always have one data file per processor core.

Again…. It depends!

INSTANCE CONFIG
TempDB
Execute large operations, like a sort or store a huge temporary table,
may be slowed down because of the round-robin operation.

The more files, the more costly.

INSTANCE CONFIG
TempDB
Common wait types on TempDB:
• PAGELATCH_*: Contention for In-memory allocation bitmaps.
• PAGEIOLATCH_*: Contention at the I/O subsystem level.

INSTANCE CONFIG
TempDB
How many tempdb data files should we have?

INSTANCE CONFIG
TempDB
How many tempdb data files should we have?
A recommended approach is:
• Up to 8 cores:
Number of files = Number of cores.
• More than 8 cores:
1. Add 8 files.
2. Monitor PAGELATCH_*.
3. Add 4 more files at a time, if necessary.

INSTANCE CONFIG
TempDB
Other TempDB best practices:
• Isolate the TempDB in a different storage system.
• Depending of the load, you might need to separate LDF
and M(N)DF.
• Use a fast drive (SSD :).
• Set an initial size, equally to all the files.
• Set the auto-growth accordingly.
• If you have a heavy operation using constantly the
TempDB, consider create a staging table into your own
database.

INSTANCE CONFIG
TempDB
From SQL Server 2012, local disk TempDB in SQL
Server cluster.

INSTANCE CONFIG
TempDB
From SQL Server 2012, local disk TempDB in SQL
Server cluster.
• More flexibility.
• Use PCIe bus instead of HBA, and have more throughput.
• Data and Log are in SAN, TempDB locally: Avoid
congestion or contention on a shared storage network or
array.

INSTANCE CONFIG
DB CONFIG
• Don’t rely on auto-grow.
• You can manage file growth and control the free
disk space and avoids performance problems.

DB CONFIG
• Don’t rely on auto-grow.
• You can manage file growth and control the free
disk space and avoids performance problems.

• Have page checksums turned on.
• To detect damaged pages.

DB CONFIG
• Don’t rely on auto-grow.
• You can manage file growth and control the free
disk space and avoids performance problems.

• Have page checksums turned on.
• To detect damaged pages.

• Make sure auto-stats update is turned on.
• For OLTP consider turning auto-stats update off
only for heavily updated tables, and schedule a
job that periodically updates the statistics for
those tables.

DB CONFIG
DB CONFIG
• Make sure you’re managing the transaction log
correctly:
• Full recovery requires log backups.
• No advantage in have multiple log files.
• Control the file growth or this could cause
VLF fragmentation.
• Performance issues.
• Slow backup time.
• Don’t set the log file growth size to a multiple of 4 in
older SQL Server versions.
•

http://connect.microsoft.com/SQLServer/feedback/details/481594/log-growth-not-workingproperly-with-specific-growth-sizes-vlfs-also-not-created-appropriately

DB CONFIG
MAINTENACE
Few questions…

MAINTENANCE
How to meet your SLAs dealing with a TB database?
Is data-loss acceptable?
What about the recovery time?
Are you able to UPDATE STATS, do INDEX MAINTENANCE
and run a INTEGRITY CHECK in time and WITHOUT PROBLEMS?

MAINTENANCE
DISASTER RECOVERY

MAINTENANCE
First of all, think in a Disaster Recovery plan!
SQL Server is not Oracle, we have “free” included options:
• Log Shipping (HA and DR)
• Database Mirroring (HA and DR)
•

DB Snapshot advantage

• Replication (HA, DR and LB)
• AlwaysOn (HA, DR and LB)
• We can still be safe with a storage level replication.

MAINTENANCE
Partition
Compress
Clean

MAINTENANCE
Partition, Compress and Clean
Using the partitioning feature you can devise the maintenance.

MAINTENANCE
Partition, Compress and Clean
Using the partitioning feature you can devise the maintenance.
• You can use the DBCC CHECKFILEGROUP command.
•

DBCC CHECKFILEGROUP and DBCC CHECKDB are. The main difference
is that DBCC CHECKFILEGROUP is limited to the single specified filegroup
and required tables.

MAINTENANCE
Partition, Compress and Clean
Using the partitioning feature you can devise the maintenance.
• Devising a filegroup architecture allows piecemeal restores
with low TTR
• Online piecemeal restore:
•
•

After the PRIMARY FG restore the DB can be online.
The tables will come available while each FG is restored.

• Design the database accordingly:
•
•

Keep the necessary into the PRIMARY FG.
• Configuration tables, indispensable data, etc…
Think in the consistency: keep related tables in the same FG.

MAINTENANCE
Partition, Compress and Clean
Compress backups Vs. Compress Data
• Backup compression:
• More CPU usage to backup/restore (avg ~20%).
• Less time to backup/restore (avg ~40%).
• Good compression ratio.
•

SELECT backup_size/compressed_backup_size FROM msdb..backupset;

• A backup set will not be able to contain both compressed
and uncompressed backups.
• No advantage with TDE enabled.

MAINTENANCE
Partition, Compress and Clean
Compress backups Vs. Compress Data
• Data compression (ROW and PAGE):
• TDE and Data Compression play together!
• Backup and Data Compression can coexist!

MAINTENANCE
Partition, Compress and Clean
Purge and Archive the data
• Purging data:
• If data is needed no more…
• Save storage.
• Faster backups.
• Improves the performance.

MAINTENANCE
Partition, Compress and Clean
Purge and Archive the data
• Archiving data:
• If data is still needed…
• Isolate in a different FG.
• Set as Read-Only: Avoids locking.
• For faster scans: 100% fill factor.
• Update statistics with FULLSCAN.
• You can adapt the backup strategy.
• You can adapt the backup strategy using Partial Backups.

MAINTENANCE
•

This allows you to exclude read-only filegroups.
More about DBCC CHECKDB
• CHECKDB takes time and uses resources.
• Run a DBCC CHECKDB using the WITH PHYSICAL_ONLY option.
•
•

Limits the checking to the integrity of the physical structure of the page
and record headers and the allocation consistency of the database.
Faster, but a full CHECKDB is required periodically.

MAINTENANCE
More about DBCC CHECKDB
• We can divide up the consistency checking over several days, Paul
Randal’s prescription is:
•

Divide tables in two buckets (bigger ones and the rest)
• On Sunday:
• Run a DBCC CHECKALLOC
• Run a DBCC CHECKCATALOG
• Run a DBCC CHECKTABLE on each table in the first bucket
• On Monday, Tuesday, Wednesday:
• Run a DBCC CHECKTABLE on each table in the 2nd, 3rd, 4th
buckets, respectively
• On Thursday:
• Run a DBCC CHECKALLOC
• Run a DBCC CHECKTABLE on each table in the 5th bucket
• On Friday and Saturday:
• Run a DBCC CHECKTABLE on each table in the 6th and 7th
buckets, respectively

MAINTENANCE

More on: http://www.sqlskills.com/blogs/paul/checkdb-from-every-angle-consistency-checking-options-f
More about BACKUPS
• Besides doing PARTIAL BACKUPS we have more options…
• A MULTISTREAM BACKUP is an option to run faster:
File 1

File 2

F:

File 3

DB

E:

G:

MAINTENANCE
More about BACKUPS
• To make sure it will be well stored, we can use a MIRROR.

File 1

File 1

File 2

File 3

DB

E:

File 2

F:

File 3

G:

MAINTENANCE
More about BACKUPS
• If storing to the network:
• Use a separate network card to avoid network congestion.
• Don’t forget about T-LOG backups!
• Create a good backup strategy.

• Verify the backups periodically.

MAINTENANCE
INDEXES MAINTENANCE
• Only rebuild/defrag indexes that are really fragmented (avoid
unnecessary work in short maintenance windows)
• If you defrag instead of rebuild, make sure you manually update
stats.

• Be wary of doing large index maintenance jobs if you use log
shipping or DBM
• They contribute to large log backups
• Index rebuilds are always full-logged when DBM is present

MAINTENANCE
QUESTIONS?
OBRIGADO!
@murilocmiranda
http://www.sql.pt/
murilo.miranda@gmail.com

Mais conteúdo relacionado

Mais procurados

Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB ClustersDevelopment to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB ClustersSeveralnines
 
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Community
 
Meet hbase 2.0
Meet hbase 2.0Meet hbase 2.0
Meet hbase 2.0enissoz
 
CaSSanDra: An SSD Boosted Key-Value Store
CaSSanDra: An SSD Boosted Key-Value StoreCaSSanDra: An SSD Boosted Key-Value Store
CaSSanDra: An SSD Boosted Key-Value StoreTilmann Rabl
 
Ceph Day KL - Ceph on All-Flash Storage
Ceph Day KL - Ceph on All-Flash Storage Ceph Day KL - Ceph on All-Flash Storage
Ceph Day KL - Ceph on All-Flash Storage Ceph Community
 
Geek Sync | Guide to Understanding and Monitoring Tempdb
Geek Sync | Guide to Understanding and Monitoring TempdbGeek Sync | Guide to Understanding and Monitoring Tempdb
Geek Sync | Guide to Understanding and Monitoring TempdbIDERA Software
 
SSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQLSSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQLYoshinori Matsunobu
 
Tuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy WorkloadTuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy WorkloadMarius Adrian Popa
 
Off-heaping the Apache HBase Read Path
Off-heaping the Apache HBase Read Path Off-heaping the Apache HBase Read Path
Off-heaping the Apache HBase Read Path HBaseCon
 
Harrison fisk masteringinnodb-diagnostics
Harrison fisk masteringinnodb-diagnosticsHarrison fisk masteringinnodb-diagnostics
Harrison fisk masteringinnodb-diagnosticsguest8212a5
 
Gruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in TelcoGruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in TelcoGruter
 
Ceph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph clusterCeph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph clusterCeph Community
 
ZFS for Databases
ZFS for DatabasesZFS for Databases
ZFS for Databasesahl0003
 
Ceph Day San Jose - HA NAS with CephFS
Ceph Day San Jose - HA NAS with CephFSCeph Day San Jose - HA NAS with CephFS
Ceph Day San Jose - HA NAS with CephFSCeph Community
 
Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?Johnny Miller
 
Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...
Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...
Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...Ontico
 
HBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBaseHBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBaseenissoz
 
Interactive Hadoop via Flash and Memory
Interactive Hadoop via Flash and MemoryInteractive Hadoop via Flash and Memory
Interactive Hadoop via Flash and MemoryChris Nauroth
 
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext Виталий Стародубцев
 

Mais procurados (20)

Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB ClustersDevelopment to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB Clusters
 
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
 
Meet hbase 2.0
Meet hbase 2.0Meet hbase 2.0
Meet hbase 2.0
 
CaSSanDra: An SSD Boosted Key-Value Store
CaSSanDra: An SSD Boosted Key-Value StoreCaSSanDra: An SSD Boosted Key-Value Store
CaSSanDra: An SSD Boosted Key-Value Store
 
Ceph Day KL - Ceph on All-Flash Storage
Ceph Day KL - Ceph on All-Flash Storage Ceph Day KL - Ceph on All-Flash Storage
Ceph Day KL - Ceph on All-Flash Storage
 
Geek Sync | Guide to Understanding and Monitoring Tempdb
Geek Sync | Guide to Understanding and Monitoring TempdbGeek Sync | Guide to Understanding and Monitoring Tempdb
Geek Sync | Guide to Understanding and Monitoring Tempdb
 
SSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQLSSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQL
 
Tuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy WorkloadTuning Linux Windows and Firebird for Heavy Workload
Tuning Linux Windows and Firebird for Heavy Workload
 
Off-heaping the Apache HBase Read Path
Off-heaping the Apache HBase Read Path Off-heaping the Apache HBase Read Path
Off-heaping the Apache HBase Read Path
 
Harrison fisk masteringinnodb-diagnostics
Harrison fisk masteringinnodb-diagnosticsHarrison fisk masteringinnodb-diagnostics
Harrison fisk masteringinnodb-diagnostics
 
Gruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in TelcoGruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in Telco
 
Ceph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph clusterCeph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph cluster
 
ZFS for Databases
ZFS for DatabasesZFS for Databases
ZFS for Databases
 
Ceph Day San Jose - HA NAS with CephFS
Ceph Day San Jose - HA NAS with CephFSCeph Day San Jose - HA NAS with CephFS
Ceph Day San Jose - HA NAS with CephFS
 
Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?
 
Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...
Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...
Tarantool: как сэкономить миллион долларов на базе данных на высоконагруженно...
 
HBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBaseHBase and HDFS: Understanding FileSystem Usage in HBase
HBase and HDFS: Understanding FileSystem Usage in HBase
 
Interactive Hadoop via Flash and Memory
Interactive Hadoop via Flash and MemoryInteractive Hadoop via Flash and Memory
Interactive Hadoop via Flash and Memory
 
HBase Accelerated: In-Memory Flush and Compaction
HBase Accelerated: In-Memory Flush and CompactionHBase Accelerated: In-Memory Flush and Compaction
HBase Accelerated: In-Memory Flush and Compaction
 
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
 

Destaque

2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...
2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...
2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...Boris Glavic
 
Oracle Database 12c - Features for Big Data
Oracle Database 12c - Features for Big DataOracle Database 12c - Features for Big Data
Oracle Database 12c - Features for Big DataAbishek V S
 
Presentation backup and recovery best practices for very large databases (v...
Presentation   backup and recovery best practices for very large databases (v...Presentation   backup and recovery best practices for very large databases (v...
Presentation backup and recovery best practices for very large databases (v...xKinAnx
 
Connecting Hadoop and Oracle
Connecting Hadoop and OracleConnecting Hadoop and Oracle
Connecting Hadoop and OracleTanel Poder
 
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Dave Segleau
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewDave Segleau
 
Best New Features of Oracle Database 12c
Best New Features of Oracle Database 12cBest New Features of Oracle Database 12c
Best New Features of Oracle Database 12cPini Dibask
 

Destaque (10)

2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...
2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...
2016 VLDB - Messing Up with Bart: Error Generation for Evaluating Data-Cleani...
 
Oracle Database 12c - Features for Big Data
Oracle Database 12c - Features for Big DataOracle Database 12c - Features for Big Data
Oracle Database 12c - Features for Big Data
 
Aioug vizag ado_12c_aug20
Aioug vizag ado_12c_aug20Aioug vizag ado_12c_aug20
Aioug vizag ado_12c_aug20
 
Presentation backup and recovery best practices for very large databases (v...
Presentation   backup and recovery best practices for very large databases (v...Presentation   backup and recovery best practices for very large databases (v...
Presentation backup and recovery best practices for very large databases (v...
 
Oracle's BigData solutions
Oracle's BigData solutionsOracle's BigData solutions
Oracle's BigData solutions
 
BIG DATA and USE CASES
BIG DATA and USE CASESBIG DATA and USE CASES
BIG DATA and USE CASES
 
Connecting Hadoop and Oracle
Connecting Hadoop and OracleConnecting Hadoop and Oracle
Connecting Hadoop and Oracle
 
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
 
Oracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overviewOracle NoSQL Database release 3.0 overview
Oracle NoSQL Database release 3.0 overview
 
Best New Features of Oracle Database 12c
Best New Features of Oracle Database 12cBest New Features of Oracle Database 12c
Best New Features of Oracle Database 12c
 

Semelhante a VLDB Administration Strategies

Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum
 
45 ways to speed up firebird database
45 ways to speed up firebird database45 ways to speed up firebird database
45 ways to speed up firebird databaseFabio Codebue
 
Implementing the Databese Server session 02
Implementing the Databese Server session 02Implementing the Databese Server session 02
Implementing the Databese Server session 02Guillermo Julca
 
Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...
Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...
Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...Red_Hat_Storage
 
MySQL Oslayer performace optimization
MySQL  Oslayer performace optimizationMySQL  Oslayer performace optimization
MySQL Oslayer performace optimizationLouis liu
 
Still All on One Server: Perforce at Scale
Still All on One Server: Perforce at Scale Still All on One Server: Perforce at Scale
Still All on One Server: Perforce at Scale Perforce
 
Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...
Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...
Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...javier ramirez
 
Storage talk
Storage talkStorage talk
Storage talkchristkv
 
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & OptimizationMariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & OptimizationMariaDB plc
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnikbiz
 
Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021Mark Kromer
 
SQL Server It Just Runs Faster
SQL Server It Just Runs FasterSQL Server It Just Runs Faster
SQL Server It Just Runs FasterBob Ward
 
MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...
MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...
MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...MongoDB
 
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Knut Relbe-Moe [MVP, MCT]
 
jacobs_tuuri_performance
jacobs_tuuri_performancejacobs_tuuri_performance
jacobs_tuuri_performanceHiroshi Ono
 
Sql server 2016 it just runs faster sql bits 2017 edition
Sql server 2016 it just runs faster   sql bits 2017 editionSql server 2016 it just runs faster   sql bits 2017 edition
Sql server 2016 it just runs faster sql bits 2017 editionBob Ward
 
The InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQLThe InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQLMorgan Tocker
 

Semelhante a VLDB Administration Strategies (20)

Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
 
Dba tuning
Dba tuningDba tuning
Dba tuning
 
45 ways to speed up firebird database
45 ways to speed up firebird database45 ways to speed up firebird database
45 ways to speed up firebird database
 
Implementing the Databese Server session 02
Implementing the Databese Server session 02Implementing the Databese Server session 02
Implementing the Databese Server session 02
 
Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...
Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...
Red Hat Storage Day Dallas - Red Hat Ceph Storage Acceleration Utilizing Flas...
 
MySQL Oslayer performace optimization
MySQL  Oslayer performace optimizationMySQL  Oslayer performace optimization
MySQL Oslayer performace optimization
 
Still All on One Server: Perforce at Scale
Still All on One Server: Perforce at Scale Still All on One Server: Perforce at Scale
Still All on One Server: Perforce at Scale
 
SQLServer Database Structures
SQLServer Database Structures SQLServer Database Structures
SQLServer Database Structures
 
Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...
Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...
Cómo se diseña una base de datos que pueda ingerir más de cuatro millones de ...
 
Storage talk
Storage talkStorage talk
Storage talk
 
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & OptimizationMariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & Optimization
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
 
Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021Mapping Data Flows Perf Tuning April 2021
Mapping Data Flows Perf Tuning April 2021
 
SQL Server It Just Runs Faster
SQL Server It Just Runs FasterSQL Server It Just Runs Faster
SQL Server It Just Runs Faster
 
Exchange Server 2013 Database and Store Changes
Exchange Server 2013 Database and Store ChangesExchange Server 2013 Database and Store Changes
Exchange Server 2013 Database and Store Changes
 
MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...
MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...
MongoDB World 2019: Finding the Right MongoDB Atlas Cluster Size: Does This I...
 
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
 
jacobs_tuuri_performance
jacobs_tuuri_performancejacobs_tuuri_performance
jacobs_tuuri_performance
 
Sql server 2016 it just runs faster sql bits 2017 edition
Sql server 2016 it just runs faster   sql bits 2017 editionSql server 2016 it just runs faster   sql bits 2017 edition
Sql server 2016 it just runs faster sql bits 2017 edition
 
The InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQLThe InnoDB Storage Engine for MySQL
The InnoDB Storage Engine for MySQL
 

Último

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Último (20)

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

VLDB Administration Strategies

  • 3. 1. 2. 3. 4. 5. 6. What is a VLDB? Typical Troubles OS Config Instance Config DB Config Maintenance AGENDA
  • 5. There’s no official definition. VLDB??
  • 6. There’s no official definition. Typically occupying TB range. VLDB??
  • 7. There’s no official definition. Typically occupying TB range. Billions of rows. VLDB??
  • 8. There’s no official definition. Typically occupying TB range. Billions of rows. Typically: OLAP or OLTP with large amount of users. VLDB??
  • 9. Wikipedia… A very large database, or VLDB, is a database that contains an extremely high number of tuples (database rows), or occupies an extremely large physical filesystem storage space. The most common definition of VLDB is a database that occupies more than 1 terabyte or contains several billion rows, although naturally this definition changes over time. VLDB??
  • 12. Maximum database size 524,272 TB SQL VS. VLDB
  • 13. Maximum data file size Maximum log file size 16 TB 2 TB A limit of 32.767 files which can be distributed between 32.767 filegroups. SQL VS. VLDB
  • 23. Turning on Instant Initialization to speed up data file growth and restores. OS CONFIG
  • 25. Plan an efficient storage layout. OS CONFIG
  • 26. Plan an efficient storage layout. Normally, the more spread, the more effective. OS CONFIG
  • 27. Plan an efficient storage layout. Normally, the more spread, the more effective. Suggestion : SQL BIN SQL DATA SQL IDX SQL LOGS SQL TMP OS CONFIG
  • 29. Mountpoints could be a good strategy. OS CONFIG
  • 30. Mountpoints could be a good strategy. Mountpoints are persistent directories that point to disk volumes. OS CONFIG
  • 31. Pros: • • • • Scalable. Save drive letters (limited to 26). Easy to add. No need to restart SQL Server. OS CONFIG
  • 32. Cons: • Looks like a simple folder. • Need a different approach to monitor. OS CONFIG
  • 33. So, if you don’t know the server…. OS CONFIG
  • 35. Setting the partition offset properly can improve up to 30% the performance. OS CONFIG
  • 36. Setting the partition offset properly can improve up to 30% the performance. Partition alignment increases throughput (bytes/sec) and reduce disk queues. OS CONFIG
  • 37. Setting the partition offset properly can improve up to 30% the performance. Partition alignment increases throughput (bytes/sec) and reduce disk queues. A partition that is track misaligned will occasionally cause 2 I/O operations instead of one. OS CONFIG
  • 38. Unless performed at the time of partition creation, the default alignment offset (31,5 Kb) will result in unaligned partitions on versions of Windows up to and including Windows Server 2003. OS CONFIG
  • 39. This offset is associated with hidden sectors, which basically store partition information. OS CONFIG
  • 40. This offset is associated with hidden sectors, which basically store partition information. Considering that: - Each disk sector has 512 bytes. - Win. 2003 has 63 hidden sectors. OS CONFIG
  • 41. This offset is associated with hidden sectors, which basically store partition information. Considering that: - Each disk sector has 512 bytes. - Win. 2003 has 63 hidden sectors. 512 * 63 = 31,5 Kb OS CONFIG
  • 42. Example: Stripe Unit Size: Allocation Unit Size: Optimal values 64Kb* 64Kb OS CONFIG * Defined by storage team.
  • 43. Example: Stripe Unit Size: Allocation Unit Size: Optimal values 64Kb* 64Kb Data (Alloc. Unit Size) OS CONFIG Stripe Size * Defined by storage team.
  • 44. Optimal solution: Data (Alloc. Unit Size) Stripe Size OS CONFIG
  • 45. Best Practice: - Set an offset of 1024 Kb. - This value works for mostly disks out there. - Allocation Unit Size = Stripe Unit Size. The rule: Offset / Allocation unit = INTEGER Eg: 1024/64=16 OS CONFIG
  • 46. WARNIG Some I/O subsystem vendors intercepting what Windows is trying to do and are still creating partitions with the incorrect offset – Even for Windows 2008+. ALWAYS check!
  • 47. Anti-Virus servers… is really a need? OS CONFIG in
  • 48. • • • • Cost money to license. Maintenance costs. Can cause problems in Prod. Can’t protect to zero-day exploits. OS CONFIG
  • 49. What can we do instead? OS CONFIG
  • 50. • • • • Keep the servers patched. Configure the firewall properly. Restrict server’s access. You can install AV… in workstations! OS CONFIG
  • 51. What’s the big problem for SQL Server? OS CONFIG
  • 52. • One more app fighting for resources. • SQL Server files can be locked. OS CONFIG
  • 53. How can AV and SQL Server live together? OS CONFIG
  • 55. Basically the AV should ignore: • • • • • • • SQL Server data and log files (.mdf, .ndf and .ldf). Backup files (.bak and .trn). Full-text Catalog files. Trace files (.trc). ERRORLOG files. SQL Server binaries folder. Filestream folder. OS CONFIG More on: http://support.microsoft.com/kb/309422
  • 58. Memory This is a very open subject. INSTANCE CONFIG
  • 59. Memory This is a very open subject. There are lots of discussions about that… INSTANCE CONFIG
  • 60. Memory This is a very open subject. There are lots of discussions about that… There’s no perfect formula, because the correct awnser is…. INSTANCE CONFIG
  • 61. Memory This is a very open subject. There are lots of discussions about that… There’s no perfect formula, because the correct answer is…. … it depends !! INSTANCE CONFIG
  • 62. Memory An efficient general rule… Baseline: 1 GB for the OS Up to 16 GB available • 1 GB for each 4 GB More than 16 GB • 1 GB for every 8 GB INSTANCE CONFIG
  • 63. Memory This is for 64 bit servers… For 32 bit, here is a good article to follow: http://www.eraofdata.com/understanding-and-configuring-sql-servers-memory-settings/ INSTANCE CONFIG
  • 66. TempDB Two common behaviors: • Ignore. • Overvalue. INSTANCE CONFIG
  • 67. TempDB As per Brent Ozar: “TempDb is the SQL’s public toilet” INSTANCE CONFIG
  • 70. TempDB There’s a myth: • tempdb should always have one data file per processor core. INSTANCE CONFIG
  • 71. TempDB There’s a myth: • tempdb should always have one data file per processor core. Again…. INSTANCE CONFIG
  • 72. TempDB There’s a myth: • tempdb should always have one data file per processor core. Again…. It depends! INSTANCE CONFIG
  • 73. TempDB Execute large operations, like a sort or store a huge temporary table, may be slowed down because of the round-robin operation. The more files, the more costly. INSTANCE CONFIG
  • 74. TempDB Common wait types on TempDB: • PAGELATCH_*: Contention for In-memory allocation bitmaps. • PAGEIOLATCH_*: Contention at the I/O subsystem level. INSTANCE CONFIG
  • 75. TempDB How many tempdb data files should we have? INSTANCE CONFIG
  • 76. TempDB How many tempdb data files should we have? A recommended approach is: • Up to 8 cores: Number of files = Number of cores. • More than 8 cores: 1. Add 8 files. 2. Monitor PAGELATCH_*. 3. Add 4 more files at a time, if necessary. INSTANCE CONFIG
  • 77. TempDB Other TempDB best practices: • Isolate the TempDB in a different storage system. • Depending of the load, you might need to separate LDF and M(N)DF. • Use a fast drive (SSD :). • Set an initial size, equally to all the files. • Set the auto-growth accordingly. • If you have a heavy operation using constantly the TempDB, consider create a staging table into your own database. INSTANCE CONFIG
  • 78. TempDB From SQL Server 2012, local disk TempDB in SQL Server cluster. INSTANCE CONFIG
  • 79. TempDB From SQL Server 2012, local disk TempDB in SQL Server cluster. • More flexibility. • Use PCIe bus instead of HBA, and have more throughput. • Data and Log are in SAN, TempDB locally: Avoid congestion or contention on a shared storage network or array. INSTANCE CONFIG
  • 81. • Don’t rely on auto-grow. • You can manage file growth and control the free disk space and avoids performance problems. DB CONFIG
  • 82. • Don’t rely on auto-grow. • You can manage file growth and control the free disk space and avoids performance problems. • Have page checksums turned on. • To detect damaged pages. DB CONFIG
  • 83. • Don’t rely on auto-grow. • You can manage file growth and control the free disk space and avoids performance problems. • Have page checksums turned on. • To detect damaged pages. • Make sure auto-stats update is turned on. • For OLTP consider turning auto-stats update off only for heavily updated tables, and schedule a job that periodically updates the statistics for those tables. DB CONFIG
  • 85. • Make sure you’re managing the transaction log correctly: • Full recovery requires log backups. • No advantage in have multiple log files. • Control the file growth or this could cause VLF fragmentation. • Performance issues. • Slow backup time. • Don’t set the log file growth size to a multiple of 4 in older SQL Server versions. • http://connect.microsoft.com/SQLServer/feedback/details/481594/log-growth-not-workingproperly-with-specific-growth-sizes-vlfs-also-not-created-appropriately DB CONFIG
  • 88. How to meet your SLAs dealing with a TB database? Is data-loss acceptable? What about the recovery time? Are you able to UPDATE STATS, do INDEX MAINTENANCE and run a INTEGRITY CHECK in time and WITHOUT PROBLEMS? MAINTENANCE
  • 90. First of all, think in a Disaster Recovery plan! SQL Server is not Oracle, we have “free” included options: • Log Shipping (HA and DR) • Database Mirroring (HA and DR) • DB Snapshot advantage • Replication (HA, DR and LB) • AlwaysOn (HA, DR and LB) • We can still be safe with a storage level replication. MAINTENANCE
  • 92. Partition, Compress and Clean Using the partitioning feature you can devise the maintenance. MAINTENANCE
  • 93. Partition, Compress and Clean Using the partitioning feature you can devise the maintenance. • You can use the DBCC CHECKFILEGROUP command. • DBCC CHECKFILEGROUP and DBCC CHECKDB are. The main difference is that DBCC CHECKFILEGROUP is limited to the single specified filegroup and required tables. MAINTENANCE
  • 94. Partition, Compress and Clean Using the partitioning feature you can devise the maintenance. • Devising a filegroup architecture allows piecemeal restores with low TTR • Online piecemeal restore: • • After the PRIMARY FG restore the DB can be online. The tables will come available while each FG is restored. • Design the database accordingly: • • Keep the necessary into the PRIMARY FG. • Configuration tables, indispensable data, etc… Think in the consistency: keep related tables in the same FG. MAINTENANCE
  • 95. Partition, Compress and Clean Compress backups Vs. Compress Data • Backup compression: • More CPU usage to backup/restore (avg ~20%). • Less time to backup/restore (avg ~40%). • Good compression ratio. • SELECT backup_size/compressed_backup_size FROM msdb..backupset; • A backup set will not be able to contain both compressed and uncompressed backups. • No advantage with TDE enabled. MAINTENANCE
  • 96. Partition, Compress and Clean Compress backups Vs. Compress Data • Data compression (ROW and PAGE): • TDE and Data Compression play together! • Backup and Data Compression can coexist! MAINTENANCE
  • 97. Partition, Compress and Clean Purge and Archive the data • Purging data: • If data is needed no more… • Save storage. • Faster backups. • Improves the performance. MAINTENANCE
  • 98. Partition, Compress and Clean Purge and Archive the data • Archiving data: • If data is still needed… • Isolate in a different FG. • Set as Read-Only: Avoids locking. • For faster scans: 100% fill factor. • Update statistics with FULLSCAN. • You can adapt the backup strategy. • You can adapt the backup strategy using Partial Backups. MAINTENANCE • This allows you to exclude read-only filegroups.
  • 99. More about DBCC CHECKDB • CHECKDB takes time and uses resources. • Run a DBCC CHECKDB using the WITH PHYSICAL_ONLY option. • • Limits the checking to the integrity of the physical structure of the page and record headers and the allocation consistency of the database. Faster, but a full CHECKDB is required periodically. MAINTENANCE
  • 100. More about DBCC CHECKDB • We can divide up the consistency checking over several days, Paul Randal’s prescription is: • Divide tables in two buckets (bigger ones and the rest) • On Sunday: • Run a DBCC CHECKALLOC • Run a DBCC CHECKCATALOG • Run a DBCC CHECKTABLE on each table in the first bucket • On Monday, Tuesday, Wednesday: • Run a DBCC CHECKTABLE on each table in the 2nd, 3rd, 4th buckets, respectively • On Thursday: • Run a DBCC CHECKALLOC • Run a DBCC CHECKTABLE on each table in the 5th bucket • On Friday and Saturday: • Run a DBCC CHECKTABLE on each table in the 6th and 7th buckets, respectively MAINTENANCE More on: http://www.sqlskills.com/blogs/paul/checkdb-from-every-angle-consistency-checking-options-f
  • 101. More about BACKUPS • Besides doing PARTIAL BACKUPS we have more options… • A MULTISTREAM BACKUP is an option to run faster: File 1 File 2 F: File 3 DB E: G: MAINTENANCE
  • 102. More about BACKUPS • To make sure it will be well stored, we can use a MIRROR. File 1 File 1 File 2 File 3 DB E: File 2 F: File 3 G: MAINTENANCE
  • 103. More about BACKUPS • If storing to the network: • Use a separate network card to avoid network congestion. • Don’t forget about T-LOG backups! • Create a good backup strategy. • Verify the backups periodically. MAINTENANCE
  • 104. INDEXES MAINTENANCE • Only rebuild/defrag indexes that are really fragmented (avoid unnecessary work in short maintenance windows) • If you defrag instead of rebuild, make sure you manually update stats. • Be wary of doing large index maintenance jobs if you use log shipping or DBM • They contribute to large log backups • Index rebuilds are always full-logged when DBM is present MAINTENANCE

Notas do Editor

  1. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  2. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  3. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  4. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  5. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  6. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  7. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  8. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  9. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  10. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  11. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  12. Track = Group of Sectors and CLustersCluster = File allocation Unit – Um Cluster tem N Sectors – Para um allocation unit de 64K -> 512 b (sector size) * 128 = 64K!!Sector = Smallest accessible unit in a physical disk (usually 512 bytes)Stripe Unit Size = Define o tamanhoqueos dados serãodistribuidos entre os discos de um grupo RAID-0, RAID-5, RAID-10
  13. It depends:HBAs or FusionIO storage, both of which require a lot of free memory for the drivers.Concurrent applications in the server.Number of instance instance or SQL Services
  14. 32-bit applications are natively restricted to a 2 GB VAS/3GB allows a 32-bit process to increase its VAS to 3 GBTo address more than 4 GB of RAM on 32-bit Windows, the OS needs to have the /PAE switch added to the boot.ini file
  15. chunks less than 64MB and up to 64MB = 4 VLFschunks larger than 64MB and up to 1GB = 8 VLFschunks larger than 1GB = 16 VLFsHuge t-logs cause huge VLFsHuge VLFs are hard to clear (performance issue)SQL Server can only clear (backup) inactive VLFs, so a huge VLF can take time to be free and will take time to be backed up.
  16. chunks less than 64MB and up to 64MB = 4 VLFschunks larger than 64MB and up to 1GB = 8 VLFschunks larger than 1GB = 16 VLFsHuge t-logs cause huge VLFsHuge VLFs are hard to clear (performance issue)SQL Server can only clear (backup) inactive VLFs, so a huge VLF can take time to be free and will take time to be backed up.
  17. chunks less than 64MB and up to 64MB = 4 VLFschunks larger than 64MB and up to 1GB = 8 VLFschunks larger than 1GB = 16 VLFsHuge t-logs cause huge VLFsHuge VLFs are hard to clear (performance issue)SQL Server can only clear (backup) inactive VLFs, so a huge VLF can take time to be free and will take time to be backed up.