+ All Categories
Home > Documents > ...your options for ‘High Availability’ with SQL.

...your options for ‘High Availability’ with SQL.

Date post: 01-Apr-2015
Category:
Upload: oscar-holliman
View: 227 times
Download: 0 times
Share this document with a friend
43
SHAREPOINT 2010 HA OPTIONS ...your options for ‘High Availability’ with SQL
Transcript
Page 1: ...your options for ‘High Availability’ with SQL.

SHAREPOINT 2010 HA OPTIONS

...your options for ‘High Availability’ with SQL

Page 2: ...your options for ‘High Availability’ with SQL.

About JT..

I’m a SharePoint Admin. Working a contract with FaHCSIA

I am a SharePoint Technical engineer with Extelligent Design

With SharePoint since 2006. 10+ years in Infrastructure, DR,

Networking I blog about SharePoint (IT Pro stuff).

www.jeremytaylor.net

Page 3: ...your options for ‘High Availability’ with SQL.

Take-away for today..

Learn some DR concepts Learn to set up SQL database mirroring Know more about Log Shipping and

SQL Clustering Have something to take back to your

manager / team leader

Page 4: ...your options for ‘High Availability’ with SQL.

What is HA?

A redundant system that provides a service when the primary system fails.

When this happens automatically, its called Failover

What is DR? Disaster Recovery – process, policies

and procedures related to preparing and undergoing a recovery from a disaster

Page 5: ...your options for ‘High Availability’ with SQL.

Some DR concepts

RTO – Recovery time objective. The time you have to get the system up and running after a disaster.

RPO – Recovery point objective. The maximum amount of data loss that’s deemed acceptable in a disaster.

Page 6: ...your options for ‘High Availability’ with SQL.

Data Centres DR solutions…

Hot standby - A second data center that can provide availability within seconds or minutes.

Warm standby - A second data center that can provide availability within minutes or hours.

Cold standby - A second data center that can provide availability within hours or days.

Page 7: ...your options for ‘High Availability’ with SQL.

SharePoint DR ‘Pointers’

Know your environment Selecting the right tools for your

environment Know what to backup in

SharePoint/SQL Communicate with Management Highlight the risks Budget for your DR

Page 8: ...your options for ‘High Availability’ with SQL.

SharePoint DR -Key areas for Disaster Recovery

Physical architecture Logical architecture Configuration data Business data

Page 9: ...your options for ‘High Availability’ with SQL.

Physical architecture

Storage: SAN, NAS Networking and Comms equipment Load balancers / Reverse Proxies Physical servers – SharePoint & SQL Essential AD and DNS services

Page 10: ...your options for ‘High Availability’ with SQL.

Logical Architecture

IIS Application pools Web Applications Zones and AAMs Web application policies Site Collections & security Mysites Third party tools

Page 11: ...your options for ‘High Availability’ with SQL.

Configuration Data

Service Application databases Web.config files for SharePoint Web

Applications IIS configuration files (IIS metabase)

Page 12: ...your options for ‘High Availability’ with SQL.

Business Data

Content in SQL databases BLOB storage RBS provider

Page 13: ...your options for ‘High Availability’ with SQL.

But what about HA? Multiple data centres.. Load balancing.. SAN replication.. Virtual Storage.. Stretched farm.. Separate Standby farm.. Mirroring.. Log shipping.. Clustering..

All of the above? It depends on your environment, budget, policies There is no ‘One size fits all’ solution to this..

Recommended: http://technet.microsoft.com/en-us/library/ff628971.aspx

Page 14: ...your options for ‘High Availability’ with SQL.

Lets explore some more..

Stretched Farm

Link between Data centres!

Database ‘layer’ could be:Mirrored

Clustered

Source: http://technet.microsoft.com/en-us/library/cc748824.aspx

Page 15: ...your options for ‘High Availability’ with SQL.

Separate Standby Farm

Link between Data centres!

Database ‘layer’ could be:Async Mirrored

Log Shipped

Page 16: ...your options for ‘High Availability’ with SQL.

HA Options with SQL

Database Mirroring Log Shipping SQL clustering

Page 17: ...your options for ‘High Availability’ with SQL.

SQL Mirroring

SQL ‘pushing’ instantaneous updates to its mirrored server.

Databases are duplicated and can be automatically failed over to the mirror.

Unlike MOSS 2007, SharePoint 2010 is ‘mirroring-aware’

Page 18: ...your options for ‘High Availability’ with SQL.

How to set up mirroring? 2 servers

Principal Mirror

1 server for witness (optional) Backup and restore in Full mode to mirror server with NO

RECOVERY option. Backup and restore Transaction logs to mirror server. Go to the ‘Configure Database Mirroring Security’ wizard to

create endpoints. Choose your options Start mirroring Enable SharePoint databases to be ‘mirroring-aware’.

PowerShell for Service applications and Content databases. Central Admin for Content databases.

Page 19: ...your options for ‘High Availability’ with SQL.

Some considerations

Latency less than 1 millisecond Database recovery model: Full Database permissions: same rights Network bandwidth More mirrored databases consume

more threads = more logical processors

Page 20: ...your options for ‘High Availability’ with SQL.

What SharePoint Databases can be mirrored?

Config Db – Yes Admin Db – Yes. Usage Db – not recommended. Can be recreated. Business Connectivity Service (BCS) – yes Subscriptions setting db – yes Search Admin – yes Search Crawl – yes Search Property – yes User Profile Application (UPA) Profile – no, not supported User Profile Application (UPA) Sync – no, not supported User Profile Application (UPA) Social – no, not supported Web Analytics (WAN ) Staging – not supported Web Analytics (WAN ) Reporting – yes Word Automation Service (WAS) – yes State – no Managed Metadata Services (MMS) – yes Secure Store Service (SSS) – yes PerformancePoint Service (PPS) – yes Application Registry Service – not recommended

Page 21: ...your options for ‘High Availability’ with SQL.

What’s on Technet…

The supported topologies include: All content databases Configuration database Central Administration content database Service application databases Except for

the Web Analytics Staging database and the User Profile Synchronization database.

Source: http://technet.microsoft.com/en-us/library/dd207314.aspx

Page 22: ...your options for ‘High Availability’ with SQL.

Configuring Failover..New Web Applications..

Existing Content databases..

Page 23: ...your options for ‘High Availability’ with SQL.

Configuring Failover with PowerShell..

$db = get-spdatabase | where {$_.Name -eq "DEMOSP2010_Config"}$db.AddFailoverServiceInstance("MIRROR")$db.Update()

Get-Help New-SP……ServiceApplication -full

Page 24: ...your options for ‘High Availability’ with SQL.

Demo: How to configure mirroring

Page 25: ...your options for ‘High Availability’ with SQL.

SQL Mirroring Pros

Automatic failover option Independent Highly configurable Immediate replication Responsive Redundancy

Page 26: ...your options for ‘High Availability’ with SQL.

SQL Mirroring Cons

One mirror per database No easy read-only option Performance impact (push) Dependence on latency Geographical limitation Inability to configure failover criteria

Page 27: ...your options for ‘High Availability’ with SQL.

Log Shipping Utilises backup and restore jobs of SQL It’s a ‘Pull’ approach. Transaction logs are replicated as per your

desired schedule Primary, Secondary & Monitor (optional) 4 SQL server agent jobs –

Backup on primary serverCopy on secondary serverRestore on secondary serverAlert on secondary/monitor server

Page 28: ...your options for ‘High Availability’ with SQL.

How to configure SQL Log Shipping 2+1 Servers File Share Recovery Model – FULL or Bulk Logged SQL Server Agent – must be started!

Page 29: ...your options for ‘High Availability’ with SQL.

How to configure Log Shipping:

Page 30: ...your options for ‘High Availability’ with SQL.

Log Shipping - Job scheduling

Page 31: ...your options for ‘High Availability’ with SQL.

Log Shipping - Monitor settings

Page 32: ...your options for ‘High Availability’ with SQL.

Log Shipping – Secondary server

Page 33: ...your options for ‘High Availability’ with SQL.

Secondary Db settings

Page 34: ...your options for ‘High Availability’ with SQL.

Secondary Db settings

Page 35: ...your options for ‘High Availability’ with SQL.

Set up monitor and grab your script..

Page 36: ...your options for ‘High Availability’ with SQL.

What SharePoint Databases can be logged shipped?

Config db – no Search – no Service Applications – yes, except some Content databases - yes

Read more: http://technet.microsoft.com/en-us/library/ff628971.aspx

Page 37: ...your options for ‘High Availability’ with SQL.

Log Shipping Pros Uses a pull strategy – little impact to

performance Independent jobs – not tied to SharePoint. Cost effective HA solution when compared to

using clustering in HA. Read-only availability – no load on primary farm Multiple destinations (pull approach) Geographic redundancy – not like database

mirroring or failover clustering FILESTREAM compatibility – to a standby db

Page 38: ...your options for ‘High Availability’ with SQL.

Log Shipping Cons

No automatic failover Latency Monitoring – may need to use SCOM Not a complete solution Errors and data loss – are replicated.

Page 39: ...your options for ‘High Availability’ with SQL.

SQL Failover Clustering

Works on Windows Server 2008 clustering capabilities (Enterprise & Datacenter editions).

Minimum two servers for failover Intended to be used as a HA solution but

not completely fault tolerant. Run the Cluster Validation Tool (CVT).

Page 40: ...your options for ‘High Availability’ with SQL.

SQL Clustering Pros

True automatic failover No interruption for maintenance Rapid failover Scalable – up to 16 server nodes Log shipping friendly

Page 41: ...your options for ‘High Availability’ with SQL.

SQL Clustering Cons

Network requirements Storage requirements High Costs No Fault tolerance with shared storage

Page 42: ...your options for ‘High Availability’ with SQL.

Management needs to know…

SharePoint DR is an extensive topic! HA requires planning and expertise Capacity Planning must be done from project start

and factor in HA options Schedule (& budget) DR and HA tests every 6-12

months Document and communicate the limitations of your

DR Procedures Consult Microsoft for licensing Remind the Managemrnt of Murphy’s law..

Anything that can go wrong, will go wrong! Some JT advice: Be paranoid! Be prepared!

Page 43: ...your options for ‘High Availability’ with SQL.

Thank you!

Questions? Happy to chat with you individually after the session…

Email: [email protected] Twitter.com/jeremytaylor


Recommended