Command Line Interface Reference Guide > The SLB Configuration Menu
/cfg/slb/accel/compress/comppol <compression policy ID>
Compression Policy Menu
A compression policy defines the compression behavior required for the virtual service to which it is associated. A single compression policy can be associated to multiple virtual services if they share the same compression configuration.
The maximum number of policies is 1024. The compression policy is identified by an alphanumeric ID.
 
[Compression Policy <compression policy ID> Menu]
name - Set descriptive policy name
algrthm - Set preferred compression algorithm
complvl - Set compression level
minsize - Set minimum object size to be compressed
maxsize - Set maximum object size to be compressed
urllist - Set compression URL exceptions rule-list
brwslist - Set compression browser exceptions rule-list
brwspred - Enable/Disable predefined browser exceptions rule-list
compsrv - Enable/Disable compression by real server
ena - Enable policy
dis - Disable policy
del - Delete policy
cur - Display current policy configuration
 
Compression Policy Menu 
Command Syntax and Usage
name
 
An optional descriptive string in addition to the policy ID.
Values: 0 – 31 characters
algrthm
 
Defines the preferred compression algorithm used by Alteon, where the client can receive both gzip and Deflate compressed content.
The prompt displays the current preferred compression algorithm. Enter the new preferred compression algorithm, if required.
Values: gzip, deflate
Default: gzip
complvl
 
Sets the compression level.
The prompt displays the current compression level. Set the new compression level, if required.
Note: Because raising the compression level requires more CPU resources and usually only results in a small adjustment to the compression ratio, changing this default should be done with care.
Values: 1 – 9
Default: 1
minsize
 
Defines the minimum file size to be compressed to avoid wasting resources on files that are already small and do not require a large amount of bandwidth in order to be transferred as is.
Values: 1 – 65535 bytes
Default: 10240 (10 KB)
maxsize
 
Defines the maximum value of the file sizes (according to their Content Length header) of the object to be compressed. Use this to avoid attempting to compress files that are very big, for which the compression time will be long and high latency may occur.
Values: 1 – 2000000000 bytes, unlimited
Default: 10485760 (100 MB)
urllist
 
Optionally associates a compression URL exceptions rule list to the compression policy. This lets you define compression exceptions rule lists based on an object’s URL (file/folder). These exceptions are evaluated first, making them the most low-level means of defining compress or dont-compress behavior.
Values: 0 – 31 characters
Default: none
brwslist
 
Optionally associates a browser exceptions rule list to the compression policy. You may want to do this to skip the compression of certain objects that create a problem when uncompressed, or that require too much resources with little benefit (such as PDFs and PPT folders, or for specific browser types (user-agents)).
This lets you define compression exceptions rule lists based on User-Agent (Browser type) or Content-type (file type). These exceptions are evaluated after the compression URL exceptions, meaning they can be overridden by the compression URL exceptions.
For details on creating browser exception rule lists, see /cfg/slb/accel/compress/brwslist Compression Browser Exception Rule-Lists Menu.
Values: 0 – 31 characters
Default: none
brwspred
 
Enable or disables workarounds for known browser compression-related limitations using a predefined browser exception rule list. For details on the predefined browser rule list, see Predefined Browser Rule Table.
Values: disabled, enabled
Default: disabled
compsrv
 
When compression is enabled on Web servers, and an Accept Encoding header is received in clients requests, the Web server attempts to compress the content on its own, wasting CPU resources and affecting its performance. When this option is disabled, it deletes the Accept Encoding header from requests sent to the server to prevent it from performing compression and ensures that only Alteon compresses content, preserving server’s performance.
Values: disabled, enabled
Default: disabled
ena
 
When you configure the compression policy, it is disabled by default. In order for compression to work, you must enable and apply the compression policy.
dis
 
Disables a compression policy to make it non-operational.
del
 
Deletes this compression policy.
cur
 
Displays the current compression policy configuration.