SlideShare una empresa de Scribd logo
1 de 29
www.optimizesql.com/blog SQLDBA
Clustering SQL
Server
1
By
Kareem Syed
www.optimizesql.blogspot.in
Agenda
2
• Understanding Windows Clustering
• Working with SQL Clustering
• Monitoring Clustering
• Troubleshooting Clustering
www.optimizesql.com/blog SQLDBA
3
 SQL Server High Availability
 Goal of High Availability is to keep systems, applications, email,
databases etc always running
HA Overview
www.optimizesql.com/blog SQLDBA
4
 Server downtime is unavoidable.
 But we have to keep the business running and competitive.
 Server may go offline due to
 Maintenance
 Upgrade
 Software or Hardware
 Updates
 Hot fixes, security patches
 Accidently
 Power Outages
 Disasters
Importance of HA
www.optimizesql.com/blog SQLDBA
 Group of two or more servers (Nodes) that work
together and represent themselves as single Server
(Virtual Server) in the network.
 A server cluster is a collection of servers, called nodes
that communicate with each other to make a set of
services highly available to clients.
 Server clusters are designed for applications that have
long running in-memory state or frequently updated
data.
Introduction to Clustering
www.optimizesql.com/blog SQLDBA
Introduction
6
• A Microsoft SQL Server Cluster is simply a collection of two or
more physical servers.
• These Servers are called Nodes.
• These nodes have same access to shared storage and
provides the resources required to store the database files
• Each of the nodes talk to one another via a network
• If one node does not communicate to the other node the other
node will take ownership of SQL Server service. This process
is called fail over.
• A failover can occur both automatically (a server stops
communication for some reason) or manually.
www.optimizesql.com/blog SQLDBA
Client PCs
Server A Server B
Shared
Disk Array
Heartbeat
Cluster management
SQL Server
Virtual
Server
E F G
C,D C,D
SQL Server
Hub Hub
Basic Architecture
www.optimizesql.com/blog SQLDBA
Binn
Install
Upgrade
Binn
Install
Upgrad
Backup
Data
FTData
Job, Log, repldata
Client PCs
Server A Server B
Shared
Disk Array
Heartbeat
Cluster management
SQL Server
Virtual
Server
E F G
C,D C,D
Hub Hub
SQL Server
Basic Architecture
www.optimizesql.com/blog SQLDBA
Feature Database
Mirroring
Failover
Clustering
Log Shipping
Data Loss No data loss
option
No data loss Maybe
Failover Automatic failover
option
Automatic failover No
Failover time seconds ~ 20+ seconds Manual
Special
Hardware
No Certified hardware No
Redundancy Complete
redundancy
Disks are shared Complete redundancy
Multiple
Secondaries
No No Yes
Standby Read
Access
Yes, through
snapshot
No Yes, WITH STANDBY
option
Granularity Database Instance Database
Conn String Two ONE Two
Importance of HA
www.optimizesql.com/blog SQLDBA
Advantages
10
• High Availability
• Protection from failures
• Server level – hardware and software failures, service
failures etc
• Site level – Fires, earthquake etc
• Online Administration
• Software/hardware upgrades/patch and restart with minimal
downtime.
• Increased Scalability
• In some cases, clustering can be used to increase the
scalability of an application. For example, if a current cluster is
getting too busy, another server could be added to the cluster to
expand the resources and help boost the performance of the
application.
• Clustering is transparent to the calling application.
www.optimizesql.com/blog SQLDBA
Advantages
11
• Manageability
• Enables managing resources within entire cluster if we are managing a
single computer.
• Instance level redundancy and automatic failover for
SQL Server
www.optimizesql.com/blog SQLDBA
Advantages
12
• Reduces downtime.
• Allows for an automatic response to a failure in hardware/
software.
• Allows you to perform upgrades without forcing users off the
system for extended periods of time.
• Clustering doesn’t require any servers to be renamed. So
when failover occurs, it is relatively transparent to end-users.
• Failing back is relatively quick, and can be done whenever the
primary server is fixed and put back on-line.
• In some cases, clustering can be used to increase the
scalability of an application. For example, if a current cluster is
getting too busy, another server could be added to the cluster
to expand the resources and help boost the performance of the
application
• Clustering is transparent to the calling application.
www.optimizesql.com/blog SQLDBA
Disadvantages
13
• Failover Cluster is NOT designed to:
• Protect data
• Protect against a shared disk array from failing.
• Load Balance
• Prevent server from potential data disasters.
• Requires more on-going maintenance than other alternatives.
• Requires more experienced DBAs and network administrators.
www.optimizesql.com/blog SQLDBA
Disadvantages
14
• This can be expensive.
• Requires more set up time than other alternatives.
• Requires more on-going maintenance than other alternatives.
• Requires more experienced DBAs and network administrators.
www.optimizesql.com/blog SQLDBA
www.optimizesql.com/blog SQLDBA
What SQL Server services can we cluster?
15
• Clusterable
• SQL Server
• SQL Server Agent
• Analysis Services
• Non Clusterable
• SQL Server Integration Services
• SQL Server Reporting Services
• SQL Browser
• SQL Writer
• Full – text search (FTS) service?
• From SQL Server 2008, FTS service is integrated into SQL Server
engine
www.optimizesql.com/blog SQLDBA
Active and Passive
16
•SQL Server offers Single Instance Clusters and Multi-Instance
Clusters.
Single Instance
Only one SQL Server Instance running at any given time on your
cluster. It’ll be running either on your 1st node or 2nd
node.(Active-Passive).
Multi Instance
We have 2 nodes running 2 Instances or even 4 Instances of
SQL Server, Or let’s say you’ve 3 nodes where you’ve 2
Instances of SQL Server(Active-Active-Passive), the third node
serving as a standby node ready to take ownership in an event
of any failure of Node1 or Node2.
Basic Architecture
www.optimizesql.com/blog SQLDBA
Node1
Active
SQL
Instance1
Node2
Passive
Virtual Name
Public Network
SAN
Shared Storage
Private Network
Heart Beat
Active/Passive Cluster
Basic Architecture
www.optimizesql.com/blog SQLDBA
Node1
Active
SQL
Instance1
Node2
Active
SQL
Instance2
Virtual Name
Public Network
SAN
Shared Storage
Private Network
Heart Beat
Active/Active Cluster
Basic Components
 A minimum of two identical servers.
 Two NICs are needed per server.
 Private, Public
 Storage (optional)
 Shared disk storage (SAN)
 Quorum – (Maintains cluster meta data) – 256MB
 MSDTC – (Replication/Dist Trans)
 SQL Server (Backup,FTData,data,repldata,log,job)
 Tempdb
 Data, T.Log Files
 Distributed Transaction Coordinator (DTC)
 Operating System, service or Application
www.optimizesql.com/blog SQLDBA
 Domain Controller.
www.optimizesql.com/blog SQLDBA
Failover Clustering Terminology
20
• SQL Server virtual server
• It is cluster-configured resource group that contains all
resources necessary for SQL Server to operate on the
cluster. This includes
• NetBIOS
• Name of the virtual server,
• TCP/IP address for the virtual server
• All disk drives,
• SQL Server services
www.optimizesql.com/blog SQLDBA
Failover Clustering Terminology
21
• Heartbeat
• A single User Datagram Protocol (UDP) packet is sent
every 500 milliseconds between nodes in the cluster across
the internal private network,
• This packet relays health information about the cluster
nodes as well as health information about the clustered
application
www.optimizesql.com/blog SQLDBA
Failover Clustering Terminology
22
• Failover
• It is the process of one node in the cluster changing states
from offline to online.
• It results in the node taking over responsibility of the SQL
Server virtual server.
• The Cluster Service fails over a group in the event that node
becomes unavailable or one of the resources in the group
fails.
www.optimizesql.com/blog SQLDBA
Failover Clustering Terminology
23
• Failback
• Failback is the process of moving a SQL Server virtual
server that failed over in the cluster back to the original
online node.
www.optimizesql.com/blog SQLDBA
Failover Clustering Terminology
24
• Quorum Resource
• The quorum resource, also referred to as the witness disk in
Windows Server 2008.
• It is the shared disk that holds the cluster server’s
configuration information.
• All servers must be able to contact the quorum resource to
become part of a SQL Server 2008 cluster
www.optimizesql.com/blog SQLDBA
Failover Clustering Terminology
25
• Resource Group
• A collection of cluster resources such as the SQL Server
NetBIOS name, TCP/IP address, and the services belonging
to the SQL Server cluster.
• A resource group also defines the items that fail over to
surviving nodes during failover.
• Resource group is owned by only one node in the cluster at a
time.
www.optimizesql.com/blog SQLDBA
Failover Clustering Terminology
26
• LUNs
• An LUN is used to identify a disk or a disk volume that is
presented to a host server or multiple hosts by the shared
storage device.
www.optimizesql.com/blog SQLDBA
Preparing Windows Clustering
27
• Pre installation checklist
• Ensure that all nodes are working properly and are configured properly.
• Confirm that each node can access shared array or SAN drives.
• Verify that none of the nodes have been configured as domain controller.
• Verify that all drives are NTFS and are not compressed.
• Ensure that private and public networks are properly configured.
• Verify that you have disabled NetBIOS for all private network cards.
• Verify that Windows Task Scheduler service is running on each node.
• Take a domain admin account for configuring windows cluster.
• Use separate account for cluster service.
• Add cluster service account to the Local Administrators group of all the
nodes in the cluster.
• Decide windows cluster virtual name and virtual IP.
www.optimizesql.com/blog SQLDBA
Preparing Windows Clustering
28
• Pre installation checklist
• Ensure that shared drives are available for the following
requirements
• Quorum
• MSDTC
•TempDB
• User Defined database data files
• User Defined database T.Log files
• Backups
www.optimizesql.com/blog SQLDBA
Preparing Windows Clustering
29
• IP Address Requirements
Name of Resource IP Address
Private Network – heartbeat (one per node) 2
Public Network (one per node) 2
MSDTC 1
Windows Cluster Name 1
SQL Cluster Name 1

Más contenido relacionado

La actualidad más candente

Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Ludovico Caldara
 
Architecture microservices avec docker
Architecture microservices avec dockerArchitecture microservices avec docker
Architecture microservices avec dockergcatt
 
Oracle Database Appliance Workshop
Oracle Database Appliance WorkshopOracle Database Appliance Workshop
Oracle Database Appliance WorkshopMarketingArrowECS_CZ
 
Performance Monitoring: Understanding Your Scylla Cluster
Performance Monitoring: Understanding Your Scylla ClusterPerformance Monitoring: Understanding Your Scylla Cluster
Performance Monitoring: Understanding Your Scylla ClusterScyllaDB
 
Using the New Network Load Balancer with Amazon ECS - AWS Online Tech Talks
Using the New Network Load Balancer with Amazon ECS - AWS Online Tech TalksUsing the New Network Load Balancer with Amazon ECS - AWS Online Tech Talks
Using the New Network Load Balancer with Amazon ECS - AWS Online Tech TalksAmazon Web Services
 
Introduction to failover clustering with sql server
Introduction to failover clustering with sql serverIntroduction to failover clustering with sql server
Introduction to failover clustering with sql serverEduardo Castro
 
How to Manage Scale-Out Environments with MariaDB MaxScale
How to Manage Scale-Out Environments with MariaDB MaxScaleHow to Manage Scale-Out Environments with MariaDB MaxScale
How to Manage Scale-Out Environments with MariaDB MaxScaleMariaDB plc
 
Ansible roles done right
Ansible roles done rightAnsible roles done right
Ansible roles done rightDan Vaida
 
Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...
Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...
Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...Weligton Pinto
 
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...xKinAnx
 
Exadata Deployment Bare Metal vs Virtualized
Exadata Deployment Bare Metal vs VirtualizedExadata Deployment Bare Metal vs Virtualized
Exadata Deployment Bare Metal vs VirtualizedUmair Mansoob
 
Prometheus - basics
Prometheus - basicsPrometheus - basics
Prometheus - basicsJuraj Hantak
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)Hamid J. Fard
 
S14 azure site recovery を利用したオンプレミスから azure のサイト回復
S14 azure site recovery を利用したオンプレミスから azure のサイト回復S14 azure site recovery を利用したオンプレミスから azure のサイト回復
S14 azure site recovery を利用したオンプレミスから azure のサイト回復Microsoft Azure Japan
 
MySQL Architecture and Engine
MySQL Architecture and EngineMySQL Architecture and Engine
MySQL Architecture and EngineAbdul Manaf
 
Google File System
Google File SystemGoogle File System
Google File Systemnadikari123
 

La actualidad más candente (20)

Learning postgresql
Learning postgresqlLearning postgresql
Learning postgresql
 
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
 
Architecture microservices avec docker
Architecture microservices avec dockerArchitecture microservices avec docker
Architecture microservices avec docker
 
Oracle Database Appliance Workshop
Oracle Database Appliance WorkshopOracle Database Appliance Workshop
Oracle Database Appliance Workshop
 
Performance Monitoring: Understanding Your Scylla Cluster
Performance Monitoring: Understanding Your Scylla ClusterPerformance Monitoring: Understanding Your Scylla Cluster
Performance Monitoring: Understanding Your Scylla Cluster
 
Using the New Network Load Balancer with Amazon ECS - AWS Online Tech Talks
Using the New Network Load Balancer with Amazon ECS - AWS Online Tech TalksUsing the New Network Load Balancer with Amazon ECS - AWS Online Tech Talks
Using the New Network Load Balancer with Amazon ECS - AWS Online Tech Talks
 
Introduction to failover clustering with sql server
Introduction to failover clustering with sql serverIntroduction to failover clustering with sql server
Introduction to failover clustering with sql server
 
How to Manage Scale-Out Environments with MariaDB MaxScale
How to Manage Scale-Out Environments with MariaDB MaxScaleHow to Manage Scale-Out Environments with MariaDB MaxScale
How to Manage Scale-Out Environments with MariaDB MaxScale
 
Ansible roles done right
Ansible roles done rightAnsible roles done right
Ansible roles done right
 
Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...
Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...
Entendendo o ZDLRA - Oracle Zero Data Loss Recovery Appliance e garantindo rp...
 
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
 
Exadata Deployment Bare Metal vs Virtualized
Exadata Deployment Bare Metal vs VirtualizedExadata Deployment Bare Metal vs Virtualized
Exadata Deployment Bare Metal vs Virtualized
 
Prometheus - basics
Prometheus - basicsPrometheus - basics
Prometheus - basics
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
Storage Basics
Storage BasicsStorage Basics
Storage Basics
 
S14 azure site recovery を利用したオンプレミスから azure のサイト回復
S14 azure site recovery を利用したオンプレミスから azure のサイト回復S14 azure site recovery を利用したオンプレミスから azure のサイト回復
S14 azure site recovery を利用したオンプレミスから azure のサイト回復
 
MySQL Architecture and Engine
MySQL Architecture and EngineMySQL Architecture and Engine
MySQL Architecture and Engine
 
Backup Exec 21
Backup Exec 21Backup Exec 21
Backup Exec 21
 
Google File System
Google File SystemGoogle File System
Google File System
 
Docker
DockerDocker
Docker
 

Similar a SQL Server Clustering Part1

Tech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on LinuxTech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on LinuxRalph Attard
 
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...LarryZaman
 
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...Amazon Web Services
 
"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009
"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009
"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009eLiberatica
 
SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentationwebhostingguy
 
autonomous-database-100.pdf
autonomous-database-100.pdfautonomous-database-100.pdf
autonomous-database-100.pdfTrLuNguyn
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for DummiesMark Broadbent
 
2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverviewDimas Prasetyo
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Antonios Chatzipavlis
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL AzureShy Engelberg
 
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...VMworld
 
Azure SQL Database
Azure SQL Database Azure SQL Database
Azure SQL Database nj-azure
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability► Supreme Mandal ◄
 
MySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMark Swarbrick
 
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdfDeep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdfMiguel Araújo
 
More Cache for Less Cash
More Cache for Less CashMore Cache for Less Cash
More Cache for Less CashMichael Collier
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierKellyn Pot'Vin-Gorman
 

Similar a SQL Server Clustering Part1 (20)

Tech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on LinuxTech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on Linux
 
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
 
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
Migrate from Oracle to Aurora PostgreSQL: Best Practices, Design Patterns, & ...
 
"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009
"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009
"Clouds on the Horizon Get Ready for Drizzle" by David Axmark @ eLiberatica 2009
 
SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentation
 
Fudcon talk.ppt
Fudcon talk.pptFudcon talk.ppt
Fudcon talk.ppt
 
autonomous-database-100.pdf
autonomous-database-100.pdfautonomous-database-100.pdf
autonomous-database-100.pdf
 
SQL Server Clustering for Dummies
SQL Server Clustering for DummiesSQL Server Clustering for Dummies
SQL Server Clustering for Dummies
 
2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL Azure
 
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
VMworld Europe 2014: Advanced SQL Server on vSphere Techniques and Best Pract...
 
Azure SQL Database
Azure SQL Database Azure SQL Database
Azure SQL Database
 
SQL Server Clustering and High Availability
SQL Server Clustering and High AvailabilitySQL Server Clustering and High Availability
SQL Server Clustering and High Availability
 
MySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL Fabric
 
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdfDeep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
 
More Cache for Less Cash
More Cache for Less CashMore Cache for Less Cash
More Cache for Less Cash
 
A to z for sql azure databases
A to z for sql azure databasesA to z for sql azure databases
A to z for sql azure databases
 
MaxScale - The Pluggable Router
MaxScale - The Pluggable RouterMaxScale - The Pluggable Router
MaxScale - The Pluggable Router
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next Frontier
 

Último

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 

Último (20)

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 

SQL Server Clustering Part1

  • 2. Agenda 2 • Understanding Windows Clustering • Working with SQL Clustering • Monitoring Clustering • Troubleshooting Clustering www.optimizesql.com/blog SQLDBA
  • 3. 3  SQL Server High Availability  Goal of High Availability is to keep systems, applications, email, databases etc always running HA Overview www.optimizesql.com/blog SQLDBA
  • 4. 4  Server downtime is unavoidable.  But we have to keep the business running and competitive.  Server may go offline due to  Maintenance  Upgrade  Software or Hardware  Updates  Hot fixes, security patches  Accidently  Power Outages  Disasters Importance of HA www.optimizesql.com/blog SQLDBA
  • 5.  Group of two or more servers (Nodes) that work together and represent themselves as single Server (Virtual Server) in the network.  A server cluster is a collection of servers, called nodes that communicate with each other to make a set of services highly available to clients.  Server clusters are designed for applications that have long running in-memory state or frequently updated data. Introduction to Clustering www.optimizesql.com/blog SQLDBA
  • 6. Introduction 6 • A Microsoft SQL Server Cluster is simply a collection of two or more physical servers. • These Servers are called Nodes. • These nodes have same access to shared storage and provides the resources required to store the database files • Each of the nodes talk to one another via a network • If one node does not communicate to the other node the other node will take ownership of SQL Server service. This process is called fail over. • A failover can occur both automatically (a server stops communication for some reason) or manually. www.optimizesql.com/blog SQLDBA
  • 7. Client PCs Server A Server B Shared Disk Array Heartbeat Cluster management SQL Server Virtual Server E F G C,D C,D SQL Server Hub Hub Basic Architecture www.optimizesql.com/blog SQLDBA Binn Install Upgrade Binn Install Upgrad Backup Data FTData Job, Log, repldata
  • 8. Client PCs Server A Server B Shared Disk Array Heartbeat Cluster management SQL Server Virtual Server E F G C,D C,D Hub Hub SQL Server Basic Architecture www.optimizesql.com/blog SQLDBA
  • 9. Feature Database Mirroring Failover Clustering Log Shipping Data Loss No data loss option No data loss Maybe Failover Automatic failover option Automatic failover No Failover time seconds ~ 20+ seconds Manual Special Hardware No Certified hardware No Redundancy Complete redundancy Disks are shared Complete redundancy Multiple Secondaries No No Yes Standby Read Access Yes, through snapshot No Yes, WITH STANDBY option Granularity Database Instance Database Conn String Two ONE Two Importance of HA www.optimizesql.com/blog SQLDBA
  • 10. Advantages 10 • High Availability • Protection from failures • Server level – hardware and software failures, service failures etc • Site level – Fires, earthquake etc • Online Administration • Software/hardware upgrades/patch and restart with minimal downtime. • Increased Scalability • In some cases, clustering can be used to increase the scalability of an application. For example, if a current cluster is getting too busy, another server could be added to the cluster to expand the resources and help boost the performance of the application. • Clustering is transparent to the calling application. www.optimizesql.com/blog SQLDBA
  • 11. Advantages 11 • Manageability • Enables managing resources within entire cluster if we are managing a single computer. • Instance level redundancy and automatic failover for SQL Server www.optimizesql.com/blog SQLDBA
  • 12. Advantages 12 • Reduces downtime. • Allows for an automatic response to a failure in hardware/ software. • Allows you to perform upgrades without forcing users off the system for extended periods of time. • Clustering doesn’t require any servers to be renamed. So when failover occurs, it is relatively transparent to end-users. • Failing back is relatively quick, and can be done whenever the primary server is fixed and put back on-line. • In some cases, clustering can be used to increase the scalability of an application. For example, if a current cluster is getting too busy, another server could be added to the cluster to expand the resources and help boost the performance of the application • Clustering is transparent to the calling application. www.optimizesql.com/blog SQLDBA
  • 13. Disadvantages 13 • Failover Cluster is NOT designed to: • Protect data • Protect against a shared disk array from failing. • Load Balance • Prevent server from potential data disasters. • Requires more on-going maintenance than other alternatives. • Requires more experienced DBAs and network administrators. www.optimizesql.com/blog SQLDBA
  • 14. Disadvantages 14 • This can be expensive. • Requires more set up time than other alternatives. • Requires more on-going maintenance than other alternatives. • Requires more experienced DBAs and network administrators. www.optimizesql.com/blog SQLDBA
  • 15. www.optimizesql.com/blog SQLDBA What SQL Server services can we cluster? 15 • Clusterable • SQL Server • SQL Server Agent • Analysis Services • Non Clusterable • SQL Server Integration Services • SQL Server Reporting Services • SQL Browser • SQL Writer • Full – text search (FTS) service? • From SQL Server 2008, FTS service is integrated into SQL Server engine
  • 16. www.optimizesql.com/blog SQLDBA Active and Passive 16 •SQL Server offers Single Instance Clusters and Multi-Instance Clusters. Single Instance Only one SQL Server Instance running at any given time on your cluster. It’ll be running either on your 1st node or 2nd node.(Active-Passive). Multi Instance We have 2 nodes running 2 Instances or even 4 Instances of SQL Server, Or let’s say you’ve 3 nodes where you’ve 2 Instances of SQL Server(Active-Active-Passive), the third node serving as a standby node ready to take ownership in an event of any failure of Node1 or Node2.
  • 17. Basic Architecture www.optimizesql.com/blog SQLDBA Node1 Active SQL Instance1 Node2 Passive Virtual Name Public Network SAN Shared Storage Private Network Heart Beat Active/Passive Cluster
  • 18. Basic Architecture www.optimizesql.com/blog SQLDBA Node1 Active SQL Instance1 Node2 Active SQL Instance2 Virtual Name Public Network SAN Shared Storage Private Network Heart Beat Active/Active Cluster
  • 19. Basic Components  A minimum of two identical servers.  Two NICs are needed per server.  Private, Public  Storage (optional)  Shared disk storage (SAN)  Quorum – (Maintains cluster meta data) – 256MB  MSDTC – (Replication/Dist Trans)  SQL Server (Backup,FTData,data,repldata,log,job)  Tempdb  Data, T.Log Files  Distributed Transaction Coordinator (DTC)  Operating System, service or Application www.optimizesql.com/blog SQLDBA  Domain Controller.
  • 20. www.optimizesql.com/blog SQLDBA Failover Clustering Terminology 20 • SQL Server virtual server • It is cluster-configured resource group that contains all resources necessary for SQL Server to operate on the cluster. This includes • NetBIOS • Name of the virtual server, • TCP/IP address for the virtual server • All disk drives, • SQL Server services
  • 21. www.optimizesql.com/blog SQLDBA Failover Clustering Terminology 21 • Heartbeat • A single User Datagram Protocol (UDP) packet is sent every 500 milliseconds between nodes in the cluster across the internal private network, • This packet relays health information about the cluster nodes as well as health information about the clustered application
  • 22. www.optimizesql.com/blog SQLDBA Failover Clustering Terminology 22 • Failover • It is the process of one node in the cluster changing states from offline to online. • It results in the node taking over responsibility of the SQL Server virtual server. • The Cluster Service fails over a group in the event that node becomes unavailable or one of the resources in the group fails.
  • 23. www.optimizesql.com/blog SQLDBA Failover Clustering Terminology 23 • Failback • Failback is the process of moving a SQL Server virtual server that failed over in the cluster back to the original online node.
  • 24. www.optimizesql.com/blog SQLDBA Failover Clustering Terminology 24 • Quorum Resource • The quorum resource, also referred to as the witness disk in Windows Server 2008. • It is the shared disk that holds the cluster server’s configuration information. • All servers must be able to contact the quorum resource to become part of a SQL Server 2008 cluster
  • 25. www.optimizesql.com/blog SQLDBA Failover Clustering Terminology 25 • Resource Group • A collection of cluster resources such as the SQL Server NetBIOS name, TCP/IP address, and the services belonging to the SQL Server cluster. • A resource group also defines the items that fail over to surviving nodes during failover. • Resource group is owned by only one node in the cluster at a time.
  • 26. www.optimizesql.com/blog SQLDBA Failover Clustering Terminology 26 • LUNs • An LUN is used to identify a disk or a disk volume that is presented to a host server or multiple hosts by the shared storage device.
  • 27. www.optimizesql.com/blog SQLDBA Preparing Windows Clustering 27 • Pre installation checklist • Ensure that all nodes are working properly and are configured properly. • Confirm that each node can access shared array or SAN drives. • Verify that none of the nodes have been configured as domain controller. • Verify that all drives are NTFS and are not compressed. • Ensure that private and public networks are properly configured. • Verify that you have disabled NetBIOS for all private network cards. • Verify that Windows Task Scheduler service is running on each node. • Take a domain admin account for configuring windows cluster. • Use separate account for cluster service. • Add cluster service account to the Local Administrators group of all the nodes in the cluster. • Decide windows cluster virtual name and virtual IP.
  • 28. www.optimizesql.com/blog SQLDBA Preparing Windows Clustering 28 • Pre installation checklist • Ensure that shared drives are available for the following requirements • Quorum • MSDTC •TempDB • User Defined database data files • User Defined database T.Log files • Backups
  • 29. www.optimizesql.com/blog SQLDBA Preparing Windows Clustering 29 • IP Address Requirements Name of Resource IP Address Private Network – heartbeat (one per node) 2 Public Network (one per node) 2 MSDTC 1 Windows Cluster Name 1 SQL Cluster Name 1