VMware VCLOUD SDK FOR JAVA 1.0 - DEVELOPER S GUIDE Manuale Utente Pagina 28

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 65
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 27
Hybrid Cloud Application Architecture
F5
®
Deployment Guide 26
5. Click Finished.
Creating the virtual server
To create the virtual server, use the procedure Creating the virtual server,
on page 17, using the BIG-IP LTM objects you created in this section, with
the following exceptions:
After Step 12, from the Statistics Profile list, select the name of the
Statistics profile you created in
Creating the Statistics profile, on page
24.
After selecting the Statistics profile, in the Resources section, from the
iRules row, in the Available box, select the iRule you created in
Creating the iRule, on page 25, and the click the Add (<<) button to
move it to the Enabled list. In our example, we select increment-irule.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/JPetStoreApp/shop/newOrder.shtml?" } {
set http_request_time [clock clicks -milliseconds]
set isCheckout "true"
}
else {
set isCheckout "false"
}
}
when HTTP_RESPONSE {
if { $isCheckout eq "true" } {
#if it's not coming from the local LTM monitoring or GTM self IP record the statistic
set response_time [expr [clock clicks -milliseconds] - $http_request_time]
log local0. "response time: $response_time ms for [IP::client_addr]"
if { $response_time < 5 } {
STATS::incr responseHistogram zeroToFive 1
}
elseif { $response_time < 7 } {
STATS::incr responseHistogram fiveToSeven 1
}
elseif { $response_time < 13 } {
STATS::incr responseHistogram sevenToThirteen 1
}
elseif { $response_time < 15} {
STATS::incr responseHistogram thirteenToFifteen 1
}
else {
STATS::incr responseHistogram greaterThanFifteen 1
}
}
}
Vedere la pagina 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 64 65

Commenti su questo manuale

Nessun commento