Escolar Documentos
Profissional Documentos
Cultura Documentos
Capacity Management
John Naguib
Senior Technical Consultant / Portfolio Architect
MCITP, MCPD, MCTS and MCT
1
Who am I
-
Blog: http://johnnaguib.blogspot.com
Twitter: @johnnaguib
TechNet Profile: https://social.technet.microsoft.com/profile/john%20naguib/
Agenda
Introduction
Capacity Planning
Performance Monitoring
Capacity Management
Performance Optimization
Tools
My Sharings
Questions
SharePoint to a User
SharePoint to Consultants/Operations
Capacity Planning
Web Front End and Requests per second
Number of WFEs needed (@100 RPS/server)
Calculate RPS: either with existing data or with assumptions
N: Total number of unique users ("20,000 of whom access the farm on any given
day")
C: Concurrent user rate ("30 percent of the users will use the portal at the same
time")
RPD: Requests per day per user ("Each user makes 400 requests in the course of a
business day")
Peak usage ratio = 3 ("peak usage can be as much as three times")
Average RPS = (N * C * RPD * Peak Usage)/seconds
8
Capacity Planning 2
Apps Server Capacity Planning:
*Start with two application servers dedicated to the query processing component
and index partitions and place all other service application components on a
separate application server. Based on utilization, consider either adding allpurpose application servers that are configured similarly, or adding application
servers to dedicate resources to specific service.
*Services that consumes resources like PerfromancePoint
*Search Separation 10 million, 40 million, 100 million
http://www.microsoft.com/en-us/download/details.aspx?id=30383
9
Capacity Planning-Links
for the WFE is the RPS Requests per second versus the users
to get the RPS
http://smallcitydesign.com/how-to-get-sharepoint-2010-requests-per-second-rps/
and this excel sheet to get the users versus RPS
http://pcfromdc.blogspot.com/2013/02/determine-max-users-from-requests-per.html
and here you are how to get the number of front ends
http://abhayajoshi.blogspot.com/2014/01/how-to-calculate-number-of-web-front_24.html
for Apps server, it is based on memory and cpu consumption, check those links
http://blogs.msdn.com/b/sanjaynarang/archive/2013/04/06/sizing-and-capacity-planning-forsharepoint-2013-resources.aspx
https://technet.microsoft.com/en-us/library/ff758645.aspx
https://technet.microsoft.com/en-us/library/cc262971.aspx
10
What to Monitor
11
Counter
1
2
% Processor Time
Disk-Average Disk Queue Length
5
6
7
8
9
10
11
12
13
14
15
12
16
How to Monitor
SCOM
3rd Party
Performance monitor Dataset Collectors
power shell script and export to CSV
Adding counter to usage DB (configure data collection)
13
How to Monitor 2
14
Capacity Management
#
Counter
Potential Bottleneck
Condition
% Processor Time
Gradually increasing
Upgrade to faster disks, Increase number of disks, Implement data striping, Move some
data to alternative servers
5
6
Memory- Pages/Sec
Add Memory
Add Memory
Add Memory
Upgrade NICs,
buffers)
Add Memory
10
11
12
13
14
1515
16
Action
Verify application pool settings, Ensure application pools are not set to
automatically recycle unnecessarily
Add WFEs servers
Add WFE servers
Add WFE servers
Demo
Performance
Counters
Data Set
Collectors
Diagnostics
Studio
16
Performance Optimization
1 ms Latency between SQL and SP
20 ms latency to retrieve the first byte (Logical Disk: Avg. Disk
sec/Read)
stretched Farms !!
17
Performance Optimization 2
Create a SQL alias cliconfg.exe
Disable loopback check
http://blogs.technet.com/b/sharepoint_foxhole/archive/2010/06/21/disab
leloopbackcheck-lets-do-it-the-right-way.aspx
Latest OS updates
SP Service Packs
Use Hardware Load Balancers
18
Performance Optimization 3
Log Files on different than primary (system) disk
Use naming convention for service accounts, services and database names
Disable unused Windows services (eg.: Spooler, AudisoSrv, tabletInput, WerSvc)
WarmUp Scripts
19
Performance Optimization 4
Compression
Caching
Avoid Long Backup Jobs
Code Check
20
21
22
23
Tools: Fiddler
Web debugging and traffic trace
http://www.telerik.com/download/fiddler/fiddler4
http://blogs.msdn.com/b/fiddler/archive/2011/12/10/fiddler-windows-8-apps-enable-loopbacknetwork-isolation-exemption.aspx
My IIS response Header tool
24
http://blogs.msdn.com/b/brian_farnhill/archive/2014/04/03/calculating-rps-statistics-fromiis-logs.aspx
http://blogs.msdn.com/b/mohamed_el_ashmawi/archive/2011/09/23/sharepoint-2010capacity-management-log-parser.aspx
http://smallcitydesign.com/how-to-get-sharepoint-2010-requests-per-second-rps/
To get the total number of users per log file
logparser -i:IISW3C "select top 20 count(*) as ct,cs-username as user from *.log group by user
25
order by ct desc"
27
28
Tools SPDocKIT
29
30
My TechNet Articles
SharePoint Tools and Codes
SharePoint Vanity URLs
SharePoint Sites are not deleted
Remove WFE Role from Farm
SharePoint 2013 HNSC
Configure OWA with Certificates
AAM and SharePoint 2013 SSL web applications
Create Self Signed Certificates
SharePoint 2013 and Kerberos
SharePoint 2013 Capacity Management
Workflow Manager Disaster Recovery
31
32
My HP Official Blogs
33
My Contacts
Blog: http://johnnaguib.blogspot.com
Twitter: @johnnaguib
TechNet Profile: https://social.technet.microsoft.com/profile/john%20naguib/
34
Thanks
35