-->
Save your FREE seat for 流媒体 Connect this August. 现在注册!

Thinking 关于 Load Testing: It’s Not Just for the Enterprise

文章特色图片

Expectations for larger audiences continue to grow for my small-to-medium-business (SMB) clients. This shift in scale makes accurately gauging capacity for on-demand cloud instances running streaming media server technologies such as Wowza Streaming Engine, Adobe Media服务器, 或NGINX不再只是美好的拥有, 但必要的.

While the cloud platform can be from any of the big three (Amazon Web Services, 微软Azure, 或谷歌云), nearly 100 percent of my clients already have and/or actively use Amazon Web Services for their cloud needs. The majority of my clients are running Wowza Streaming Engine installed on Amazon Linux AMIs, 它们24小时运行实例, although some only need to spin a cloud instance for specific live event time periods.

我最常被问到的一个问题是, “How large of an instance and how many instances does my video server need for my audience?” The answer to this question involves a variety of factors:

1. 观众大小: You should have some idea of the maximum count of viewers simultaneously watching video on demand (VOD) or live streams from your cloud infrastructure. 预期的观众高峰规模越大, the more thought and effort needs to go into your deployment.

2. 部署过程的复杂性: 中央处理器, 内存, and network resources required for one or more cloud instances in your video deployment will vary based on the layers of technology surrounding your media delivery. Multiplexing is fairly light on CPU and 内存 allocation, but hefty amounts of CPU or GPU will be required to convert a single high bitrate incoming live stream to multiple bitrates for adaptive delivery.

3. 业务要求的连续性: Every company has a different definition of “good enough” with respect to acceptable levels of service uptime. 例如, 如果你是一家新成立的公司,有一个测试版产品, you might be okay with a service failure or maintenance window that’s longer than a few minutes. 然而, 如果你需要保证, 24小时为您的客户服务, you’ll likely need to use some form of load balancing among multiple cloud instances. If one instance has an unexpected failure, another instance is there to pick up the slack. 更多的 instances mean a higher average monthly cost to maintain your video deployment.

一旦你考虑了这些因素, you can start to engineer a cloud deployment plan that suits your business requirements.

To test your infrastructure, you can use an open source tool called Apache JMeter to create multiple simultaneous connections to your media server infrastructure. You typically want to run JMeter on a dedicated cloud instance that is on the same private subnet within the same region as your video server instance(s). Note that you can create your own global content delivery network (CDN) across several regions, and you can test within each of these regions independently.

One of the best tutorials I’ve found for load testing with JMeter was written by Itay Mendelawy of BlazeMeter. This particular tutorial focuses on Apple HLS load testing, which is likely—and deservedly— one of the primary formats used in your deployment for adaptive streaming to mobile apps or browsers as well as desktop browsers. 当你在进行负荷测试时, you’ll want to monitor the health of your video server instance(s), making sure that CPU loads never reach 100 percent or 内存 allocations are maxed out. Wowza Streaming Engine has a GUI management interface that allows you to monitor CPU, 内存, 网络使用.

There are always other variables that can come up—like the DDoS firewall that a client forgot to factor in while hammering some of its own heavily protected servers on a recent test. 不过, the troubleshooting will go faster and cost less if you have worked through the parameters for gauging your requirements and if you build in time to methodically test the streaming capacity you have in place to support your expected audience—and their expectations!

[This article appears in the October 2016 issue of 流媒体杂志 as "Load Testing: It’s Not Just for the Enterprise."]

流媒体覆盖
免费的
合资格订户
现在就订阅 最新一期 过去的问题
相关文章

Buyers' Guide to Streaming Playback Testing Tools 2019

The CEO of RealEyes shares his personal video engineering toolbox, 其中包含诊断的解决方案, 修复, 分析, 以及解释流媒体视频的问题.

DDVTech Updates MistServer, Claims Load Balancing Lead

The Dutch developer releases research which promotes claimed industry leading load-balancing and latency improvements for MistServer

Cedexis Saves Load Times with Billions of Tests per Day

Learn how one company's automated CDN and ISP testing enhances traffic delivery for streaming video and more.

提及的公司及供应商