為 SharePoint Server 2013 中的視訊內容管理評估容量及效能Estimate capacity and performance for video content management in SharePoint Server 2013

摘要:了解如何規劃視訊內容類型和視訊播放器頁面使用多媒體網頁組件至 SharePoint Server 2013 中播放視訊時提供更好的使用者體驗的準則。Summary: Learn guidelines for how to plan video content types and video player pages using the Rich Media Web Part to provide better user experiences when you play videos in SharePoint Server 2013.

SharePoint Server 2013 支援的視訊內容類型及影片播放程式] 頁面上,您可以在其中使用若要播放影片多媒體網頁組件。本文包含可協助您最佳化視訊播放的使用者經驗的 SharePoint Server 2013 環境的測試資料。SharePoint Server 2013 supports the video content type and the video player page, where you can use the Rich Media Web Part to play videos. This article contains test data to help you optimize the video playing experience for users in a SharePoint Server 2013 environment.

影片稱為數位資產或多媒體 in SharePoint Server 2013。SharePoint Server 2013 提供資產庫,讓使用者可以瀏覽檢視他們的集中位置儲存影片。如需詳細資訊,請參閱 < Overview of SharePoint Server 2013 中管理數位資產Videos are known as digital assets or rich media in SharePoint Server 2013. SharePoint Server 2013 provides an asset library to store videos so that users can visit a central location to view them. For more information, see Overview of managing digital assets in SharePoint Server 2013.

重要

SharePoint Online 具有不同的效能和延展性屬性大於內部部署 SharePoint Server 2013 安裝。雖然 SharePoint Online 可以串流影片,但不是非常大的影片或針對有限通訊群組的影片要保留這項功能。視訊案例不符合這些準則,為了獲得最佳結果,請考慮儲存外部、 影片及使用這類 Azure 媒體服務的協力廠商服務進行資料流。> 您也可以搜尋來尋找協力廠商應用程式啟用視訊整合到 SharePoint Online 的 Office 市集。SharePoint Online has different performance and scalability properties than on-premises SharePoint Server 2013 installations. Although SharePoint Online can stream video, this capability should be reserved for videos that are not very large, or for videos that have limited distribution. For video scenarios that do not fit these criteria, for best results, consider storing videos externally, and streaming them using a partner service such as Azure Media Services. > You can also search the Office Store to find partner apps that enable video integration into SharePoint Online.

簡介Introduction

我們測試兩個案例中我們視訊容量和效能測試。第一個分析藍本儲存在不屬於 SharePoint 部署位置的影片。第二個案例中 SharePoint 資產庫儲存影片。我們查看這兩個案例的效能特性。We tested two scenarios in our video capacity and performance testing. The first scenario stores videos in a location that is not part of the SharePoint deployment. The second scenario stores videos in a SharePoint asset library. We look at the performance characteristics for both scenarios.

視訊的儲存位置Video storage locations

在 SharePoint Server 2016 影片使用像是文件組更加名為視訊的新內容類型。當您建立程序的影片時、 SharePoint Server 2013 會使用下列方法之一來儲存它:Videos in SharePoint Server 2016 use a new content type named Video, much like a document set. When you create a video, SharePoint Server 2013 uses one of the following methods to store it:

  • 儲存為二進位大型物件 (BLOB) 的內容資料庫中的視訊內容Store the video content as a Binary Large Object (BLOB) in the content database

  • 儲存影片 URL 參照Store a reference to a URL for the video

  • 存放區包含參照外部影片與 player 內嵌程式碼Store an embedded code that contains the reference to an external video and player

下列優點和缺點可協助您決定儲存影片位置:The following advantages and disadvantages can help you decide where to store videos:

  • 如果您在 SharePoint 資產庫中儲存影片,我們建議您開啟 BLOB 快取執行當成前端網頁伺服器角色的電腦。BLOB 快取大小必須可確保使用者順利資料流體驗。If you store videos in a SharePoint asset library, we recommend that you turn on BLOB cache for the computers that run as the front-end web server role. The BLOB cache size must be appropriate to ensure a smooth streaming experience for users.

    注意

    此選項會增加內容資料庫的大小隨著增加更多影片。This option increases the size of the content database as more videos are added.

  • 如果使用者是在相同的地理區域及影片的總大小大型 (例如 HD 視訊),或是您有許多影片,請考慮主控 web 或檔案,而不是以減少在 SQL Server 儲存區成本的內容資料庫伺服器上的影片。If users are in the same geographical region, and the total sizes of the videos are large (such as HD videos), or you have many videos, consider hosting the videos on a web or file server instead of the content database to reduce your SQL Server storage costs.

  • 如果距離過長地理位置分散的使用者,就可以使遠 SharePoint 伺服器陣列使用者不需要資料流影片高延遲連線儲存 [內容傳遞網路上的影片。If users are geographically distributed over long distances, you can store the videos in a content delivery network so that users who are farthest from the SharePoint farm do not have to stream videos over a high latency network connection.

當您將儲存在 SharePoint 部署之外的影片時,請確定這樣未經授權的使用者無法存取其正常保護影片。When you store videos outside a SharePoint deployment, ensure that the videos are correctly secured so that unauthorized users cannot access them.

如果您發現無法上傳檔案大小超過一定大小,您可以變更這在 SharePoint 管理中心網站的Web 應用程式設定] 頁面上。請注意您也可以變更使用者上傳需要超過 30 分鐘上傳的影片使用較大的逾時值網頁安全性驗證。這也可以在管理中心的 [ Web 應用程式設定] 頁面上完成。If you find that you can't upload files larger than a certain size, you can change this on the Web Application Settings page of the SharePoint Central Administration website. Note that you can also change the Web Page Security Validation to use a larger time-out value if users upload videos that take more than 30 minutes to upload. This is also done on the Web Application Settings page in Central Administration.

調整大小以確保順利視訊資料流體驗的 BLOB 快取Size the BLOB cache to ensure smooth video streaming experiences

當您在 SharePoint Server 2013 中儲存影片時、 BLOB 快取的大小可以協助您最佳化資料流的使用者經驗。我們建議您大小 BLOB 快取於一週中檢視的唯一影片的總大小的特定百分比。例如,請考慮其中唯一影片檢視七天的總大小是 100 GB 的環境。您可以對此環境的大小設為需要 80 GB 是唯一的影片的總大小的 80%您 BLOB 快取。這可確保最常檢視的影片一律會保留 BLOB 快取中有無上要擷取這些影片多次的內容資料庫的額外負載。這也可確保最佳使用者經驗資料流。理想的大小會根據 SharePoint 部署中檢視模式的視訊而有所不同。When you store videos in SharePoint Server 2013, the size of the BLOB cache can help you optimize the streaming experience for users. We recommend that you size the BLOB cache to a certain percentage of the total size of unique videos viewed in a week. For example, consider an environment where the total size of unique videos viewed in seven days is 100 GB. For this environment you can size your BLOB cache to be 80 GB, which is 80 percent of the total size of the unique videos. This ensures that the most frequently viewed videos are always kept in the BLOB cache where there is no additional load on the content database to retrieve these videos multiple times. This also ensures an optimal user streaming experience. The ideal size will differ based on the video viewing patterns in the SharePoint deployment.

若要最佳化效能,不放置 BLOB 快取在相同的磁碟機的系統磁碟機上。To optimize performance, do not place the BLOB cache on the same drive as the system drive.

請注意更大的 BLOB 快取大小啟用 SharePoint Server 2013 儲存更多影片。因此,如果您已在前端網頁伺服器上的可用磁碟空間,知道您將儲存在許多影片增加 BLOB 快取大小。請注意,如果 BLOB 快取大小設定低於某些使用者可體驗斷斷續續視訊資料流的臨界值。Note that bigger BLOB cache sizes enable SharePoint Server 2013 to store more videos. So if you have the available disk space on the front-end web servers and know that you'll store many videos, increase the BLOB cache size. Note that if the BLOB cache size is set lower than a certain threshold that users can experience choppy video streaming.

資料集和測試案例Dataset and test scenarios

下表說明我們用於測試的視訊文件庫:The following table describes the video library that we used for our tests:

VariableVariable Value
影片的數目Number of videos
350350
影片的大小Size of videos
1 MB-1 GB 每個、 的總大小 14 GB1 MB - 1 GB each, total size of 14 GB

我們在不同的測試中使用本系列影片:We used this set of videos in different tests:

  1. 上傳至 SharePoint Server 2013 的影片與開啟的 BLOB 快取。Uploaded the videos to SharePoint Server 2013 and turned on the BLOB cache.

  2. 上載至 Windows Server 2008 R2 的影片。Uploaded the videos to a Windows Server 2008 R2.

我們已測試執行中的下列伺服器陣列拓撲:We ran our tests in the following farm topology:

圖 1: 視訊內容管理測試拓撲Figure 1: Video content management test topology

視訊內容管理測試伺服器拓撲的 Visio 圖表。測試伺服器拓撲是由裝載 SQL Server 的單一電腦和裝載 SharePoint Server 服務應用程式並當成前端網頁伺服器執行的單一電腦所組成。

下列清單顯示我們使用電腦:The following list shows the computers that we used:

  • 一部電腦負責裝載 SQL ServerOne computer that is hosting SQL Server

  • 一部電腦負責裝載 SharePoint 服務應用程式並作為前端網頁伺服器執行One computer that is hosting SharePoint service applications and runs as the front-end web server

測試實驗室結果Test lab results

若要產生的測試實驗室結果,我們會建立我們其中導覽不同頁面負載測試。我們存取影片播放程式] 頁面上或使用多媒體控制 [發佈] 頁面。我們再要求] 頁面上所使用不同的數字的 Visual Studio Team System (VSTS) 使用者所參照的視訊檔案。將此負載套用至適用的 SharePoint 部署中,我們手動導覽影片播放程式] 頁面上和以確定使用視訊控制項的發佈頁面視訊資料流經驗可接受。我們會定義可接受的經驗,如下所示:To produce the test lab results, we created a load test where we navigated to different pages. We accessed either the video player page or the publishing page that uses the Rich Media control. We then requested the video file that the page referenced by using varying numbers of Visual Studio Team System (VSTS) users. Applying this load to our SharePoint deployment, we manually navigated to a video player page and a publishing page that uses the video control to make sure that the video streaming experience was acceptable. We define an acceptable experience as follows:

  1. 若要播放的移至頁面 2 秒內啟動視訊Video starts to play within 2 seconds of going to the page

  2. 視訊搜尋經驗如預期般運作Video seeking experience works as expected

請注意在測試電腦的所有用 1 Gbps 網路連線的網路上。我們找到在許多測試,我們管理達到網路已瓶頸而不是電腦的服務內容的其中一個點。Note that all of the computers in our tests are on a network that used 1 Gbps network connections. We found that in many of the tests, we managed to reach a point where the network was the bottleneck instead of the computers that served the content.

測試 started with 50 使用者負載,並再增加並行使用者人數等到不再是可接受的使用經驗。在單一電腦是執行 SharePoint Server 2013 及服務僅影片,我們找到我們直到我們增加到 400 個並行使用者負載有可接受的體驗。我們傳遞該點之後,我們開始請參閱] 頁面上所花費的時間載入及視訊 seek 經驗變成較慢。The tests started with a 50 user load and then increased the number of concurrent users until the experience is no longer acceptable. On a single computer that is running SharePoint Server 2013 and servicing only videos, we found that we had an acceptable experience until we increased the load to 400 concurrent users. After we passed that point, we began to see that the page took longer to load and the video seek experience became slower.

下圖顯示此:The following graph shows this:

圖 2: 可接受視訊資料流經驗Figure 2: Acceptable video streaming experience

這個 Excel 折線圖顯示視訊資料流經驗。使用一部 SharePoint Server,從一位使用者開始,接著在視訊資料流速度變慢之前最多可新增到 400 位;在 400 - 450 位使用者之間,視訊資料流經驗會低於可接受的範圍。

若要查看此經驗的比例調整,我們逐漸新增更多電腦至適用的 SharePoint 部署,並繼續增加負載。下圖顯示的結果。To see how this experience scales, we gradually added more computers to our SharePoint deployment and continued to increase the load. The following graph shows the results.

圖 3: 可接受視訊資料流與其他測試電腦和使用者Figure 3: Acceptable video streaming with more test computers and users

這個 Excel 折線圖顯示具有其他使用者和前端網頁伺服器的視訊資料流經驗。在 2 部伺服器上,視訊資料流會在 600 位使用者時變慢,而在 650 位時就會變成無法接受的狀態。在 3 部伺服器上,資料流會在 1050 位使用者時變慢,並於 1100 位時變成無法接受的狀態。

影響 IIS 的位元速度節流設定Effect of IIS Bit Rate Throttling

我們使用網際網路資訊服務 (IIS) 位元速度節流設定在我們的測試伺服器上。IIS 此延伸功能可讓時所串流影片更有效率地使用頻寬。如需位元速度節流設定的詳細資訊,請參閱位元速度節流設定We used Internet Information Services (IIS) Bit Rate Throttling on our test servers. This extension to IIS allows the bandwidth to be used more effectively while you are streaming videos. For more information about Bit Rate Throttling, see Bit Rate Throttling.

請注意有數個並行使用者時,我們使用 IIS 位元速度節流設定與當我們沒有使用它支援依據沒有重大差異。不過,檢視經驗視訊覺得更順暢地呈現開啟時。Note that there is no significant difference according to the number of concurrent users supported when we used IIS Bit Rate Throttling versus when we did not use it. However, the video viewing experience feels smoother when it is turned on.

使用儲存外部的 SharePoint Server 2013 的影片Using videos that are stored external to SharePoint Server 2013

當您將儲存在 SharePoint Server 2013 環境之外的影片時,負載並從 SharePoint Server 2013 的外部位置。SharePoint Server 2013 只會載入影片播放程式] 頁面上或使用多媒體控制 [發佈] 頁面。資料流是由外部位置的來源執行。When you store videos outside a SharePoint Server 2013 environment, the load shifts from SharePoint Server 2013 to the external location. SharePoint Server 2013 only loads the video player page or the publishing page that uses the Rich Media control. The streaming is performed by the external location's source.

在實驗室環境中,我們設定 IIS 伺服器来裝載 stream 影片。我們已更新我們 dataset 參照影片我們 SharePoint 影片文件庫中的外部 URL。我們再次執行相同的測試,並找出我們無法同時 stream 最多 650 影片和仍有可接受的體驗。我們不沒有測試更多並行使用者。In our lab environment, we set up an IIS server to host and stream the videos. We updated our dataset to refer to the external URL for videos in our SharePoint video library. We ran the same test again and found that we could stream up to 650 videos concurrently and still have an acceptable experience. We did not test for more concurrent users.

請注意儲存在 SharePoint 環境之外的影片不會在 SharePoint 程式庫中收到相同驗證福利作為影片。會將此列入考量當您設計您的拓撲,並決定如何儲存您的影片。Note that videos that are stored outside a SharePoint environment do not receive the same authentication benefit as videos in a SharePoint library. Take this into consideration when you design your topology and decide how to store your videos.

另請參閱See also

概念Concepts

在 SharePoint Server 中管理網頁組件Manage web parts in SharePoint Server

其他資源Other Resources

在 SharePoint Server 2013 中規劃數位資產庫Digital asset library planning in SharePoint Server 2013