SharePoint 2013 SPDistributedCacheService 介绍与配置
2014-09-15 21:25
906 查看
SharePoint 2013 SPDistributedCacheService 是SharePoint server 2013引入的一种缓存机制,它通常用于以下功能的缓存:
Newsfeeds
Authentication
OneNote client access
Security Trimming
Page load performance (直接影响页面加载和反应速度)
有些Cache 是不通过SPDistributedCacheService 缓存的,例如:
Blob Cache (图片,脚本等),它们只缓存在WEF server 上
Output cache (Asp.net 页面缓存), 也只缓存在WEF server 上
其实SPDistributedCacheService 是利用 Window server 2012 的AppFabricCachingService来构建的分布式缓存系统。
安装 SharePoint 2013 准备套件时会自动安装AppFabricCachingService。
以下是AppFabricCachingService的逻辑架构图:
SharePoint 2013 中, Cluster configuration 存放在 SharePoint_Config 数据库中, Cache server 可以是任意WEF server 和 app server
下面介绍如何配置 SPDistributedCacheService:
1. 在任意想部署Cache的WEF 或 App server 上依次运行下列 SharePoint power shell 命令
a. 倒入 power shell 网络安全模块
Import-ModuleNetSecurity
b. 开启防火墙规则
Set-NetFirewallRule-DisplayName "File and Printer Sharing (Echo Request -ICMPv4-In)" -Enabled True
c. 将本机加入到 Cache host cluster (集群)
Add-SPDistributedCacheServiceInstance
4. 将本机缓存大小设置为 2G, 系统默认为本机内存的 5%
Update-SPDistributedCacheSize-CacheSizeInMB 2048
注意:单机机缓存大小不要超过 16 G,且不要超出本机总内存的40%
2. 运行以下命令验证配置结果
a. Get-CacheHost
b. Get-CacheHostConfig -ComputerName rtatstuswspapp2 –CachePort 22233
通过笔者的测试,配置了SPDistributedCacheService 之后,叶面加载效率大概提升10~20 倍。
Newsfeeds
Authentication
OneNote client access
Security Trimming
Page load performance (直接影响页面加载和反应速度)
有些Cache 是不通过SPDistributedCacheService 缓存的,例如:
Blob Cache (图片,脚本等),它们只缓存在WEF server 上
Output cache (Asp.net 页面缓存), 也只缓存在WEF server 上
其实SPDistributedCacheService 是利用 Window server 2012 的AppFabricCachingService来构建的分布式缓存系统。
安装 SharePoint 2013 准备套件时会自动安装AppFabricCachingService。
以下是AppFabricCachingService的逻辑架构图:
SharePoint 2013 中, Cluster configuration 存放在 SharePoint_Config 数据库中, Cache server 可以是任意WEF server 和 app server
下面介绍如何配置 SPDistributedCacheService:
1. 在任意想部署Cache的WEF 或 App server 上依次运行下列 SharePoint power shell 命令
a. 倒入 power shell 网络安全模块
Import-ModuleNetSecurity
b. 开启防火墙规则
Set-NetFirewallRule-DisplayName "File and Printer Sharing (Echo Request -ICMPv4-In)" -Enabled True
c. 将本机加入到 Cache host cluster (集群)
Add-SPDistributedCacheServiceInstance
4. 将本机缓存大小设置为 2G, 系统默认为本机内存的 5%
Update-SPDistributedCacheSize-CacheSizeInMB 2048
注意:单机机缓存大小不要超过 16 G,且不要超出本机总内存的40%
2. 运行以下命令验证配置结果
a. Get-CacheHost
b. Get-CacheHostConfig -ComputerName rtatstuswspapp2 –CachePort 22233
通过笔者的测试,配置了SPDistributedCacheService 之后,叶面加载效率大概提升10~20 倍。
相关文章推荐
- SharePoint 2013 Distributed Cache Service错误和解决办法
- Sharepoint2013商务智能学习笔记之Excel Service服务配置(四)
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第12章节--SP 2013中远程Event Receivers 介绍远程Event Receivers
- SharePoint 2013 BI之report service 常用功能 snapshot & cache
- 图文SharePoint 2013 中创建、配置、编辑或删除 User Profile Service 应用程序
- SharePoint 2013 配置 查询拼写纠错(Query Spelling Correction)
- SharePoint 2013 配置 查询规则(Query Rule)
- 如何在SharePoint中配置Visio Graphics Service
- 如何为SharePoint 2010中配置Performance Point Service
- 如何为SharePoint 2010中配置Performance Point Service
- SharePoint 2013 配置启用搜索服务
- SharePoint 2013使用Exchange2013 配置传入电子邮件
- SP2010: SharePoint 2010认证大师考试之---安装配置 Exam 70-667
- SharePoint 2013 App 介绍1
- SharePoint 2013 Excel service 常用JavaScript类和方法
- SharePoint 2013 配置开发环境,需安装VS2012插件
- sharepoint 2010 启动工作流时,该表单无法显示,可能是由于Microsoft SharePoint Server State Service 配置不当.
- 配置SharePoint 2007 过程中引发Microsoft.SharePoint.Upgrade.SPUpgradeException 异常(未能创建配置数据库)的一个解决方法
- 一步一步SharePoint 2007之四十七:实现Excel Service(2)——配置Excel Service支持
- 深入浅出SharePoint——利用SPDiagnosticsService收集错误日志