faster than a flash behind the scenes of patching sharepoint online

29
Faster than a flash - behind the scenes of patching SharePoint Online ALEKSANDAR DRAŠKOVIĆ SERVICE ENGINEER, MICROSOFT IRELAND

Upload: spc-adriatics

Post on 16-Apr-2017

194 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Faster than a flash   behind the scenes of patching SharePoint Online

Faster than a flash - behind the scenes of patching SharePoint Online

ALEKSANDAR DRAŠKOVIĆSERVICE ENGINEER, MICROSOFT IRELAND

Page 2: Faster than a flash   behind the scenes of patching SharePoint Online

SPONSORS

Page 3: Faster than a flash   behind the scenes of patching SharePoint Online

Aleksandar DraškovićSenior Service EngineerMicrosoft Ireland

Page 4: Faster than a flash   behind the scenes of patching SharePoint Online

AgendaIntroduction

Patching phasesNon-affecting work

Preparing environmentBits installation

Affecting workFarm upgradeContent databases upgrade

Automation

Page 5: Faster than a flash   behind the scenes of patching SharePoint Online

INTRODUCTION

Page 6: Faster than a flash   behind the scenes of patching SharePoint Online

„A service-level agreement (SLA) is a part of a standardized service contract

where a service is formally defined. Particular aspects of the service – scope,

quality, responsibilities – are agreed between the service provider and the

service user“source: Wikipedia

Introduction - SLA

Page 7: Faster than a flash   behind the scenes of patching SharePoint Online

Long bits extraction processTopology service endpoint discovery (round-robin)Long farm upgrade processTime and effort (requires engineer presence)Long downtimes

Limitations of the 2010/2013 mechanism

Page 8: Faster than a flash   behind the scenes of patching SharePoint Online

Challenges in SPO-D

AP Server FE Server0

2

4

6

8

10

12

14

16

Installation Time (hours)

Manual Automation

Server Farm0

100

200

300

400

500

600

700

800

900

Engineer interaction (min)

Manual Automation

Page 9: Faster than a flash   behind the scenes of patching SharePoint Online

Preparation workInstalling bitsFarm upgrade / WAC upgradeContent Database upgradePost-deployment work

Patching phases

Page 10: Faster than a flash   behind the scenes of patching SharePoint Online

NON-AFFECTING WORK

Page 11: Faster than a flash   behind the scenes of patching SharePoint Online

Usually 3 environment typesPre-production, Disaster Recovery and Production environment

Patch pre-production firstAnd perform basic functional tests

Patch disaster recovery as secondIn a case of any kind of disaster, it can’t be on the lower build level as production

Finally, patch the production environment

Diversity of environments

Page 12: Faster than a flash   behind the scenes of patching SharePoint Online

Preparation workRecession checkHealth check

Application poolsServicesweb.configDisk spaceLocal smoke test

Bits extractionDisable User Profile Incremental sync

Page 13: Faster than a flash   behind the scenes of patching SharePoint Online

Installing bitsCan be executed during the work week

HA setup required for no downtimeActivate maintenance mode for the server

In case you are using monitoring systems like SCOMTake the server out of rotation

So that the traffic won’t be directed to the affected server

Page 14: Faster than a flash   behind the scenes of patching SharePoint Online

Installing bits (contd.)Create services snapshot

Both SharePoint and Windows Services

Disable endpointsStop-SPServiceInstance

Stop and disable services on the serverIISAdmin, OSearch15, SPSearchHostController, SPAdminV4, SPTimerV4

Page 15: Faster than a flash   behind the scenes of patching SharePoint Online

Installing bits (contd.)Install bits

Copy app. bits and initialize resource securityInstall-SPApplicationContent, Initialize-SPResourceSecurity

Start servicesEnable endpointsRestart

Page 16: Faster than a flash   behind the scenes of patching SharePoint Online

Installing bits (contd.)Check server healthPerform a local smoke testBring the server back into rotationRemove server from the maintenance mode

Page 17: Faster than a flash   behind the scenes of patching SharePoint Online

Installing bits - tipsPatch multiple servers at once

Patch servers with different roles at the same time, eg. AP and FE

Watch the load on other frontends in the farmPerfmon: Web Service\Current Connections

Beware of July 2015 PUChanges in the search schema

Page 18: Faster than a flash   behind the scenes of patching SharePoint Online

AFFECTING WORK

Page 19: Faster than a flash   behind the scenes of patching SharePoint Online

Farm upgradeExecuted during agreed change window

There is a small period in time the services will be actually down

Place the whole farm in maintenance modePerform local smoke test on all serversCheck service health on all servers

Page 20: Faster than a flash   behind the scenes of patching SharePoint Online

Farm upgrade (contd.)Enumerate all content databases

Store all important parametersPrimary and mirror instanceDatabase nameWeb Application name

Dismount all content databasesPerform PSConfig on the first app serverPerform PSConfig on the rest of the servers

Page 21: Faster than a flash   behind the scenes of patching SharePoint Online

Farm upgrade (contd.)Mount all content databasesCheck service health on all serversPerform local smoke test on all frontendsPlace the farm out of the maintenance mode

Page 22: Faster than a flash   behind the scenes of patching SharePoint Online

WAC upgradeAffecting the whole WAC farmPlace the servers in the maintenance modeMake snapshot of the WAC configurationBreak WAC farmInstall bits on all WAC serversRebuild the WAC farmApply additional config (based on the snapshot)Remove servers from the maintenance mode

Page 23: Faster than a flash   behind the scenes of patching SharePoint Online

Content DB upgradePlace the farm in the maintenance modeUpgrade each content database

Upgrade-SPContentDatabaseCan be done in multiple change windows

Only sites in the currently upgraded database are affectedCan run multiple upgrade processes in parallelRemove the farm from the maintenance mode

Page 24: Faster than a flash   behind the scenes of patching SharePoint Online

AUTOMATION

Page 25: Faster than a flash   behind the scenes of patching SharePoint Online

AutomationChallenges

Effort: Human interaction with Servers Time: how long does it take to patch a SharePoint farmSecurity: limit the need to access the farm

GainsRepeated work pattern (on Monthly basis) Reduce the possibility of Human Error Co-op with increasing work load

ToolsSystem Center Orchestrator PowerShellAzure Automation

Page 26: Faster than a flash   behind the scenes of patching SharePoint Online

Automation

Page 27: Faster than a flash   behind the scenes of patching SharePoint Online

Stage TimeInstall bits 120 minutes

(depends of LPs installed)Farm update 90 - 120 minutes

(depends on farm size)WAC update (parallel to farm

update)90 minutes (depends of WAC farm size)

DB upgrade 180 minutes (depends of number of CDBs)

TOTAL (non-affecting work)TOTAL (affecting work)

120 minutes / server390 minutes

What are we gaining (SPO-D example)?

Page 28: Faster than a flash   behind the scenes of patching SharePoint Online

Stefan Gossner blogMost accurate information around PU / CU releaseshttps://blogs.technet.microsoft.com/stefan_gossner/

SharePoint patching demystifiedhttps://blogs.technet.microsoft.com/stefan_gossner/2014/08/18/sharepoint-patching-demystified/

Deploy software updates for SharePoint 2013https://technet.microsoft.com/en-us/library/cc263467.aspx

Additional info

Page 29: Faster than a flash   behind the scenes of patching SharePoint Online

thank youquestions?

live ratingsHTTP://WWW.ADRIT.DE/BLOG@ADRASKOVIC

spca.biz/NGYC