Something to take into account: if you limit the bandwidth, a nginx worker will have to spend more time for that request, time he cannot spend on other, possibly more meaningful requests.
> On 24 Dec 2021, at 14:23, Francis Daly <fran...@daoine.org> wrote: > > On Thu, Dec 23, 2021 at 09:53:26AM +0800, huiming wrote: > > Hi there, > >> Any suggestion for third-party module that does some form of internal >> bandwidth limiting? > > Noting that I imagine that if this facility were straightforward > to implement efficiently and reliably in a future-proof fashion, > it would already be included in a stock nginx module; I can > see that a web search for some likely-looking terms points at > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvozlt%2Fnginx-module-vts&data=04%7C01%7CNicolas.Franck%40ugent.be%7Cf8ccb3df1ea8452a46bf08d9c6e0a02d%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C637759490768086551%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=S61bxGKoqFHttBvuP3nl5YAaGBJkJyVMmvBr96R699I%3D&reserved=0 > as maybe being interesting. > > (But I'm not sure if that limits the total transfer, or the transfer > rate. You'll want to test if it does the thing that you want, and if > the limitations are acceptable to you.) > > Good luck with it, > > f > -- > Francis Daly fran...@daoine.org > _______________________________________________ > nginx mailing list > nginx@nginx.org > https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.nginx.org%2Fmailman%2Flistinfo%2Fnginx&data=04%7C01%7CNicolas.Franck%40ugent.be%7Cf8ccb3df1ea8452a46bf08d9c6e0a02d%7Cd7811cdeecef496c8f91a1786241b99c%7C1%7C0%7C637759490768086551%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=VTsIXXzZRvtaPGQ%2Fp42Dv8DCM%2FBB8dABBBPcbpx03VI%3D&reserved=0 _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx