How can I limit Squids total bandwidth to, say, 512 Kbps?
acl all src 0.0.0.0/0.0.0.0 # might already be defined delay_pools 1 delay_class 1 1 delay_access 1 allow all delay_parameters 1 64000/64000 # 512 kbits == 64 kbytes per second For an explanation of these tags please see the configuration file. The 1 second buffer (max = restore = 64kbytes/sec) is because a limit is requested, and no responsiveness to a busrt is requested. If you want it to be able to respond to a burst, increase the aggregate_max to a larger value, and traffic bursts will be handled. It is recommended that the maximum is at least twice the restore value – if there is only a single object being downloaded, sometimes the download rate will fall below the requested throughput as the bucket is not empty when it comes to be replenished.
acl all src 0.0.0.0/0.0.0.0 # might already be defined delay_class1_access all delay_class1_aggregate_max 64000 # 1 second “buffer” of 64kbytes delay_class1_aggregate_restore 64000i # 512 kbits == 64 kbytes per second The 1 second buffer is because you have implied you just want a limit, and don’t want it to be able to respond to a burst. If you want it to be able to respond to a burst, increase the aggregate_max to a larger value, and traffic bursts will be handled.
Related Questions
- What increased bandwidth for the merchant might be required to handle transactions? What share of total costs would arise from communications (bandwidth) both for the publishers and Clickshare?
- Is there a minimum innings pitched limit for pitchers or a minimum number of at-bats total for offense?
- How can I limit Squids total bandwidth to, say, 512 Kbps?