Applies To:

Show Versions Show Versions

Manual Chapter: Configuration Guide for BIG-IP Local Traffic Management: 11 - Using Additional Profiles
Manual Chapter
Table of Contents   |   << Previous Chapter   |   Next Chapter >>


11

Using Additional Profiles


Introducing other types of profiles

In addition to the profiles described in previous chapters, you can configure these profiles:

  • OneConnectTM
  • Statistics
  • Stream

For each profile type, the BIG-IP® system provides a pre-configured profile with default settings. In most cases, you can use these default profiles as is. If you want to change these settings, you can configure profile settings when you create a profile, or after profile creation by modifying the profile's settings.

The following sections list the traffic-management settings contained in OneConnect, Statistics, and Stream profiles. For information on configuring other types of profiles, see the following:

Configuring a OneConnect profile

The OneConnect profile is a configuration tool for enabling connection pooling on a BIG-IP system. Connection pooling optimizes the way that the BIG-IP system handles connections. When connection pooling is enabled on a BIG-IP system, client requests can utilize existing, server-side connections, thus reducing the number of server-side connections that a server must open to service those requests.

The BIG-IP system can pool connections from multiple virtual servers if those virtual servers reference the same OneConnect profile and the same pool.

Tip


You can also enable a related feature known as the OneConnect Transformations feature. You enable this feature from within an HTTP profile. The OneConnect Transformations HTTP profile setting applies to HTTP/1.0 connections, and when enabled, causes the system to transform the value of the Connection header in an HTTP request to Keep-Alive, to keep a connection open. This feature, together with a OneConnect profile, optimizes connection persistence.

Table 11.1 lists and describes the settings of a OneConnect profile type.

Table 11.1 Settings of a OneConnect profile
Setting
Description
Default Value
Name
This setting specifies a unique name for the profile.
No default value
Parent Profile
This setting specifies the profile that you want to use as the parent profile. Your new profile inherits all non-custom settings and values from the parent profile specified.
oneconnect
Source Mask
The BIG-IP system applies the value of this setting to the source address to determine its eligibility for reuse. A mask of 0 causes the BIG-IP system to share reused connections across all clients. A host mask (that is, all 1 values in binary), causes the BIG-IP system to share only those reused connections originating from the same client IP address.
0.0.0.0
Maximum Size
The setting defines the maximum number of connections that the BIG-IP system holds in the connection re-use pool. If the pool is already full, then a server-side connection closes after the response is completed.
Important: When using a OneConnect profile, the value of the Maximum Size setting must be at least one number smaller than the connection limit set for a pool member. This is because the BIG-IP system includes connections in the connection re-use pool as part of a pool member's connection limit. Therefore, if the number of connections for a pool member reaches the maximum number allowed, the virtual server can become unavailable.
10000
Maximum Age
This setting defines the maximum number of seconds allowed for a connection in the connection re-use pool. For any connection with an age higher than this value, the BIG-IP system removes that connection from the re-use pool.
86400
Maximum Reuse
This setting specifies the maximum number of times that a server-side connection can be re-used.
1000
Idle Timeout Override
This setting specifies the number of seconds that a connection is idle before the connection flow is eligible for deletion. You can use this setting to increase the timeout value for connections once they are pooled for re-use. Possible values are Disabled, Indefinite, or Specify (a numeric value that you specify).
Disabled

 

For information on iRulesTM OneConnect commands, see the F5 Networks DevCentral web site http://devcentral.f5.com, and Chapter 15, Writing iRules .

Configuring a Statistics profile

The Statistics profile provides user-defined statistical counters. Each profile contains 32 settings (Field1 through Field32), which define named counters. Using a Tcl-based iRuleTM command, you can use the names to manipulate the counters while processing traffic.

For example, you can create a profile named my_stats, which assigns the counters tot_users, cur_users, and max_users to the profile settings Field1, Field2, and Field3 respectively. You can then write an iRule named track_users, and then assign the my_stats profile and the track_users iRule to a virtual server named stats-1. Figure 11.1 shows this configuration.

 

Figure 11.1 Example of Statistics profile counters used in an iRule
profile stats my_stats {
   defaults from stats
   field1 tot_users
   field2 cur_users
   field3 max_users
}
rule track_users {
   when CLIENT_ACCEPTED { 
       STATS::incr my_stats tot_users 
       STATS::setmax my_stats max_users [STATS::incr my_stats 
cur_users]
   }
}
virtual stats-1 {
   destination 10.10.55.66:http
   ip protocol tcp
   profile http my_stats tcp
   pool pool1
   rule track_users
}

 

In this example, the counter tot_users counts the total number of connections, the counter cur_users counts the current number of connections, and the counter max_users retains the largest value of the counter cur_users.

For information on iRules Statistics commands, see the F5 Networks DevCentral web site http://devcentral.f5.com, and Chapter 15, Writing iRules .

Configuring a Stream profile

You can use the Stream profile to search and replace strings within a data stream, such as a TCP connection. Table 11.2 lists and describes the settings of a Stream profile type.

Table 11.2 Settings of a Stream profile
Setting
Description
Default Value
Name
This setting specifies a unique name for the profile.
No default value
Parent Profile
This setting specifies the profile that you want to use as the parent profile. Your new profile inherits all non-custom settings and values from the parent profile specified.
stream
Source
Specifies the source string for which to search.
No default value
Target
Specifies the target string to replace.
No default value

 

For information on iRules Stream commands, see the F5 Networks DevCentral web site http://devcentral.f5.com, and Chapter 15, Writing iRules .




Table of Contents   |   << Previous Chapter   |   Next Chapter >>

Was this resource helpful in solving your issue?




NOTE: Please do not provide personal information.



Incorrect answer. Please try again: Please enter the words to the right: Please enter the numbers you hear:

Additional Comments (optional)