Name

delay_class

Synopsis

This directive defines the class of each delay pool. The first argument is the delay pool index. Index values start at 1 and must be less than or equal to the delay_pools value. The second argument is the delay class, which has three possible values:

  • A class 1 pool uses a single, aggregate bucket for all traffic that applies to the pool.

  • A class 2 pool uses a single, aggregate bucket, as well as 256 individual buckets. The individual bucket is chosen by the last octet of the client’s IPv4 address.

  • A class 3 bucket uses a single, aggregate bucket, 256 network buckets, and 65,536 individual buckets. The network bucket is chosen based on the third octet of the client’s IPv4 address. The individual bucket is chosen by the third and fourth octets.

Note that the class 2 and class 3 pools have multiple types of buckets (aggregate, network, individual). A client receives a traffic allocation from all relevant buckets, not just one of them. In other words, if any of the relevant buckets are empty, the client doesn’t receive any traffic allocation.

Syntax

delay_class pool-number 
                              class

Default

No default

Example

delay_class 1 2
delay_class 2 3

Related

delay_pools, delay_access, delay_parameters, delay_initial_bucket_level

Get Squid: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.