spssac2014 - sharepoint infrastructure tips and tricks for on-premises and hybrid cloud environments...

41
SACRAMENTO SharePoint Infrastructure Tips and Tricks for On- Premises and Hybrid Cloud Environments

Upload: michael-noel

Post on 01-Jun-2015

260 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

SACRAMENTO

SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid

Cloud Environments

Page 2: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Michael Noel• Author of SAMS Publishing titles “SharePoint 2013 Unleashed,” “SharePoint 2010 Unleashed”,

“Windows Server 2012 Unleashed,” “Exchange Server 2013 Unleashed”, “ISA Server 2006 Unleashed”, and a total of 19 titles that have sold over 300,000 copies.

• Partner at Convergent Computing (www.cco.com) – San Francisco, U.S.A. based Infrastructure/Security specialists for SharePoint, AD, Exchange, System Center, Security, etc.

Page 3: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

SharePoint 2013 Infrastructure

Page 4: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• OS– Windows Server 2008 R2 SP1– Windows Server 2012– Windows Server 2012 R2 (only if using SP 2013 SP1)

• SQL– SQL Server 2008 R2 w/SP1– SQL Server 2012– SQL Server 2014 (only if using SP 2013 SP1)Type Memory Processor

Dev/Stage/Test server 8GB RAM 4 CPU

‘All-in-one’ DB/Web/SA 24GB RAM 4 CPU

Web/SA Server 12GB RAM 4 CPU

DB Server (medium environments) 16GB RAM 8 CPU

DB Server (small environments) 8GB RAM 4 CPU

What’s new in Infrastructure for SharePoint 2013

Software/Hardware Requirements

Page 5: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

What’s new in Infrastructure for SharePoint 2013

Changes in Service Applications and New Service Applications

Office Web Apps is no longer a service applicationWeb Analytics is no longer service application, it’s part of searchNew service applications available and improvements on existing ones

App Management Service – Used to manage the new SharePoint app store from the Office Marketplace or the Application CatalogSharePoint Translation Services – provides for language translation of Word, XLIFF, and PPT files to HTMLWork Management Service – manages tasks across SharePoint, MS Exchange and Project.Access Services App (2013) – Replaces 2010 version of Access Services

Page 6: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• A new Windows service – the Distributed Cache Service – is installed on each server in the farm when SharePoint is installed

• It is managed via the Services on Server page in central admin as the Distributed Cache service

• The config DB keeps track of which machines in the farm are running the cache service

What’s new in Infrastructure for SharePoint 2013

Distributed Cache Service

Page 7: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• The purpose of the Request Management feature is to give SharePoint knowledge of and more control over incoming requests

• Having knowledge over the nature of incoming requests – for example, the user agent, requested URL, or source IP – allows SharePoint to customize the response to each request

• RM is applied per web app, just like throttling is done in SharePoint 2010

What’s new in Infrastructure for SharePoint 2013

Request Management (RM)

Page 8: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Option 1 (AD Import): Simple one-way Sync (a la SharePoint 2007)

• Option 2: Two-way, possible write-back to AD options using small FIM service on UPA server (a la 2010)

• Option 3: Full Forefront Identity Manager (FIM) Synchronization, allows for complex scenarios – Larger clients will appreciate this

What’s new in Infrastructure for SharePoint 2013

User Profile Sync – Three Options for Deployment

Page 9: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• SharePoint 2013 continues to offer support for both claims and classic authentication modes

• However claims authentication is THE default authentication option now– Classic authentication mode is still there, but can only be managed in

PowerShell – it’s gone from the UI – Support for classic mode is deprecated and will go away in a future release– There also a new process to migrate accounts from Windows classic

to Windows claims – the Convert-SPWebApplication cmdlet

What’s new in Infrastructure for SharePoint 2013

Claims-based Authentication - Default

Page 10: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Stores new versions of documents as ‘shredded BLOBs that are deltas of the changes

• Promises to reduce storage size significantly

What’s new in Infrastructure for SharePoint 2013

Shredded Storage

Page 11: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• New Search architecture (FAST based) with one unified search

• Personalized search results based on search history

• Rich contextual previews

What’s new in Infrastructure for SharePoint 2013

Search – FAST Search now included

Page 12: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

ARCHITECTING THE FARM

Page 13: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Web

Service Apps

Data

Architecting the Farm

Three Layers of SharePoint Infrastructure

Page 14: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• ‘All-in-One’ (Avoid)

DB and SP Roles Separate

Architecting the Farm

Small Farm Models

Page 15: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• 2 SharePoint Servers running Web and Service Apps

• 2 Database Servers (AlwaysOn FCI or AlwaysOn Availability Groups)

• 1 or 2 Index Partitions with equivalent query components

• Smallest farm size that is fully highly available

Architecting the Farm

Smallest Highly Available Farm

Page 16: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• 2 Dedicated Web Servers (NLB)

• 2 Service Application Servers

• 2 Database Servers (Clustered or Mirrored)

• 1 or 2 Index Partitions with equivalent query components

Architecting the Farm

Best Practice ‘Six Server Farm’

Page 17: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Separate farm for Service Applications

• One or more farms dedicated to content

• Service Apps are consumed cross-farm

• Isolates ‘cranky’ service apps like User Profile Sync and allows for patching in isolation

Architecting the Farm

Ideal – Separate Service App Farm + Content Farm(s)

Page 18: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Multiple Dedicated Web Servers• Multiple Dedicated Service App

Servers• Multiple Dedicated Query

Servers• Multiple Dedicated Crawl

Servers, with multiple Crawl DBs to increase parallelization of the crawl process

• Multiple distributed Index partitions (max of 10 million items per index partition)

• Two query components for each Index partition, spread among servers

Architecting the Farm

Large SharePoint Farms

Page 19: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

SharePoint Virtualization

Page 20: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Allows organizations that wouldn’t normally be able to have a test environment to run one Allows for separation of the database role onto a dedicated server Can be more easily scaled out in the future

Sample 1: Single Server Environment

SP Server Virtualization

Page 21: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

High-Availability across Hosts

All components Virtualized

Sample 2: Two Server Highly Available Farm

SP Server Virtualization

Page 22: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Highest transaction servers are physical

Multiple farm support, with DBs for all farms on the SQL AOAG

Sample 3: Mix of Physical and Virtual Servers

SP Server Virtualization

Page 23: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Scaling to Large Virtual Environments

SP Server Virtualization

Page 24: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Processor (Host Only)– <60% Utilization = Good– 60%-90% = Caution– >90% = Trouble

• Available Memory – 50% and above = Good– 10%-50% = OK– <10% = Trouble

• Disk – Avg. Disk sec/Read or Avg. Disk sec/Write

– Up to 15ms = fine– 15ms-25ms = Caution– >25ms = Trouble

• Network Bandwidth – Bytes Total/sec– <40% Utilization = Good– 41%-64% = Caution– >65% = Trouble

• Network Latency - Output Queue Length

– 0 = Good– 1-2= OK– >2 = Trouble

Virtualization of SharePoint ServersVirtualization Performance Monitoring

Page 25: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Data Management

Page 26: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Sample Distributed Content Database Design

Data Management

Page 27: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Can reduce dramatically the size of Content DBs, as upwards of 80%-90% of space in content DBs is composed of BLOBs

• Can move BLOB storage to more efficient/cheaper storage• Improve performance and scalability of your SharePoint deployment – But

highly recommended to use third party

Remote BLOB Storage (RBS)

Data Management

Page 28: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

SQL Database Optimization

Page 29: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

DB-AFile 1

DB-BFile 1

Volume #1

DB-AFile 2

DB-BFile 2

Volume #2

DB-AFile 3

DB-BFile 3

Volume #3

DB-AFile 4

DB-BFile 4

Volume #4

Tempdb File 1 Tempdb File 2 Tempdb File 3 Tempdb File 4

Multiple Files for SharePoint Databases

SQL Server Optimization

Page 30: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Break Content Databases and TempDB into multiple files (MDF, NDF), total should equal number of physical processors (not cores) on SQL server.

• Pre-size Content DBs and TempDB to avoid fragmentation• Separate files onto different drive spindles for best IO perf.• Example: 50GB total Content DB on Two-way SQL Server would have two database files distributed

across two sets of drive spindles = 25GB pre-sized for each file.

Multiple Files for SharePoint Databases

SQL Server Optimization

Page 31: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Implement SQL Maintenance Plans!• Include DBCC (Check Consistency) and either Reorganize Indexes or Rebuild Indexes,

but not both!

SQL Database OptimizationSQL Maintenance Plans

• Add backups into the maintenance plan if they don’t exist already

• Be sure to truncate transaction logs with a T-SQL Script (after full backups have run…)

Page 32: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

High Availability and Disaster Recovery

Page 33: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

High Availability and Disaster RecoverySQL Server Solution

Potential Data Loss (RPO)

Potential Recovery Time (RTO)

Automatic Failover

Additional Readable Copies

AlwaysOn Availability Groups – Synchronous (Dual-phase commit, no data loss, can’t operate across WAN)

None 5-7 Seconds Yes 0 - 2

AlwaysOn Availability Groups – Asynchronous (Latency tolerant, cross WAN option, potential for data loss)

Seconds Minutes No 0 - 4

AlwaysOn Failover Cluster Instance (FCI) – Traditional shared storage clustering

NA 30 Seconds to several minutes

(depending on disk failover)

Yes N/A

Database Mirroring - High-safety (Synchronous) Zero 5-10 seconds Yes N/A

Database Mirroring - High-performance (Asynchronous) Seconds Manually initiated, can be a few

minutes if automated

No N/A

SQL Log Shipping Minutes Manually initated, can be a few

minutes if automated, by typically hours

No Not duringa restore

Traditional Backup and Restore Hours to Days Typically multiple hours, days, or

weeks

No Not duringa restore

Comparison of High Availability and Disaster Recovery Options

HA and DR

Page 34: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

AlwaysOn Availability Groups in SQL 2012/2014HA and DR

Page 35: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Hardware Based Load Balancing (F5, Cisco, Citrix NetScaler – Best performance and scalability

• Software Windows Network Load Balancing fully supported by MS, but requires Layer 2 VLAN (all packets must reach all hosts.) Layer 3 Switches must be configured to allow Layer 2 to the specific VLAN.

• If using Unicast, use two NICs on the server, one for communications between nodes.

• If using Multicast, be sure to configure routers appropriately

• Set Affinity to Single (Sticky Sessions)• If using VMware, note fix to NLB RARP issue (

http://tinyurl.com/vmwarenlbfix)

Network Load Balancing

HA and DR

Page 36: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Security and Documentation

Page 37: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Infrastructure Security and Best practices– Physical Security– Best Practice Service Account Setup– Kerberos Authentication

• Data Security– Role Based Access Control (RBAC)– Transparent Data Encryption (TDE) of SQL Databases

• Transport Security– Secure Sockets Layer (SSL) from Server to Client– IPSec from Server to Server

• Edge Security– Inbound Internet Security (Forefront UAG/TMG)

• Rights Management

Five Layers of SharePoint Security

Security

Page 38: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

• Document all key settings in IIS, SharePoint, after installation• Consider monitoring for changes after installation for Config Mgmt.• Fantastic tool for this is the SPDocKit - can be found at

http://tinyurl.com/spdockit

SPDocKit

Document SharePoint

Page 39: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Thanks for attending!Questions?

Michael NoelTwitter: @MichaelTNoel

www.cco.comSlides: slideshare.net/michaeltnoelTravel blog: sharingtheglobe.com

Pre-order SharePoint 2013 Unleashed:tinyurl.com/sp2013unleashed

Page 40: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Thank You to Our Sponsors

Page 41: SPSSac2014 - SharePoint Infrastructure Tips and Tricks for On-Premises and Hybrid Cloud Environments - Michael Noel

Join us right after at The Blue PryntSocialize and unwind after our day of learning.

Blue Prynt Restaurant & Bar815 11th St, Sacramento, CA 95814

bluepryntsacramento.com

Don’t Forget SharePint

Thank you for joining us Today!

SACRAMENTO