Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way to set a upper bandwidth limit such that at any point of time the total bandwidth from Squid service will not cross the upper limit?

Warm Regards

Supratik

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Use delay pools. Delay pools allows you to limit traffic for clients or client groups:

delay_pools 1
delay_class 1 1
delay_access 1 allow all
delay_parameters 1 64000/64000          # 512 kbits == 64 kbytes per second
share|improve this answer
    
Hi ooshro, Thanks for the quick reply. Will this limit the incoming and outgoing to 512kbits ? Is there any way I can verify it ? –  Supratik Feb 21 '11 at 9:35
    
@Supratik Limit only incoming. For outgoing use tc or iptables(hashlimit). To verify use speedtest.net –  ooshro Feb 21 '11 at 9:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.