Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to set the read and write rate limit in docker

Shulou Source: shulou.com Published: 2022-06-01 17:23:19 10月04日 Update

This article will explain in detail how to set the read and write rate limit in docker. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Need to set-- blkio-weight to take effect

It means that the maximum read and write rate 30MB

Docker run-d-- blkio-weight 100-- device-read-bps / dev/vda:30MB-- device-write-bps / dev/vda:30MB-m 5120M-p 8080 device-read-bps 80-- network web_default-v / www/python/python_api/app:/app-- name python_api-- cpus=2.5-- restart=always hongjiang11/python-api:1.2

Some disks may be / dev/sda

On how to set the read and write rate limit in docker to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Speed limit content article more knowledge article good maximum meaning disk quality reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Technology Shulou Information Docker MySQL