Download Sql_Server_Architecture_for_World_Domination

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Oracle Database wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Concurrency control wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Tandem Computers wikipedia , lookup

Database wikipedia , lookup

Functional Database Model wikipedia , lookup

SQL wikipedia , lookup

PL/SQL wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Relational model wikipedia , lookup

Database model wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Clusterpoint wikipedia , lookup

Transcript
Sql Server Architecture for
World Domination
Tristan Wilson
Topics
•
•
•
•
•
Sql Server editions
Scaling Sql Server
Cloud + Virtual +Physical Hardware
Migration strategies
HADR Options
Definitions
• High availability
– Increased uptime
• Disaster recovery
– Protection from negative events
• Scale-up = Bigger/faster servers
• Scale-out = More servers
When do I scale up?
• CPU is above threshold
– Based on percent usage, or increased threads
• Sql Server memory usage
– page life expectancy, lazy writes, free list stalls
• Increased I/O requirements
• Look at your wait stats!
Scaling out Sql Server
• Read-only
– AlwaysOn, Database mirroring, log shipping,
replication, data loading tools
• Read/write
– Peer-to-peer replication, linked servers,
distributed queries, sharding, custom solutions
– Parallel data warehouse
Sql Server editions
• Express Edition
– Maximum 10gb database size
• Web Edition
– Licensed through a hosting provider
• Standard Edition
– 16-core 64gb ram (128gb for 2014+)
– 2016 is now licensed for 2-node AlwaysOn
Sql Server editions
• Business Intelligence Edition
– Includes features specifically for BI
– Same CPU/Ram limitations as Standard
• Enterprise Edition
– Coolest features, unlimited CPU/Ram
Data the database
•
•
•
•
25-250gb worth of data
Low performance
Moderate downtime
Just a friendly database
The Cloud
• Cloud databases
• Virtual machines in the cloud
• Vendors:
– Azure, AWS
– Managed hosting:
, Rackspace, etc.
Cloud Database
Pro:
• Low cost
• Low management
• Flexible, scalable
• Quick deployment
• Easy upgrades
Con:
• Limited features
• Limited control
• Platform dependencies
• Security
• Difficult migrations
Virtual Machines
Pro:
• Cost effective
• Highly availability
• Flexible + Scalable
Con:
• Limited resources
• Performance overhead
• Management overhead
Virtual Clusters
• It does work!
• Reduced downtime for reboot/patching
• Check with your VM administrator
How do I scale-up Data?
• Increase cloud or virtual
resources
Data the database
•
•
•
•
250gb-1TB worth of data
Increase performance
Lower downtime
Wasn’t this database
supposed to be temporary?
Physical Hardware
• When do I go with physical hardware?
– Increased CPU/Memory/IO consumption
– Maximize performance
– Specialized hardware requirements
Selecting Hardware
• Select your sockets + processors
• Maximize ram
• Don’t neglect local storage (get SSD’s!)
Selecting Processors
• Maximize speed over core count
• Intel E5-2637 v3
– 4 cores at 3.5ghz
• Intel E5-2640 v3
– 8 cores at 2.4ghz
High Availability
• Fail-over cluster
• Database mirroring
• AlwaysOn
High Availability - Clustering
Pro’s
• Hardware/OS redundancy
• Low downtime patching
• Sliding upgrades
Con’s
• Idle second node
• No redundant storage
• Typically not a DR solution
High Availability – DB Mirroring
Pro’s
• Fully redundant solution
• No shared storage
• 2-node in standard edition
Con’s
• Deprecated feature
• Mirroring overhead
• Additional witness server
• Limited automatic fail-over
High Availability - AlwaysOn
Pro’s
• Fully redundant solution
• HA+DR
• Reporting+Maintenance
• No shared storage
• Easy migration
Con’s
• Enterprise-only
• Mirroring overhead
• Double storage costs
How do I scale-up Data?
• Export/import of data from
cloud
• Backup/restore
Data the database
•
•
•
•
1-3TB+ worth of data
High performance
No downtime
Getting’ tired of his crap
Disaster Recovery
• Log Shipping
• AlwaysOn
DR – Log Shipping
Pro’s
• Web edition or higher
• Only network connectivity
• Low impact on primary
Con’s
• Some data loss
• No automatic fail-over
DR – AlwaysOn
Pro’s
Con’s
• Low or no data loss
• Must be in Windows cluster
• Can be automatic fail-over • Enterprise only
How do I scale-up Data?
• Sliding upgrade with
Clustering or AlwaysOn
• Log shipping or database
mirroring to new server
Hybrid Architecture
• On-premise hardware, DR in cloud
• Primary physical server, virtual DR
• Reporting and maintenance with AlwaysOn
Review
• Choose the right edition
• Start small and plan to scale
• Include HADR solutions
[email protected]
@SqlTristan