Product Documentation

Configuring Front End Optimization

Aug 25, 2016

Optionally, you can change the values of the front end optimization global settings. Otherwise, begin by creating actions that specify the optimization rules to be applied to the embedded objects.

After configuring actions, create policies, each with a rule specifying a type of request for which to optimize the response, and associate the actions with the policies.

Note: The NetScaler ADC evaluates front end optimization policies at request time only, not at response time.

To put the policies into effect, bind them to bind points. You can bind a policy globally, so that it applies to all traffic that flows through the NetScaler ADC, or you can bind the policy to a load balancing or content switching virtual server of type HTTP or SSL. When you bind a policy, assign it a priority. A lower priority number indicates a higher value. The NetScaler ADC applies the policies in the order of their priorities.

Prerequisites for Front End Optimization

Front end optimization requires the NetScaler integrated caching feature to be enabled. Additionally, you must perform the following integrated caching configurations:
  • Allocate cache memory.
  • Set the maximum response size and memory limit for a default cache content group.
For more information on configuring integrated caching, see Integrated Caching.
 
Note: The term Integrated Cache can be interchangeably used with AppCache; note that from a functionality point of view, both terms mean the same.

To configure front end optimization by using the command line interface

At the command prompt, do the following:

  1. Enable the front end optimization feature.

    enable ns feature FEO

  2. Create one or more front end optimization actions.

    add feo action <name> [-imgShrinkToAttrib] [-imgGifToPng] ...

    Example: To add a front end optimization action for converting images in GIF format to PNG format and to extend cache expiry period:
    add feo action allact -imgGifToPng -pageExtendCache
  3. [Optional] Specify non-default values for front end optimization global settings.

    set feo parameter [-cacheMaxage <integer>] [-JpegQualityPercent <integer>] [-cssInlineThresSize <integer>] [-inlineJsThresSize <integer>] [-inlineImgThresSize <integer>]

    Example: To specify the cache maximum expiry period:
    set feo parameter -cacheMaxage 10
  4. Create one or more front end optimization policy.

    add feo policy <name> <rule> <action>

    Example: To add a front end optimization policy and associate it with the above specified allact action:
    >add feo policy pol1 TRUE allact 
    >add feo policy pol1 "(HTTP.REQ.URL.CONTAINS(\"testsite\"))" allact1
  5. Bind the policy to a load balancing or content switching virtual server, or bind it globally.

    bind lb vserver <name> -policyName <string> -priority <num>

    bind cs vserver <name> -policyName <string> -priority <num>

    bind feo global <policyName> <priority> -type <type> <gotoPriorityExpression>

    Example: To apply the front end optimization policy to a virtual server named "abc":
    > bind lb vserver abc -policyName pol1 -priority 1 -type NONE
    Example: To apply the front end optimization policy for all the traffic reaching the ADC:
    > bind feo global pol1 100 -type REQ_DEFAULT
  6. Save the configuration.

    save ns config

Configuring front end optimization by using the configuration utility

  1. Enable the front end optimization feature using the command line interface.
  2. Create a front end optimization action.

    Navigate to Optimization > Front End Optimization > Actions, click Add and create a front end optimization action by specifying the relevant details.

  3. [Optional] Specify the front end optimization global settings.

    Navigate to Optimization > Front End Optimization, and on the right-pane, under Settings, click Change Front End Optimization settings and specify the front end optimization global settings.

  4. Create a front end optimization policy.

    Navigate to Optimization > Front End Optimization > Policies, click Add and create a front end optimization policy by specifying the relevant details.

  5. Bind the policy to a load balancing or content switching virtual server.
    1. Navigate to Optimization > Front End Optimization > Policies.
    2. Select a front end optimization policy and click Policy Manager.
    3. Under Front End Optimzation Policy Manager, bind the front end optimization policy to a load balancing or content switching virtual server.

Verifying Front End Optimization Configuration

Updated: 2015-01-12

The dashboard utility displays summary and detailed statistics in tabular and graphic formats. You can view the FEO statistics to evaluate your FEO configuration.

Optionally, you can also display statistics for an FEO policy, including the number of hits that the policy counter increments during policy based FEO.

Note: For more information about statistics and charts, see the Dashboard help on the Citrix NetScaler appliance.

To View FEO statistics by using the command line interface

At the command prompt, type the following commands to display a summary of FEO statistics, FEO policy hits and details, and detailed FEO statistics, respectively:

  • stat feo
    Note: The stat feo policy command displays statistics only for advanced FEO policies.
  • show feo policy <name>
  • stat feo -detail

To view FEO statistics on the Dashboard

In the Dashboard utility, you can:

  • Select Front End Optimization to display a summary of FEO statistics.
  • Click the Graphical View tab to display the rate of requests processed by the FEO feature.