AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[icecast](server)

Martin Hope
Samuel Hackwill
Asked: 2022-03-08 04:06:05 +0800 CST

便宜的 VPS 上的 250Mbs 是否足以让 500 个 CCU 收听广播流?[复制]

  • 0
这个问题在这里已经有了答案:
您如何为网站进行负载测试和容量规划? (5 个回答)
6 个月前关闭。

我想使用由法国 OVH 托管的廉价 VPS(1 个 vCore、2 GB RAM、40 GB SSD NVMe、250 Mbps 不限速)来托管一个将用于本月活动的 icecast 服务器。将有多达 500 个 CCU 监听 128 kbps 音频流。

根据我对本文的阅读,在我看来 250 Mbps 应该足以响应负载,但我没有任何管理此类问题的经验。

我的理由是 128kb*500CCU + 10% 开销 = 大约 70 Mb/s。

我还想知道 OVH 提供的 250 Mbps 不计量是否得到保证,或者使用该机器的其他客户端托管的其他服务的负载是否会对性能产生影响。(我已经问过OVH,但他们并不是特别有帮助)

谢谢你的见解!塞缪尔

更新

我已经使用上面链接中描述的脚本设置了负载测试场景。

#!/bin/sh
#

# max concurrent curls to kick off
max=600
# how long to sleep between each curl, can be decimal  0.5
delay=1
# how long to stay connected (in seconds)
duration=1800
# url to request from
URL=<theURL>

echo "Start load test"

while /bin/true
do
count=0
while [ $count -le $max ]
do  
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   curl -m $duration --silent --output /dev/null "$URL" &
   [ "$delay" != "" ] && sleep $delay
   let count=$count+10
   echo "Added 10 clients, now at $count clients"
done
wait
done

在 VPS1(“客户端”机器)上启动脚本之前,我在 VPS2(“服务器”机器,icecast2 服务器所在的位置)上的网络接口上使用 slurm 打开了一个窗口来监控网络使用情况,如下所示:

slurm -i eth0

我还打开了一个窗口来监控 icecast 的 CPU 使用情况(在 VPS2 上),如下所示:

top -p <PID OF ICECAST>

并在收听广播流时启动脚本。一切都很顺利,我没有听到任何故障,而且 CPU 使用率(600 CCU 时为 6%)非常合理(网络使用率也比我预期的要低得多,峰值使用率是 17MB),所以我猜我的设置通过负载测试!

谢谢您的帮助。

vps ovh icecast
  • 1 个回答
  • 75 Views
Martin Hope
Moshe L
Asked: 2018-11-03 04:15:25 +0800 CST

debian 上的 icecast2 在大约 1000 个连接后挂起

  • 0

我在 Debian(或 Ubunto,都测试过)上使用 icecast2(来自 apt-get)。8GB RAM,4 个 CPU 内核,3 个流。

服务器在 XML 配置中配置为 20K 连接限制,但是当它接收到 ~ 1000 个连接时,它会挂起。

我正在使用真实客户进行测试,但也使用curl --silent --output /dev/null http://localhost:8001/livemusicfrom进行测试localhost。

我还尝试在端口 8001 上手动运行另一个,这样我就可以再运行 1000 个连接,但它又挂了。

我需要做什么 ?

 <limits>
    <clients>20000</clients>
    <sources>9</sources>
    <queue-size>10485760</queue-size>
    <client-timeout>30</client-timeout>
    <header-timeout>15</header-timeout>
<threadpool>30</threadpool>
    <source-timeout>10</source-timeout>
    <!-- If enabled, this will provide a burst of data when a client 
         first connects, thereby significantly reducing the startup 
         time for listeners that do substantial buffering. However,
         it also significantly increases latency between the source
         client and listening client.  For low-latency setups, you
         might want to disable this. -->
    <burst-on-connect>1</burst-on-connect>
    <!-- same as burst-on-connect, but this allows for being more
         specific on how much to burst. Most people won't need to
         change from the default 64k. Applies to all mountpoints  -->
    <burst-size>131072</burst-size>
</limits>
icecast
  • 1 个回答
  • 321 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve