当前位置: 首页 > news >正文

专注徐州网站开发大型营销型网站制作

专注徐州网站开发,大型营销型网站制作,西宁网站建设,网站如何做邮箱订阅号限制docker 上传速度 然而,你可以使用第三方工具来实现这个目的。一个常用的工具是 trickle,它可以模拟网络带宽。 首先,你需要安装 trickle。在 Ubuntu 上,可以使用以下命令安装: sudo apt-get install trickle然后…

限制docker 上传速度

然而,你可以使用第三方工具来实现这个目的。一个常用的工具是 trickle,它可以模拟网络带宽。

首先,你需要安装 trickle。在 Ubuntu 上,可以使用以下命令安装:

sudo apt-get install trickle

然后,你可以使用 trickle 来限制 Docker 推送的速度。例如:

trickle -s -u 300 docker push kevinchina/deeplearning:CodeFormerv1.000

在这个例子中,-u 300 表示将带宽限制为每秒 300KB。你可以根据需要调整这个值。

请注意,这种方法并不是 Docker 的原生功能,而是通过使用额外的工具来实现的。

https://blog.desdelinux.net/en/trickle-bandwidth-limiter-for-linux/

Installation
sudo apt-get install trickle
How to use trickle
Trickle’s syntax is as follows:

trickle -d Download_Bandwidth -u Upload_Bandwidth Command
Here are some examples:

a) Limit the download bandwidth to 10kbps used to transfer a file using ssh:

trickle -d 10 scp file.mp3 10.0.0.1:/home/puntolibre/musica/
b) Limit the bandwidth to 200kpbs of download of a system update through Apt:

trickle -d 200 apt-get upgrade
c) To modify the bandwidth of an application, such as Firefox:

trickle -d 10 -u 10 firefox% u
d) Using trickle to limit wget’s bandwidth

trickle -d 50 wget -O “planet earth.divx” http://video.stage6.com/1402821/.divx

Run trickle like a demon
To start trickle like a daemon and limit ALL bandwidth, use the trickled command:

sudo trickled -d 20 -u 20
… Where the parameters -d and -u respond to the download and upload limit, respectively.

Configuring trickle
Trickle has a configuration file that will allow us to fine-tune some parameters and make them permanent individually for each service.

The configuration file is as follows: /etc/trickled.conf

The simplest configuration file that can be made looks like this:

[ssh] Priority = 1

[www] Priority = 8
With this method we get quite good download speeds and at the same time we can do ssh sessions to the machine that is downloading. Basically, a config file like the one above tells trickle to prioritize ssh transfers over www.

Trickle’s documentation recommends the use of the Time-Smoothing and Length-Smoothing parameters to avoid fluctuations in transfer rates.

[ssh] Priority = 1
Time-Smoothing = 0.1
Length-Smoothing = 2

[www] Priority = 8
Time-Smoothing = 5
Length-Smoothing = 20
These values ​​define the normalization time and length that Trickle applies to the program it is controlling.

http://www.hkea.cn/news/20594/

相关文章:

  • 爱站网是干什么的长沙关键词排名首页
  • wordpress 教垜四川seo推广公司
  • 东莞市阳光网青岛seo服务
  • 网站弹窗在中间位置企业培训师
  • 整站下载器 安卓版域名解析查询站长工具
  • 跨境自建站模板seo推广是做什么
  • 网站建设与网页设计报告网络营销师报名入口
  • 生成前端页面的网站东莞网络营销全网推广
  • 网站及单位网站建设情况免费男女打扑克的软件
  • 公司有网站有什么好处网上开店如何推广自己的网店
  • 海口网站建设策划关键词排名优化工具有用吗
  • 请问哪里可以做网站汕头seo
  • 访问国外网站速度慢苏州关键词seo排名
  • 做网站备案照片的要求谷歌seo教程
  • wordpress站点全屏新站如何让百度快速收录
  • wordpress 会议 主题推广排名seo
  • 源码开发网站建设sem与seo的区别
  • 如何查网站的空间防恶意点击软件
  • 单位网站建设收费标准互联网推广引流
  • 网站有中文源码加英文怎么做关键词歌词完整版
  • 建设网站企业银行做网站的平台
  • 如何进行网站建设分析网站推广app软件
  • 做ppt的软件模板下载网站网站服务公司
  • 网站icp备案认证怎么做谷歌网页版入口在线
  • 高安网站建设艺考培训
  • 主流的网站开发技术百度推广后台管理
  • 传奇网站模板免费下载优化网络搜索引擎
  • 提升学历报考什么专业比较好seosem顾问
  • 做违法网站犯法吗推广费用一般多少钱
  • 网站版权该怎么做呢五种常用的网站推广方法