How to set the read and write rate limit in docker
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.