Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

SharePoint 2013 Request Management (part 2) - Request Management Administration

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/8/2014 7:54:40 PM

Request Management Administration

There is no browser user interface for Request Management in SharePoint 2013. Instead, administration of Request Management is via PowerShell Cmdlets.

The following example demonstrates how to get access to the Request Management settings for a particular web application:

  • 1.  From the Start menu, choose All Programs.
  • 2.  Click Microsoft SharePoint 2013 Products.
  • 3.  Click SharePoint 2013 Management Shell to launch the console.
  • 4.  Type the following text into the console:
    $app = Get-WebApplication  "http://webappUrl" $rmSettings = $app | Get-SPRequestManagementSettings$rmSettings

You should see a list of settings for the Request Manager associated with the web application. Figure 2 shows a screenshot from my console when I executed the previous PowerShell Cmdlets to retrieve the Request Management settings for my default web application.

9781430249412_Fig05-22.jpg

Figure 2. Request Management settings for web application

The following set of steps demonstrates how to create a couple of machine pools:

  • 5.  Type the following PowerShell Cmdlets into the console:
    $pool1 = Add-SPRoutingMachinePool –RequestManagementSettings $rmSettings
    -Name "Machine Pool 1" –MachineTargets @("Server1", "Server2")
  • 6.  The previous PowerShell assumes Server 1 and Server 2 belong to a new machine pool, called Machine Pool 1.
  • 7.  Add another machine pool, as follows:
    $pool2 = Add-SPRoutingMachinePool –RequestManagementSettings $rmSettings
    -Name "Machine Pool 2" –MachineTargets @("Server3")
  • 8.  The previous PowerShell assumes Server 3 belongs to a new machine pool, called Machine Pool 2.
  • 9.  Now to add some static weightings for servers in the pools.
  • 10.  Enter the following PowerShell Cmdlets:
    $rmServerInfo = $rmSettings | Get-SPRoutingMachineInfo –Name "Server1"
    Set-SPRoutingMachineInfo –Identity $rmServerInfo –StaticWeight 8
  • 11.  Repeat step 10 for each server in both pools.
  • 12.  With the machine pools created and servers in those pools, I will demonstrate adding a throttling rule.
  • 13.  Type the following PowerShell Cmdlets to add a throttling rule when the user agent includes “Robot”—this rule will prevent any search engine with the word “Robot” in the user agent from issuing requests.
    $criteria = New-SPRequestManagementRuleCriteria –Property UserAgent –MatchType Regex –Value ".*Robot.*"
    $rmSettings | Add-SPThrottlingRule –Name "Refuse Robot Agents" –Criteria $criteria
  • 14.  Now to add some routing rules, which bind to machine pools. Enter the following PowerShell Cmdlets:
    $criteria = New-SPRequestManagementRuleCriteria –Property Url –MatchType Regex –Value ".*\.pdf"
    $rule = Add-SPRoutingRule –RequestManagementSettings $rmSettings –Name "Handle PDF Requests" –ExecutionGroup 0 –MachinePool $pool1 –Criteria $criteria
  • 15.  The previous PowerShell Cmdlets create a new request rule that forwards all requests for PDF files to Machine Pool 1. The rule resides in Execution Group 0.
  • 16.  Experiment by creating more throttling and routing rules. Once complete, you can survey the rules with the following PowerShell Cmdlet:
    Get-SPRoutingRule | $rmSettings
Other -----------------
- Windows Server 2012 : Deploying Storage Spaces (part 5) - Implementing Storage Spaces, Using Windows PowerShell
- Windows Server 2012 : Deploying Storage Spaces (part 4) - Planning a Storage Spaces deployment - Availability, Management
- Windows Server 2012 : Deploying Storage Spaces (part 3) - Planning a Storage Spaces deployment - Hardware, Performance, Resiliency
- Windows Server 2012 : Deploying Storage Spaces (part 2) - Understanding Storage Spaces - Fixed vs. thin provisioning
- Windows Server 2012 : Deploying Storage Spaces (part 1) - Understanding Storage Spaces - Concepts and terminology
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 8) - Connecting to Exchange 2003 Routing Groups
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 7) - Viewing and Managing Receive Connectors
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 6) - Creating Receive Connectors
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 5) - Configuring Send Connector DNS Lookups, Setting Send Connector Limits
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 4) - Viewing and Managing Send Connectors
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server