Accelerate load balanced traffic by using compression
Compression configuration task sequence
Enable compression
To enable compression by using the CLI
-
enable ns feature CMP
-
show ns feature
> enable ns feature CMP
Done
> show ns feature
Feature Acronym Status
------- ------- ------
1) Web Logging WL ON
2) Surge Protection SP OFF
.
7) Compression Control CMP ON
.
Done
To enable compression by using the GUI
-
In the navigation pane, expand System, and then click Settings.
-
In the details pane, under Modes and Features, click Change basic features.
-
In the Configure Basic Features dialog box, select the Compression check box, and then click OK.
-
In the Enable/Disable Feature(s)? dialog box, click Yes.
Configure services to compress data
To enable compression on a service by using the CLI
-
set service \<name\> -CMP YES
-
show service \<name\>
> show service SVC_HTTP1
SVC_HTTP1 (10.102.29.18:80) - HTTP
State: UP
Last state change was at Tue Jun 16 06:19:14 2009 (+737 ms)
Time since last state change: 0 days, 03:03:37.200
Server Name: 10.102.29.18
Server ID : 0 Monitor Threshold : 0
Max Conn: 0 Max Req: 0 Max Bandwidth: 0 kbits
Use Source IP: NO
Client Keepalive(CKA): NO
Access Down Service: NO
TCP Buffering(TCPB): NO
HTTP Compression(CMP): YES
Idle timeout: Client: 180 sec Server: 360 sec
Client IP: DISABLED
Cacheable: NO
SC: OFF
SP: OFF
Down state flush: ENABLED
1) Monitor Name: tcp-default
State: DOWN Weight: 1
Probes: 1095 Failed [Total: 1095 Current: 1095]
Last response: Failure - TCP syn sent, reset received.
Response Time: N/A
Done
To enable compression on a service by using the GUI
-
Navigate to Traffic Management > Load Balancing > Services.
-
In the details pane, select the service for which you want to configure compression (for example, service-HTTP-1), and then click Open.
-
On the Advanced tab, under Settings, select the Compression check box, and then click OK.
-
Verify that, when the service is selected, HTTP Compression(CMP): ON appears in the Details section at the bottom of the pane.
Bind a compression policy to a virtual server
To bind or unbind a compression policy to a virtual server by using the command line
bind lb vserver <name> -policyName <string>
Done
unbind lb vserver <name> -policyName <string>
Done
show lb vserver <name>
> bind lb vserver lbvip -policyName ns_cmp_msapp
Done
> show lb vserver lbvip
lbvip (8.7.6.6:80)-HTTPType:ADDRESS
State:UP
Last state change was at Thu May2805:37:212009(+685ms)
Time since last state change:19days,04:26:50.470
EffectiveState:UP
Client Idle Timeout:180sec
Down state flush:ENABLED
Disable Primary Vserver On Down:DISABLED
Port Rewrite:DISABLED
No.of Bound Services:1(Total)1(Active)
Configured Method:LEASTCONNECTION
Current Method:RoundRobin,Reason:Boundservice'sstatechangedtoUP
Mode:IP
Persistence:NONE
Vserver IP and Port insertion:OFF
Push:DISABLEDPushVServer:
Push Multi Clients:NO
Push Label Rule: None
BoundServiceGroups:
1)GroupName:Service-Group-1
1)Service-Group-1(10.102.29.252:80)-HTTPState:UPWeight:1
1)Policy:ns_cmp_msappPriority:0
Done
To bind or unbind a compression policy to a load balancing virtual server by using the GUI
-
Navigate to Traffic Management > Load Balancing > Virtual Servers.
-
In the details pane, select the virtual server to which you want to bind or unbind a compression policy (for example, Vserver-LB-1), and then click Open.
-
In the Configure Virtual Server (Load Balancing) dialog box, on the Policies tab, click Compression.
-
Do one of the following:
-
To bind a compression policy, click Insert Policy, and then select the policy you want to bind to the virtual server.
-
To unbind a compression policy, click the name of the policy you want to unbind from the virtual server, and then click Unbind Policy.
-
-
Click OK.