Squid Web Cache wiki

Squid Web Cache documentation

🔗 Feature: Quota control

🔗 Description

Squid needs better interface to control quotas. The existing approaches to quota control require the use of external ACLs or redirectors. The external helpers are only contacted at the start of the request and need to work with information given only at the end of the request. Due to these limitations, users may go significantly over their quota before Squid reacts.

🔗 Bandwidth Quotas

The external helpers need to process access.log to calculate the bandwidth usage. Which limits accuracy in the worst-case with large and long duration requests.

Also, external helpers cannot do traffic shaping (i.e., slowing down the transfer instead of denying the request). It is not yet clear whether a single interface should serve both purposes.

Update: With TCP logging a helper can be written to account log information live and maintain any external accounting or traffic needed to maintain quota limits. An internal accounting pool is still needed per client to maintain limits on active requests.

🔗 Time Quotas

The external helpers need to process permission at the start of the request based on relation to earlier requests. Duration of the requests themselves are not accounted. Long-polling in particular (such as chat sessions over HTTP) may bypass the quota controls.

Categories: WantedFeature

Navigation: Site Search, Site Pages, Categories, 🔼 go up