Top Banner
high availability & disaster recovery for sharepoint planning & technology thomas vochten 13.03.2012
46
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: BIWUG1303 - HA & DR

high availability & disaster recovery for sharepointplanning & technology thomas vochten

13.03.2012

Page 2: BIWUG1303 - HA & DR

about me

Thomas Vochten

@thomasvochtenthomasvochten.comlinkedin.com/in/thomasvochten

consultantplatform architectlousy developeraccidental dba

SharePoint

SQL Server

Page 3: BIWUG1303 - HA & DR

#sphelp to the rescuehttps://twitter.com/search/%23sphelp

Page 4: BIWUG1303 - HA & DR

setting the sceneha & dr overview

Page 5: BIWUG1303 - HA & DR

high availability & disaster recoverycritical factor in any SharePoint deployment

however…

false expectations

fuzzy requirements

technicalmisconceptions

project failure

Page 6: BIWUG1303 - HA & DR

high availabilityprotecting against component failures

• server hardware• operating system• service applications• application pools• custom development• …

Page 7: BIWUG1303 - HA & DR

number of nines

3 days, 15 hours

• often an important part of a service level agreement (SLA)• usually only unplanned downtime

8 hours, 45 mins

52 mins, 34 secs5 mins, 15 secs

99%

99,9%

99,99%

99,999%

downtime per year

Page 8: BIWUG1303 - HA & DR

disaster recoveryprotecting against catastrophes

• network outages• storage problems• power problems• loss of datacenters• …

Page 9: BIWUG1303 - HA & DR

protect yourself

systems

components

dataoperations & procedures

build redundancy into the architecture

infrastructure

Page 10: BIWUG1303 - HA & DR

the bigger pictureplanning for ha & dr

Page 11: BIWUG1303 - HA & DR

it’s all about the business• involve all stakeholders when planning• don’t neglect the business impact• analyze data & systems• consider non-technical elements

business continuity planning

Page 12: BIWUG1303 - HA & DR

key concepts of bcp• Risk assessment• Business Impact Analysis• Business Continuity Plan• Disaster Recovery Plan

Page 13: BIWUG1303 - HA & DR

requirementsarchitecting a solution

Page 14: BIWUG1303 - HA & DR

key parametersRecovery Time Objective (RTO)When will my system be available again?

Recovery Point Objective (RPO)How much data can I afford to lose?

Recovery Level Objective (RLO)To what level am I able to restore?

Page 15: BIWUG1303 - HA & DR

time

RPO RTO

last backup at 20:00 full recovery at 12:00outage at 08:00

12h 4h

Page 16: BIWUG1303 - HA & DR

reality check• What are acceptable RTO & RPO times?

• Is RTO and RPO 0 possible at all?• What about the costs?

time

RPO RTO

last backup at 07:55 full recovery at 08:15

outage at 08:00

5m 15m

Page 17: BIWUG1303 - HA & DR

context is kingpitfalls when designing a SharePoint HA/DR solution

• enterprise infrastructure• technical skills• operational readiness• backup/restore• documentation• dependencies on other systems• 3d party tools• …

Page 18: BIWUG1303 - HA & DR

additional considerationsestablish recovery targets

• What should be restored and what not?• What can be restored and what not?• Is some data more important than other?• How must the restored system behave?• Balance costs & risks when designing a solution

Page 19: BIWUG1303 - HA & DR

the most crucial step• Test, test, test!

Page 20: BIWUG1303 - HA & DR

technical solutionsSharePoint & SQL Server

Page 21: BIWUG1303 - HA & DR

SharePoint optionshow can you make SharePoint highly available?

• adding servers for redundancy• splitting services across servers• using load balancing techniques• highly available SQL Server• virtualization

Page 22: BIWUG1303 - HA & DR

load balancing SharePoint

APP2service instance

APP1service instance

WEB2IIS

WEB1IIS

Web Requests

Service Apps

WEBnIIS

APPnservice instance

Page 23: BIWUG1303 - HA & DR

service applicationshow to distribute service applications throughout your farm?

SharePoint takes care of the load balancing for you

Page 24: BIWUG1303 - HA & DR

important considerations• user profile synchronization service only on 1 server• search service application can be made fully

redundant now

what about disaster recovery?

Page 25: BIWUG1303 - HA & DR

SharePoint disaster protectionwhat are your options?

rebuild

cold standby

warm standby

hot standby

stretched farm

virtualize

Page 26: BIWUG1303 - HA & DR

keep it simple• recycle bin• unattached content database• native backup/restore

Page 27: BIWUG1303 - HA & DR

rebuild farm

RTO

RPO

documentscript

• never simply dismiss this option• serious drawbacks however• backup/restore data• documentation is essential• script your install

?

Page 28: BIWUG1303 - HA & DR

standby farms

cold standby

hotstandby

warmstandby

RTOhrs/days

RTOhrs/mins

RTOmins/secs RPO config!?

Page 29: BIWUG1303 - HA & DR

warm / hot standby farms• completely separate farm• near identical configuration• same customizations• separate datastores• involves some kind of data

replication• replicating service app data has

its limits• manual failover & client

redirection

Page 30: BIWUG1303 - HA & DR

service applicationsthese don’t support copying to another farm

configcentral admin bcs

search admin

search crawl

search property

user profile

Page 31: BIWUG1303 - HA & DR

stretched farma special case…a lot of dependencies…some complexity involved…

major design constraints• network throughput• network latency• redundant access infrastructure• data replication

Page 32: BIWUG1303 - HA & DR

SQL Server

Page 33: BIWUG1303 - HA & DR

clusteringtwo flavors

• high availability• same datacenter• 2 or more nodes• shared storage• automatic failover• SharePoint is unaware

classic cluster

• high availability or disaster recovery• multiple datacenters• 2 or more nodes• no shared storage• automatic failover• SharePoint is unaware• data replication needed

geo cluster

Page 34: BIWUG1303 - HA & DR

clustering summary

RPOdepends

RTO secs/mins

RLOfarm

how does it satisfy requirements?

failoverauto

Page 35: BIWUG1303 - HA & DR

mirroring

essentials• high availability scenarios• no shared storage• SharePoint is aware !

nice to know• full recovery model• configured per database• only one secondary possible• secondary cannot be accessed• automatic failover possible• network constraints• sync or async• RBS (SQL filestream) not supported

Page 36: BIWUG1303 - HA & DR

native mirroring support

PowerShell

$db = Get-SPDatabase [UglyGuidGoesHere]

$db.AddFailoverServiceInstance(“servername”)

$db.Update()

User Interface

Page 37: BIWUG1303 - HA & DR

mirroring summarysynchronous mirroring

asynchronous mirroring

RPO0

RTOsecs

RLOdepends

RPOseconds

RTOmins

RLOdepends

failoverauto

failovermanual

Page 38: BIWUG1303 - HA & DR

log shipping

essentials• disaster recovery scenarios• no shared storage• backup/restore based

nice to know• full recovery model• configured per database• multiple secondary's possible• secondary can be read from• no automatic failover possible• rpo will generally not be 0

Page 39: BIWUG1303 - HA & DR

log shipping summaryhow does it satisfy requirements?

RPOmins

RTOmins/hrs

RLOdepends

failovermanual

Page 40: BIWUG1303 - HA & DR

SQL 2012 Availability Group

essentials• clustering & mirroring evolved• at the instance level• no shared storage• for ha & dr• simple configuration

nice to know• automatic failover across single or multiple datacenters• multiple databases fail over together• no need for aliases or AddFailoverServiceInstance in SharePoint• multiple (readable) secondaries possible• full recovery model• RBS support

the newest kid on the block

Page 41: BIWUG1303 - HA & DR

SQL 2012 Availability Group

Page 42: BIWUG1303 - HA & DR

SQL 2012 Availability Group summaryhow does it satisfy requirements?

RPO0

RTOsecs

RLOfarm

failoverauto HA & DR

Page 43: BIWUG1303 - HA & DR

Putting it all together

Page 44: BIWUG1303 - HA & DR

single farm / one datacenter• multiple web servers with load balancing• multiple application servers• clustering or mirroring for ha or dr• consider SQL 2012 availability groups!

Page 45: BIWUG1303 - HA & DR

single farm / two datacenters• fully redundant network infrastructure• <1ms latency between datacenters• load balancing across datacenters• multiple web servers• multiple application servers• mirroring or geo cluster with data replication for ha &

dr• consider SQL 2012 availability groups!

Page 46: BIWUG1303 - HA & DR

two farms / two datacenters• fully redundant network infrastructure• log shipping between data centers for dr• manual failover• manual client redirect (network routing, dns)• sometimes DR farm is read-only• warm / hot standby• consider SQL 2012 availability groups!