In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to add temporary bandwidth to the CVM. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.
If no additional bandwidth is purchased, the core of the problem solved by the configuration of server bandwidth is to limit the upstream bandwidth of the server. We can try to solve this problem by adding a bandwidth limit to nginx.
The download of large files on the server will not have a big problem when requested by ordinary users, because the download bandwidth of ordinary users is usually about dozens of M, so a request does not put great pressure on the bandwidth of the server.
However, when a CVM is used as an origin-pull CDN, it is important to note that the bandwidth of the CDN server room can reach hundreds of megabytes or even gigabytes, while the bandwidth fee of the IDC server room is often calculated based on the peak bandwidth. Therefore, if CDN does not limit the server bandwidth when pulling back large files, there will be an instant maximum peak, resulting in unnecessary economic losses.
There are two configuration items in nginx
Limit_rate limits the peak bandwidth of a single request, 512,1k, 10m
Limit_rate_after starts to limit when downloading exceeds a certain size, 100m, 100k
After this configuration, we tested it with curl and found that when the file download exceeds a certain size, the download rate will drop to the bandwidth value set by limit_rate.
If the website has large file resources, be sure to pay attention to the configuration of the download rate, especially when doing CDN origin-pull configuration. Even without CDN origin-pull, high-bandwidth downloads may occur in some special scenarios, so you should pay special attention to it.
If you purchase a CVM, you can add the configuration temporarily and have the feature of flexible expansion. Upgrade bandwidth without downtime at any time, can meet the needs of users to temporarily increase server configuration, and do not want to spend unjustified money, flexibly increase server configuration on a daily basis, and charge on a daily basis.
The above is how to add temporary bandwidth to the CVM shared by the editor. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.