gru 31, 2007
iRule’a na koniec roku.

Kiedyś trafiłem na taką iRule’a na DevCentral. W zależności od RTT klienta F5tka ustawia odpowiedni poziom kompresji dla serwowanej strony. Cwane:)
# rule HTTP_compression_slow_connections { # If client round trip time (latency) exceeds: # 50ms set HTTP compression to level 1 # 100ms set HTTP compression to level 5 # RTT returns latency as 1/32 of a millisecond, # so 1600=50ms, 3200=100ms, etc # In the HTTP profile, set compression to "selective" when HTTP_REQUEST { set rtt [TCP::rtt] } when HTTP_RESPONSE { if {$rtt > 1600 } { COMPRESS::enable COMPRESS::gzip level 1 } elseif {$rtt > 3200 } { COMPRESS::enable COMPRESS::gzip level 5 } } }

No Comments, Comment or Ping
Reply to “iRule’a na koniec roku.”