Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I limit Squids total bandwidth to, say, 512 Kbps?

bandwidth Kbps limit Squid total
0
Posted

How can I limit Squids total bandwidth to, say, 512 Kbps?

0

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.

0

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 is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.